| From: | Alan Hodgson <ahodgson(at)simkin(dot)ca> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Postgresql Backup |
| Date: | 2007-01-26 20:11:29 |
| Message-ID: | 200701261211.29403@hal.simkin.ca |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Wednesday 24 January 2007 20:57, "bala" <kbalavignesh(at)gmail(dot)com>
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?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | usenet | 2007-01-26 20:16:10 | Sample C++ code using libpqxx/Postgresql sought |
| Previous Message | Martijn van Oosterhout | 2007-01-26 20:10:39 | Re: too many trigger records found for relation "item" - |