pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ganesan Kanavathy <ganesh@magnusquest.com>
To: pgsql-admin@postgresql.org
To: pgsql-admin-owner@postgresql.org
Subject: pg_dump still requires password
Date: Wed, 12 Nov 2003 20:43:54 +0800
Message-ID: <002901c3a91a$a696a440$1300a8c0@headquarters.mq.com> (raw)

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
 

view thread (3+ messages)  latest in thread

Message-ID: <002901c3a91a$a696a440$1300a8c0@headquarters.mq.com>
Permalink:  ../002901c3a91a$a696a440$1300a8c0@headquarters.mq.com/
Also on:    postgresql.org/message-id/002901c3a91a$a696a440$1300a8c0@headquarters.mq.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: ganesh@magnusquest.com, pgsql-admin-owner@postgresql.org
  Subject: Re: pg_dump still requires password
  In-Reply-To: <002901c3a91a$a696a440$1300a8c0@headquarters.mq.com>
  References: <002901c3a91a$a696a440$1300a8c0@headquarters.mq.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox