| java.lang.Object org.h2.tools.Backup
Backup | public class Backup (Code) | | Backs up a H2 database by creating a .zip file from the database files.
|
Method Summary | |
public static void | execute(String zipFileName, String directory, String db, boolean quiet) Backs up database files. | public static void | main(String[] args) The command line interface for this tool.
The options must be split into strings like this: "-db", "test",...
Options are case sensitive. |
execute | public static void execute(String zipFileName, String directory, String db, boolean quiet) throws SQLException(Code) | | Backs up database files.
Parameters: zipFileName - the name of the backup file Parameters: directory - the directory name Parameters: db - the database name (null if there is only one database) Parameters: quiet - don't print progress information throws: SQLException - |
main | public static void main(String[] args) throws SQLException(Code) | | 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 (not required if there is only one database)
- -quiet does not print progress information
Parameters: args - the command line arguments throws: SQLException - |
|
|