auto-prune backups
This commit is contained in:
parent
e3d1d34f5b
commit
7d4a3acb94
@ -121,6 +121,10 @@ let ssh_pubkeys = {
|
|||||||
repository = "sftp:zh2769@zh2769.rsync.net:hel1-a.servers.jakst";
|
repository = "sftp:zh2769@zh2769.rsync.net:hel1-a.servers.jakst";
|
||||||
initialize = true;
|
initialize = true;
|
||||||
passwordFile = "/var/src/secrets/restic/password";
|
passwordFile = "/var/src/secrets/restic/password";
|
||||||
|
pruneOpts = [
|
||||||
|
"--keep-daily 7"
|
||||||
|
"--keep-weekly 5"
|
||||||
|
];
|
||||||
backupPrepareCommand = ''
|
backupPrepareCommand = ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
${pkgs.util-linux}/bin/umount /var/lib/.snapshot-latest || :
|
${pkgs.util-linux}/bin/umount /var/lib/.snapshot-latest || :
|
||||||
|
Loading…
Reference in New Issue
Block a user