API Docs

Get to know backup_create

Overview: Creates a backup for the indicated VM.

backup_create expects the following parameters:

  • vm_id – The identifier of the virtual machine in question.
  • name - a name for the backup you are creating.

Example:

$params = array(
        'vm_id' => 1,
 	'name' => 'backup_of_vm_1'
        );
$api->call('cloud.backup_create', $params);

Output:

Array
(
    [status] => 1
    [data] => Backup has been added to the create queue.
)