From 029715489edf162d8df0ee27f2570730243b7a40 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 10 May 2020 16:48:33 +0200 Subject: backup.sh: Fix broken prune when doing full backup Signed-off-by: Florian Pritz --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 2301ce9..7b07c63 100755 --- a/backup.sh +++ b/backup.sh @@ -140,7 +140,7 @@ backup_borg() { # Only purge when doing full backups. Increases partial backup speed and # ensure that we have at least one recent full backup when we purge. - if [[ $backup_prefix == 'backup-' ]]; then + if [[ $backup_prefix == 'backup' ]]; then borg prune --prefix "backup-" --keep-within 7d --keep-daily 7 --keep-weekly 12 --keep-monthly 6 --keep-yearly 0 -v "$dst" borg prune --prefix "partial-" --keep-within 31d -v "$dst" fi -- cgit v1.2.3-24-g4f1b