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

View File

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