Get Virtualizor

Disable Databackup

Use the Disable Databackup API to delete the cron job set for taking backup of database. Disabling the backup will not delete the backed up files.

HTTP Request

https://hostname:4085/index.php?act=databackup

Parameters

NameMethodValueDescriptionRequired
actGETdatabackupThe action will return the list of backup server on successYes
databasebackups_deletePOST1The value should be set to 1 to delete the cron jobYes

Sample Code

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = 'your_api_pass';
    $ip = 'your_server_ip';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['databasebackups_delete'] = 1;

    $output = $admin->databackup($post);

    print_r(json_encode($output));
?>

Output

{
    "title": "Database Backup",
    "backup_servers": {
        "1": {
            "bid": "1",
            "name": "slate_doc_server",
            "type": "SSH"
        }
    },
    "timenow": 1537286069,
    "time_taken": "0.268"
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list