On Wednesday 24 January 2007 20:57, "bala" <[EMAIL PROTECTED]> 
wrote:
> 'script.sh'   contains
>
> PGUSER=postgres  pg_dumpall > /path/to/backup_date.sql
>
> Running the script using crond creates the 0 byte files.
>
> But , If i run the script in console , it creates the file with
> content.
>
> Any suggestion pls?

Include the full path to pg_dumpall in the script.  
Make sure the postgres user can connect without a password or has an 
appropriate .pgpass file in it's home directory.

-- 
No matter how disastrously some government policy has turned out, anyone 
who criticizes it can expect to hear: 'But what would you replace it 
with?'  When you put out a fire, what do you replace it with?


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [EMAIL PROTECTED] so that your
       message can get through to the mailing list cleanly

Reply via email to