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 164A3D1B50D for ; Thu, 16 Oct 2003 01:37:29 +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 86992-02 for ; Wed, 15 Oct 2003 22:37:01 -0300 (ADT) Received: from mqsporttec.com (evilgods.net [128.121.126.6]) by svr1.postgresql.org (Postfix) with ESMTP id E8BC8D1B53F for ; Wed, 15 Oct 2003 22:36:55 -0300 (ADT) Received: from ganesan ([219.93.76.2]) by mqsporttec.com (8.12.10/8.11.6) with ESMTP id h9G1avcq034051 for ; Thu, 16 Oct 2003 09:36:58 +0800 (MYT) From: "Ganesan Kanavathy" To: Subject: pg_dump.. auto backup Date: Thu, 16 Oct 2003 09:36:29 +0800 Message-ID: <000001c39385$f0491280$1300a8c0@headquarters.mq.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C393C8.FE6C5280" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.6 tagged_above=0.0 required=5.0 tests=HTML_80_90, RCVD_IN_RFCI X-Spam-Level: * X-Archive-Number: 200310/164 X-Sequence-Number: 10725 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C393C8.FE6C5280 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am doing a cronjob to dump pg database everyday. Below is my script for cronjob. #!/bin/sh /usr/local/pgsql/bin/pg_dump -U ganesh --no-owner -d mq > /backupdb/mq.dump cd / cd /backupdb/ tar -czf /backupdb/mq-`date '+%d-%m-%Y'`.tar.gz -R * This cronjob is schedule to run everyday at 3.30am. The problem I am facing is the when running the cronjob it is asking for password. If I remove -U ganesh, it is still prompting for password but this time root password. How do I solve this, when running the pg_dump I don't want it to prompt for password. Regards, ganesh ------=_NextPart_000_0001_01C393C8.FE6C5280 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am doing a cronjob to dump= pg database everyday.

 

Below is my script for cronjob.

 

#!/bi= n/sh

 

/usr/local/pgsql/bin/pg_d= ump -U ganesh --no-owner -d mq= > /backupdb/mq.dump=

 

cd /=

cd /= backupdb/

 

tar  -czf /backupdb/mq-`date '= +%d-%m-%Y'`.tar.gz -R *

 

This cronjob is schedule to = run everyday at 3.30am.<= o:p>

 

The problem I am facing is the when running the cronjob it is asking for password. If I remove –U ganesh, it is still= prompting for password but this time root password.

 

How do I solve this, when running the pg_dump<= /span> I don’t want it to prompt for password.

 

Regards,

ganesh

 

 

------=_NextPart_000_0001_01C393C8.FE6C5280--