Re: Pg_dumpall problem[2] - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Pg_dumpall problem[2]
Date
Msg-id 20030207152407.GB5605@wolff.to
Whole thread Raw
In response to Re: Pg_dumpall problem[2]  (Shridhar Daithankar <shridhar_daithankar@persistent.co.in>)
Responses Re: Pg_dumpall problem[2]
List pgsql-general
On Fri, Feb 07, 2003 at 12:07:23 +0530,
  Shridhar Daithankar <shridhar_daithankar@persistent.co.in> wrote:
> On Thursday 06 February 2003 09:34 pm, you wrote:
> > The goal is to have cron run some backup scripts (to dump the databases
> > daily) without having to enter a password for the dumps.
>
> Run psql script.  You can use PGPASSWORD environment variable. Search
> archives. It has the references..

This isn't a good idea. If you are worried enough about local users
to use password authentication, you don't want to put passwords into
environment variables as on most unix systems they are visible to other
users.

Using ident authentication is a much better way to do this.

pgsql-general by date:

Previous
From: greg@turnstep.com
Date:
Subject: Re: List online archives and spam
Next
From: Stephan Szabo
Date:
Subject: Re: Alter Contraint