backup: actually do pruning of data
This commit is contained in:
parent
011c4a4592
commit
4257076842
2 changed files with 15 additions and 0 deletions
|
|
@ -43,5 +43,13 @@
|
||||||
preHook = ''
|
preHook = ''
|
||||||
/bin/sh -c 'while ! /run/current-system/sw/bin/ping -c1 google.com; do sleep 1; done'
|
/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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
7
void.nix
7
void.nix
|
|
@ -89,7 +89,14 @@
|
||||||
startAt = "daily";
|
startAt = "daily";
|
||||||
persistentTimer = true;
|
persistentTimer = true;
|
||||||
extraCreateArgs = ["--stats" "--info" "--list" "--filter" "AMEC"];
|
extraCreateArgs = ["--stats" "--info" "--list" "--filter" "AMEC"];
|
||||||
|
extraPruneArgs = ["--stats" "--info" "--list"];
|
||||||
removableDevice = true;
|
removableDevice = true;
|
||||||
|
prune.keep = {
|
||||||
|
within = "1d";
|
||||||
|
daily = 7;
|
||||||
|
weekly = 4;
|
||||||
|
monthly = 12;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
systemd.services."borgbackup-job-external" = {
|
systemd.services."borgbackup-job-external" = {
|
||||||
unitConfig = {
|
unitConfig = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue