diff options
author | Florian Pritz <bluewind@xinu.at> | 2020-05-10 16:48:33 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2020-05-10 16:48:33 +0200 |
commit | 029715489edf162d8df0ee27f2570730243b7a40 (patch) | |
tree | 2a217f3ca1b6ba096202c6b93f29f462e29325cb | |
parent | 9932d6b520b6e3d9dfd25b3f61d3bdc9fe78f3c4 (diff) | |
download | bin-029715489edf162d8df0ee27f2570730243b7a40.tar.gz bin-029715489edf162d8df0ee27f2570730243b7a40.tar.xz |
backup.sh: Fix broken prune when doing full backup
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | backup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |