Re: About Pgdump - Mailing list pgsql-general

From nolan@celery.tssi.com
Subject Re: About Pgdump
Date
Msg-id 20030919131701.25689.qmail@celery.tssi.com
Whole thread Raw
In response to Re: About Pgdump  (Richard Huxton <dev@archonet.com>)
List pgsql-general
> On Friday 19 September 2003 07:35, Deepa K wrote:
> > Hi all,
> >         I want to take backup of our online system on daily basis using
> > crontab. But actually the pg_hba.conf is configured with password
> > security.
> > How I can take the backup without setting password. Or is their any
> > other
> > way to take backup.
>
> Look for the .pgpass entry in the document index. You can create a private
> file containing usernames/passwords for databases.

A second possibility is to create another system and postgres account with
sufficient permissions to run the backup and both 'local' and 'ident sameuser'
in pg_hba.conf.  (That's how I have the postgres account set up.)

Then run the backup via cron.  You can also use that account to run
periodic vacuums.
--
Mike Nolan

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Column defaults fail with rules on view
Next
From: Richard Huxton
Date:
Subject: Re: 'order by' does "wrong" with unicode-chars (german umlauts)