Skip to content

Commit

Permalink
Add small updates from upstream
Browse files Browse the repository at this point in the history
`--numeric-owner` is deprecated and replaced by `--numeric-ids`.

See https://git.server-speed.net/users/flo/bin/tree/backup.sh
  • Loading branch information
hashworks committed Apr 7, 2022
1 parent a2f8b7c commit ba59b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/borg-backup.sh.epp
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ backup_borg() {
local dst=$2
local -a options=(
--verbose
--numeric-owner
--numeric-ids
--compression "<%= $compression %>"
--exclude-from "$TMPDIR/exclude-list-borg"
)

if tty -s; then
options+=(--progress)
options+=(--progress --list --filter AME)
fi

borg create "${options[@]}" --stats --verbose "$dst::backup-$(date "+%Y%m%d-%H%M%S")" "$src"
Expand Down

0 comments on commit ba59b2d

Please sign in to comment.