Used wrong stanza name variable in pgbackrest backup script

It has to be stanza_name without the repo information
This commit is contained in:
2025-12-02 13:29:38 +09:00
parent a4b4e595b9
commit b41c4d43ed

View File

@@ -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}");