Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands
create-connector-connection-pool(1)
create-connector-security-map(1)
create-connector-work-security-map(1)
create-jdbc-connection-pool(1)
create-message-security-provider(1)
create-resource-adapter-config(1)
delete-connector-connection-pool(1)
delete-connector-security-map(1)
delete-connector-work-security-map(1)
delete-jdbc-connection-pool(1)
delete-message-security-provider(1)
delete-resource-adapter-config(1)
disable-http-lb-application(1)
disable-secure-admin-internal-user(1)
disable-secure-admin-principal(1)
enable-secure-admin-internal-user(1)
enable-secure-admin-principal(1)
list-connector-connection-pools(1)
list-connector-security-maps(1)
list-connector-work-security-maps(1)
list-message-security-providers(1)
list-resource-adapter-configs(1)
list-secure-admin-internal-users(1)
list-secure-admin-principals(1)
list-supported-cipher-suites(1)
unfreeze-transaction-service(1)
update-admin-server-coordinates(1)
update-admin-server-local-coordinates(1)
update-connector-security-map(1)
update-connector-work-security-map(1)
Oracle GlassFish Server 3.1 Section 1M: Utility Commands
Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts
- exports the configuration data of a cluster or standalone instance to an archive file
export-sync-bundle [--help] --target target [--retrieve={false|true}] [file-name]
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(1) 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). Importing an instance's configuration data is typically required for the following reasons:
To reestablish the instance after an upgrade
To synchronize the instance manually with the DAS when the instance cannot contact the DAS
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
This subcommand is supported in remote mode only.
Displays the help text for the subcommand.
The cluster or standalone instance for which to export configuration data. The --target option is required.
This option must not specify a clustered GlassFish 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.
Specifies whether the archive file is downloaded from the DAS host to the host where the subcommand is run.
Possible values are as follows:
The archive file is downloaded to the host where the subcommand is run.
The archive file is not downloaded and remains on the DAS host (default).
The file name and location of the archive file to which to export the data.
The default depends on the setting of the --retrieve option:
If --retrieve is false, the default is sync/target-sync-bundle.zip in the current domain directory.
If --retrieve is true, the default is target-sync-bundle.zip in the current working directory.
target is the cluster or standalone instance that the --target option specifies.
If a relative path is specified, the directory to which the path is appended depends on the setting of the --retrieve option:
If --retrieve is false, the path is appended to the config subdirectory of the current domain directory.
If --retrieve is true, the path is appended to the current working directory.
If an existing directory is specified without a filename, the file name of the archive file is target-sync-bundle.zip, where target is the cluster or standalone instance that the --target option specifies.
Example 1 Exporting the Configuration Data of a Cluster
This example exports the configuration data of the cluster pmdcluster.
asadmin> export-sync-bundle --target=pmdcluster Sync bundle: /export/glassfish3/glassfish/domains/domain1/sync/ pmdcluster-sync-bundle.zip Command export-sync-bundle executed successfully.
command executed successfully
error in executing the command