Add backup script and cron

This commit is contained in:
iFargle 2023-12-13 23:01:39 +09:00
parent c094d3c9b5
commit b6c66a99e2
2 changed files with 30 additions and 20 deletions

View file

@ -0,0 +1,10 @@
{ 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
''0 0 * * * root rsync-backup''
];
};
}