Used wrong stanza name variable in pgbackrest backup script
It has to be stanza_name without the repo information
This commit is contained in:
@@ -196,7 +196,7 @@ while read -r stanza; do
|
||||
# build the call command
|
||||
CALL=(
|
||||
"sudo" "-u" "${sudo_user}"
|
||||
"pgbackrest" "--type=${BACKUP_TYPE}" "--stanza=${stanza}"
|
||||
"pgbackrest" "--type=${BACKUP_TYPE}" "--stanza=${stanza_name}"
|
||||
);
|
||||
if [ -n "${stanza_repo}" ]; then
|
||||
CALL=("${CALL[@]}" "--repo=${stanza_repo}");
|
||||
|
||||
Reference in New Issue
Block a user