You are here

function backup_migrate_destination_db::backup_settings_default in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/destinations.db.inc \backup_migrate_destination_db::backup_settings_default()
  2. 6.2 includes/destinations.db.inc \backup_migrate_destination_db::backup_settings_default()
  3. 7.3 includes/destinations.db.inc \backup_migrate_destination_db::backup_settings_default()
  4. 7.2 includes/destinations.db.inc \backup_migrate_destination_db::backup_settings_default()

Get the form for the settings for this destination.

Return the default tables whose data can be ignored. These tables mostly contain info which can be easily reproducted (such as cache or search index) but also tables which can become quite bloated but are not necessarily extremely important to back up or migrate during development (such ass access log and watchdog)

Overrides backup_migrate_destination::backup_settings_default

File

includes/destinations.db.inc, line 75
Functions to handle the direct to database destination.

Class

backup_migrate_destination_db
A destination type for saving to a database server.

Code

function backup_settings_default() {
  $core = array(
    'cache',
    'cache_admin_menu',
    'cache_browscap',
    'cache_content',
    'cache_filter',
    'cache_calendar_ical',
    'cache_location',
    'cache_menu',
    'cache_page',
    'cache_reptag',
    'cache_views',
    'cache_views_data',
    'cache_block',
    'cache_update',
    'cache_form',
    'cache_bootstrap',
    'cache_field',
    'cache_image',
    'cache_path',
    'sessions',
    'search_dataset',
    'search_index',
    'search_keywords_log',
    'search_total',
    'watchdog',
    'accesslog',
    'devel_queries',
    'devel_times',
  );
  $nodata_tables = array_merge($core, \Drupal::moduleHandler()
    ->invokeAll('devel_caches'));
  return array(
    'nodata_tables' => $nodata_tables,
    'exclude_tables' => array(),
    'utils_lock_tables' => FALSE,
  );
}