nix/nixos/hosts/backups-rpi4/cron.nix

11 lines
479 B
Nix
Raw Normal View History

2023-12-13 15:01:39 +01:00
{ pkgs, ... }: {
services.cron = {
enable = true;
systemCronJobs = [
# Backups from nuc-docker01 - See "backup-script.nix"
2024-01-17 05:34:16 +01:00
# ''0 9 * * * root rsync-backups &> /root/logs/backups/rsync_`date "+\%Y-\%m-\%d"`.log''
2023-12-30 14:32:24 +01:00
''0 19 * * 3 root rsync-data-vol &> /root/logs/data-vol/rsync_`date "+\%Y-\%m-\%d"`.log''
''0 1 * * * root rsync-sysctl &> /root/logs/sysctl/rsync_`date "+\%Y-\%m-\%d"`.log''
2023-12-13 15:01:39 +01:00
];
};
}