aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixops/eldiron.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixops/eldiron.nix b/nixops/eldiron.nix
index 7ce33a9..b54702e 100644
--- a/nixops/eldiron.nix
+++ b/nixops/eldiron.nix
@@ -89,5 +89,14 @@
89 source = ldap_authorized_keys; 89 source = ldap_authorized_keys;
90 }; 90 };
91 91
92 services.cron = {
93 enable = true;
94 systemCronJobs = [
95 ''
96 # The star after /var/lib/* avoids deleting all folders in case of problem
97 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:
98 ''
99 ];
100 };
92 }; 101 };
93} 102}