1 Commits

Author SHA1 Message Date
51f03bc2d9 Used wrong stanza name variable in pgbackrest backup script
It has to be stanza_name without the repo information
2025-12-02 13:29:38 +09:00

View File

@@ -196,7 +196,7 @@ while read -r stanza; do
# build the call command # build the call command
CALL=( CALL=(
"sudo" "-u" "${sudo_user}" "sudo" "-u" "${sudo_user}"
"pgbackrest" "--type=${BACKUP_TYPE}" "--stanza=${stanza}" "pgbackrest" "--type=${BACKUP_TYPE}" "--stanza=${stanza_name}"
); );
if [ -n "${stanza_repo}" ]; then if [ -n "${stanza_repo}" ]; then
CALL=("${CALL[@]}" "--repo=${stanza_repo}"); CALL=("${CALL[@]}" "--repo=${stanza_repo}");