From 9495685ae9a3b36ba0a0dc42b48895e79b2ff75a Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 5 Oct 2023 20:41:09 +0300 Subject: [PATCH] remove pitr.sh for being useless and cringe --- scripts/pitr.sh | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 scripts/pitr.sh diff --git a/scripts/pitr.sh b/scripts/pitr.sh deleted file mode 100644 index 4bc30c588..000000000 --- a/scripts/pitr.sh +++ /dev/null @@ -1,19 +0,0 @@ -change recovery_target_time in /etc/postgresql/15/new/postgresql.conf like this -recovery_target_time = '2023-09-07 3:18:24' - -systemctl stop postgresql@15-new - -rm -r /var/lib/postgresql/15/new -cp -ar /database_backup/. /var/lib/postgresql/15/new -chmod 700 /var/lib/postgresql/15/new - -rm -r /var/lib/postgresql/15/new/pg_wal -cp -ar /var/lib/postgresql/15/main/pg_wal/. /var/lib/postgresql/15/new/pg_wal - -touch /var/lib/postgresql/15/new/recovery.signal -systemctl start postgresql@15-new - -psql "${DATABASE_URL/5432/"5433"}" - -wait after recovery is done then: -rm /var/lib/postgresql/15/new/recovery.signal