r/Veeam • u/IJer1choI • Mar 10 '26
Backup PostgreSQL with Veeam
Hello reddit,
So I need help with next thing, at this point I have no much experience with veeam and testing it for further implementation in our company. I have multiple postgresql servers and I need to test backup and restore including WAL files. In my case postgresql is installed in custom location, for that reason I was not able to configure backup without using veeam agent for linux and when I open backup job settings and application aware processing I do not have any option to enable log backups. Any advice on how can I perform WAL file backups in this scenario?
1
u/WillVH52 Mar 10 '26
Are the servers running Postgres virtual machines or physical servers?
1
u/GnawingPossum Mar 11 '26
You can backup DBs in custom locations too. From the Veeam B&R manual:
By default, Veeam Agent recursively scans the /etc/postgresql, /var/lib/postgresql and /var/lib/pgsql directories for the configuration files of PostgreSQL instances. If you keep configuration files in custom directories, the pgsqlagent agent will use its own VeeamPostgreSQLAgent.xml configuration file that is located in the /etc/veeam/ directory. The pgsqlagent agent configuration file must be a single line XML.
To explicitly include or exclude specific configuration files from rescan, you can add the following commands to the VeeamPostgreSQLAgent.xml file:
ExcludeConfigDirs — use this element to exclude configuration files.
AddConfigDirs — use this element to include configuration files.
For example: <config AddConfigDirs="/opt/psql/" ExcludeConfigDirs="/var/lib/postgresql/13/main45/,/var/lib/postgresql/13/maindd/" />
2
u/srmakanudo Mar 10 '26
No hace falta instalar agente. Yo también lo tengo en otra ruta y funciona con el application aware. En /etc/veeam tienes que crear un archivo xml con la ruta al postgresql y con eso funciona. Hay documentación de veeam que lo explica
2
u/thoughtstobytes Mar 10 '26
Having PG in custom location does not force you to use VAL. You just need to create VeeamPostgreSQLAgent.xml on the PG server and set some customer parameters there. More details: https://helpcenter.veeam.com/docs/vbr/userguide/backup_job_vss_postgresql_vm.html?zoom_highlight=VeeamPostgreSQLAgent.xml&ver=13