Administration Guide > Deployment Manager > Executing Deployment Plans > Importing and Executing a Deployment Plan
 
Importing and Executing a Deployment Plan
You can import and execute a deployment plan that you have previously exported as described in Exporting a Deployment Plan. When you want to execute the deployment plan that you’ve exported, the target server must be running and set to online in Deployment Manager. The source site where the plan originated does not need to be running.
At this time, importing and executing a deployment plan can only be done using a command line tool; there is no feature for this in the user interface.
To import and execute a deployment plan
1. Locate the exported plan package file and copy/paste it to your local machine.
Note: The plan package name cannot include special characters like ( and ). Because Deployment Manager adds (1), (2), etc. to the plan package name by default if you export it multiple times to the same name, you might need to rename the plan package before executing it.
2. Start the target server and make sure that it is not set to offline mode:
a. Run Deployment Manager.
b. Click SITES.
c. Select the target site.
d. Click the General tab and make sure that Server Offline is unchecked.
3. Using a command line tool, execute the plan using this command:
dm_apply_plan.[bat|sh] -password [password] -package [path/plan package] -server <hostname> -port <port_number> -user <user_name> -domain <domain_name> -encryptionPassword <encryption password> -ignoreEncryption -verbose
For example:
./dm_apply_plan.sh -password admin -package C:\\users\\jsmith\\downloads\\plan_package.pkg -server localhost -port 9410 -user admin -domain composite -encryptionPassword 123456 -verbose
where C:\\users\\jsmith\\downloads\\plan_package.pkg is the path and filename of the execution plan package. Notice that a double-backslash is required on a Windows machine.
Example with ignoreEncryption option:
./dm_apply_plan.sh -password admin -package C:\\users\\jsmith\\downloads\\plan_package.pkg -server localhost -port 9410 -user admin -domain composite -ignoreEncryption -verbose
where C:\\users\\jsmith\\downloads\\plan_package.pkg is the path and filename of the execution plan package. Notice that a double-backslash is required on a Windows machine.
Note: If -ignoreEncyption option is used, then all backup data will be imported regardless of whether a valid encryption key was provided. This means that the import will not fail. This option can be used to allow partially importing any backed up data. However, the import process will only import data that is not encrypted or can be decrypted using the provided encryption key. All encrypted portions of the backup data that cannot be decrypted will be imported as empty values and the import will otherwise succeed.
This affects all encrypted values in the backup data, which includes, but is not limited to data source and LDAP domain connection passwords.
4. Verify that the resources in the plan have been migrated to your target server.