add backup cron job

This commit is contained in:
2026-03-19 22:25:38 +01:00
parent 1b3257fbf2
commit 4ba0830997

View File

@@ -73,4 +73,11 @@
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
services.cron = {
enable = true;
systemCronJobs = [
"* 20 * * * root rsync -Pav -e \"ssh -i /root/.ssh/backup -o ServerAliveInterval=120\" /srv backup@192.168.178.24 >> /root/backup.log"
];
};
}