diff options
Diffstat (limited to 'backup.sh')
-rwxr-xr-x | backup.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -127,22 +127,22 @@ backup_borg() { local src=("$@") local -a options=( --verbose - --numeric-owner + --numeric-ids --compression lz4 --exclude-from "$TMPDIR/exclude-list-borg" ) if tty -s; then - options+=(--progress --stats) + options+=(--progress --stats --list --filter AME) fi borg create "${options[@]}" "$dst::$backup_prefix-$(date "+%Y%m%d-%H%M%S")" "${src[@]}" # 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 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 } |