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 44B8BD1B4F2 for ; Thu, 16 Oct 2003 03:37:20 +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 10710-04 for ; Thu, 16 Oct 2003 00:36:49 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 71539D1B4E6 for ; Thu, 16 Oct 2003 00:36:48 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9G3aZuo015878; Wed, 15 Oct 2003 23:36:35 -0400 (EDT) To: Rudi Starcevic Cc: Ganesan Kanavathy , pgsql-admin@postgresql.org Subject: Re: pg_dump.. auto backup In-reply-to: <3F8DFCC9.5090603@oasis.net.au> References: <000001c39385$f0491280$1300a8c0@headquarters.mq.com> <3F8DFCC9.5090603@oasis.net.au> Comments: In-reply-to Rudi Starcevic message dated "Thu, 16 Oct 2003 12:04:57 +1000" Date: Wed, 15 Oct 2003 23:36:35 -0400 Message-ID: <15877.1066275395@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/167 X-Sequence-Number: 10728 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