Using pg_dump in a cron
| От | Patrick.FICHE@AQSACOM.COM |
|---|---|
| Тема | Using pg_dump in a cron |
| Дата | |
| Msg-id | 1DC6C8C88D09D51181A40002A5286929B23119@intranet обсуждение исходный текст |
| Ответы |
Re: Using pg_dump in a cron
Re: Using pg_dump in a cron |
| Список | pgsql-general |
Hi all,
I'm using PostgreSQL 8.0.2 on Solaris 10.
I would like to manage an automatic backup of my database.
Here is the line in the cron :
37 * * * * . $HOME/.profile; pg_dump alis -U postgres -f $AQSADIR/data/backup/alis_data.sql -a -d >/dev/null 2>&1
The dump execution is OK but my user gets a mail containing the following message :
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
. $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 ?
-------------------------------------------------------------------------------------------
Patrick Fiche
email : patrick.fiche@aqsacom.com
tél : 01 69 29 36 18
-------------------------------------------------------------------------------------------
В списке pgsql-general по дате отправления: