Re: Pg_dumpall problem[2]

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Pg_dumpall problem[2]
Date: 2003-02-07 15:24:07
Message-ID: 20030207152407.GB5605@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Feb 07, 2003 at 12:07:23 +0530,
Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-02-07 15:25:31 Re: Alter Contraint
Previous Message Bruno Wolff III 2003-02-07 15:16:29 Re: List online archives and spam