public class Restore
extends org.h2.util.Tool
Constructor and Description |
---|
Restore() |
Modifier and Type | Method and Description |
---|---|
static void |
execute(java.lang.String zipFileName,
java.lang.String directory,
java.lang.String db)
Restores database files.
|
static void |
main(java.lang.String... args)
Options are case sensitive.
|
void |
runTool(java.lang.String... args)
Run the tool with the given output stream and arguments.
|
public static void main(java.lang.String... args) throws java.sql.SQLException
[-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 |
args
- the command line argumentsjava.sql.SQLException
- on failurepublic void runTool(java.lang.String... args) throws java.sql.SQLException
org.h2.util.Tool
runTool
in class org.h2.util.Tool
args
- the argument listjava.sql.SQLException
- on failurepublic static void execute(java.lang.String zipFileName, java.lang.String directory, java.lang.String db)
zipFileName
- the name of the backup filedirectory
- the directory namedb
- the database name (null for all databases)org.h2.message.DbException
- if there is an IOException