HP VAN SDN Controller Administrator Guide v3
curl --noproxy <controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksSfL --request PUT
"https://<<controller_ip>:8443/sdn/v2.0/systems"controller_uid>"
--data-binary '{"system":{"ip":"<controller_ip>"}}'
4. Perform the actual backup using the following cURL command:
curl --noproxy <controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksS --request POST --url
"https://<<controller_ip>:8443/sdn/v2.0/systems"controller_uid>/action"
--data-binary "backup"
The controller then creates a second file containing an encrypted CRC checksum.
5. Check on the status of a backup using the backup session token returned by the backup
request.
curl --noproxy <controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksSfL --request GET --url
"https://<<controller_ip>:8443/sdn/v2.0/backups/<backup_session_token>
8.1.3 Download a Backup From the Controller to Another Location
Both the .zip file and the .MD5 (checksum) file should be downloaded to the same, secure location.
Choose the correct name now; you cannot rename the files later or you will get a file corruption
error when you attempt to upload them for a restore.
NOTE: The file names for the .zip and .MD5 file must begin with ‘sdn_controller_backup’.
1. Download the Backup .zip File:
curl --noproxy <controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksSfL --request GET --url
"https://<system_ip>:8443/sdn/v2.0/systems/<controller_uid>/backup?csum=false"
<path-and-file-name>.zip
2. Download the backup .MD5 (Checksum) File
curl --noproxy <controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksSfL --request GET --url
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>/backup?csum=true"
> <path-and-file-name>.zip.MD5
NOTE: The path-and-file-name string should be identical for the .zip and the .MD5 files in
a given backup file pair.
8.1.4 Recommended Backup Practices
• Do not run backup while making configuration changes. Instead, run the backup after
completing configuration changes. Otherwise, an inconsistent system state could result with
a subsequent restore.
• Always back up all of the controllers in a team after a configuration change. Just backing up
a subset of the controllers is not sufficient.
• Back up all of controllers in a team at approximately the same time. (Team backups can be
in sequence or in parallel). Do not allow days to pass in-between backups of different controllers
in the same team.
8.1 Back-Up a Controller 95