Update backup schedules and exclude paths in SnapRAID

This commit is contained in:
Chris Toph 2025-05-03 12:38:42 -04:00
parent 1c1d73fbab
commit 63fbfe8426
2 changed files with 12 additions and 8 deletions

View file

@ -160,10 +160,14 @@ in
title = "Docker Storage"; title = "Docker Storage";
repo = dockerStorageRepo; repo = dockerStorageRepo;
sourcePath = "/mnt/drive1/DockerStorage"; sourcePath = "/mnt/drive1/DockerStorage";
# INFO: This shit confusing but basically
# keeps the last 7 days,
# then keeps AT LEAST ONE for last 4 weeks
# and finally AT LEAST ONE for the last 3 months
keepDaily = 7; keepDaily = 7;
keepWeekly = 4; keepWeekly = 4;
keepMonthly = 3; keepMonthly = 3;
schedule = "Mon *-*-* 04:00:00"; schedule = "*-*-* 03:00:00"; # Daily at 3am
}) })
(mkBorgBackupService { (mkBorgBackupService {
@ -171,10 +175,10 @@ in
title = "Forgejo"; title = "Forgejo";
repo = forgejoRepo; repo = forgejoRepo;
sourcePath = "/pool/forgejo"; sourcePath = "/pool/forgejo";
keepDaily = 14; keepDaily = 7;
keepWeekly = 4; keepWeekly = 4;
keepMonthly = 3; keepMonthly = 3;
schedule = "*-*-1/2 04:00:00"; schedule = "*-*-* 03:00:00";
}) })
]; ];
} }

View file

@ -104,10 +104,10 @@ let
exclude .Trash/ exclude .Trash/
# These dirs change data all the time # These dirs change data all the time
# so I back them up in borg repos that are not excluded # so I back them up in borg repos that are not excluded
exclude /mnt/drive1/DockerStorage/ exclude /DockerStorage/
exclude /mnt/drive1/data/forgejo exclude /data/forgejo/
exclude /mnt/drive2/data/forgejo exclude /data/forgejo/
exclude /mnt/drive3/data/forgejo exclude /data/forgejo/
''; '';
}; };
in in
@ -129,6 +129,6 @@ in
services.snapraid-aio = { services.snapraid-aio = {
enable = true; enable = true;
configFile = snapraid-aio-config; configFile = snapraid-aio-config;
schedule = "*-*-* 03:00:00"; # Run daily at 3am schedule = "*-*-* 04:00:00"; # Run daily at 3am
}; };
} }