Restore

Restores a H2 database by extracting the database files from a .zip file.

Methods
static void execute(String zipFileName, String directory, String db, boolean quiet)
Restores database files.
static void execute(String zipFileName, String directory, String db, boolean quiet) throws SQLException
Restores database files.
Parameters:
zipFileName - the name of the backup file
directory - the directory name
db - the database name (null for all databases)
quiet - don't print progress information
Throws:
SQLException
static void main(String... args)
Options are case sensitive.
static void main(String... args) throws SQLException
Options are case sensitive. Supported options are:
[-help] or [-?] Print the list of options
[-file <filename>] The source file name (default: backup.zip)
[-dir <dir>] The target directory (default: .)
[-db <database>] The target database name (as stored if not set)
[-quiet] Do not print progress information
Parameters:
args - the command line arguments
void runTool(String... args)
void runTool(String... args) throws SQLException