blob: 6b8b658e4527c86f613e21c7931b802a11c3cf00 [file] [log] [blame]
Vinay Vishal7c4c4fc2019-01-28 12:01:04 +05301type=page
2status=published
3title=import-sync-bundle
4next=install-node.html
5prev=get-health.html
6~~~~~~
7import-sync-bundle
8==================
9
10[[import-sync-bundle-1]][[GSRFM00142]][[import-sync-bundle]]
11
12import-sync-bundle
13------------------
14
15imports the configuration data of a clustered instance or standalone
16instance from an archive file
17
18[[sthref1243]]
19
20Synopsis
21
22[source,oac_no_warn]
23----
24asadmin [asadmin-options] import-sync-bundle [--help]
25--instance instance-name
26[--nodedir node-dir] [--node node-name]
27file-name
28----
29
30[[sthref1244]]
31
32Description
33
34The `import-sync-bundle` subcommand imports the configuration data of a
35clustered instance or standalone instance from an archive file that was
36created by the
37link:export-sync-bundle.html#export-sync-bundle-1[`export-sync-bundle`(1)]
38subcommand.
39
40You must run this subcommand on the host where the instance resides. To
41contact the domain administration server (DAS), this subcommand requires
42the name of the host where the DAS is running. If a nondefault port is
43used for administration, this subcommand also requires the port number.
44You must provide this information through the `--host` option and the
45`--port` option of the link:asadmin.html#asadmin-1m[`asadmin`(1M)]
46utility.
47
48Importing an instance's configuration data transfers the data to a host
49for an instance without the need for the instance to be able to
50communicate with the DAS. Importing an instance's configuration data is
51typically required for the following reasons:
52
53* To reestablish the instance after an upgrade
54* To synchronize the instance manually with the domain administration
55server (DAS) when the instance cannot contact the DAS
56
57The subcommand imports an instance's configuration data by performing
58the following operations:
59
60* Creating or updating the instance's files and directories
61* Attempting to register the instance with the DAS
62
63If the attempt to register the instance with the DAS fails, the
64subcommand does not fail. Instead, the subcommand displays a warning
65that the attempt failed. The warning contains the command to run to
66register the instance with the DAS.
67
68The `import-sync-bundle` subcommand does not contact the DAS to
69determine the node on which the instance resides. If the node is not
70specified as an option of the subcommand, the subcommand determines the
71node from the DAS configuration in the archive file.
72
73This subcommand is supported in local mode only.
74
75[[sthref1245]]
76
77Options
78
79asadmin-options::
80 Options for the `asadmin` utility. For information about these
81 options, see the link:asadmin.html#asadmin-1m[`asadmin`(1M)] help page.
82`--help`::
83`-?`::
84 Displays the help text for the subcommand.
85`--instance`::
86 The instance for which configuration data is being imported. The
87 instance must already exist in the DAS configuration. The archive file
88 from which the data is being imported must contain data for the
89 specified instance.
90`--nodedir`::
91 The directory that contains the instance's node directory. The
92 instance's files are stored in the instance's node directory. The
93 default is as-install`/nodes`.
94`--node`::
95 The node on which the instance resides. If this option is omitted, the
96 subcommand determines the node from the DAS configuration in the
97 archive file.
98
99[[sthref1246]]
100
101Operands
102
103file-name::
104 The name of the file, including the path, that contains the archive
105 file to import. This operand is required.
106
107[[sthref1247]]
108
109Examples
110
111[[GSRFM624]][[sthref1248]]
112
113Example 1   Importing Configuration Data for a Clustered Instance
114
115This example imports the configuration for the clustered instance
116`ymli2` on the node `sj02` from the archive file
117`/export/glassfish3/glassfish/domains/domain1/sync/ymlcluster-sync-bundle.zip`.
118
119The command is run on the host `sj02`, which is the host that the node
120`sj02` represents. The DAS is running on the host `sr04` and uses the
121default HTTP port for administration.
122
123[source,oac_no_warn]
124----
125sj02# asadmin --host sr04 import-sync-bundle --node sj02 --instance ymli2
126/export/glassfish3/glassfish/domains/domain1/sync/ymlcluster-sync-bundle.zip
127Command import-sync-bundle executed successfully.
128----
129
130[[sthref1249]]
131
132Exit Status
133
1340::
135 command executed successfully
1361::
137 error in executing the command
138
139[[sthref1250]]
140
141See Also
142
143link:asadmin.html#asadmin-1m[`asadmin`(1M)]
144
145link:export-sync-bundle.html#export-sync-bundle-1[`export-sync-bundle`(1)]
146
147