Tommaso:
Why not try pg_dumpall, instead?
The file that this command creates allows a complete regeneration of the database cluster, including users and user permissions. Even better, its already written and you can schedule it using the UNIX/LINUX command 'cron'.
John S. Abraham
Designer/Analyst
SysBuild Inc.
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of tommaso.taruffi@ricesoft.it
Sent: November 27, 2006 10:00 AM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Backup with Java
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