diff --git a/scripts/pitr.sh b/scripts/pitr.sh index 0d27071c6..67ee9621d 100755 --- a/scripts/pitr.sh +++ b/scripts/pitr.sh @@ -1,4 +1,5 @@ -change recovery_target_time in /etc/postgresql/15/main/postgresql.conf +change recovery_target_time in /etc/postgresql/15/main/postgresql.conf like this +recovery_target_time = '2023-08-12 06:07:00' systemctl stop postgresql@15-main mv /var/lib/postgresql/15/main/pg_wal /pg_wal