Vinay Vishal | 7c4c4fc | 2019-01-28 12:01:04 +0530 | [diff] [blame] | 1 | type=page |
| 2 | status=published |
| 3 | title=import-sync-bundle |
| 4 | next=install-node.html |
| 5 | prev=get-health.html |
| 6 | ~~~~~~ |
| 7 | import-sync-bundle |
| 8 | ================== |
| 9 | |
| 10 | [[import-sync-bundle-1]][[GSRFM00142]][[import-sync-bundle]] |
| 11 | |
| 12 | import-sync-bundle |
| 13 | ------------------ |
| 14 | |
| 15 | imports the configuration data of a clustered instance or standalone |
| 16 | instance from an archive file |
| 17 | |
| 18 | [[sthref1243]] |
| 19 | |
| 20 | Synopsis |
| 21 | |
| 22 | [source,oac_no_warn] |
| 23 | ---- |
| 24 | asadmin [asadmin-options] import-sync-bundle [--help] |
| 25 | --instance instance-name |
| 26 | [--nodedir node-dir] [--node node-name] |
| 27 | file-name |
| 28 | ---- |
| 29 | |
| 30 | [[sthref1244]] |
| 31 | |
| 32 | Description |
| 33 | |
| 34 | The `import-sync-bundle` subcommand imports the configuration data of a |
| 35 | clustered instance or standalone instance from an archive file that was |
| 36 | created by the |
| 37 | link:export-sync-bundle.html#export-sync-bundle-1[`export-sync-bundle`(1)] |
| 38 | subcommand. |
| 39 | |
| 40 | You must run this subcommand on the host where the instance resides. To |
| 41 | contact the domain administration server (DAS), this subcommand requires |
| 42 | the name of the host where the DAS is running. If a nondefault port is |
| 43 | used for administration, this subcommand also requires the port number. |
| 44 | You must provide this information through the `--host` option and the |
| 45 | `--port` option of the link:asadmin.html#asadmin-1m[`asadmin`(1M)] |
| 46 | utility. |
| 47 | |
| 48 | Importing an instance's configuration data transfers the data to a host |
| 49 | for an instance without the need for the instance to be able to |
| 50 | communicate with the DAS. Importing an instance's configuration data is |
| 51 | typically required for the following reasons: |
| 52 | |
| 53 | * To reestablish the instance after an upgrade |
| 54 | * To synchronize the instance manually with the domain administration |
| 55 | server (DAS) when the instance cannot contact the DAS |
| 56 | |
| 57 | The subcommand imports an instance's configuration data by performing |
| 58 | the following operations: |
| 59 | |
| 60 | * Creating or updating the instance's files and directories |
| 61 | * Attempting to register the instance with the DAS |
| 62 | |
| 63 | If the attempt to register the instance with the DAS fails, the |
| 64 | subcommand does not fail. Instead, the subcommand displays a warning |
| 65 | that the attempt failed. The warning contains the command to run to |
| 66 | register the instance with the DAS. |
| 67 | |
| 68 | The `import-sync-bundle` subcommand does not contact the DAS to |
| 69 | determine the node on which the instance resides. If the node is not |
| 70 | specified as an option of the subcommand, the subcommand determines the |
| 71 | node from the DAS configuration in the archive file. |
| 72 | |
| 73 | This subcommand is supported in local mode only. |
| 74 | |
| 75 | [[sthref1245]] |
| 76 | |
| 77 | Options |
| 78 | |
| 79 | asadmin-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 | |
| 101 | Operands |
| 102 | |
| 103 | file-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 | |
| 109 | Examples |
| 110 | |
| 111 | [[GSRFM624]][[sthref1248]] |
| 112 | |
| 113 | Example 1 Importing Configuration Data for a Clustered Instance |
| 114 | |
| 115 | This 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 | |
| 119 | The 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 |
| 121 | default HTTP port for administration. |
| 122 | |
| 123 | [source,oac_no_warn] |
| 124 | ---- |
| 125 | sj02# asadmin --host sr04 import-sync-bundle --node sj02 --instance ymli2 |
| 126 | /export/glassfish3/glassfish/domains/domain1/sync/ymlcluster-sync-bundle.zip |
| 127 | Command import-sync-bundle executed successfully. |
| 128 | ---- |
| 129 | |
| 130 | [[sthref1249]] |
| 131 | |
| 132 | Exit Status |
| 133 | |
| 134 | 0:: |
| 135 | command executed successfully |
| 136 | 1:: |
| 137 | error in executing the command |
| 138 | |
| 139 | [[sthref1250]] |
| 140 | |
| 141 | See Also |
| 142 | |
| 143 | link:asadmin.html#asadmin-1m[`asadmin`(1M)] |
| 144 | |
| 145 | link:export-sync-bundle.html#export-sync-bundle-1[`export-sync-bundle`(1)] |
| 146 | |
| 147 | |