Repository ID via config only works with local repos, drop that and keep repo ID in -i option only

This commit is contained in:
Clemens Schwaighofer
2022-03-29 10:01:00 +09:00
parent edaf41f1af
commit 6cb941818c

View File

@@ -76,9 +76,7 @@ elif [ ! -z "${TARGET_HOST}" ]; then
fi;
# we dont allow special characters, so we don't need to special escape it
REPOSITORY="${TARGET_SERVER}${TARGET_FOLDER}${BACKUP_FILE}";
REPOSITORY_ID=$(${BORG_COMMAND} config ${OPT_REMOTE} ${REPOSITORY} id);
echo "Repository : ${REPOSITORY}";
echo "Repository ID : ${REPOSITORY_ID}";
# check compression if given is valid and check compression level is valid if given
OPT_COMPRESSION='';