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

10 lines
365 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"
# https://git.sysctl.io/albert/random-scripts/src/branch/master/rsync-pi/rsync-all.sh
2023-12-14 05:17:37 +01:00
''0 9 * * * root rsync-backup >> /root/logs/rsync-backup-`date "+\%Y-\%m-\%d"`''
2023-12-13 15:01:39 +01:00
];
};
}