forked from Deuxfleurs/infrastructure
Ajout de pg_verifybackup
This commit is contained in:
parent
37bea48d45
commit
f3dbf47547
1 changed files with 13 additions and 0 deletions
|
@ -99,6 +99,18 @@ You should have something like that:
|
||||||
00000003000014AF000000C9 00000003000014AF000000CA 00000003.history archive_status
|
00000003000014AF000000C9 00000003000014AF000000CA 00000003.history archive_status
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Before restoring our backup, we want to check it:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /tmp/sql/pg_data
|
||||||
|
cp ../backup_manifest .
|
||||||
|
# On ne vérifie pas le WAL car il semblerait que ça marche pas trop
|
||||||
|
# Cf ma référence en bas capdata.fr
|
||||||
|
# pg_verifybackup -w ../wal .
|
||||||
|
pg_verifybackup -n .
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
Now, We must edit/read some files before launching our ephemeral server:
|
Now, We must edit/read some files before launching our ephemeral server:
|
||||||
- Set `listen_addresses = '0.0.0.0'` in `postgresql.conf`
|
- Set `listen_addresses = '0.0.0.0'` in `postgresql.conf`
|
||||||
- Add `restore_command = 'cp /mnt/wal/%f %p' ` in `postgresql.conf`
|
- Add `restore_command = 'cp /mnt/wal/%f %p' ` in `postgresql.conf`
|
||||||
|
@ -290,3 +302,4 @@ https://www.cybertec-postgresql.com/en/pg_basebackup-creating-self-sufficient-ba
|
||||||
https://www.postgresql.org/docs/14/continuous-archiving.html
|
https://www.postgresql.org/docs/14/continuous-archiving.html
|
||||||
https://www.postgresql.org/docs/14/backup-dump.html#BACKUP-DUMP-RESTORE
|
https://www.postgresql.org/docs/14/backup-dump.html#BACKUP-DUMP-RESTORE
|
||||||
https://dba.stackexchange.com/questions/75033/how-to-restore-everything-including-postgres-role-from-pg-dumpall-backup
|
https://dba.stackexchange.com/questions/75033/how-to-restore-everything-including-postgres-role-from-pg-dumpall-backup
|
||||||
|
https://blog.capdata.fr/index.php/postgresql-13-les-nouveautes-interessantes/
|
||||||
|
|
Loading…
Reference in a new issue