Support

Documentation

startBackup

Begins a backup job. You must run it before stepBackup.

Request Data expected

All the fields are optional. You can have a null data body.

profile

Integer. Default = 1. The numeric profile ID to use for this backup job.

description

String. Default = Backup taken on <date> <time>. The short description to list in the Manage Backups (formerly "Administer Backup Files") page.

comment

String. Default = Empty string. A longer comment to include in the Manage Backups (formerly "Administer Backup Files") listing for this backup record.

tag

String. Default = json. Do not use this option! This is reserved for future use.

overrides

Array. Configuration variable overrides. Available since API version 335.

Response Data returned

A simple JSON object:

HasRun

Boolean. When true, more steps are required to backup the site (unless Error is not empty). When false, the backup has just finished.

Domain

String. The backup domain. It can be one of "init', 'installer', 'db', 'pack', 'finalization'. It tells you which major step the backup is in, i.e. 'db' for database backup.

Step

String. Free text describing the last operation in the current domain, e.g. the name of the last folder backed up. You should only use it for verbose progress display.

Substep

String. Free text, giving more detail about the Step. You should only use it for verbose progress display.

Error

String. The last error occurred. If this is not an empty string or null, you can assume that the backup has failed, irrespectively of the HasRun value.

Warnings

Array of Strings. The warnings produced during the last step. You'd better display them to the user.

BackupID

Integer. The numeric ID of the backup record being created. Since API 340.

Archive

String. The name of the backup archive. You will only get this in one of the responses of startBackup or stepBackup, when the archive is first created. In all other responses it will be empty. Only use the non-empty response. Since API 340.

Progress

Integer. The percentage of the backup process completion (0-100). Since API 340.

backupid

String. The unique identifier of this backup. You need to pass this in all subsequent calls to stepBackup. Since API 340.

sleepTime

Integer. How many milliseconds you should wait before you run the next stepBackup. Since API 340.

stepNumber

Integer. The sequential number of this step. Step numbers returned by stepBackup must be sequentially numbered, monotonically increasing. Anything else indicates a misbehaving server / broken backup. Since API 340.

stepState

String. The run state of the engine. It can be one of error, init, prepared, running, postrun and finished. This is debugging information about the engine internals and you should not act upon it. Since API 340.