pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Naomi Walker <nwalker@eldocomp.com>
To: Lau NH <launh@perridot.com>
To: pgsql-admin@postgresql.org
To: pgsql-hackers@postgresql.org
Subject: Re: Backup database through web and php
Date: Wed, 30 Jan 2002 10:31:29 -0700
Message-ID: <4.2.2.20020130102837.00aa9890@ecint.ecinet.com> (raw)
In-Reply-To: <003401c1a871$516922a0$0401230a@perridot.com>

At 11:01 AM 1/29/02 +0800, Lau NH wrote:
>Hi all,
>    I am writing a php script to backup my postgres database through web 
> interface, but my database is password required.  When I do a pg_dump at 
> the linux shell prompt, it will prompt for password in order to backup 
> the database, does anyone know how to pass this password with the pg_dump 
> command together so that I can do it using php system call?
>
I was just reading up on this subject, and it suggests using PGPASSWORD in 
the environment.  I have not tried that yet, but think all the passwords 
must be the same.

It is sometimes unclear to me when challenged for a password, logged in as 
postgres, whether or not they want the database password I am working on, 
or postgres'.  So far, it appears to be asking for the postgres password.
--
Naomi Walker
Chief Information Officer
Eldorado Computing, Inc.
602-604-3100  ext 242 

view thread (3+ messages)

Message-ID: <4.2.2.20020130102837.00aa9890@ecint.ecinet.com>
Permalink:  ../4.2.2.20020130102837.00aa9890@ecint.ecinet.com/
Also on:    postgresql.org/message-id/4.2.2.20020130102837.00aa9890@ecint.ecinet.com

 · 

reply

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: nwalker@eldocomp.com, launh@perridot.com, pgsql-hackers@postgresql.org
  Subject: Re: Backup database through web and php
  In-Reply-To: <4.2.2.20020130102837.00aa9890@ecint.ecinet.com>
  References: <003401c1a871$516922a0$0401230a@perridot.com> <4.2.2.20020130102837.00aa9890@ecint.ecinet.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