Received: from outbound.mail.uoguelph.ca (ccshst09.cs.uoguelph.ca [131.104.96.18]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2KIKmN38036 for ; Tue, 20 Mar 2001 13:20:48 -0500 (EST) (envelope-from tfrank@registrar.uoguelph.ca) Received: from www.ors.uoguelph.ca (www.ors.uoguelph.ca [131.104.86.24]) by outbound.mail.uoguelph.ca (8.9.3 (PHNE_21697)/8.9.3) with ESMTP id NAA14500; Tue, 20 Mar 2001 13:20:45 -0500 (EST) Received: from cr625228-a.ktchnr1.on.wave.home.com (cr625228-a.ktchnr1.on.wave.home.com [24.114.210.245]) by www.ors.uoguelph.ca (8.9.3/8.9.3) with SMTP id NAA18366; Tue, 20 Mar 2001 13:23:24 -0500 From: Tim Frank Date: Tue, 20 Mar 2001 18:17:43 GMT Message-ID: <20010320.18174372@cr625228-a.ktchnr1.on.wave.home.com> Subject: Re: Backing up postgresql databases To: Thierry Besancon CC: pgsql-admin@postgresql.org Reply-To: Tim Frank 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> X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Win32) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.postgresql.org id f2KIKpN38215 X-Archive-Number: 200103/155 X-Sequence-Number: 1002 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 wrote regarding Re: [ADMIN] Backing up postgresql databases: > Dixit Tim Frank (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