Update backup schedules and exclude paths in SnapRAID
This commit is contained in:
parent
1c1d73fbab
commit
63fbfe8426
2 changed files with 12 additions and 8 deletions
|
@ -160,10 +160,14 @@ in
|
|||
title = "Docker Storage";
|
||||
repo = dockerStorageRepo;
|
||||
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;
|
||||
keepWeekly = 4;
|
||||
keepMonthly = 3;
|
||||
schedule = "Mon *-*-* 04:00:00";
|
||||
schedule = "*-*-* 03:00:00"; # Daily at 3am
|
||||
})
|
||||
|
||||
(mkBorgBackupService {
|
||||
|
@ -171,10 +175,10 @@ in
|
|||
title = "Forgejo";
|
||||
repo = forgejoRepo;
|
||||
sourcePath = "/pool/forgejo";
|
||||
keepDaily = 14;
|
||||
keepDaily = 7;
|
||||
keepWeekly = 4;
|
||||
keepMonthly = 3;
|
||||
schedule = "*-*-1/2 04:00:00";
|
||||
schedule = "*-*-* 03:00:00";
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
@ -104,10 +104,10 @@ let
|
|||
exclude .Trash/
|
||||
# These dirs change data all the time
|
||||
# so I back them up in borg repos that are not excluded
|
||||
exclude /mnt/drive1/DockerStorage/
|
||||
exclude /mnt/drive1/data/forgejo
|
||||
exclude /mnt/drive2/data/forgejo
|
||||
exclude /mnt/drive3/data/forgejo
|
||||
exclude /DockerStorage/
|
||||
exclude /data/forgejo/
|
||||
exclude /data/forgejo/
|
||||
exclude /data/forgejo/
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
@ -129,6 +129,6 @@ in
|
|||
services.snapraid-aio = {
|
||||
enable = true;
|
||||
configFile = snapraid-aio-config;
|
||||
schedule = "*-*-* 03:00:00"; # Run daily at 3am
|
||||
schedule = "*-*-* 04:00:00"; # Run daily at 3am
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue