Re: Using pg_dump in a cron

Поиск
Список
Период
Сортировка
От Vivek Khera
Тема Re: Using pg_dump in a cron
Дата
Msg-id 2A0C3A0C-EA74-42ED-A750-9E2DBA4E66C6@khera.org
обсуждение исходный текст
Ответ на Using pg_dump in a cron  (Patrick.FICHE@AQSACOM.COM)
Список pgsql-general

On Jun 2, 2005, at 9:43 AM, Patrick.FICHE@AQSACOM.COM wrote:

Your "cron" job on ALIS
. $HOME/.profile; pg_dump alis -U postgres -f $AQSADIR/data/backup/alis_data.sql -a -d >/dev/null 2>&1
 
produced the following output:
 
stty: : No such device or address
What's wrong with it ?


Your .profile executes the stty command.  Don't do that.  Why do you need stuff from your .profile anyhow?

And why would you drop the output to /dev/null -- you'll never know if your dump fails!  Why bother making one then?

Vivek Khera, Ph.D.

+1-301-869-4449 x806



Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: [SQL] index row size 2728 exceeds btree maximum, 27
Следующее
От: Russ Brown
Дата:
Сообщение: Re: writting a large store procedure