Ronan0's picture

I would like to test TKLBAM with some (embedded) H2 database applications. 

Are there any examples of writing TKLBAM hooks for encoding/decoding unsupported databases?

How does TKLBAM work in this regard?

Normally, without TKLBAM, you backup a H2 database by creating a compressed SQL script file. Creating the script will also verify the checksums of the database file. The Script tool is ran as follows:

java org.h2.tools.Script -url jdbc:h2:~/test -user sa -script test.zip -options compression zip

And to restore a database from a SQL script file: 

java org.h2.tools.RunScript -url jdbc:h2:~/test -user sa -script test.zip -options compression zip

Any help appreciated, thanks.

Forum: 
Jeremy Davis's picture

Have a look at the TKLBAM hooks docs. That should be enough to get you going. :)

Add new comment