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

13 lines
526 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-06-05 05:46:44 +02:00
# TODO: Re-enable when done
# ''0 04 * * * root rsync-media &> /root/logs/media/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''
2023-12-13 15:01:39 +01:00
];
};
2024-03-04 05:26:10 +01:00
}