Top Description Constructors Methods
org.hsqldb.lib.tar

public Class DbBackupMain

extends Object
Class Inheritance
Imports
java.io.File, .IOException

This class is used for offline backup of HyperSQL databases.

See the database offline backup section of the HyperSQL User Guide

Contains only the main method.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[]
The arguments
sa
)

Command line invocation to create, examine, or extract HSQLDB database backup tar archives.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DbBackupMainback to summary
public DbBackupMain()

Method Detail

mainback to summary
public static void main(String[] sa) throws IOException, TarMalformatException

Command line invocation to create, examine, or extract HSQLDB database backup tar archives.

This class stores tar entries as relative files without specifying parent directories, in what is commonly referred to as tar bomb format. The set of files is small, with known extensions, and the potential inconvenience of messing up the user's current directory is more than compensated by making it easier for the user to restore to a new database URL location at a peer level to the original.

Automatically calculates buffer sizes based on the largest component file (for "save" mode) or tar file size (for other modes).

Run

java -cp path/to/hsqldb.jar org.hsqldb.lib.tar.DbBackupMain
for syntax help.
Parameters
sa:String[]

The arguments

Exceptions
IOException:
on read-write error
TarMalformatException:
on tar file problems