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]
John K. N.
18.9k14 gold badges56 silver badges117 bronze badges
-
What you show is not a runnable command. It is the synopsis from the man page. Please show the command you run.jjanes– jjanes2019年05月15日 13:19:09 +00:00Commented May 15, 2019 at 13:19
1 Answer 1
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.
answered May 15, 2019 at 6:18
lang-sql