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

From MargaretGillon@chromalloy.com
Subject Re: pg_dump shell script with ~/.pgpass
Date
Msg-id OFF934928E.F8F0A62F-ON88256F96.005C11D5-88256F96.005B92B8@CHROMALLOY.COM
Whole thread Raw
In response to pg_dump shell script with ~/.pgpass  (MargaretGillon@chromalloy.com)
Responses Re: pg_dump shell script with ~/.pgpass  (Terry Lee Tucker <terry@esc1.com>)
Re: pg_dump shell script with ~/.pgpass  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: pg_dump shell script with ~/.pgpass  (Richard Huxton <dev@archonet.com>)
Re: pg_dump shell script with ~/.pgpass  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
I posted the message below on 1/15/05 and haven't received a reply yet.
Should I be asking this question on a different list?
Thank you.
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
***
Margaret Gillon, IS Dept., Chromalloy Los Angeles, ext. 297

----- Forwarded by Margaret Gillon/CLA/Chromalloy on 01/27/2005 08:38 AM
-----

             Margaret
             Gillon/CLA/Chroma
             lloy                                                       To
                                       pgsql-general@postgresql.org
             01/15/2005 12:14                                           cc
             PM
                                                                   Subject
                                       pg_dump shell script with ~/.pgpass









I need to create a shell script for cron.daily to run that will do pg_dump
for my database. I am using Redhat 9 and Postgresql v7.3.4.  Currently when
I run the dump manually the command I use is

#pg_dump -u -C -D -f /tmp/owl.sql owl

What should the command look like using ~/.pgpass ?

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 only have two postgresql users right now, myself and postgres.  On the
redhat server I have only two users, myself and root, there is no user
postgres.

TIA.
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
***
Margaret Gillon, IS Dept., Chromalloy Los Angeles, ext. 297


pgsql-general by date:

Previous
From: PFC
Date:
Subject: Re: visualizing B-tree index coverage
Next
From: Shawn Harrison
Date:
Subject: Re: Extended unit