After I issue pg_basebackup -D /var/lib/postgresql/basebackup -l "backup main $(hostname) on $(date)" -P, i see there are 2 ".backup' files in pg_wal directory. See it
. This is what pg_archive directory looks like
. Questions :
- Why are there 2 files ?
- Which WAL files can I delete safely, before the first ".backup" file (everything on top of **96.00000028) or before the second one (everything on top of **98.00000028) ?
- Or do I have to delete wal files (all files above the 00028) in
pg_archive?
Thanks