2.6.13 export-sync-bundle
Exports the configuration data of a cluster or standalone instance to an archive file.
Synopsis
asadmin [asadmin-options] export-sync-bundle [--help] --target target [--retrieve={false|true}] [file-name]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The export-sync-bundle subcommand exports the configuration data of a cluster or standalone instance to an archive file. The archive file can then be used with the import-sync-bundle subcommand to restore the configuration data.
Importing an instance's configuration data transfers the data to a host for an instance without the need for the instance to be able to communicate with the Domain Administration Server (DAS). This subcommand is supported in remote mode only.
Precondition
Domain Administration Server (DAS) is running.
Files
The subcommand creates an archive that contains the following files and directories in the current domain directory:
-
All the files in the following directories:
config
docroot
-
The entire contents of the following directories and their subdirectories:
applications
config/target, where target is the cluster or standalone instance for which configuration data is being exported.
generated
lib
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --target target
-
Specifies the cluster or standalone instance for which configuration data is to be exported. The --target option is required.
This option must not specify a clustered server instance. If this option specifies a clustered instance, an error occurs. To export configuration data for a clustered instance, specify the name of the cluster of which the instance is a member, not the instance.
Type: String
The following values can be specified:
-
cluster_name
-
standalone_instance_name
Default value: N/A
-
- --retrieve={false|true}
-
Specifies whether the archive file is downloaded from the DAS host to the host where the subcommand is run.
Type: Boolean
The following values can be specified:
-
true
The archive file is downloaded to the host where the subcommand is run.
-
false
The archive file is not downloaded and remains on the DAS host (default).
Default value: false
-
- file-name
-
Specifies the file name and location of the archive file to which the data is to be exported.
Type: String
The following values can be specified:
-
Name of the file
Default value:
-
If --retrieve is false
sync/target-sync-bundle.zip
-
If --retrieve is true
target-sync-bundle.zip in the current working directory
-
Examples
The following example exports the configuration data of the cluster pmdcluster.
asadmin export-sync-bundle --target pmdcluster
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |