Migrating Using Disconnected Migration
To perform a disconnected migration, you must create an archive of the source nodes you want to migrate and point Command Central to the location of the archive, so that Command Central can use the source archive to migrate the environment instead of connecting directly to the source nodes.
1. Clone the database you use for the environment to the target host, following the instructions provided by your database vendor.
3. In the templates/products/product_instance sections, set the database parameters of the product instances to point to the cloned database. For example:
templates:
templateAlias:
products:
productID:
productInstance_name:
db.url: ${db.cloned.url}
db.username: ${db.cloned.username}
db.password: ${db.cloned.password}
The database parameters of the product instance in this example template snippet refer to the values of db.cloned.url, db.cloned.username, and db.cloned.password, which you can specify either in the environment/default section of the template definition or in a separate environment properties file. In the following example, the values of the cloned database parameters are set in an environment properties file:
db.cloned.url=“jdbc:wm:sqlserver://dbhost1:1433;databaseName=db1_CLONED”
db.cloned.username=myDbUser_CLONED
db.cloned.password=myDbpassword_CLONED
4. In the nodes section, define a target host different from the source host for the same node alias. For example:
nodes
envType1:
node1:
host: ${other.host}
5. If you want to use a source archive that already exists on the Command Central source host or on the target host, set the migration section as follows:
migration:
sourceType: ARCHIVES
archives:
targetPath: path/to/source_archive.zip
Command Central searches for the source archive:
a. On the Command Central host, in <CommandCentral_directory>/profiles/CCE/data/migration/source/<nodeAlias>.zip
b. If Command Central does not find the archive on its own host, it searches on the target host, in <user.home>/migration_source_<nodeAlias>.zip
c. At the location that you specify in the targetPath parameter in the archives section.
6. Import the composite template in Command Central and apply the template.