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 main(String[] args)
The command line interface for this tool.
void run(String[] args)

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) throws SQLException

The command line interface for this tool. The options must be split into strings like this: "-db", "test",... Options are case sensitive. The following options are supported:
  • -help or -? (print the list of options)
  • -file filename (the default is backup.zip)
  • -dir database directory (the default is the current directory)
  • -db database name (as stored in the backup if no name is specified)
  • -quiet does not print progress information


Parameters:
args - the command line arguments
Throws:
SQLException

void run(String[] args) throws SQLException