Skip to content

Commit 920292d

Browse files
committed
Update the pgBackRest restore command for better logging
This commit updates the pgBackRest restore script so that the restore command arguments are displayed in the restore Job logs.
1 parent 494558f commit 920292d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pgbackrest/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func RestoreCommand(pgdata string, args ...string) []string {
207207
const restoreScript = `declare -r pgdata="$1" opts="$2"
208208
install --directory --mode=0700 "${pgdata}"
209209
rm -f "${pgdata}/postmaster.pid"
210-
eval "pgbackrest restore ${opts}"
210+
bash -xc "pgbackrest restore ${opts}"
211211
rm -f "${pgdata}/patroni.dynamic.json"
212212
export PGDATA="${pgdata}" PGHOST='/tmp'
213213

0 commit comments

Comments
 (0)