nix/nixos/hosts/backups-rpi4/cron.nix
2024-03-14 22:14:56 +09:00

11 lines
481 B
Nix

{ pkgs, ... }: {
services.cron = {
enable = true;
systemCronJobs = [
# Backups from nuc-docker01 - See "backup-script.nix"
''0 04 * * * root rsync-backups &> /root/logs/backups/rsync_`date "+\%Y-\%m-\%d"`.log''
''0 02 * * 3 root rsync-data-vol &> /root/logs/data-vol/rsync_`date "+\%Y-\%m-\%d"`.log''
''0 22 * * * root rsync-sysctl &> /root/logs/sysctl/rsync_`date "+\%Y-\%m-\%d"`.log''
];
};
}