Re: Using pg_dump in a cron - Mailing list pgsql-general

From Vivek Khera
Subject Re: Using pg_dump in a cron
Date
Msg-id 2A0C3A0C-EA74-42ED-A750-9E2DBA4E66C6@khera.org
Whole thread Raw
In response to Using pg_dump in a cron  (Patrick.FICHE@AQSACOM.COM)
List 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



Attachment

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: [SQL] index row size 2728 exceeds btree maximum, 27
Next
From: Russ Brown
Date:
Subject: Re: writting a large store procedure