Esempio n. 1
0
</script>
<?php 
/* BEGIN CONFIGURING PLUGIN SETTINGS FORM */
$settings_form = new pb_backupbuddy_settings('settings', '', 'tab=0', 350);
$settings_form->add_setting(array('type' => 'title', 'name' => 'title_general', 'title' => __('General', 'it-l10n-backupbuddy')));
$settings_form->add_setting(array('type' => 'password', 'name' => 'importbuddy_pass_hash', 'title' => __('ImportBuddy password', 'it-l10n-backupbuddy'), 'tip' => __('[Example: myp@ssw0rD] - Required password for running the ImportBuddy import/migration script. This prevents unauthorized access when using this tool. You should not use your WordPress password here.', 'it-l10n-backupbuddy'), 'value' => $importbuddy_pass_dummy_text, 'css' => 'width: 120px;', 'after' => '&nbsp;&nbsp; <span style="white-space: nowrap;">Confirm: <input style="width: 120px;" type="password" name="pb_backupbuddy_importbuddy_pass_hash_confirm" value="' . $importbuddy_pass_dummy_text . '"></span>'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'backup_directory', 'title' => __('Custom local storage directory', 'it-l10n-backupbuddy'), 'tip' => __('Leave blank for default. To customize, enter a full local path where all backup ZIP files will be saved to. This directory must have proper write and read permissions. Upon changing, any backups in the existing directory will be moved to the new directory. Note: This is only where local backups will be, not remotely stored backups. Remote storage is configured on the Remote Destinations page.', 'it-l10n-backupbuddy'), 'rules' => '', 'css' => 'width: 250px;', 'before' => '<span style="white-space: nowrap;">', 'after' => ' <span class="description">' . __('Blank for default', 'it-l10n-backupbuddy') . ':</span>&nbsp; <span class="code" style="background: #EAEAEA; white-space: normal;">' . backupbuddy_core::_getBackupDirectoryDefault() . '</span>'));
$settings_form->add_setting(array('type' => 'select', 'name' => 'role_access', 'title' => __('BackupBuddy access permission', 'it-l10n-backupbuddy'), 'options' => array('administrator' => __('Administrator (default)', 'it-l10n-backupbuddy'), 'moderate_comments' => __('Editor (moderate_comments)', 'it-l10n-backupbuddy'), 'edit_published_posts' => __('Author (edit_published_posts)', 'it-l10n-backupbuddy'), 'edit_posts' => __('Contributor (edit_posts)', 'it-l10n-backupbuddy')), 'tip' => __('[Default: Administrator] - Allow other user levels to access BackupBuddy. Use extreme caution as users granted access will have FULL access to BackupBuddy and your backups, including remote destinations. This is a potential security hole if used improperly. Use caution when selecting any other user roles or giving users in such roles access. Not applicable to Multisite installations.', 'it-l10n-backupbuddy'), 'after' => ' <span class="description">Use caution changing from "administrator".</span>', 'rules' => 'required'));
require_once '_email.php';
$settings_form->add_setting(array('type' => 'title', 'name' => 'title_archivestoragelimits', 'title' => __('Local Archive Storage Limits', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('PmXLw_tS42Q#45', __('Archive Storage Limits Tutorial', 'it-l10n-backupbuddy'), false)));
$settings_form->add_setting(array('type' => 'text', 'name' => 'archive_limit', 'title' => __('Limit number of local backups to keep', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 10] - Maximum number of local archived backups to store (remote archive limits are configured per destination on their respective settings pages). Any new backups created after this limit is met will result in your oldest backup(s) being deleted to make room for the newer ones. Changes to this setting take place once a new backup is made. Set to zero (0) for no limit.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[0-500]|int', 'css' => 'width: 50px;', 'after' => ' backups. <span class="description">0 for no limit.</span>'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'archive_limit_size', 'title' => __('Size limit of all local backups combined', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 350] - Maximum size (in MB) to allow your total local archives to reach (remote archive limits are configured per destination on their respective settings pages). Any new backups created after this limit is met will result in your oldest backup(s) being deleted to make room for the newer ones. Changes to this setting take place once a new backup is made. Set to zero (0) for no limit.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[0-500]|int', 'css' => 'width: 50px;', 'after' => ' MB. <span class="description">0 for no limit.</span>'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'archive_limit_age', 'title' => __('Age limit of local backups', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 90] - Maximum age (in days) to allow your local archives to reach (remote archive limits are configured per destination on their respective settings pages). Any backups exceeding this age will be deleted as new backups are created. Changes to this setting take place once a new backup is made. Set to zero (0) for no limit.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[0-99999]|int', 'css' => 'width: 50px;', 'after' => ' days. <span class="description">0 for no limit.</span>'));
if (is_multisite()) {
    $settings_form->add_setting(array('type' => 'title', 'name' => 'title_multisite', 'title' => __('Multisite', 'it-l10n-backupbuddy')));
    $settings_form->add_setting(array('type' => 'checkbox', 'name' => 'multisite_export', 'title' => __('Allow individual site exports by administrators?', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('_oKGIzzuVzw', __('Multisite export', 'it-l10n-backupbuddy'), false), 'options' => array('unchecked' => '0', 'checked' => '1'), 'tip' => __('[Default: disabled] - When enabled individual sites may be exported by Administrators of the individual site. Network Administrators always see this menu (notes with the words SuperAdmin in parentheses in the menu when only SuperAdmins have access to the feature).', 'it-l10n-backupbuddy'), 'rules' => 'required', 'after' => '<span class="description"> ' . __('Check to extend Site Exporting functionality to subsite Administrators.', 'it-l10n-backupbuddy') . '</span>'));
}
$profile = 0;
// Defaults index.
$settings_form->add_setting(array('type' => 'title', 'name' => 'title_database', 'title' => __('Database Defaults', 'it-l10n-backupbuddy')));
require_once pb_backupbuddy::plugin_path() . '/views/settings/_database.php';
$settings_form->add_setting(array('type' => 'title', 'name' => 'title_files', 'title' => __('File & Directory Defaults', 'it-l10n-backupbuddy')));
require_once pb_backupbuddy::plugin_path() . '/views/settings/_files.php';
$process_result = $settings_form->process();
// Handles processing the submitted form (if applicable).
if (count((array) $process_result['errors']) == 0) {
    $table_excludes = pb_backupbuddy::_POST('pb_backupbuddy_profiles#0#mysqldump_additional_excludes');
    $tableExcludes = backupbuddy_core::alert_core_table_excludes(explode("\n", trim($table_excludes)));
    foreach ($tableExcludes as $tableExcludeId => $tableExclude) {
        pb_backupbuddy::disalert($tableExcludeId, '<span class="pb_label pb_label-important">Warning</span> ' . $tableExclude);
    }
Esempio n. 2
0
<?php

pb_backupbuddy::$ui->title('Multisite Import Site (BETA)' . ' ' . pb_backupbuddy::video('4RmC5nLmabE', __('Multisite import', 'it-l10n-backupbuddy'), false));
pb_backupbuddy::$classes['core']->versions_confirm();
pb_backupbuddy::set_status_serial('ms_import');
/*
// Used for drag & drop / collapsing boxes.
wp_enqueue_style('dashboard');
wp_print_styles('dashboard');
wp_enqueue_script('dashboard');
wp_print_scripts('dashboard');

wp_enqueue_script( 'thickbox' );
wp_print_scripts( 'thickbox' );
wp_print_styles( 'thickbox' );
// Handles resizing thickbox.
if ( !wp_script_is( 'media-upload' ) ) {
	wp_enqueue_script( 'media-upload' );
	wp_print_scripts( 'media-upload' );
}
wp_enqueue_script( 'backupbuddy-ms-export', $this->_parent->_pluginURL . '/js/ms.js', array( 'jquery' ) );
wp_print_scripts( 'backupbuddy-ms-export' );
*/
$action = isset($_GET['action']) ? $_GET['action'] : false;
?>
<div class='wrap'>
<p>For BackupBuddy Multisite documentation, please visit the <a href='http://ithemes.com/codex/page/BackupBuddy_Multisite'>BackupBuddy Multisite Codex</a>.</p>
<?php 
//check_admin_referer( 'bbms-migration', 'pb_bbms_migrate' );
if (!current_user_can('manage_sites')) {
    wp_die(__('You do not have permission to access this page.', 'it-l10n-backupbuddy'));
Esempio n. 3
0
			<td><label for="password"><?php 
_e('Password', 'it-l10n-backupbuddy');
pb_backupbuddy::tip(__('[Example: 1234xyz] - Password to use when connecting to the FTP server.', 'it-l10n-backupbuddy'));
?>
</label></td>
			<td><input type="password" name="#password" id="password" size="45" maxlength="45" value="<?php 
echo $options['password'];
?>
" /></td>
		</tr>
		<tr>
			<td><label for="path"><?php 
_e('Remote Path (optional)', 'it-l10n-backupbuddy');
pb_backupbuddy::tip(__('[Example: /public_html/backups] - Remote path to place uploaded files into on the destination FTP server. Make sure this path is correct; if it does not exist BackupBuddy will attempt to create it. No trailing slash is needed.', 'it-l10n-backupbuddy'));
echo ' ';
pb_backupbuddy::video('O2fK6W4tokE#43', __('Set a FTP remote directory', 'it-l10n-backupbuddy'));
?>
</label></td>
			<td><input type="text" name="#path" id="path" size="45" maxlength="250" value="<?php 
echo $options['path'];
?>
" /></td>
		</tr>
		<tr>
			<td><label for="archive_limit"><?php 
_e('Archive Limit', 'it-l10n-backupbuddy');
pb_backupbuddy::tip(__('[Example: 5] - Enter 0 for no limit. This is the maximum number of archives to be stored in this specific destination. If this limit is met the oldest backups will be deleted.', 'it-l10n-backupbuddy'));
echo ' ';
?>
</label></td>
			<td><input type="text" name="#archive_limit" id="archive_limit" size="45" maxlength="6" value="<?php 
Esempio n. 4
0
<?php

pb_backupbuddy::$classes['core']->versions_confirm();
pb_backupbuddy::load_script('jquery');
?>



<?php 
pb_backupbuddy::$ui->start_metabox('Welcome', true, 'width: 70%;');
?>
	<?php 
_e("BackupBuddy is the all-in-one solution for backups, restoration, and migration.  The single backup ZIP file created can be used with the restore & migration utility to quickly and easily restore your site on the same server or even migrate to a new host with different settings.  Whether you're an end user or a developer, this plugin will bring you peace of mind and added safety in the event of data loss.  Our goal is keeping the backup, restoration, and migration processes easy, fast, and reliable.", 'it-l10n-backupbuddy');
echo sprintf(__('Throughout the plugin you may hover your mouse over question marks %1$s for tips or click play icons %2$s for video tutorials.', 'it-l10n-backupbuddy'), pb_backupbuddy::tip(__('This tip provides additional help.', 'it-l10n-backupbuddy'), '', false), pb_backupbuddy::video('WQrOCvOYof4', __('Introduction to BackupBuddy', 'it-l10n-backupbuddy'), false));
echo ' Tutorials, walkthroughs, videos, and troubleshooting tips are available in the <b><a href="http://ithemes.com/codex/page/BackupBuddy" style="text-decoration: none;">PluginBuddy Knowledge Base</a></b>.';
echo '<br><br><b>Getting Started Resources:</b>';
echo '<ol>';
echo '	<li type="disc"><a href="http://ithemes.tv/category/backupbuddy/">Watch the latest Getting Started with BackupBuddy training videos</a></li>';
echo '	<li type="disc"><a href="http://ithemes.com/publishing/getting-started-with-backupbuddy/">Read the Getting Started with BackupBuddy ebook</a></li>';
echo '</ol>';
echo '<b>Configure the following <a href="';
if (is_network_admin()) {
    echo network_admin_url('admin.php');
} else {
    echo admin_url('admin.php');
}
echo '?page=pb_backupbuddy_settings">Settings</a> before use:</b>';
?>
	
	<ol>
		<li type="disc">
Esempio n. 5
0
    // Display WP settings..
    pb_backupbuddy::$ui->list_table($wp_settings, array('action' => pb_backupbuddy::page_url(), 'columns' => array(__('URLs & Paths', 'it-l10n-backupbuddy'), __('Value', 'it-l10n-backupbuddy'), __('Obtained via', 'it-l10n-backupbuddy')), 'css' => 'width: 100%;'));
    pb_backupbuddy::$ui->end_tab();
    // This page can take a bit to run.
    // Runs AFTER server information is displayed so we can view the default limits for the server.
    pb_backupbuddy::set_greedy_script_limits();
    pb_backupbuddy::$ui->start_tab('database');
    require_once 'server_info/database.php';
    pb_backupbuddy::$ui->end_tab();
    pb_backupbuddy::$ui->start_tab('files');
    pb_backupbuddy::$ui->start_metabox(__('Site Size Map', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('XfZy-7DdbS0#67', __('Site Size Map', 'it-l10n-backupbuddy'), false), true, 'width: 100%;');
    require_once 'server_info/site_size.php';
    pb_backupbuddy::$ui->end_metabox();
    pb_backupbuddy::$ui->end_tab();
    pb_backupbuddy::$ui->start_tab('tools');
    pb_backupbuddy::$ui->start_metabox(__('WordPress Scheduled Actions (CRON)', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('7NI7oePvxZg#94', __('WordPress Scheduled Actions (CRON)', 'it-l10n-backupbuddy'), false), true, 'width: 100%;');
    require_once 'server_info/cron.php';
    pb_backupbuddy::$ui->end_metabox();
    echo '<a name="database_replace"></a>';
    pb_backupbuddy::$ui->start_metabox('Advanced: ' . __('Database Mass Text Replacement', 'it-l10n-backupbuddy'), true, 'width: 100%;');
    pb_backupbuddy::load_view('_server_tools-database_replace');
    pb_backupbuddy::$ui->end_metabox();
    pb_backupbuddy::$ui->end_tab();
    echo '<br style="clear: both;"><br><br>';
    pb_backupbuddy::$ui->end_tabs();
    // Handles thickbox auto-resizing. Keep at bottom of page to avoid issues.
    if (!wp_script_is('media-upload')) {
        wp_enqueue_script('media-upload');
        wp_print_scripts('media-upload');
    }
} else {
Esempio n. 6
0
<?php

if (pb_backupbuddy::_GET('backupbuddy_backup') == '') {
    pb_backupbuddy::$ui->title('Multisite: Export Site (EXPERIMENTAL)' . ' ' . pb_backupbuddy::video('_oKGIzzuVzw', __('Multisite export', 'it-l10n-backupbuddy'), false));
    $view_data['backups'] = pb_backupbuddy::$classes['core']->backups_list('default', true);
    // Second param true makes subsite mode only. Only lists backups for this subsite.
    // Load view.
    pb_backupbuddy::load_view('multisite_export', $view_data);
}
// End if.
// Handle MS export through the normal backup mechanism.
$export_only = true;
require_once 'backup.php';
Esempio n. 7
0
						</div>'));
$settings_form->add_setting(array('type' => 'title', 'name' => 'title_archivestoragelimits', 'title' => __('Local Archive Storage Limits', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('PmXLw_tS42Q#45', __('Archive Storage Limits Tutorial', 'it-l10n-backupbuddy'), false)));
$settings_form->add_setting(array('type' => 'text', 'name' => 'archive_limit', 'title' => __('Maximum number of local backups to keep', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 10] - Maximum number of local archived backups to store (remote archive limits are configured per destination on their respective settings pages). Any new backups created after this limit is met will result in your oldest backup(s) being deleted to make room for the newer ones. Changes to this setting take place once a new backup is made. Set to zero (0) for no limit.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-500]', 'css' => 'width: 50px;', 'after' => ' backups'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'archive_limit_size', 'title' => __('Maximum size of all local backups combined', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 350] - Maximum size (in MB) to allow your total local archives to reach (remote archive limits are configured per destination on their respective settings pages). Any new backups created after this limit is met will result in your oldest backup(s) being deleted to make room for the newer ones. Changes to this setting take place once a new backup is made. Set to zero (0) for no limit.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-500]', 'css' => 'width: 50px;', 'after' => ' MB'));
if (is_multisite()) {
    $settings_form->add_setting(array('type' => 'title', 'name' => 'title_multisite', 'title' => __('Multisite', 'it-l10n-backupbuddy')));
    $settings_form->add_setting(array('type' => 'checkbox', 'name' => 'multisite_export', 'title' => __('Allow individual site exports by administrators?', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('_oKGIzzuVzw', __('Multisite export', 'it-l10n-backupbuddy'), false), 'options' => array('unchecked' => '0', 'checked' => '1'), 'tip' => __('[Default: disabled] - When enabled individual sites may be exported by Administrators of the individual site. Network Administrators always see this menu (notes with the words SuperAdmin in parentheses in the menu when only SuperAdmins have access to the feature).', 'it-l10n-backupbuddy'), 'rules' => 'required', 'after' => '<span class="description"> ' . __('Check to extend Site Exporting functionality to subsite Administrators.', 'it-l10n-backupbuddy') . '</span>'));
}
$settings_form->add_setting(array('type' => 'title', 'name' => 'title_mysqltables', 'title' => __('Database Backup', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('PmXLw_tS42Q#62', __('Database backup settings', 'it-l10n-backupbuddy'), false)));
global $wpdb;
$settings_form->add_setting(array('type' => 'radio', 'name' => 'backup_nonwp_tables', 'options' => array('0' => 'This WordPress\' tables (' . $wpdb->prefix . ')', '1' => 'All tables'), 'title' => __('<b>Default</b> database tables to backup', 'it-l10n-backupbuddy'), 'tip' => __('[Default: This WordPress\' tables prefix (' . $wpdb->prefix . ')] - Determines the default set of tables to backup.  If this WordPress\' tables is selected then only tables with the same prefix (for example ' . $wpdb->prefix . ' for this installation) will be backed up by default.  If all are selected then all tables will be backed up by default. Additional inclusions & exclusions may be defined below.', 'it-l10n-backupbuddy'), 'css' => '', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'textarea', 'name' => 'mysqldump_additional_includes', 'title' => __('Additional tables to <b>include</b>', 'it-l10n-backupbuddy') . '<br><span class="description">' . __('One table per line.', 'it-l10n-backupbuddy') . '</span>', 'tip' => __('Additional databases tables to INCLUDE in the backup in addition to the defaults.', 'it-l10n-backupbuddy'), 'rules' => '', 'css' => 'width: 100%;'));
$settings_form->add_setting(array('type' => 'textarea', 'name' => 'mysqldump_additional_excludes', 'title' => __('Additional tables to <b>exclude</b>', 'it-l10n-backupbuddy') . '<br><span class="description">' . __('One table per line.', 'it-l10n-backupbuddy') . '</span>', 'tip' => __('Additional databases tables to EXCLUDE from the backup. Exclusions are exempted after calculating defaults and additional table includes first. These may include non-WordPress and WordPress tables. WARNING: Excluding WordPress tables results in an incomplete backup and could result in failure in the ability to restore or data loss. Use with caution.', 'it-l10n-backupbuddy'), 'rules' => '', 'css' => 'width: 100%;'));
$settings_form->add_setting(array('type' => 'title', 'name' => 'title_exclusions', 'title' => __('File & Directory Exclusions', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('PmXLw_tS42Q#94', __('Backup Directory Excluding Tutorial', 'it-l10n-backupbuddy'), false)));
$settings_form->add_setting(array('type' => 'textarea', 'name' => 'excludes', 'title' => 'Click directories to navigate or click <img src="' . pb_backupbuddy::plugin_url() . '/images/bullet_delete.png" style="vertical-align: -3px;"> to exclude.' . ' ' . pb_backupbuddy::tip(__('Click on a directory name to navigate directories. Click the red minus sign to the right of a directory to place it in the exclusion list. /wp-content/, /wp-content/uploads/, and BackupBuddy backup & temporary directories cannot be excluded. BackupBuddy directories are automatically excluded.', 'it-l10n-backupbuddy'), '', false) . '<br><div id="exlude_dirs" class="jQueryOuterTree"></div>' . '<span class="description">No command line zip / exclusions not working?<br> Try enabling `Alternative zip system` below.</span>' . pb_backupbuddy::tip(__('If you receive notifications that your server is entering compatibility mode or that native command line zip functionality is unavailable then this feature will not be available unless you enable `Alternative zip system` in the troubleshooting options below. This is due to technical limitations of the compatibility mode.  Ask your host to correct the problems causing compatibility mode, move to another server, or enable this option.', 'it-l10n-backupbuddy'), '', false), 'rules' => 'string[0-9000]', 'css' => 'width: 100%; height: 103px;', 'before' => __('Excluded files & directories (relative to WordPress installation directory)', 'it-l10n-backupbuddy') . pb_backupbuddy::tip(__('List paths relative to the WordPress installation directory to be excluded from backups.  You may use the directory selector to the left to easily exclude directories by ctrl+clicking them.  Paths are relative to root, for example: /wp-content/uploads/junk/', 'it-l10n-backupbuddy'), '', false) . '<br>', 'after' => '<span class="description">' . __('One file or directory exclusion per line. This may be manually edited.', 'it-l10n-backupbuddy') . '</span>'));
$settings_form->add_setting(array('type' => 'title', 'name' => 'title_troubleshooting', 'title' => __('Troubleshooting & Compatibility', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('PmXLw_tS42Q#108', __('Troubleshooting options', 'it-l10n-backupbuddy'), false)));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'lock_archives_directory', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Lock archive directory (high security)', 'it-l10n-backupbuddy'), 'tip' => __('[Default: disabled] - When enabled all downloads of archives via the web will be prevented under all circumstances via .htaccess file. If your server permits it, they will only be unlocked temporarily on click to download. If your server does not support this unlocking then you will have to access the archives via the server (such as by FTP).', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Check for enhanced security to block backup downloading.', 'it-l10n-backupbuddy') . ' This may<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result in an inability to download backups while enabled on some servers.</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'delete_archives_pre_backup', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Delete all backup archives prior to backups', 'it-l10n-backupbuddy'), 'tip' => __('[Default: disabled] - When enabled all local backup archives will be deleted prior to each backup. This is useful if in compatibilty mode to prevent backing up existing files.', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Check if using compatibilty mode & exclusions are unavailable.', 'it-l10n-backupbuddy') . '</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'compression', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Enable zip compression', 'it-l10n-backupbuddy'), 'tip' => __('[Default: enabled] - ZIP compression decreases file sizes of stored backups. If you are encountering timeouts due to the script running too long, disabling compression may allow the process to complete faster.', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Uncheck for large sites causing backups to not complete.', 'it-l10n-backupbuddy') . '</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'integrity_check', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Perform integrity check on backup files', 'it-l10n-backupbuddy'), 'tip' => __('[Default: enabled] - By default each backup file is checked for integrity and completion the first time it is viewed on the Backup page.  On some server configurations this may cause memory problems as the integrity checking process is intensive.  If you are experiencing out of memory errors on the Backup file listing, you can uncheck this to disable this feature.', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Uncheck if having problems viewing your backup listing.', 'it-l10n-backupbuddy') . '</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'force_compatibility', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Force compatibility mode zip', 'it-l10n-backupbuddy'), 'tip' => __('[Default: disabled] - (WARNING: This forces the potentially slower mode of zip creation. Only use if absolutely necessary. Checking this box can cause backup failures if it is not needed.) Under normal circumstances compatibility mode is automatically entered as needed without user intervention. However under some server configurations the native backup system is unavailable but is incorrectly reported as functioning by the server.  Forcing compatibility may fix problems in this situation by bypassing the native backup system check entirely.', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Check if absolutely necessary or directed by support.', 'it-l10n-backupbuddy') . '</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'force_mysqldump_compatibility', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Force compatibility mode database dump', 'it-l10n-backupbuddy'), 'tip' => __('[Default: disabled] - WARNING: This forces the potentially slower mode of database dumping. Under normal circumstances mysql dump compatibility mode is automatically entered as needed without user intervention.', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Check if database dumping fails. Pre-v3.x mode.', 'it-l10n-backupbuddy') . '</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'skip_database_dump', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Skip database dump on backup', 'it-l10n-backupbuddy'), 'tip' => __('[Default: disabled] - (WARNING: This prevents BackupBuddy from backing up the database during any kind of backup. This is for troubleshooting / advanced usage only to work around being unable to backup the database.', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Check if unable to backup database for some reason.', 'it-l10n-backupbuddy') . '</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'include_importbuddy', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Include ImportBuddy in full backup archive', 'it-l10n-backupbuddy'), 'tip' => __('[Default: enabled] - When enabled, the importbuddy.php file will be included within the backup archive ZIP file.  This file can be used to restore your site.  Inclusion in the ZIP file itself insures you always have access to it. importbuddy.php is only included in full backups and only when this option is enabled.', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Uncheck to skip adding ImportBuddy to backup archive.', 'it-l10n-backupbuddy') . '</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'alternative_zip', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Alternative zip system (BETA)', 'it-l10n-backupbuddy'), 'tip' => __('[Default: Disabled] Use if directed by support. Allows use of directory exclusion when in PCLZip Compatibility Mode.', 'it-l10n-backupbuddy') . '</span>', 'css' => '', 'after' => '<span class="description"> Check if stuck in compatibiilty (PCLZip) mode for directory exclusions,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;having trouble during ZIP creation, or directed by support.</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'disable_zipmethod_caching', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Disable zip method caching', 'it-l10n-backupbuddy'), 'tip' => __('[Default: Disabled] Use if directed by support. Bypasses caching available zip methods so they are always displayed in logs. When unchecked BackupBuddy will cache command line zip testing for a few minutes so it does not run too often. This means that your backup status log may not always show the test results unless you disable caching.', 'it-l10n-backupbuddy') . '</span>', 'css' => '', 'after' => '<span class="description"> Check if you always want available zip methods to be tested and displayed<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in backup log files. This is useful for support to see if command line zip is failing.</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'ignore_zip_warnings', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Ignore zip archive warnings', 'it-l10n-backupbuddy'), 'tip' => __('[Default: Disabled] When enabled BackupBuddy will ignore non-fatal warnings encountered during the backup process such as inability to read or access a file, symlink problems, etc. These non-fatal warnings will still be logged.', 'it-l10n-backupbuddy') . '</span>', 'css' => '', 'after' => '<span class="description"> Check to ignore non-fatal errors when zipping files.</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'zip_viewer_enabled', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Allow viewing zip contents (BETA)', 'it-l10n-backupbuddy'), 'tip' => __('[Default: Disabled] This feature is currently in beta. If your server supports ZipArchive, when enabled you may select to `View zip contents` from the backup listing on the Backups page. This allows you to view a listing of files within a ZIP archive.', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Check for Beta feature for viewing a list of files in an archive.', 'it-l10n-backupbuddy') . '</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'breakout_tables', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Break out big table dumps into steps (beta)', 'it-l10n-backupbuddy'), 'tip' => __('[Default: Disabled] Currently in beta. Breaks up some commonly known database tables to be backed up separately rather than all at once. Helps with larger databases.', 'it-l10n-backupbuddy') . '</span>', 'css' => '', 'after' => '<span class="description"> Check if you want some commonly known to be large tables dumped in<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;separate steps. This is useful for large databases if dumps are timing out.</span>', 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'select', 'name' => 'backup_mode', 'title' => __('Manual backup mode', 'it-l10n-backupbuddy'), 'options' => array('1' => __('Classic (v1.x)', 'it-l10n-backupbuddy'), '2' => __('Modern (v2.x)', 'it-l10n-backupbuddy')), 'tip' => __('[Default: Modern] - If you are encountering difficulty backing up due to WordPress cron, HTTP Loopbacks, or other features specific to version 2.x you can try classic mode which runs like BackupBuddy v1.x did.', 'it-l10n-backupbuddy'), 'rules' => 'required'));
$settings_form->process();
Esempio n. 8
0
<?php

$settings_form->add_setting(array('type' => 'text', 'name' => 'title', 'title' => __('Destination name', 'it-l10n-backupbuddy'), 'tip' => __('Name of the new destination to create. This is for your convenience only.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[0-45]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'address', 'title' => __('Server address', 'it-l10n-backupbuddy'), 'tip' => __('[Example: ftp.foo.com] - FTP server address.  Do not include http:// or ftp:// or any other prefixes. You may specify an alternate port in the format of ftp_address:ip_address such as yourftp.com:21', 'it-l10n-backupbuddy'), 'rules' => 'required|string[0-45]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'username', 'title' => __('Username', 'it-l10n-backupbuddy'), 'tip' => __('[Example: foo] - Username to use when connecting to the FTP server.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[0-100]'));
$settings_form->add_setting(array('type' => 'password', 'name' => 'password', 'title' => __('Password', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 1234xyz] - Password to use when connecting to the FTP server.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[0-100]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'path', 'title' => __('Remote path (optional)', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('O2fK6W4tokE#43', __('Set a FTP remote directory', 'it-l10n-backupbuddy'), false), 'tip' => __('[Example: /public_html/backups] - Remote path to place uploaded files into on the destination FTP server. Make sure this path is correct; if it does not exist BackupBuddy will attempt to create it. No trailing slash is needed.', 'it-l10n-backupbuddy'), 'rules' => 'string[0-500]'));
if (pb_backupbuddy::_GET('add') != '') {
    // set default only when adding.
    $default_url = rtrim(site_url(), '/\\') . '/';
} else {
    $default_url = '';
}
$settings_form->add_setting(array('type' => 'text', 'name' => 'url', 'title' => __('Migration URL', 'it-l10n-backupbuddy') . '<br><span class="description">Optional, for migrations</span>', 'tip' => __('Enter the URL corresponding to the FTP destination path. This URL must lead to the location where files uploaded to this remote destination would end up. If the destination is in a subdirectory make sure to match it in the corresponding URL.', 'it-l10n-backupbuddy'), 'css' => 'width: 100%;', 'default' => $default_url, 'rules' => 'string[0-100]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'archive_limit', 'title' => __('Archive limit', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 5] - Enter 0 for no limit. This is the maximum number of archives to be stored in this specific destination. If this limit is met the oldest backups will be deleted.', 'it-l10n-backupbuddy'), 'rules' => 'required|int[0-9999999]', 'css' => 'width: 50px;', 'after' => ' backups'));
$settings_form->add_setting(array('type' => 'select', 'name' => 'active_mode', 'title' => __('Transfer mode', 'it-l10n-backupbuddy'), 'options' => array('1' => __('Active (default)', 'it-l10n-backupbuddy'), '0' => __('Passive', 'it-l10n-backupbuddy')), 'tip' => __('[Default: Active] - Determines whether the FTP file transfer happens in FTP active or passive mode.  Some servers or those behind a firewall may need to use PASV, or passive mode as a workaround.', 'it-l10n-backupbuddy'), 'rules' => 'required'));
$settings_form->add_setting(array('type' => 'checkbox', 'name' => 'ftps', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => __('Use FTPs encryption', 'it-l10n-backupbuddy'), 'tip' => __('[Default: disabled] - Select whether this connection is for FTP or FTPs (enabled; FTP over SSL). Note that FTPs is NOT the same as sFTP (FTP over SSH) and is not compatible or equal.', 'it-l10n-backupbuddy'), 'css' => '', 'after' => '<span class="description"> ' . __('Enable high security mode (not supported by most servers)', 'it-l10n-backupbuddy') . '</span>', 'rules' => 'required'));
Esempio n. 9
0
pb_backupbuddy::$ui->start_tab('automated_migration');
echo '<br>';
if (pb_backupbuddy::$options['importbuddy_pass_hash'] == '') {
    // NO HASH SET.
    echo '<b>Set an ImportBuddy password on the <a href="';
    if (is_network_admin()) {
        echo network_admin_url('admin.php');
    } else {
        echo admin_url('admin.php');
    }
    echo '?page=pb_backupbuddy_settings">Settings</a> page before you begin.
		</b>';
}
?>
	Automated migration <?php 
pb_backupbuddy::video('jvL1X9w-CUY', __('Manual migration', 'it-l10n-backupbuddy'), true);
?>
 allows you to quickly <b>migrate full backups to another location</b> such as another server or another directory on this server.
	Your backup archive and the ImportBuddy tool (importbuddy.php) will automatically be transferred to the destination and run.
	This feature cannot be used to restore a site back to the same location over this site.
	<?php 
if (count($backups) > 0) {
    // $backups set in the controller as view data.
    _e('Hover over the backup below you would like to migrate and select "Migrate this backup" to begin the automated migration process. If you encounter difficulty during automated migration then manual migration is suggested & only takes a few more minutes.', 'it-l10n-backupbuddy');
    echo ' ';
    _e('Only full backups are listed below.', 'it-l10n-backupbuddy');
    echo '<br><br>';
} else {
    echo '<br>';
    _e('You must create a backup prior to migrating this site.', 'it-l10n-backupbuddy');
    echo '<br>';
Esempio n. 10
0
*/
global $pb_hide_test, $pb_hide_save;
$pb_hide_test = false;
$default_name = '';
// Form settings.
$settings_form->add_setting(array('type' => 'text', 'name' => 'title', 'title' => __('Destination name', 'it-l10n-backupbuddy'), 'tip' => __('Name of the new destination to create. This is for your convenience only.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-45]', 'default' => $default_name));
$settings_form->add_setting(array('type' => 'text', 'name' => 'accesskey', 'title' => __('AWS access key', 'it-l10n-backupbuddy'), 'tip' => __('[Example: BSEGHGSDEUOXSQOPGSBE] - Log in to your Amazon S3 AWS Account and navigate to Account: Access Credentials: Security Credentials.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-45]'));
if ($mode == 'add') {
    // text mode to show secret key during adding.
    $secretkey_type_mode = 'text';
} else {
    // pass field to hide secret key for editing.
    $secretkey_type_mode = 'password';
}
$settings_form->add_setting(array('type' => $secretkey_type_mode, 'name' => 'secretkey', 'title' => __('AWS secret key', 'it-l10n-backupbuddy'), 'tip' => __('[Example: GHOIDDWE56SDSAZXMOPR] - Log in to your Amazon S3 AWS Account and navigate to Account: Access Credentials: Security Credentials.', 'it-l10n-backupbuddy'), 'after' => ' <a href="https://aws-portal.amazon.com/gp/aws/developer/account/index.html?ie=UTF8&action=access-key" target="_blank" title="' . __('Opens a new tab where you can get your Amazon S3 key', 'it-l10n-backupbuddy') . '"><small>' . __('Get Key', 'it-l10n-backupbuddy') . '</small></a> ' . pb_backupbuddy::video('Tp_VkLoBEpw', __('Find your Amazon S3 key', 'it-l10n-backupbuddy'), false), 'css' => 'width: 212px;', 'rules' => 'required|string[1-45]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'bucket', 'title' => __('Bucket name', 'it-l10n-backupbuddy'), 'tip' => __('[Example: wordpress_backups] - This bucket will be created for you automatically if it does not already exist. Bucket names must be globally unique amongst all Amazon S3 users.', 'it-l10n-backupbuddy'), 'after' => ' ' . pb_backupbuddy::video('njT1ExMgUrk#20', __('Create an Amazon S3 bucket', 'it-l10n-backupbuddy'), false), 'css' => 'width: 255px;', 'rules' => 'required|string[1-45]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'directory', 'title' => __('Directory (optional)', 'it-l10n-backupbuddy'), 'tip' => __('[Example: backupbuddy] - Directory name to place the backup within.', 'it-l10n-backupbuddy'), 'rules' => 'string[0-45]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'db_archive_limit', 'title' => __('Database backup limit', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 5] - Enter 0 for no limit. This is the maximum number of database backup archives to be stored in this specific destination. If this limit is met the oldest backup of this type will be deleted.', 'it-l10n-backupbuddy'), 'rules' => 'required|int[0-9999999]', 'css' => 'width: 50px;', 'after' => ' backups'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'full_archive_limit', 'title' => __('Full backup limit', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 5] - Enter 0 for no limit. This is the maximum number of full backup archives to be stored in this specific destination. If this limit is met the oldest backup of this type will be deleted.', 'it-l10n-backupbuddy'), 'rules' => 'required|int[0-9999999]', 'css' => 'width: 50px;', 'after' => ' backups'));
/*
TODO: Un-aborted failed multipart uploads charge the user so we must take extra care with chunking to S3.
$settings_form->add_setting( array(
	'type'		=>		'text',
	'name'		=>		'max_chunk_size',
	'title'		=>		__( 'Max chunk size', 'it-l10n-backupbuddy' ),
	'tip'		=>		__( '[Example: 5] - Enter 0 for no chunking; minimum of 5 if enabling. This is the maximum file size to send in one whole piece. Files larger than this will be transferred in pieces up to this file size one part at a time. This allows to transfer of larger files than you server may allow by breaking up the send process. Chunked files may be delayed if there is little site traffic to trigger them.', 'it-l10n-backupbuddy' ),
	'rules'		=>		'required|int[0-9999999]',
	'css'		=>		'width: 50px;',
	'after'		=>		' MB (leave at 0 if unsure)',
) );
*/
Esempio n. 11
0
" class="button-secondary delete" />
		</div>
	</div>
	
</form><br>


<?php 
if (isset($_GET['edit']) && $_GET['edit'] != '' && $_GET['type'] == 'email') {
    $options = array_merge(pb_backupbuddy::settings('email_defaults'), (array) pb_backupbuddy::$options['remote_destinations'][$_GET['edit']]);
    echo '<h3>', __('Edit Destination', 'it-l10n-backupbuddy'), '</h3>';
    echo '<form method="post" action="' . admin_url('admin-ajax.php') . '?action=pb_backupbuddy_destination_picker&edit=' . htmlentities($edit_id) . '&callback_data=' . $callback_data . '&type=email#pb_backupbuddy_remote_destinations_tab_email">';
    echo '	<input type="hidden" name="savepoint" value="remote_destinations#' . $_GET['edit'] . '" />';
} else {
    $options = pb_backupbuddy::settings('email_defaults');
    echo '<h3>', __('Add New Destination', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('Tp_VkLoBEpw', __('Add a new Email destination', 'it-l10n-backupbuddy'), false) . '</h3>';
    echo '<span class="description">' . __('Attention: Large files typically cannot be sent by email. If your backups are larger than approximately 10MB you will likely encounter failures in sending. This is a limitation of email and most servers.', 'it-l10n-backupbuddy') . '</span>';
    echo '<form method="post" action="' . admin_url('admin-ajax.php') . '?action=pb_backupbuddy_destination_picker&callback_data=' . $callback_data . '&type=email#pb_backupbuddy_remote_destinations_tab_email">';
}
?>
	<input type="hidden" name="#type" value="email" />
	<input type="hidden" name="required_fields" value="title,email">
	<table class="form-table">
		<tr>
			<td><label for="title"><?php 
_e('Destination Name', 'it-l10n-backupbuddy');
pb_backupbuddy::tip(__('Name of the new destination to create. This is for your convenience only.', 'it-l10n-backupbuddy'));
?>
</label></td>
			<td><input type="text" name="#title" id="title" size="45" maxlength="45" value="<?php 
echo $options['title'];
Esempio n. 12
0
<?php

// Settings to display in a form for a user to configure.
$settings_form->add_setting(array('type' => 'text', 'name' => 'title', 'title' => __('Destination name', 'it-l10n-backupbuddy'), 'tip' => __('Name of the new destination to create. This is for your convenience only.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-45]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'username', 'title' => __('Username', 'it-l10n-backupbuddy'), 'tip' => __('[Example: badger] - Your Rackspace Cloudfiles username.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-100]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'api_key', 'title' => __('API key', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 9032jk09jkdspo9sd32jds9swd039dwe] - Log in to your Rackspace Cloudfiles Account and navigate to Your Account: API Access', 'it-l10n-backupbuddy'), 'after' => ' ' . pb_backupbuddy::video('lfTs_GtAp1I#14s', __('Get your Rackspace Cloudfiles API key', 'it-l10n-backupbuddy'), false), 'css' => 'width: 255px;', 'rules' => 'required|string[1-100]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'container', 'title' => __('Container', 'it-l10n-backupbuddy'), 'tip' => __('[Example: wordpress_backups] - This container will NOT be created for you automatically if it does not already exist. Please create it first.', 'it-l10n-backupbuddy'), 'after' => ' ' . pb_backupbuddy::video('lfTs_GtAp1I#26', __('Create a container from the Rackspace Cloudfiles panel', 'it-l10n-backupbuddy'), false), 'css' => 'width: 255px;', 'rules' => 'string[0-500]'));
$settings_form->add_setting(array('type' => 'text', 'name' => 'archive_limit', 'title' => __('Archive limit', 'it-l10n-backupbuddy'), 'tip' => __('[Example: 5] - Enter 0 for no limit. This is the maximum number of archives to be stored in this specific destination. If this limit is met the oldest backups will be deleted.', 'it-l10n-backupbuddy'), 'rules' => 'required|int[0-9999999]', 'css' => 'width: 50px;', 'after' => ' backups'));
$settings_form->add_setting(array('type' => 'select', 'name' => 'server', 'title' => __('Cloud network', 'it-l10n-backupbuddy'), 'options' => array('https://auth.api.rackspacecloud.com' => 'USA', 'https://lon.auth.api.rackspacecloud.com' => 'UK'), 'rules' => 'required'));
Esempio n. 13
0
<?php

pb_backupbuddy::$ui->start_metabox('BackupBuddy Settings', true, 'width: 100%; max-width: 1200px;');
$settings_form->display_settings('Save Settings');
echo '<br><br>';
pb_backupbuddy::$ui->end_metabox();
pb_backupbuddy::$ui->start_metabox(__('Remote Offsite Storage / Destinations', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('PmXLw_tS42Q#177', __('Remote Offsite Management / Remote Clients Tutorial', 'it-l10n-backupbuddy'), false), true, 'width: 100%; max-width: 1200px;');
echo '<br>';
echo '<a href="' . pb_backupbuddy::ajax_url('destination_picker') . '&#038;TB_iframe=1&#038;width=640&#038;height=600" class="thickbox button secondary-button" style="margin-top: 3px;" title="' . __('Manage Remote Destinations & Archives', 'it-l10n-backupbuddy') . '">' . __('Manage Remote Destinations & Archives', 'it-l10n-backupbuddy') . '</a>';
echo '&nbsp;&nbsp;&nbsp;';
_e('Manage Amazon S3, Rackspace Cloudfiles, Email, and FTP.', 'it-l10n-backupbuddy');
echo '<br><br>';
pb_backupbuddy::$ui->end_metabox();
?>
<script type="text/javascript">
	function pb_backupbuddy_selectdestination( destination_id, destination_title, callback_data ) {
		window.location.href = '<?php 
if (is_network_admin()) {
    echo network_admin_url('admin.php');
} else {
    echo admin_url('admin.php');
}
?>
?page=pb_backupbuddy_backup&custom=remoteclient&destination_id=' + destination_id;
	}
</script>


<?php 
// Handles thickbox auto-resizing. Keep at bottom of page to avoid issues.
if (!wp_script_is('media-upload')) {
Esempio n. 14
0
            echo '<a href="' . $dropbuddy->get_authorize_url() . '" class="button-primary pb_dropbox_authorize" target="_new">' . __('Connect to Dropbox & Authorize (opens new window)', 'it-l10n-backupbuddy') . '</a>';
        }
    }
}
echo '<a href="' . admin_url('admin-ajax.php') . '?action=pb_backupbuddy_destination_picker&callback_data=' . $callback_data . '&t=' . time() . '&dropbox_auth=true#pb_backupbuddy_remote_destinations_tab_dropbox" id="pb_dropbox_authorize" style="display: none;" class="button-primary">' . __("Yes, I've Authorized BackupBuddy with Dropbox", 'it-l10n-backupbuddy') . '</a>';
echo '<br>';
$hide_add = false;
if (isset($_GET['edit']) && $_GET['edit'] != '' && $_GET['type'] == 'dropbox') {
    $options = array_merge(pb_backupbuddy::settings('dropbox_defaults'), (array) pb_backupbuddy::$options['remote_destinations'][$_GET['edit']]);
    echo '<h3>' . __('Edit Destination', 'it-l10n-backupbuddy') . '</h3>';
    echo '<form method="post" action="' . admin_url('admin-ajax.php') . '?action=pb_backupbuddy_destination_picker&edit=' . htmlentities($edit_id) . '&callback_data=' . $callback_data . '&type=dropbox#pb_backupbuddy_remote_destinations_tab_dropbox">';
    echo '	<input type="hidden" name="savepoint" value="remote_destinations#' . $_GET['edit'] . '" />';
} else {
    if ($dropbox_connected === true) {
        $options = pb_backupbuddy::settings('dropbox_defaults');
        echo '<h3>' . __('Add New Destination', 'it-l10n-backupbuddy') . ' ' . pb_backupbuddy::video('', 'Add a new Dropbox destination', false) . '</h3>';
        echo '<form method="post" action="' . admin_url('admin-ajax.php') . '?action=pb_backupbuddy_destination_picker&callback_data=' . $callback_data . '&type=dropbox#pb_backupbuddy_remote_destinations_tab_dropbox">';
    } else {
        $hide_add = true;
    }
}
if ($hide_add !== true) {
    if (!isset($account_info)) {
        $dropbuddy = new pb_backupbuddy_dropbuddy(pb_backupbuddy::$options['remote_destinations'][$_GET['edit']]['token']);
        if ($dropbuddy->authenticate() === true) {
            $dropbox_connected = true;
            $account_info = $dropbuddy->get_account_info();
        } else {
            echo __('Dropbox Access Denied', 'it-l10n-backupbuddy');
        }
    }
Esempio n. 15
0
pb_backupbuddy::tip(__('[Example: 9032jk09jkdspo9sd32jds9swd039dwe] - Log in to your Rackspace Cloudfiles Account and navigate to Your Account: API Access', 'it-l10n-backupbuddy'));
echo ' ';
pb_backupbuddy::video('lfTs_GtAp1I#14s', __('Get your Rackspace Cloudfiles API key', 'it-l10n-backupbuddy'));
?>
</label></td>
			<td><input type="password" name="#api_key" id="api_key" size="45" maxlength="45" value="<?php 
echo $options['api_key'];
?>
" /></td>
		</tr>
		<tr>
			<td><label for="container"><?php 
_e('Container', 'it-l10n-backupbuddy');
pb_backupbuddy::tip(__('[Example: wordpress_backups] - This container will NOT be created for you automatically if it does not already exist. Please create it first.', 'it-l10n-backupbuddy'));
echo ' ';
pb_backupbuddy::video('lfTs_GtAp1I#26', __('Create a container from the Rackspace Cloudfiles panel', 'it-l10n-backupbuddy'));
?>
</label></td>
			<td><input type="text" name="#container" id="container" size="45" maxlength="45" value="<?php 
echo $options['container'];
?>
" /></td>
		</tr>
		<tr>
			<td><label for="archive_limit"><?php 
_e('Archive Limit', 'it-l10n-backupbuddy');
pb_backupbuddy::tip(__('[Example: 5] - Enter 0 for no limit. This is the maximum number of archives to be stored in this specific destination. If this limit is met the oldest backups will be deleted.', 'it-l10n-backupbuddy'));
echo ' ';
?>
</label></td>
			<td><input type="text" name="#archive_limit" id="archive_limit" size="45" maxlength="6" value="<?php 
Esempio n. 16
0
						'<br><div id="exlude_dirs" class="jQueryOuterTree"></div>' .
						'<span class="description">' . __( 'Available if server does not require compatibility mode.', 'it-l10n-backupbuddy' ) . '</span>' .
						pb_backupbuddy::tip( __('If you receive notifications that your server is entering compatibility mode or that native zip functionality is unavailable then this feature will not be available due to technical limitations of the compatibility mode.  Ask your host to correct the problems causing compatibility mode or move to a new server.', 'it-l10n-backupbuddy' ), '', false ),
	//'tip'		=>		,
	'rules'		=>		'string[0-9000]',
	'css'		=>		'width: 100%; height: 103px;',
	'before'	=>		__('Excluded directories (relative to WordPress installation directory)' , 'it-l10n-backupbuddy' ) . pb_backupbuddy::tip( __('List paths relative to the WordPress installation directory to be excluded from backups.  You may use the directory selector to the left to easily exclude directories by ctrl+clicking them.  Paths are relative to root, for example: /wp-content/uploads/junk/', 'it-l10n-backupbuddy' ), '', false ) . '<br>',
	'after'		=>		'<span class="description">' . __( 'One directory exclusion per line. This may be manually edited.', 'it-l10n-backupbuddy' ) . '</span>',
) );



$settings_form->add_setting( array(
	'type'		=>		'title',
	'name'		=>		'title_troubleshooting',
	'title'		=>		__( 'Troubleshooting & Compatibility', 'it-l10n-backupbuddy' ) . ' ' . pb_backupbuddy::video( 'PmXLw_tS42Q#108', __('Troubleshooting options', 'it-l10n-backupbuddy' ), false ),
) );
$settings_form->add_setting( array(
	'type'		=>		'checkbox',
	'name'		=>		'lock_archives_directory',
	'options'	=>		array( 'unchecked' => '0', 'checked' => '1' ),
	'title'		=>		__( 'Lock archive directory (high security)', 'it-l10n-backupbuddy' ),
	'tip'		=>		__( '[Default: disabled] - When enabled all downloads of archives via the web will be prevented under all circumstances via .htaccess file. If your server permits it, they will only be unlocked temporarily on click to download. If your server does not support this unlocking then you will have to access the archives via the server (such as by FTP).', 'it-l10n-backupbuddy' ),
	'css'		=>		'',
	'after'		=>		'<span class="description"> ' . __('Check for enhanced security to block backup downloading.', 'it-l10n-backupbuddy' ) . ' This may<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result in an inability to download backups while enabled on some servers.</span>',
	'rules'		=>		'required',
) );
$settings_form->add_setting( array(
	'type'		=>		'checkbox',
	'name'		=>		'delete_archives_pre_backup',
	'options'	=>		array( 'unchecked' => '0', 'checked' => '1' ),
Esempio n. 17
0
			<td><label for="bucket"><?php 
_e('Bucket Name', 'it-l10n-backupbuddy');
pb_backupbuddy::tip(__('[Example: wordpress_backups] - This bucket will be created for you automatically if it does not already exist. Bucket names must be globally unique amongst all Amazon S3 users.', 'it-l10n-backupbuddy'));
?>
</label></td>
			<td><input type="text" name="#bucket" id="bucket" size="45" maxlength="45" value="<?php 
echo $options['bucket'];
?>
" /></td>
		</tr>
		<tr>
			<td><label for="directory"><?php 
_e('Directory (optional)', 'it-l10n-backupbuddy');
pb_backupbuddy::tip(__('[Example: backupbuddy] - Directory name to place the backup within.', 'it-l10n-backupbuddy'));
echo ' ';
pb_backupbuddy::video('njT1ExMgUrk#20', __('Create an Amazon S3 bucket', 'it-l10n-backupbuddy'));
?>
</label></td>
			<td><input type="text" name="#directory" id="directory" size="45" maxlength="250" value="<?php 
echo $options['directory'];
?>
" /></td>
		</tr>
		<tr>
			<td><label for="archive_limit"><?php 
_e('Archive Limit', 'it-l10n-backupbuddy');
pb_backupbuddy::tip(__('[Example: 5] - Enter 0 for no limit. This is the maximum number of archives to be stored in this specific destination. If this limit is met the oldest backups will be deleted.', 'it-l10n-backupbuddy'));
echo ' ';
?>
</label></td>
			<td><input type="text" name="#archive_limit" id="archive_limit" size="45" maxlength="6" value="<?php 
Esempio n. 18
0
<?php

pb_backupbuddy::$ui->title('Backup Site' . ' ' . pb_backupbuddy::video('9ZHWGjBr84s', __('Backups page tutorial', 'it-l10n-backupbuddy'), false));
/*
wp_enqueue_style('dashboard');
wp_print_styles('dashboard');
wp_enqueue_script('dashboard');
wp_print_scripts('dashboard');
*/
wp_enqueue_script('thickbox');
wp_print_scripts('thickbox');
wp_print_styles('thickbox');
?>
<script type="text/javascript">
	jQuery(document).ready(function() {
		
		jQuery( '.pb_backupbuddy_hoveraction_send' ).click( function(e) {
			tb_show( 'BackupBuddy', '<?php 
echo pb_backupbuddy::ajax_url('destination_picker');
?>
&callback_data=' + jQuery(this).attr('rel') + '&sending=1&TB_iframe=1&width=640&height=455', null );
			return false;
		});
		
		jQuery( '.pb_backupbuddy_hoveraction_hash' ).click( function(e) {
			tb_show( 'BackupBuddy', '<?php 
echo pb_backupbuddy::ajax_url('hash');
?>
&callback_data=' + jQuery(this).attr('rel') + '&TB_iframe=1&width=640&height=455', null );
			return false;
		});
Esempio n. 19
0
	
	Manually migrate or restore your site with the importbuddy.php script.
	This is a step-by-step process with instructions along the way.
	Keep a copy of this script with your backups for restoring sites directly from backups.
	For a more automated migration process you may select a backup from the "Automated Migration"
	section below.
	<ol>
		<li>Download the <a href="#" class="pb_backupbuddy_get_importbuddy">importbuddy.php script</a>.</li>
		<li>Upload importbuddy.php & backup ZIP file to the destination site location.</li>
		<li>Navigate to the uploaded importbuddy.php in your web browser.</li>
		<li>Follow the on-screen directions until the restore / migration is complete.</li>
	</ol>
	<br class="clearfix">
	<?php 
pb_backupbuddy::$ui->end_metabox();
pb_backupbuddy::$ui->start_metabox('Automated Migration' . ' ' . pb_backupbuddy::video('uSBvBSfSjWM', __('Automated migration', 'it-l10n-backupbuddy'), false), true, 'width: 100%;');
?>
	Automated migration allows you to quickly <b>migrate full backups to another location</b> such as another server or another directory on this server.
	Your backup archive and the ImportBuddy script will automatically be transferred to the destination and run.
	This feature cannot be used to restore a site back to the same location over this site.
	<?php 
if (count($backups) > 0) {
    // $backups set in the controller as view data.
    _e('Hover over the backup below you would like to migrate and select "Migrate this backup" to begin the automated migration process.', 'it-l10n-backupbuddy');
    echo '<br><br>';
} else {
    echo '<br>';
    _e('You must create a backup prior to migrating this site.', 'it-l10n-backupbuddy');
    echo '<br>';
}
$listing_mode = 'migrate';
Esempio n. 20
0
		});
	});
</script>




<?php 
pb_backupbuddy::$ui->title(__('Scheduled Backups', 'it-l10n-backupbuddy'));
/*
if ( count( pb_backupbuddy::$options['schedules'] ) == 0 ) {
	pb_backupbuddy::disalert( 'no_schedules_reminder', '<span class="pb_label">Tip</span> Create your first schedule below to keep your site backed up automatically.', 'it-l10n-backupbuddy' );
}
*/
pb_backupbuddy::disalert('schedule_limit_reminder', '<span class="pb_label">Tip</span> ' . __('Keep old backups from piling up by configuring "Local Archive Storage Limits" on the Settings page.', 'it-l10n-backupbuddy'));
pb_backupbuddy::$ui->start_metabox($mode_title . ' ' . pb_backupbuddy::video('MGiUdYb68ps', __('Scheduling', 'it-l10n-backupbuddy'), false), true, 'width: 100%;');
$schedule_form->display_settings('+ ' . $mode_title);
echo '<br><br>';
pb_backupbuddy::$ui->end_metabox();
if (count($schedules) == 0) {
    //echo '<h4>' . __( 'No schedules have been created yet.', 'it-l10n-backupbuddy' ) . '</h4>';
} else {
    pb_backupbuddy::$ui->list_table($schedules, array('action' => pb_backupbuddy::page_url(), 'columns' => array(__('Title', 'it-l10n-backupbuddy'), __('Profile', 'it-l10n-backupbuddy'), __('Interval', 'it-l10n-backupbuddy'), __('Destinations', 'it-l10n-backupbuddy'), __('Run Time', 'it-l10n-backupbuddy') . pb_backupbuddy::tip(__('First run indicates the first time thie schedule ran or will run.  Last run time is the last time that this scheduled backup started. This does not imply that the backup completed, only that it began at this time. The last run time is reset if the schedule is edited. Next run indicates when it is next scheduled to run. If there is no server activity during this time the schedule will be delayed.', 'it-l10n-backupbuddy'), '', false), __('Status', 'it-l10n-backupbuddy')), 'hover_actions' => array('edit' => 'Edit Schedule', 'run' => 'Run Now'), 'bulk_actions' => array('delete_schedule' => 'Delete'), 'css' => 'width: 100%;'));
}
echo '<br>';
?>




<br /><br />
Esempio n. 21
0
<?php

pb_backupbuddy::$classes['core']->versions_confirm();
pb_backupbuddy::load_script('jquery');
echo '<div style="margin-top: 40px;">';
pb_backupbuddy::disalert('getting_started_hover_tip', '<span class="pb_label">Tip</span> ' . sprintf(__('Throughout the plugin you may hover your mouse over question marks %1$s for tips or click play icons %2$s for video tutorials.', 'it-l10n-backupbuddy'), pb_backupbuddy::tip(__('This tip provides additional help.', 'it-l10n-backupbuddy'), '', false), pb_backupbuddy::video('WQrOCvOYof4', __('Introduction to BackupBuddy', 'it-l10n-backupbuddy'), false)));
//pb_backupbuddy::disalert( 'getting_started_tabs_tip', '<span class="pb_label">Tip</span> Select the from the tabs above for details & tutorials covering BackupBuddy\'s primary features.' );
pb_backupbuddy::$ui->start_tabs('getting_started', array(array('title' => __('Overview', 'it-l10n-backupbuddy'), 'slug' => 'overview'), array('title' => __('Backup', 'it-l10n-backupbuddy'), 'slug' => 'backup'), array('title' => __('Migrate / Restore', 'it-l10n-backupbuddy'), 'slug' => 'restore_migrate')), 'width: 100%;');
pb_backupbuddy::$ui->start_tab('overview');
//echo '<p><i>"' . pb_backupbuddy::settings( 'description' ) . '"</i></p>';
/*
echo '<p>';
echo '<span class="pb_label">Tip</span> <b>Select the from the tabs above for details & tutorials covering BackupBuddy\'s primary features.</b>';
echo '</p>';
*/
//echo '<p>';
echo '<h2>Quick Start</h2>';
//echo '</p>';
?>
		<ol>
			<li type="disc">Receive error notifications by verifying your "Error Notification Email" on the <a href="?page=pb_backupbuddy_settings">Settings</a> page.</li>
			<li type="disc">Keep backups from piling up with "Local Archive Storage Limits" on the <a href="?page=pb_backupbuddy_settings">Settings</a> page.</li>
			<li type="disc">Keep your site backed up regularly by creating schedules on the <a href="?page=pb_backupbuddy_scheduling">Scheduling</a> page.</li>
			<li type="disc">Read the tabbed sections above or tutorials & videos linked in the "Tutorials & Support" box to the right for more in-depth information.</li>
		</ol>
		
		<h2>Main Features</h2><br>
		Select from the tabs above for information & <b>tutorials</b> about BackupBuddy's main features. The "Tutorials & Support" box to the upper right contains valuable resources for learning how to use BackupBuddy to its fullest potential as well as tips and troubleshooting information.
		<br><br>
		
		<h2>Additional Features</h2>
Esempio n. 22
0
<?php
pb_backupbuddy::$classes['core']->versions_confirm();

pb_backupbuddy::load_script( 'jquery' );

?>



<?php pb_backupbuddy::$ui->start_metabox( 'Welcome', true, 'width: 70%;' ); ?>
	<?php
	_e("BackupBuddy is the all-in-one solution for backups, restoration, and migration.  The single backup ZIP file created can be used with the restore & migration utility to quickly and easily restore your site on the same server or even migrate to a new host with different settings.  Whether you're an end user or a developer, this plugin will bring you peace of mind and added safety in the event of data loss.  Our goal is keeping the backup, restoration, and migration processes easy, fast, and reliable.", 'it-l10n-backupbuddy' );
	echo sprintf(
				__('Throughout the plugin you may hover your mouse over question marks %1$s for tips or click play icons %2$s for video tutorials.', 'it-l10n-backupbuddy' ), 
				pb_backupbuddy::tip( __('This tip provides additional help.', 'it-l10n-backupbuddy' ), '', false ), //the flag false returns a string
				pb_backupbuddy::video( 'WQrOCvOYof4', __('Introduction to BackupBuddy', 'it-l10n-backupbuddy' ), false )
			);
	echo ' Tutorials, walkthroughs, videos, and troubleshooting tips are available in the <b><a href="http://ithemes.com/codex/page/BackupBuddy" style="text-decoration: none;">PluginBuddy Knowledge Base</a></b>.';
	echo '<br><br><b>Getting Started Resources:</b>';
	echo '<ol>';
	echo '	<li type="disc"><a href="http://ithemes.tv/category/backupbuddy/">Watch the latest Getting Started with BackupBuddy training videos</a></li>';
	echo '	<li type="disc"><a href="http://ithemes.com/publishing/getting-started-with-backupbuddy/">Read the Getting Started with BackupBuddy ebook</a></li>';
	echo '</ol>';
	
	echo '<b>Configure the following <a href="';
	if ( is_network_admin() ) {
		echo network_admin_url( 'admin.php' );
	} else {
		echo admin_url( 'admin.php' );
	}
	echo '?page=pb_backupbuddy_settings">Settings</a> before use:</b>';