Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id D27BD9FA23F for ; Mon, 27 Nov 2006 12:04:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 01162-07 for ; Mon, 27 Nov 2006 12:03:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 9A3A69FA231 for ; Mon, 27 Nov 2006 12:03:48 -0400 (AST) Received: from kingfisher.intern.logix-tt.com (84-72-188-217.dclient.hispeed.ch [84.72.188.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id BA92C6403E; Mon, 27 Nov 2006 17:06:37 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id C8FCC18148C92; Mon, 27 Nov 2006 17:03:26 +0100 (CET) Message-ID: <456B0C4E.5070405@logix-tt.com> Date: Mon, 27 Nov 2006 17:03:26 +0100 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.7 (X11/20060927) MIME-Version: 1.0 To: "tommaso.taruffi@ricesoft.it" Cc: pgsql-jdbc@postgresql.org Subject: Re: Backup with Java References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it> In-Reply-To: <456afd7a.330.e42.37531057@webh5.fe.aruba.it> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/144 X-Sequence-Number: 16186 Hi, tomaso, tommaso.taruffi@ricesoft.it wrote: > I have a question about how I can make a database backup > with Java. I have made a class Connection.java that connect > my application with Postgresql Database. I would make a > function in this class for backup the state of the database. If you want to make a complete, generic backup procedure, you'll have to extract the necessary knowledge from the source of pg_dump / pg_dumpall. AFAICT, there's no other place where this knowledge is documented. In case something application-specific is enough, it's best to use a domain specific data format for output. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in Europe! www.ffii.org www.nosoftwarepatents.org