public class Restore extends Tool
Constructor and Description |
---|
Restore() |
Modifier and Type | Method and Description |
---|---|
static void |
execute(String zipFileName,
String directory,
String db,
boolean quiet)
Restores database files.
|
static void |
main(String... args)
Options are case sensitive.
|
void |
runTool(String... args)
Run the tool with the given output stream and arguments.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, throwUnsupportedOption
public static void main(String... args) throws 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 argumentsSQLException
public void runTool(String... args) throws SQLException
Tool
runTool
in class Tool
args
- the argument listSQLException
public static void execute(String zipFileName, String directory, String db, boolean quiet)
zipFileName
- the name of the backup filedirectory
- the directory namedb
- the database name (null for all databases)quiet
- don't print progress informationDbException
- if there is an IOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.