Administration Guide > Deployment Manager > Backing Up and Restoring the Deployment Manager Server > Backing Up the Deployment Manager
 
Backing Up the Deployment Manager
You can back up all defined Deployment Manager server metadata and resources in a CAR file. The backup file can be restored as described in Restoring the Deployment Manager Server.
By default, the backup file name is deployment_metadata.car. Or, you can specify the name of your choice for the backup file. When a backup file of the same name exists, it is not overwritten; instead, a number is added to the subsequent backup filenames as in deployment_metadata (1).car, deployment_metadata (2).car, and so on.
To back up the Deployment Manager Server
1. From the Admin menu, select Backup.
Deployment Manager asks you to confirm that you want to create the CAR file and download it.
Type and confirm a password to encrypt the backup CAR file. You will need to communicate the password to anyone that needs to import the file.
2. Click Download to confirm.
3. If your browser is configured to download to a particular location, Deployment Manager downloads the backup CAR file to that location. Otherwise, select a location for the backup file.
To back up the Deployment Management Server from command line
Using a command line tool, backup the Deployment Management server using this command:
curl -X GET -u <username:password> “http://<hostname>:<port>/rest/deploy/export_dm_metadata?encryptionPassword=<encryption password> -H "Content-Type:application/binary" -o <filename>
For example:
curl -X GET -u admin:admin "http://localhost:9400/rest/deploy/export_dm_metadata?encryptionPassword=password" -H "Content-Type:application/binary" -o exportedDM.car