1
0
Fork 0
This commit is contained in:
Atridad Lahiji 2024-12-24 01:20:57 -07:00
parent 580778bfc1
commit 57535b718d

13
cron.nix Normal file
View file

@ -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"
];
};
}