diff --git a/bin/pgbackrest_backup.sh b/bin/pgbackrest_backup.sh index 4a48aaf..1761557 100755 --- a/bin/pgbackrest_backup.sh +++ b/bin/pgbackrest_backup.sh @@ -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}");