You are here

function _backup_migrate_default_structure_only_tables in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 5.2 includes/db.inc \_backup_migrate_default_structure_only_tables()
  2. 5 backup_migrate.module \_backup_migrate_default_structure_only_tables()
  3. 6 backup_migrate.module \_backup_migrate_default_structure_only_tables()

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)

File

includes/db.inc, line 96
General database dump/restore code for Backup and Migrate.

Code

function _backup_migrate_default_structure_only_tables() {
  $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',
  );
  $alltables = array_merge($core, module_invoke_all('devel_caches'));
  return $alltables;
}