Retention for PostgreSQL WAL Files
Veeam Backup & Replication stores WAL files in the proprietary Veeam format — .VLB and keep them together with the VM image-level backup. For more information on the backup files, see Backup Chain.
The target location where Veeam Backup & Replication keeps .VLB files depends on the type of repository where you store VM image-level backup files:
- If it is the backup repository, Veeam Backup & Replication writes WAL files to the same folder where the VM image-level backup files reside.
- If it is the scale-out backup repository, Veeam Backup & Replication writes WAL files to the extent where the latest incremental backup file of the VM image-level backup resides.
Note that Veeam Backup & Replication does not store .VLB files in capacity or archive extents added to the scale-out backup repository.
Veeam Backup & Replication removes WAL files by retention. You can choose one of the following retention methods:
- Retain WAL files according to the image-level backup
- Retain WAL files for the specified number of days
Retain Logs with Image-Level Backup
By default, Veeam Backup & Replication retains WAL files together with the image-level backup of a PostgreSQL VM. Veeam Backup & Replication retains VM backup and log backups according to the short-term retention configured for VM backups. When Veeam Backup & Replication removes a restore point of the image-level backup from a backup chain, it also removes a chain of WAL files that relates to this image-level backup.
Note |
If you configure long-term retention, Veeam Backup & Replication will retain WAL files according to the short-term retention policy and will delete them after the short-term retention is exceeded. |
This method allows you to have both the image-level backup and necessary WAL files at hand. If you need to recover a PostgreSQL instance to a specific state, you can restore the PostgreSQL VM from the necessary restore point and use WAL files to bring the database to the necessary state.
Retain WAL Files for a Number of Days
- If you select the Use per-machine backup files option for the repository, Veeam Backup & Replication will create a separate .VLB for each server processed by the job.
- If you do not use the Use per-machine backup files option, Veeam Backup & Replication will create a single .VLB for all servers processed by the job.