From: Tim Frank <tfrank@registrar.uoguelph.ca>
To: Thierry Besancon <Thierry.Besancon@prism.uvsq.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: Backing up postgresql databases
Date: Tue, 20 Mar 2001 18:17:43 GMT
Message-ID: <20010320.18174372@cr625228-a.ktchnr1.on.wave.home.com> (raw)
In-Reply-To: <7q1yrszvnz.fsf@vangogh.prism.uvsq.fr>
References: <20010319045610.D439@prometheus>
<20010320.141132@cr625228-a.ktchnr1.on.wave.home.com>
<7q1yrszvnz.fsf@vangogh.prism.uvsq.fr>
Thierry,
I think you meant to say "ps -e e" (at least that is what it is on my
RedHat Linux servers). I also realise the security issue with this.
However, if you really HAVE to use password authentication and you really
HAVE to dump your data then you are already painted into a corner so to
speak. I apologies for not mentioning the security issue in my post.
The reason the "export" is needed for pg_dumpall is because it is not
very password friendly and calls a combination of psql and pg_dump to do
it's job. I recall when looking at the pg_dumpall script that it doesn't
actually pass a username/password to psql, or if you do specify the -U
then you get an "unknown option" error when it tries to run pg_dump.
Tim Frank
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 20/03/01, 3:33:52 AM, Thierry Besancon <Thierry.Besancon@prism.uvsq.fr>
wrote regarding Re: [ADMIN] Backing up postgresql databases:
> Dixit Tim Frank <tfrank@registrar.uoguelph.ca> (le Tue, 20 Mar 2001
00:14:11 GMT) :
> » Have your shell script do
> »
> » export PGUSER=username
> » export PGPASSWORD=password
> »
> » before you run pg_dumpall in the same script. The user/pass would most
> » likely have to be a superuser to have access to all databases (this is
> » also not guaranteed depending on your pg_hba.conf). Make the script
> » read/execute by root but not by anyone else and it will help a tiny bit
> » with security.
> Using something like "ps -e" shows the environment variables so it is
> as unsecure as giving the password on the commande line.
> Thierry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tfrank@registrar.uoguelph.ca, Thierry.Besancon@prism.uvsq.fr
Subject: Re: Backing up postgresql databases
In-Reply-To: <20010320.18174372@cr625228-a.ktchnr1.on.wave.home.com>
References: <20010319045610.D439@prometheus> <20010320.141132@cr625228-a.ktchnr1.on.wave.home.com> <7q1yrszvnz.fsf@vangogh.prism.uvsq.fr> <20010320.18174372@cr625228-a.ktchnr1.on.wave.home.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox