Re: pg_dump still requires password

From: Daniel Rubio <drubior(at)tinet(dot)org>
To:
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump still requires password
Date: 2003-11-12 14:04:01
Message-ID: 3FB23DD1.3090301@tinet.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


> When I issue the command it is asking for passwd which I cannot used for
> cronjob to run at midnight.

Execute the task as user postgres (crontab for postgres, not root) and
modify pg_hba.conf to permit access in trust mode (without asking for
password)

e.g : local all postgres trust

You can subtitute postgres for the user you need and the database too
(if the dump is not pg_dumpall)

>
>
>
> 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
>
>
>

--
********************************************************
Daniel Rubio Rodríguez
OASI (Organisme Autònom Per la Societat de la Informació)
c/ Assalt, 12
43003 - Tarragona
Tef.: 977.244.007 - Fax: 977.224.517
e-mail: drubio(at)oasi(dot)org
********************************************************

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message ow 2003-11-12 16:55:34 [pg 7.1.rc2] pg_restore and large tables
Previous Message Ganesan Kanavathy 2003-11-12 12:43:54 pg_dump still requires password