Re: pg_dump why no indicator of completion - Mailing list pgsql-admin

From Rui DeSousa
Subject Re: pg_dump why no indicator of completion
Date
Msg-id 8D0A91FC-C10C-4B68-9348-DA3F751FE470@crazybean.net
Whole thread Raw
In response to Re: pg_dump why no indicator of completion  (richard coleman <rcoleman.ascentgl@gmail.com>)
List pgsql-admin


On May 1, 2023, at 10:00 AM, richard coleman <rcoleman.ascentgl@gmail.com> wrote:

As I've mentioned in another response I typically run pg_dump as follows:

nohup pg_dump {various settings} > something.log 2>&1 &

Why redirect standard error to standard out when using pg_dump? I assume that using standard out is not the backup stream. 

If you want a success message in the log; write the success message to the log file if pg_dump exits successfully. 

i.e.:   nohup pg_dump --verbose prod > prod.sql 2> prod.log && echo "Backup Completed Successfully!" >> prod.log &


pgsql-admin by date:

Previous
From: richard coleman
Date:
Subject: Re: pg_dump why no indicator of completion
Next
From: richard coleman
Date:
Subject: Re: pg_dump why no indicator of completion