summaryrefslogtreecommitdiffstats
path: root/backup.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-08-15 16:11:38 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-08-15 16:11:38 +0200
commit325b568ff89d540cfecc8b22b7e5735a90b7451f (patch)
treea37452392785c70b34977147c02b03cbdc23a2e1 /backup.sh
parent4c570696f7353841f3e781ea9df86825ff7108ec (diff)
downloadbin-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-xbackup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup.sh b/backup.sh
index 8985acb..4c143d2 100755
--- a/backup.sh
+++ b/backup.sh
@@ -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 ###