X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 03B87D1B4E3 for ; Thu, 16 Oct 2003 04:09:18 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 13668-08 for ; Thu, 16 Oct 2003 01:08:46 -0300 (ADT) Received: from mqsporttec.com (evilgods.net [128.121.126.6]) by svr1.postgresql.org (Postfix) with ESMTP id C9556D1B500 for ; Thu, 16 Oct 2003 01:08:45 -0300 (ADT) Received: from ganesan ([219.93.76.2]) by mqsporttec.com (8.12.10/8.11.6) with ESMTP id h9G48d39070186; Thu, 16 Oct 2003 12:08:41 +0800 (MYT) From: "Ganesan Kanavathy" To: "'Tom Lane'" , "'Rudi Starcevic'" Cc: Subject: Re: pg_dump.. auto backup Date: Thu, 16 Oct 2003 12:08:11 +0800 Message-ID: <000e01c3939b$22aad1e0$1300a8c0@headquarters.mq.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: <15877.1066275395@sss.pgh.pa.us> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/168 X-Sequence-Number: 10729 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 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)