From ac8d2159e968b291e6aa4263fe8b8deb5b8b65eb Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 16 Aug 2023 23:56:05 +0300 Subject: [PATCH] add recovery_target_time example --- scripts/pitr.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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