4

I am new in Hsqldb database. I want to know how to take backup and restore of hsqldb database through java code.Please suggest answer.

2
  • I want this through java code like dump of mysql through code.it's urgent. Commented Jan 9, 2014 at 7:26
  • No one know the answer? Commented Jan 12, 2014 at 12:54

1 Answer 1

1

If you want to perform the backup while database is being used, you use an SQL command like this:

BACKUP DATABASE TO ...

To restore the database, you use the main() method of the org.hsqldb.tar.DbBackup or org.hsqldb.tar.DbBackupMain (version 2.3.2 or later) depending on the version of HSQLDB.

The commands are explained here:

http://www.hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_backup

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.