aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-06 23:56:54 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-06 23:56:54 +0100
commit9d8d1425de8a3ff6c1a275e74667c6fdaf9fa626 (patch)
tree3eb4b9a085a554130bf2e797b8b76839bdcd5675
parente2f5cc37a50daf28ffe5f7622d4e9803bb08c0e7 (diff)
downloadNix-9d8d1425de8a3ff6c1a275e74667c6fdaf9fa626.tar.gz
Nix-9d8d1425de8a3ff6c1a275e74667c6fdaf9fa626.tar.zst
Nix-9d8d1425de8a3ff6c1a275e74667c6fdaf9fa626.zip
Hide output for rsync and remove useless mailto in cron
-rw-r--r--nixops/eldiron.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixops/eldiron.nix b/nixops/eldiron.nix
index ecc65cc..cad4e75 100644
--- a/nixops/eldiron.nix
+++ b/nixops/eldiron.nix
@@ -94,12 +94,10 @@
94 94
95 services.cron = { 95 services.cron = {
96 enable = true; 96 enable = true;
97 # Doesn't work, need to be a user
98 mailto = "cron+eldiron@immae.eu";
99 systemCronJobs = [ 97 systemCronJobs = [
100 '' 98 ''
101 # The star after /var/lib/* avoids deleting all folders in case of problem 99 # The star after /var/lib/* avoids deleting all folders in case of problem
102 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: 100 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
103 '' 101 ''
104 ]; 102 ];
105 }; 103 };