Rename BORG_BACKUP_ARGS to BORG_CREATE_ARGS for consistency

dev
hk 2017-06-09 13:42:22 +02:00
parent a1b15281e9
commit e87c0e529b
2 changed files with 5 additions and 5 deletions

View File

@ -42,8 +42,8 @@ borg_backup () {
EXCLUDE_CMD+=( --exclude "${EXCLUDE}" )
done
if [[ -z ${BORG_BACKUP_ARGS[@]} ]]; then
BORG_BACKUP_ARGS=(
if [[ -z ${BORG_CREATE_ARGS[@]} ]]; then
BORG_CREATE_ARGS=(
--info
--stats
--list
@ -53,11 +53,11 @@ borg_backup () {
fi
if ${DRY_RUN}; then
BORG_BACKUP_ARGS+=( --dry-run )
BORG_CREATE_ARGS+=( --dry-run )
fi
${BORG} create \
"${BORG_BACKUP_ARGS[@]}" \
"${BORG_CREATE_ARGS[@]}" \
"${BORG_REPO}"::"{hostname}-$(date -u +'%Y%m%dT%H%M%SZ')" \
"${PATHS[@]}" \
"${EXCLUDE_CMD[@]}"

View File

@ -44,7 +44,7 @@ KEEP_YEARLY=5
# Optional arguments to the different borg commands.
# The current default values are listed. Modify if needed.
#BORG_BACKUP_ARGS=(
#BORG_CREATE_ARGS=(
# --info
# --stats
# --list