Administration Guide > Deployment Manager > Defining Deployment Plans > Exporting a Deployment Plan
 
Exporting a Deployment Plan
You can export a deployment plan in order to execute a deployment plan for a target server at some later time. All plan resources (bundles, site info, mappings, operations, and so on) are exported to a package file. This can be useful if:
You develop a deployment plan on a different server than the one where you want to execute the plan.
The target server is unavailable or offline. For example, you have a remote production server that is inaccessible to the development or test network.
You want to import and execute the plan on the target server at a later time (see Importing and Executing a Deployment Plan).
You can export a deployment plan using the Deployment Manager user interface or using the command line as described in the two sections below.
To export a deployment plan from the user interface
1. Click PLANS.
2. Select a plan.
3. Above the plan definition, click Export Plan.
4. In the Export Plan dialog, click Download.
At the bottom of the browser window, the prompt to open or save the plan package is displayed.
5. Choose an option:
Option
Do this
Open
Opens the plan in the appropriate application, or prompts you to select an application.
Save
Saves the file in your download directory.
Save as
Choose a location in the file system.
Save and open
Saves the file in your download directory and opens the plan in the appropriate application, or prompts you to select an application.
To export a deployment plan from the command line
1. Using a command line tool, export the plan using this command:
curl -X GET -u <username:password> “http://<hostname>:<port>/rest/deploy/export_plan_package?plan=/<target_site>/<source_site>/<plan_name>&encryptionPassword=<password>” -o plan.pkg -H "Content-Type:application/binary"
 
For example:
curl -X GET -u admin:admin "http://localhost:9400/rest/deploy/export_plan_package?plan=/targetSite/sourceSite/planName&encryptionPassword=123456" -o plan.pkg -H "Content-Type:application/binary"
See Importing and Executing a Deployment Plan when you’re ready to import a plan that you have exported.