jobs: prune old backups
This commit is contained in:
parent
06ec90577e
commit
4a5c599777
4
jobs.nix
4
jobs.nix
@ -112,6 +112,10 @@ with lib;
|
|||||||
bup index "$dir"
|
bup index "$dir"
|
||||||
bup save -n postgresql "$dir" --strip-path=/tmp
|
bup save -n postgresql "$dir" --strip-path=/tmp
|
||||||
echo done
|
echo done
|
||||||
|
|
||||||
|
echo pruning...
|
||||||
|
bup prune-older --keep-all-for 6m --keep-monthlies-for 2y --unsafe
|
||||||
|
echo done
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user