Re: pg_dump.. auto backup
| От | Ganesan Kanavathy |
|---|---|
| Тема | Re: pg_dump.. auto backup |
| Дата | |
| Msg-id | 000e01c3939b$22aad1e0$1300a8c0@headquarters.mq.com обсуждение |
| Ответ на | Re: pg_dump.. auto backup (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: pg_dump.. auto backup
|
| Список | 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 по дате отправления: