Received: from soleil.uvsq.fr (soleil.uvsq.fr [193.51.24.1]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2K8YIN77740 for ; Tue, 20 Mar 2001 03:34:19 -0500 (EST) (envelope-from Thierry.Besancon@prism.uvsq.fr) Received: from lucifer.prism.uvsq.fr (lucifer.prism.uvsq.fr [193.51.25.7]) by soleil.uvsq.fr (8.11.1/jtpda-5.3.3) with ESMTP id f2K8YA672765 ; Tue, 20 Mar 2001 09:34:10 +0100 (CET) Received: from vangogh.prism.uvsq.fr (vangogh.prism.uvsq.fr [193.51.25.75]) by lucifer.prism.uvsq.fr (8.9.3/jtpda-5.3.2) with ESMTP id JAA03489 ; Tue, 20 Mar 2001 09:33:55 +0100 (MET) Received: from (thb@localhost) by vangogh.prism.uvsq.fr (8.10.2/jtpda-5.3.1) id f2K8XqN08859 ; Tue, 20 Mar 2001 09:33:52 +0100 (MET) X-Authentication-Warning: vangogh.prism.uvsq.fr: thb set sender to thb@vangogh.prism.uvsq.fr using -f To: Tim Frank Cc: pgsql-admin@postgresql.org Subject: Re: Backing up postgresql databases References: <20010319045610.D439@prometheus> <20010320.141132@cr625228-a.ktchnr1.on.wave.home.com> From: Thierry Besancon Organization: PRiSM Date: 20 Mar 2001 09:33:52 +0100 In-Reply-To: Tim Frank's message of "Tue, 20 Mar 2001 00:14:11 GMT" Message-ID: <7q1yrszvnz.fsf@vangogh.prism.uvsq.fr> Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.4 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 f2K8YfN77751 X-Archive-Number: 200103/150 X-Sequence-Number: 998 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