Creating Reseller-level Backup Task

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

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

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

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

 

The backup-reseller node is presented by type BackupResellerInput (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-reseller node of the output XML packet is presented by type BackupCommandOutput (backup.xsd) and structured as follows:

 

Samples

Creating a reseller-level backup task for a reseller account

The following request packet creates a reseller-level backup task for the reseller account with ID 3.

<packet>
<backup-manager>
   <backup-reseller>
      <reseller-id>3</reseller-id>
      <local/>
      <description>Standard weekly backup</description>
   </backup-reseller>
</backup-manager>
</packet>

 Response:

<packet version="1.6.7.0">
<backup-manager>
   <backup-reseller>
      <result>
            <status>ok</status>
            <task-id>2</task-id>
      </result>
   </backup-reseller>
</backup-manager>
</packet>
Creating a backup task which instructs Plesk to back up configuration of a reseller account

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

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

Response:

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.7.0">
  <backup-manager>
    <backup-reseller>
      <result>
        <status>ok</status>
        <task-id>26</task-id>
      </result>
    </backup-reseller>
  </backup-manager>
</packet>