Authentication to run pg_dump automatically

From: "Robert Fitzpatrick" <robert(at)webtent(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Authentication to run pg_dump automatically
Date: 2003-02-20 00:36:27
Message-ID: 000c01c2d878$1dc7e570$bbc2fea9@COLUMBUS
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I would like to write a script to dump all the databases each night. The
only way I have figured out it can be done is to trust the 'postgres'
user in pg_hba.conf for local connections and run pg_dump with that user
in the script (is this safer than PGPASSWORD). I am looking for advice
on this, does the postgres user have privileges that are not necessary
to do a pg_dump. I want to be sure I trust a user with minimal
permissions, but still be able to dump all. Who has experience with the
best way to handle this?

This is for a PostgreSQL v7.1 database, so I can't use .pgpass and I
don't want to use the environment variable PGPASSWORD.

--
Robert

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-02-20 01:53:42 Re: 7.3.1 takes long time to vacuum table?
Previous Message elein 2003-02-20 00:14:29 Re: Index not used with IS NULL