From 57535b718da356c653955e703e6e7445ef62bd8a Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Tue, 24 Dec 2024 01:20:57 -0700 Subject: [PATCH] Cronjob --- cron.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cron.nix diff --git a/cron.nix b/cron.nix new file mode 100644 index 0000000..a49f277 --- /dev/null +++ b/cron.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: + +{ + # Enable cron service + services.cron = { + enable = true; + systemCronJobs = [ + "0 2 * * 0 TZ=America/Edmonton restic -r rclone:db:ServerBackups/himbohome/suttonmc --password-file ~/restic-password.txt backup /mnt/slow1/suttonmc" + "0 2 * * 0 TZ=America/Edmonton restic -r rclone:db:ServerBackups/himbohome/ruthmc --password-file ~/restic-password.txt backup /mnt/slow1/ruthmc" + "0 2 * * 0 TZ=America/Edmonton restic -r rclone:db:ServerBackups/himbohome/himbomc --password-file ~/restic-password.txt backup /mnt/slow1/himbomc" + ]; + }; +}