To add a backup to the local storage, perform the following two steps:
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:
Note: You must 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.
The import-file node of the output XML packet is presented by type BackupImportFileOutput (backup.xsd
) and structured as follows:
common.xsd
).
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>