From f2231c70747124150c9fb920696d26338c81b00b Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 9 Feb 2021 16:56:38 -0700 Subject: [PATCH] fix(BACKUP): change borg cmd - place common-options after borg command verb - thanks to lluis Closes github 7 --- backup/backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backup.sh b/backup/backup.sh index 64a10f3..c5ca30e 100755 --- a/backup/backup.sh +++ b/backup/backup.sh @@ -690,7 +690,7 @@ printf "%s[%s] -- [INFO] Pre-backup tasks completed, calling borgbackup --%s\n" ## construct the proper borg commandline # base command if [ "$exclusions" -eq 0 ]; then - borgCMD="borg --show-rc create ${borgCreateParams} \ + borgCMD="borg create --show-rc ${borgCreateParams} \ ::$(date +%Y-%m-%d_%H%M%S) \ ${mcConfig%/*} \ ${sqlDumpDir} \ @@ -701,7 +701,7 @@ if [ "$exclusions" -eq 0 ]; then ${dockerVolumeCrypt} \ ${xtraList}" elif [ "$exclusions" -eq 1 ]; then - borgCMD="borg --show-rc create ${borgCreateParams} \ + borgCMD="borg create --show-rc ${borgCreateParams} \ --exclude-from ${borgExcludeListPath} \ ::$(date +%Y-%m-%d_%H%M%S) \ ${mcConfig%/*} \