You are here

function backup_migrate_source_db::backup_settings_default in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/sources.db.inc \backup_migrate_source_db::backup_settings_default()
  2. 7.3 includes/sources.db.inc \backup_migrate_source_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_location::backup_settings_default

File

includes/sources.db.inc, line 71
Functions to handle the direct to database destination.

Class

backup_migrate_source_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, module_invoke_all('devel_caches'));
  return array(
    'nodata_tables' => $nodata_tables,
    'exclude_tables' => array(),
    'utils_lock_tables' => FALSE,
  );
}