Postgresql – Monitoring PostgreSQL backup

backupmonitoringpostgresql

I am new to PostgreSQL and have questions regarding the backup procedure.

How do I check whether a PostgreSQL database was backed up successfully?
And how do I monitor the backup?

I have tried the following command to backup the database, but there's no output:

pg_dump [connection-option...] [option...] [dbname]

Best Answer

The test is to restore the backup somewhere else.

Monitoring can be done via the return code of pg_dump: if that isn't 0, something went wrong.