From e87c0e529b201b142dfacb88e2fb96230472dbc2 Mon Sep 17 00:00:00 2001 From: hk Date: Fri, 9 Jun 2017 13:42:22 +0200 Subject: [PATCH] Rename BORG_BACKUP_ARGS to BORG_CREATE_ARGS for consistency --- src/borgwrapper.sh | 8 ++++---- src/config.sh.example | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/borgwrapper.sh b/src/borgwrapper.sh index 9366aed..27a6583 100755 --- a/src/borgwrapper.sh +++ b/src/borgwrapper.sh @@ -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[@]}" diff --git a/src/config.sh.example b/src/config.sh.example index d722144..58cb625 100644 --- a/src/config.sh.example +++ b/src/config.sh.example @@ -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