Re: pg_dump why no indicator of completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On May 1, 2023, at 10:00 AM, richard coleman <rcoleman.ascentgl@xxxxxxxxx> 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 &



[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux