diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-08-15 16:11:38 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-08-15 16:11:38 +0200 |
commit | 325b568ff89d540cfecc8b22b7e5735a90b7451f (patch) | |
tree | a37452392785c70b34977147c02b03cbdc23a2e1 /backup.sh | |
parent | 4c570696f7353841f3e781ea9df86825ff7108ec (diff) | |
download | bin-325b568ff89d540cfecc8b22b7e5735a90b7451f.tar.gz bin-325b568ff89d540cfecc8b22b7e5735a90b7451f.tar.xz |
backup.sh: Improve prune command to reduce number of archives
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'backup.sh')
-rwxr-xr-x | backup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ backup_borg() { fi borg create "${options[@]}" "$dst::backup-$(date "+%Y%m%d-%H%M%S")" "$src" - borg prune -v --keep-within 6m "$dst" + borg prune --keep-within 7d --keep-daily 7 --keep-weekly 12 --keep-monthly 12 --keep-yearly 3 -v "$dst" } ### support functions below ### |