Skip site navigation (1) Skip section navigation (2)

Re: pg_dump and password required

From: Devrim GÜNDÜZ <devrim(at)CommandPrompt(dot)com>
To: Sergey Litvinenko <sergey(at)rsu(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_dump and password required
Date: 2007-10-15 07:33:31
Message-ID: 1192433611.30688.0.camel@localhost.localdomain (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs

On Mon, 2007-10-15 at 01:05 +0400, Sergey Litvinenko wrote:
> The problem is that I want to set up an automated backup with pg_dump,
> but it  asks for password interactively, rather then accept password
> from either command-line option or from some config-file (e.g.
> ~/.psqlrc)

> The workaround would be to disable password requirement, but this is a
> security risk I want to avoid.
> Why no to add an option --password="" to command-line options of
> pg_dump?

This is a worse security risk, IMHO.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng -

In response to

pgsql-bugs by date

Next:From: Dave PageDate: 2007-10-15 08:24:17
Subject: Re: BUG #3676: README.TXT is duff gen
Previous:From: Sergey LitvinenkoDate: 2007-10-14 21:05:05
Subject: pg_dump and password required

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group