pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radu-Adrian Popescu <radu.popescu@aldratech.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: Tue, 29 Jan 2002 16:14:15 +0200
Message-ID: <001601c1a8cf$662e46d0$0600a8c0@rpopescu> (raw)
References: <003401c1a871$516922a0$0401230a@perridot.com>

You could set the authentification method to "trust" for the host the script is being run from, so you won't get a password prompt at all (see the pg_hba.conf file).

----- Original Message ----- 
  From: Lau NH 
  To: pgsql-admin@postgresql.org ; pgsql-hackers@postgresql.org 
  Sent: Tuesday, January 29, 2002 05:01
  Subject: [ADMIN] Backup database through web and php


  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?  

view thread (3+ messages)  latest in thread

Message-ID: <001601c1a8cf$662e46d0$0600a8c0@rpopescu>
Permalink:  ../001601c1a8cf$662e46d0$0600a8c0@rpopescu/
Also on:    postgresql.org/message-id/001601c1a8cf$662e46d0$0600a8c0@rpopescu

 · 

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: radu.popescu@aldratech.com, launh@perridot.com, pgsql-hackers@postgresql.org
  Subject: Re: Backup database through web and php
  In-Reply-To: <001601c1a8cf$662e46d0$0600a8c0@rpopescu>
  References: <003401c1a871$516922a0$0401230a@perridot.com> <001601c1a8cf$662e46d0$0600a8c0@rpopescu>

* 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