public class Restore extends 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.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOptionpublic 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.SQLExceptionpublic void runTool(java.lang.String... args)
throws java.sql.SQLException
Toolpublic 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)DbException - if there is an IOException