From: Aaron Mulder <ammulder@alumni.princeton.edu>
To: pgsql-jdbc@postgresql.org
Subject: Re: Backup with Java
Date: Thu, 30 Nov 2006 20:07:50 -0500
Message-ID: <74e15baa0611301707m413453ddhc3b7584c4f5dbf3a@mail.gmail.com> (raw)
In-Reply-To: <456afd7a.330.e42.37531057@webh5.fe.aruba.it>
References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it>
Seems like a hybrid approach may be the most practical. If you dump
the DDL rarely (or whenever it changes) with pg_dump or a similar
DB-specific tool, then you could probably generate a frequent data
backup fairly easily with pure JDBC code. The only trick on the
restore would be to do it in an order consistent with the keys, and
again, you ought to be able to determine that via JDBC (or perhaps
determine that it's not possible, in which case maybe you manually
insert some statements to suspend RI during the import or whatever).
Thanks,
Aaron
On 11/27/06, tommaso.taruffi@ricesoft.it <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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: ammulder@alumni.princeton.edu
Subject: Re: Backup with Java
In-Reply-To: <74e15baa0611301707m413453ddhc3b7584c4f5dbf3a@mail.gmail.com>
References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it> <74e15baa0611301707m413453ddhc3b7584c4f5dbf3a@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox