diff --git a/postgres-appliance/scripts/restore_command.sh b/postgres-appliance/scripts/restore_command.sh index a4bb88939..7164ef5ee 100755 --- a/postgres-appliance/scripts/restore_command.sh +++ b/postgres-appliance/scripts/restore_command.sh @@ -27,7 +27,7 @@ readonly wal_destination=$2 wal_dir=$(dirname "$wal_destination") readonly wal_dir -wal_fast_source=$(dirname "$(dirname "$(realpath "$wal_dir")")")/wal_fast/$wal_filename +wal_fast_source=$(dirname "$PGDATA/wal_fast/$wal_filename") readonly wal_fast_source [[ -f $wal_fast_source ]] && exec mv "${wal_fast_source}" "${wal_destination}"