header('Backup Manager'); // Collect data from cpanel_plugin $cpreseller = (isset($_SERVER['CPRESELLERSESSION']) && isset($_SERVER['CPRESELLER'])) ? $_SERVER['CPRESELLER'] : ''; $response = $cpanel->uapi( 'Backups', 'backups', array( 'action' => 'get_settings', 'args' => '' ) ); if ($response['cpanelresult']['result']['status'] === 1) { // uapi reported no errors try { $plugin_response = json_decode( $response['cpanelresult']['result']['data'], true, // associative 512, //depth JSON_THROW_ON_ERROR // flags ); } catch (Exception $exc) { $plugin_response = array( "status" => 255, "error" => 'PHP json_decode raised exception: ' . $exc->getMessage() ); } } else { // uapi reported errors $plugin_response = array( "status" => 255, "error" => 'cPanel uapi call reported an error: ' . json_encode($response['cpanelresult']['result']['errors']) ); } if ($plugin_response['status'] === 0) { // Success $conf = $plugin_response['data']; $svr_class = $plugin_response['data']['svr_class']; $show_backup_mgr = $conf['quota_mb'] > 0; $is_vded = ($svr_class == 'imh_vps' || $svr_class == 'imh_ded'); $no_subscription_warning = $conf['quota_mb'] == 0 && !$conf['is_child'] && !$conf['down'] && !$is_vded; $plugin_error = null; // if v/ded, logged in as root, viewed account has 0 quota and is a main user, server has > 0 $root_limit_warning = $is_vded && $conf['is_main_user'] && $cpreseller == 'root' && $conf['quota_mb'] == 0 && isset($conf['svr_quota']) && $conf['svr_quota'] > 0; // if child account, logged in as a reseller, viewed account has 0 quota, owner has backups $res_limit_warning = $conf['is_child'] && $cpreseller != $conf['username'] && $cpreseller != '' && $conf['res_disabled']; if ($svr_class == 'hub_shared') { error_log('backup_mgr.live.php: Undefined support center urls for hub'); $amp_url = 'https://secure.webhostinghub.com/amp/marketplace/backups/'; // FIXME $article_main_page = 'https://www.inmotionhosting.com/support/edu/backups-and-restorations'; $article_alt_folder = 'https://www.inmotionhosting.com/support/edu/backups-and-restorations/how-to-restore-a-backup-to-an-alternate-folder-using-the-backup-manager-in-cpanel'; $article_add_storage = 'https://www.inmotionhosting.com/support/edu/backups-and-restorations/how-to-add-storage-for-data-backups-using-the-amp-marketplace'; $branding_own = "WebHosting Hub's"; } else { $article_whm_storage_breakdown = 'https://www.inmotionhosting.com/support/website/backup-and-restore/backup-manager-whm-vps-dedicated/'; $amp_url = 'https://secure1.inmotionhosting.com/amp/marketplace/backups/'; $article_main_page = 'https://www.inmotionhosting.com/support/edu/backups-and-restorations'; $article_alt_folder = 'https://www.inmotionhosting.com/support/edu/backups-and-restorations/how-to-restore-a-backup-to-an-alternate-folder-using-the-backup-manager-in-cpanel'; $article_add_storage = 'https://www.inmotionhosting.com/support/edu/backups-and-restorations/how-to-add-storage-for-data-backups-using-the-amp-marketplace'; $article_res_child_limits = 'https://www.inmotionhosting.com/support/product-guides/reseller-hosting/view-disk-usage/'; if ($conf['is_child']) { $branding_own = 'an'; } else { $branding_own = "InMotion Hosting's"; } $article_imh_vps_snapshots = 'https://www.inmotionhosting.com/support/high-availability/snapshots'; } } else { $show_backup_mgr = false; $no_subscription_warning = false; $plugin_error = $plugin_response['error']; $root_limit_warning = false; $res_limit_warning = false; } ?>

The Backup Manager feature allows you to utilize automated backup system to retain and secure your data. Backups are stored in a cloud infrastructure on different physical hardware from this server and accessible from the restore tab below.

From this interface you can view your current backup storage capacity, specify which data is backed up and how often, as well as perform data restorations. Additional backup storage blocks can be purchased from the AMP Marketplace.

For additional information, please visit our Support Center Articles.

The High Availability Cloud VPS product also offers complete snapshots as another method of backing up your data and configuration.

Space Required for next Scheduled Backup: data-srv-unused="" >?GB (?/GB remain) Account space is only counted once. If you have more than one backup, it does not count against your quota multiple times.

However, if you have extra space remaining, the automated backup system will retain more incremental copies of your data.

Based on the last calculated size of your account, the backup system will retain the {$retention} most recent copies once they are created.

EOF ); ?>
Purchase Backup Space
Total Server Space: /GB This is the total for all users on the server.

This number is cached and may take some time to reflect any changes you make.

EOF ); ?>
Purchase Backup Space

Warning: Your account is over your Backups Quota and no longer backing up.

Warning: Unable to fetch folder sizes to calculate backup size from your custom home directory selection. The account may contain too many files to determine folder sizes interactively.

Restorations in the last 7 Days

Backup Type

Backup Type

Schedule

Data Backed Up

Current Backup Usage

This account's backups are disabled through WHM >> Plugins >> Backup Manager in the Storage Breakdown tab


(This message is only visible when viewing this account as root)

This account's backups are disabled by its reseller () through Backup Manager in the Child Accounts tab


(This message is only visible when viewing this account as its reseller or root)

You do not have an active subscription to the Backup Manager. You can purchase one in AMP.

For additional information, please visit our Support Center Articles below: