Add backup script and cron
This commit is contained in:
parent
c094d3c9b5
commit
b6c66a99e2
2 changed files with 30 additions and 20 deletions
10
nixos/hosts/backups-rpi4/cron.nix
Normal file
10
nixos/hosts/backups-rpi4/cron.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
services.cron = {
|
||||||
|
enable = true;
|
||||||
|
systemCronJobs = [
|
||||||
|
# Backups from nuc-docker01 - See "backup-script.nix"
|
||||||
|
# https://git.sysctl.io/albert/random-scripts/src/branch/master/rsync-pi/rsync-all.sh
|
||||||
|
''0 0 * * * root rsync-backup''
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue