[Ilugc] Postgresql Backup

  • From: vaidhy@xxxxxxxxxx (Vaidhy)
  • Date: Thu Jan 25 14:45:50 2007

IIRC, cron jobs run as root and /usr/local/bin will not be in the root's
path.. I would guess that if you do a su- and echo $PATH, your will find
/usr/local/pgsql/bin missing from there.. and hence cron job was not able to
pick it up.

Vaidhy

On 1/25/07, BalaVignesh Kasinathan <kbalavignesh@xxxxxxxxx> wrote:


Hello frends!

I got solution for my problem. Now i gave full path in script,
PGUSER=postgres  /usr/local/pgsql/bin/pg_dumpall >
/path/to/backup_date.sql
Now its working for me.

Already my $PATH contains /usr/local/pgsql/bin .
Then , why it happened?

Is there any PATH details need for crond?

regards
Bala
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Other related posts: