Cronjob
This commit is contained in:
parent
580778bfc1
commit
57535b718d
1 changed files with 13 additions and 0 deletions
13
cron.nix
Normal file
13
cron.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue