Re: pg_dump.. auto backup - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_dump.. auto backup
Date
Msg-id 15877.1066275395@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_dump.. auto backup  (Rudi Starcevic <rudi@oasis.net.au>)
Responses Re: pg_dump.. auto backup
List pgsql-admin
Rudi Starcevic <rudi@oasis.net.au> writes:
> Ganesan Kanavathy wrote:
>> The problem I am facing is the when running the cronjob it is asking
>> for password.

> Just add:
> export PGPASSWORD=mypassword
> to your script.

A much better solution (assuming you are using a reasonably recent PG
release) is to put the needed password in ~/.pgpass, which can be set to
0600 permissions.  PGPASSWORD is insecure on many platforms because
other people can see your environment variables.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Ganesan Kanavathy"
Date:
Subject: Re: pg_dump.. auto backup
Next
From: "Ganesan Kanavathy"
Date:
Subject: Re: pg_dump.. auto backup