Re: pg_dump why no indicator of completion

Поиск
Список
Период
Сортировка
От Rui DeSousa
Тема Re: pg_dump why no indicator of completion
Дата
Msg-id 8D0A91FC-C10C-4B68-9348-DA3F751FE470@crazybean.net
обсуждение исходный текст
Ответ на Re: pg_dump why no indicator of completion  (richard coleman <rcoleman.ascentgl@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: richard coleman
Дата:
Сообщение: Re: pg_dump why no indicator of completion
Следующее
От: richard coleman
Дата:
Сообщение: Re: pg_dump why no indicator of completion