From 4ba08309977a2c57467ac28c38ca696cba61ed90 Mon Sep 17 00:00:00 2001 From: ShatteredMINT Date: Thu, 19 Mar 2026 22:25:38 +0100 Subject: [PATCH] add backup cron job --- devices/nas.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/devices/nas.nix b/devices/nas.nix index 8d01580..a20c6d1 100644 --- a/devices/nas.nix +++ b/devices/nas.nix @@ -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" + ]; + }; }