X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6B35BD1B1AE for ; Thu, 24 Jun 2004 14:50:52 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12139-03 for ; Thu, 24 Jun 2004 17:50:36 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 872A8D1B380 for ; Thu, 24 Jun 2004 14:50:33 -0300 (ADT) Received: (qmail 773 invoked by uid 500); 24 Jun 2004 17:56:57 -0000 Date: Thu, 24 Jun 2004 12:56:57 -0500 From: Bruno Wolff III To: Dragan Matic Cc: pgsql-admin@postgresql.org Subject: Re: How can I backup database from database itself Message-ID: <20040624175657.GB32506@wolff.to> Mail-Followup-To: Dragan Matic , pgsql-admin@postgresql.org References: <40DAC18A.206@panforma.co.yu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40DAC18A.206@panforma.co.yu> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/327 X-Sequence-Number: 13987 On Thu, Jun 24, 2004 at 13:56:58 +0200, Dragan Matic wrote: > Is there a way to backup a database by issuing an SQL statement from the > database? > I would like user to be able to create a backup from database itself, > and not by telnetting to server and typing 'pg_dump' or 'pg_dumpall'. > Tnx in advance They don't have to telnet to the server to run pg_dump or pg_dumpall. Those can be run from their machine. (Though they should be running a version as least as recent as the server version.) Take a look at the man page, in particular the -h option.