backup: actually do pruning of data

This commit is contained in:
Khaïs COLIN 2025-03-30 15:22:35 +02:00
parent 011c4a4592
commit 4257076842
Signed by: logistic-bot
SSH key fingerprint: SHA256:3zI3/tx0ZpCLHCLPmEaGR4oeYCPMCzQxXhXutBmtOAU
2 changed files with 15 additions and 0 deletions

View file

@ -43,5 +43,13 @@
preHook = ''
/bin/sh -c 'while ! /run/current-system/sw/bin/ping -c1 google.com; do sleep 1; done'
'';
extraCreateArgs = ["--stats" "--info" "--list" "--filter" "AMEC"];
extraPruneArgs = ["--stats" "--info" "--list"];
prune.keep = {
within = "1d";
daily = 7;
weekly = 4;
monthly = 6;
};
};
}

View file

@ -89,7 +89,14 @@
startAt = "daily";
persistentTimer = true;
extraCreateArgs = ["--stats" "--info" "--list" "--filter" "AMEC"];
extraPruneArgs = ["--stats" "--info" "--list"];
removableDevice = true;
prune.keep = {
within = "1d";
daily = 7;
weekly = 4;
monthly = 12;
};
};
systemd.services."borgbackup-job-external" = {
unitConfig = {