Oracle GlassFish Server Reference Manual Release 3.1.2 Part Number E24938-01 |
|
|
View PDF |
performs a backup on the domain
backup-domain [--help] [--long[={false|true}]] [--description description-text] [--domaindir domain-root-dir] [--backupdir backup-directory] [--backupconfig backup-config-name] [domain_name]
The backup-domain
subcommand backs up files under the named domain.
This subcommand is supported in local mode only in GlassFish Server Open Source Edition, and is supported in local mode and remote mode in Oracle GlassFish Server.
In GlassFish Server Open Source Edition, the domain to be backed up must be stopped.
In Oracle GlassFish Server, the domain to be backed up must be stopped or be suspended using the suspend-domain(1) subcommand.
--help
-?
Displays the help text for the subcommand.
--long
-l
Displays detailed information about the backup operation.
The default value is false
.
--description
Specifies a description to store in the backup file. The description is displayed as part of the information about a backup file.
The default value has this form:
domain-name backup created on YYYY_MM_DD by user user-name
--domaindir
Specifies the domain root directory, the parent directory of the domain to back up.
The default value is as-install/domains
.
--backupdir
Specifies the directory under which the backup file is to be stored.
The default value is as-install/domains/
domain-dir/backups
. If the domain is not in the default location, the location is domain-dir/backups
.
--backupconfig
(Supported only in Oracle GlassFish Server.) The name of the domain backup configuration in the backup directory under which the backup file is to be stored.
Specifies the name of the domain to be backed up.
This operand is optional if only one domain exists in the GlassFish Server installation.
subcommand executed successfully
error in executing the subcommand
restore-domain(1), list-backups(1), suspend-domain(1), resume-domain(1)