diff --git a/scripts/pitr.sh b/scripts/pitr.sh index f2605d819..0bd784c19 100755 --- a/scripts/pitr.sh +++ b/scripts/pitr.sh @@ -1,3 +1,5 @@ +change recovery_target_time in /etc/postgresql/15/main/postgresql.conf + systemctl stop postgresql@15-main mv /var/lib/postgresql/15/main/pg_wal /pg_wal rm -rf /var/lib/postgresql/15/main