Giacomo Leidi skribis: > This patch implements restic backup with Shepherd services. It is > supposed not to break any existing setup. > > * gnu/services/backup.scm (restic-backup-job): Add Shepherd > configuration options; > (restic-backup-job->mcron-job): Replace with...; > (restic-job-log-file): New procedure; > (restic-backup-job->shepherd-service): New procedure; > (restic-backup-activation): New procedure; > (restic-backup-service-type): Replace mcron with Shepherd extension and add > activation extension hook. > * doc/guix.texi: Document it. > > Change-Id: I66de3b6a1cb6177f9e4ee0c2acf3013ecbcdd338 Applied with the cosmetic change below, thanks! I just realized there’s no test for this service, so let’s everything still works well. Would be nice to add a test. > + ;; We go through bash, instead of executing > + ;; restic-guix directly, because the login shell > + ;; gives us the correct user environment that some > + ;; backends require, such as rclone. > + (string-append #+bash-minimal "/bin/bash") > + "-l" "-c" > + (string-append "restic-guix backup " #$name)) Thanks for adding this comment. Ludo’.