Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B534C476414 for ; Mon, 11 Nov 2002 12:56:23 -0500 (EST) Received: from seapdc01.PNTS (ip63.c216.blk1.bel.nwlink.com [209.20.216.63]) by postgresql.org (Postfix) with ESMTP id BEA5C4763BA for ; Mon, 11 Nov 2002 12:56:07 -0500 (EST) Received: from busbydev (BUSBY-DEV [10.0.0.64]) by seapdc01.PNTS with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id VLKPFR33; Mon, 11 Nov 2002 10:01:25 -0800 Message-ID: <013301c289ab$2311feb0$4000000a@busbydev> From: "David Busby" To: "Zavier Sheran" Cc: References: <20021110153627.83302.qmail@web14402.mail.yahoo.com> Subject: Re: Backing up the database via browser Date: Mon, 11 Nov 2002 09:52:43 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/49 X-Sequence-Number: 1631 Zavier, Using PHP You can do a ``, shell_exec, or passthru to run another process, (search for the word "exec" on php.net). Using that and PostgreSQL command pg_dump you can pull it off, might take a while, here's some untested code with no error checking ----- Original Message ----- From: "Zavier Sheran" To: Sent: Sunday, November 10, 2002 07:36 Subject: [PHP] Backing up the database via browser > Hi all, > > I'm looking for a way to create a link in a webpage > that creates a backup of the database and another link > to download the created backup file. Something similar > to what phpPgAdmin uses in the "View dump (schema) of > database" function with the "Structure and data" > option selected. I browsed the source of phpPgAdmin > but couldn't find the part where the code for that > function is... > > Thanks for your help. > > -Zavier > > ===== > --- > zavier.net - Internet Solutions > --- > > __________________________________________________ > Do you Yahoo!? > U2 on LAUNCH - Exclusive greatest hits videos > http://launch.yahoo.com/u2 > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster