Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 7D3229FA280 for ; Mon, 27 Nov 2006 15:51:57 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 06706-09 for ; Mon, 27 Nov 2006 15:51:40 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by postgresql.org (Postfix) with ESMTP id 6D1659FA23F for ; Mon, 27 Nov 2006 15:51:42 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so1087030ugf for ; Mon, 27 Nov 2006 11:51:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DrPvYvja6cXx1sUBEOk+vSTge9Jbh0Lbj/Rult/gsMj6R+QtZsu8d+2cuykf3e4E+c8wNBYz4TwsXE37AEfwwnvtAUPXtKdY1KQaafDXjVjO/MGnm0Ntvdy3R2SfHGuo39s0UQOlw/Lx+ZeKxR2dmj18/Kri4CyoN4kJ6lXyqVE= Received: by 10.82.169.4 with SMTP id r4mr3523bue.1164657071563; Mon, 27 Nov 2006 11:51:11 -0800 (PST) Received: by 10.82.161.3 with HTTP; Mon, 27 Nov 2006 11:51:11 -0800 (PST) Message-ID: <1f30b80c0611271151o5265b6d1sb4ce7c2b47c8443b@mail.gmail.com> Date: Tue, 28 Nov 2006 00:51:11 +0500 From: imad To: "Michael Schmidt" Subject: Re: Backup with Java Cc: tommaso.taruffi@ricesoft.it, pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it> <1f30b80c0611271020p6045f190sc73d690314bfbee8@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/148 X-Sequence-Number: 16190 It just loads the respective utility from the database engine and use it. Does not do anything itself. --Imad www.EnterpriseDB.com On 11/28/06, Michael Schmidt wrote: > > > > Mr. Taruffi, > The PostgreSQL backup, restore, vacuum, and reindex utilities are all > included in Komo, a basic Java (Eclipse rcp) GUI. You can look at the code > and adapt it to your application. Komo can be accessed and downloaded at > pgFoundry > > Michael Schmidt > > ----- Original Message ----- > From: imad > To: tommaso.taruffi@ricesoft.it > Cc: pgsql-jdbc@postgresql.org > Sent: Monday, November 27, 2006 11:20 AM > Subject: Re: [JDBC] Backup with Java > > Read and understand the file 'src/bin/pg_dump/pg_dump.c' in the postgresql > core server code base. This is the only solution of your problem, you are > going > to rewrite all the C code in JAVA. > > --Imad > www.EnterpriseDB.com > > > On 11/27/06, tommaso.taruffi@ricesoft.it > wrote: > > Hello, > > 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. > > Anyone can help me? > > > > Thanks! > > Dr. Tommaso Taruffi > > > > ---------------------------(end of > broadcast)--------------------------- > > TIP 7: You can help support the PostgreSQL project by donating at > > > > http://www.postgresql.org/about/donate > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >