[2021-02-09 23:35:05] -- [INFO] Executing borg backup operation --
usage: borg [-h] [-V] <command> ...
borg: error: unrecognized arguments: --show-rc
[2021-02-09 23:35:06] -- [ERROR] 138: Borg exited with a critical error. Please review this log file for details. --
diff --git a/backup/backup.sh b/backup/backup.sh
index 1ec685a..2c3c27b 100755
--- a/backup/backup.sh
+++ b/backup/backup.sh
@@ -672,7 +672,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} \
@@ -683,7 +683,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%/*} \