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 -url jdbc:h2:~/test -user sa -script -options compression zip

And to restore a database from a SQL script file: 

java -url jdbc:h2:~/test -user sa -script -options compression zip

Any help appreciated, thanks.

Jeremy Davis's picture

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

Add new comment