0
postgres has some system table you can select to find out when the last backup was done just like its status (it ran normal or failed) ?
That is, how to remove as much backup information in postgres ?
EDITED
I’m picking up the backup date of the file generated by pg_basebackup
which is in the folder of pg_xlog ( Linux usage). In this folder it creates a file .backup
after the end of the process.
The file goes like this :
TART WAL LOCATION: 4/42000028 (file 000000010000000400000042)
STOP WAL LOCATION: 4/42000130 (file 000000010000000400000042)
CHECKPOINT LOCATION: 4/42000060
BACKUP METHOD: streamed
BACKUP FROM: master
START TIME: 2019-02-26 13:30:01 BRT
LABEL: pg_basebackup base backup
STOP TIME: 2019-02-26 13:30:19 BRT
I noticed another backup instead of the BRT
had -O3
. What is that BRT
means ?
Can pg_basekacup generate this file even giving some kind of backup error?
There are several ways to back up Postgresql and only replication, which can be seen as a form of back-up, has record in the system catalog. But it doesn’t seem to be what you’re looking for.
– anonimo
How do you back up? It’s Windows Server or Linux?
– Laércio Lopes
Linux Server. I did it with pg_basebackup.
– Beto
And how you treat the WAL segments?
– anonimo
Maybe you are using a wrong backup strategy.
– anonimo
Just for test purposes, have you ever tried to restore your BD from one of these "backups"? I understand that you don’t treat WAL segments along with pg_basebackup.
– anonimo