Re: pg_dump shell script with ~/.pgpass - Mailing list pgsql-general

From Terry Lee Tucker
Subject Re: pg_dump shell script with ~/.pgpass
Date
Msg-id 200501271206.54866.terry@esc1.com
Whole thread Raw
In response to Re: pg_dump shell script with ~/.pgpass  (MargaretGillon@chromalloy.com)
List pgsql-general
On Thursday 27 January 2005 11:47 am, MargaretGillon@chromalloy.com saith:
>
> My other question... Is cron.daily is being run by root? If so would I need
> to put the .pgpass file in root's home directory?
>
--

I don't know about .pgpass, so I can't help you with that. Root does run
cron.daily. You can setup your own personal crontab entries by issuing the
following command:
crontab -e

Do this with your personal account, not root. You will get a vi session when
you execute this command and then you can setup you backup to occur as you
desire.

Here is what mine looks like:
# min  hour      dom  mon  doy     command
# ---     ----         ----     ----    -----      ---------------
  30   7,12,22     *         *         *      /esc/source.bkp
    0       22          *         *         *      cd /esc/pgrnd/prog;
./dbDump.sh rnd

Word wrap has screwed up the alignment, but you get the idea.

pgsql-general by date:

Previous
From: Eric E
Date:
Subject: View definition truncated in information_schema
Next
From: Alvaro Herrera
Date:
Subject: Re: pg_dump shell script with ~/.pgpass