Using pg_dump in a cron - Mailing list pgsql-general

From Patrick.FICHE@AQSACOM.COM
Subject Using pg_dump in a cron
Date
Msg-id 1DC6C8C88D09D51181A40002A5286929B23119@intranet
Whole thread Raw
Responses Re: Using pg_dump in a cron
Re: Using pg_dump in a cron
List 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
 
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 by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: writing a file using procedure
Next
From: Shaun Clements
Date:
Subject: Automate Postgres Backup In windows