Exemplo n.º 1
0
<?php 
}
?>

</p>

<p>&#10003; <span class="hmbkp_estimated-size"><?php 
printf(__('Your site is %s. Backups will be compressed and should be smaller than this.', 'hmbkp'), get_transient('hmbkp_estimated_filesize') ? '<code>' . hmbkp_calculate() . '</code>' : '<code class="calculate">' . __('Calculating Size...', 'hmbkp') . '</code>');
?>
</span></p>

<?php 
if (hmbkp_get_email_address()) {
    ?>
<p>&#10003; <?php 
    printf(__('A copy of each backup will be emailed to %s.', 'hmbkp'), '<code>' . hmbkp_get_email_address() . '</code>');
    ?>
</p>
<?php 
}
?>

<?php 
if (($valid_excludes = hmbkp_valid_custom_excludes()) && !hmbkp_get_database_only()) {
    ?>
<p>&#10003; <?php 
    printf(__('The following paths will be excluded from your backups %s.', 'hmbkp'), '<code>' . implode('</code>, <code>', $valid_excludes) . '</code>');
    ?>
</p>
<?php 
}
Exemplo n.º 2
0
/**
 * Setup the HM_Backup class
 *
 * @return null
 */
function hmbkp_setup_hm_backup()
{
    $hm_backup = HM_Backup::get_instance();
    $hm_backup->path = hmbkp_path();
    $hm_backup->files_only = hmbkp_get_files_only();
    $hm_backup->database_only = hmbkp_get_database_only();
    if (defined('HMBKP_MYSQLDUMP_PATH')) {
        $hm_backup->mysql_command_path = HMBKP_MYSQLDUMP_PATH;
    }
    if (defined('HMBKP_ZIP_PATH')) {
        $hm_backup->zip_command_path = HMBKP_ZIP_PATH;
    }
    $hm_backup->excludes = hmbkp_valid_custom_excludes();
}