Downloading Backup

Use the download-file to download a backup from a local repository.

Note: Do not use other operations in the same packet with this operation, because structure of a download-file response packet varies depending on the result of the operation.

In case the file has been successfully downloaded, the response contains attached backup file. If any error occurs, the response contains XML packet with the error data.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet downloading a backup from the local storage includes the download-file operation node:

<packet>
<backup-manager>
   <download-file>
...
   </download-file>
</backup-manager>
</packet>

 

The download-file node is presented by type BackupDownloadFileInput (backup.xsd), and its graphical representation is as follows:

Note: You should specify one of the mentioned nodes in a request packet.

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

The download-file node of the output XML packet is presented by type BackupDownloadFileOutput (backup.xsd) and structured as follows:

 

 

Samples

Downloading backup MyBackup.bak from a local storage

The request packet downloading backup MyBackup.bak from a local storage looks as follows:

<packet>
   <backup-manager>
      <download-file>
         <filename>MyBackup.bak</filename>
      </download-file>
   </backup-manager>
</packet>

 

Response:

Content-Type: application/octet-stream
Content-Disposition: attachment; filename=MyBackup.bak
Pragma: no-cache

<backup data>