remove pitr.sh for being useless and cringe

pull/211/head
Aevann 2023-10-05 20:41:09 +03:00
parent 889cadd40e
commit 9495685ae9
1 changed files with 0 additions and 19 deletions

View File

@ -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