0
I have an incremental backup routine running daily saving the logs from Postgresql.
Every morning the full backup is performed:
pg_start_backup()
tar -cvzf /usr/local/pgsql/pgDataPITR/pgdatabk.tar
/usr/local/pgsql/pgDataPITR/
select pg_stop_backup();
I have doubt regarding the deletion of Wal logs, at what point should I do this, before running the full backup, or after specifying a date for the deletion.