2023-12-13 15:01:39 +01:00
|
|
|
{ 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
|
2023-12-27 00:23:48 +01:00
|
|
|
''0 9 * * * root rsync-backups >> /root/logs/backups/rsync-`date "+\%Y-\%m-\%d"`''
|
|
|
|
''0 19 * * 3 root rsync-data-vol >> /root/logs/data-vol/rsync-`date "+\%Y-\%m-\%d"`''
|
2023-12-13 15:01:39 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|