Re: Re: pg_dump problem

From: Andrew Sullivan <sullivana(at)bpl(dot)on(dot)ca>
To: user Postgresql ML <pgsql-general(at)postgresql(dot)org>
Subject: Re: Re: pg_dump problem
Date: 2000-07-28 13:10:51
Message-ID: 20000728091051.A9180@bpl.on.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jul 27, 2000 at 09:25:17AM -0700, Kyle wrote:

> what if you want to pipe the output to your favorite compression
> utility? I like doing a weekly:
> pg_dumpall | bzip2 - > dump.bz2

Debian handles something similar for its nightly do.maintenance
script. You have to put the password in the cron.d/postgresql file, which
is terrible security practice, but the only way to automate this with
'password' as the authentication method on the local machine. The
script called by the cron job tests for whether the password is set,
and then passes that on to the postmaster when doing maintenance.

There is an unfortunate side effect, in that you get a daily mail
from cron with the three password prompts.

The better way to do this, I think, is to use some other
authentication method.

--
Andrew Sullivan Computer Services
<sullivana(at)bpl(dot)on(dot)ca> Burlington Public Library
+1 905 639 3611 x158 2331 New Street
Burlington, Ontario, Canada L7R 1J4

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Louis-David Mitterrand 2000-07-28 13:11:31 ALTER TABLE has not effect on children tables?
Previous Message Jeffery Collins 2000-07-28 12:57:21 Re: Connection problem under extreme load.