]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Hide output for rsync and remove useless mailto in cron
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 6 Feb 2019 22:56:54 +0000 (23:56 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 6 Feb 2019 22:56:54 +0000 (23:56 +0100)
nixops/eldiron.nix

index ecc65cc3f0082b3af970f4df7658910078b21d88..cad4e7545fcfd12d3bf6ddb7b256a817951025d3 100644 (file)
 
     services.cron = {
       enable = true;
-      # Doesn't work, need to be a user
-      mailto = "cron+eldiron@immae.eu";
       systemCronJobs = [
         ''
           # The star after /var/lib/* avoids deleting all folders in case of problem
-          0 3,9,15,21 * * * root rsync -e "ssh -i /root/.ssh/id_charon_vpn" -aAXvz --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* immae@immae.eu:
+          0 3,9,15,21 * * * root rsync -e "ssh -i /root/.ssh/id_charon_vpn" -aAXvz --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* immae@immae.eu: > /dev/null
         ''
       ];
     };