Received: from www.aldratech.com ([213.157.162.9]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0TEDOl96197; Tue, 29 Jan 2002 09:13:24 -0500 (EST) (envelope-from radu.popescu@aldratech.com) Message-ID: <001601c1a8cf$662e46d0$0600a8c0@rpopescu> From: "Radu-Adrian Popescu" To: "Lau NH" , , References: <003401c1a871$516922a0$0401230a@perridot.com> Subject: Re: Backup database through web and php Date: Tue, 29 Jan 2002 16:14:15 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C1A8DF.FEE61730" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Received: from rpopescu ([192.168.0.6]) by mail.aldratech.com (JAMES SMTP Server 1.2.1rc2) with SMTP ID 285; Tue, 29 Jan 2002 16:13:01 +0200 X-Archive-Number: 200201/240 X-Sequence-Number: 3121 This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1A8DF.FEE61730 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable You could set the authentification method to "trust" for the host the scrip= t is being run from, so you won't get a password prompt at all (see the pg_= hba.conf file). ----- Original Message -----=20 From: Lau NH=20 To: pgsql-admin@postgresql.org ; pgsql-hackers@postgresql.org=20 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 i= nterface, 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 dat= abase, does anyone know how to pass this password with the pg_dump command = together so that I can do it using php system call?=20=20 ------=_NextPart_000_0011_01C1A8DF.FEE61730 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
You could set the authentification=20 method to "trust" for the host the script is being run from, so y= ou=20 won't get a password prompt at all (see the pg_hba.conf file).
 
----- Original Message -----
Fro= m:=20 Lau NH
To: pgsql-admin@postgresql.org= ; pgsql-hackers@postgresql.org= =20
Sent: Tuesday, January 29, 2002=20 05:01
Subject: [ADMIN] Backup database t= hrough=20 web and php

Hi all,
   I am writing a php script t= o backup=20 my postgres database through web interface, but my database is password= =20 required.  When I do a pg_dump at the linux shell prompt, it will pr= ompt=20 for password in order to backup the database, does anyone know how to pas= s=20 this password with the pg_dump command together so that I can do it using= php=20 system call? 
 
<= /HTML> ------=_NextPart_000_0011_01C1A8DF.FEE61730--