Creating Customer-level Backup Task

Use the backup-customer operation to create a customer-level backup task.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet creating a customer-level backup task includes the backup-customer operation node:

<packet>
<backup-manager>
   <backup-customer>
...
   </backup-customer>
</backup-manager>
</packet>

 

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

Note: If you do not want to split backup into several files, the split-size value should be set to 0.

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

 

Response Packet Structure

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

 

 

Samples

Creating a backup task to perform a customer-level backup of a customer account

The following request packet creates a backup task which instructs Plesk to perform a customer-level backup (without splitting) of the customer account with ID 18.

<packet>
<backup-manager>
   <backup-customer>
      <customer-id>18</customer-id>
      <local/>
      <description>Standard weekly backup</description>
      <split-size>0</split-size>
   </backup-customer>
</backup-manager>
</packet>

Response:

<packet version="1.6.7.0">
<backup-manager>
   <backup-customer>
      <result>
            <status>ok</status>
            <task-id>2</task-id>
      </result>
   </backup-customer>
</backup-manager>
</packet>

 

Creating a backup task to back up customer-level configuration of customer account

The following request packet creates a backup task which instructs Plesk to back up customer-level configuration of customer account with ID 18.

<packet>
<backup-manager>
   <backup-customer>
      <customer-id>18</customer-id>
      <local/>
      <description>Standard weekly backup</description>
      <split-size>0</split-size>
      <only-configuration/>
   </backup-customer>
</backup-manager>
</packet>

 Response:

<packet version="1.6.7.0">
<backup-manager>
   <backup-customer>
      <result>
            <status>ok</status>
            <task-id>2</task-id>
      </result>
   </backup-customer>
</backup-manager>
</packet>