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 3989ED1B504; Wed, 12 Nov 2003 12:44:53 +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 80433-02; Wed, 12 Nov 2003 08:44:25 -0400 (AST) Received: from magnusquest.com (magnusquest.com [128.121.126.6]) by svr1.postgresql.org (Postfix) with ESMTP id 1AB09D1B509; Wed, 12 Nov 2003 08:44:22 -0400 (AST) Received: from ganesan ([219.93.76.2]) by magnusquest.com (8.12.10/8.11.6) with ESMTP id hACCiLaV066403; Wed, 12 Nov 2003 20:44:22 +0800 (MYT) From: "Ganesan Kanavathy" To: , Subject: pg_dump still requires password Date: Wed, 12 Nov 2003 20:43:54 +0800 Message-ID: <002901c3a91a$a696a440$1300a8c0@headquarters.mq.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002A_01C3A95D.B4B9E440" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=HTML_80_90 X-Spam-Level: X-Archive-Number: 200311/207 X-Sequence-Number: 11194 This is a multi-part message in MIME format. ------=_NextPart_000_002A_01C3A95D.B4B9E440 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I want to do auto backup for pg with cronjob. The problem is it equesting for password. I have tried with pgpass but still it does not work. I created the pgpass as per below: echo your_host:5432:your_user:your_db:your_pass > ~/.pgpass bash$ chmod 600 ~/.pgpass My cronjob entry is as below: /usr/local/pgsql/bin/pg_dump --no-owner -d helpdesk -U ganesh > /www/htdocs/sg/backup/helpdesk.dump When I issue the command it is asking for passwd which I cannot used for cronjob to run at midnight. Please help. How I do solve this problem. I have posted this earlier the suggestion was to use pgpass but that does not help. What other way can I achive this. Regards, Ganesan ------=_NextPart_000_002A_01C3A95D.B4B9E440 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I want to do auto backup for pg with cronjob. The problem is it equesting for password.<= /o:p>

 

I have tried with pgpass but= still it does not work. I created the pgpass as per b= elow:

 

echo your_host:5432:your_user:your_db:your_pass > ~/.pgp= ass bash$ chmod 600 ~/.pgpass<= /span>

 

My cronjob entry is = as below:

 

/usr/local/pgsql/bin/pg_dump= --no-owner  -d helpdesk -U ganesh > /www/htdocs/sg/backup/helpdesk.dump

 

When I issue the command it is asking for passwd which I cannot used for c= ronjob to run at midnight. =  

 

Please help. How I do solve this problem.

 

I have posted this earlier the suggestion was to use pgpass but that does not help. What other way can I <= span class=3DSpellE>achive this.

 

Regards,

Ganesan

 

------=_NextPart_000_002A_01C3A95D.B4B9E440--