Importing Backup to Storage

To add a backup to the local storage, perform the following two steps:

  1. Upload the backup to the temporary directory on the server using the upload operator. For details on the operator, refer to the section Supported Operations: Uploading Files to Server.
  2. Add the backup to the local storage using the import-file operator.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet moving a backup to the local storage includes the import-file operation node:

<packet>
<import-file>
   <put-backup>
...
   </put-backup>
</import-file>
</packet>

 

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

import-file

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

 

Response Packet Structure

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

put-backup-RePS

 

 

Samples

Moving the backup to the local storage of a customer

The request packet moving the backup to the local storage of the customer with ID 54 looks as follows:

<packet>
   <backup-manager>
      <import-file>
         <customer-id>54</customer-id>
         <tmp-filename>/usr/local/psa/tmp/MyBackup.bak</tmp-filename>
      </import-file>
   </backup-manager>
</packet>

 

Response:

<packet version="1.6.7.0">
<backup-manager>
      <import-file>
      <result>
            <status>ok</status>
      </result>
      </import-file>
</backup-manager>
</packet>