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

From Ganesan Kanavathy
Subject Re: pg_dump.. auto backup
Date
Msg-id 000e01c3939b$22aad1e0$1300a8c0@headquarters.mq.com
Whole thread Raw
In response to Re: pg_dump.. auto backup  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_dump.. auto backup  ("A.Bhuvaneswaran" <bhuvan@symonds.net>)
List pgsql-admin
Thanks for the reply,

I don't really understand this. How to put password in ~/.pgpass. What
changes do I need to do on the script? How do I access to the password
to authenticate?

I'm still new Linux. Hope to get more explanation and guidance.

Thanks.

Regards,
ganesh

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Tom Lane
Sent: Thursday, October 16, 2003 11:37 AM
To: Rudi Starcevic
Cc: Ganesan Kanavathy; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] pg_dump.. auto backup

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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump.. auto backup
Next
From: "Ganesan Kanavathy"
Date:
Subject: pg_hba.conf