Skip to content

Instantly share code, notes, and snippets.

@timodwhit
Created October 1, 2015 14:40
Show Gist options
  • Save timodwhit/4cedf84f8c436572c276 to your computer and use it in GitHub Desktop.
Save timodwhit/4cedf84f8c436572c276 to your computer and use it in GitHub Desktop.
Drush command for vampd database backup
<?php
$options['shell-aliases']['vdb'] = 'sql-dump --gzip --result-file --skip-tables-key=common';
$options['structure-tables'] = array(
'common' => array(
'advagg_aggregates',
'advagg_aggregates_hashes',
'advagg_aggregates_versions',
'advagg_files',
'cache',
'cache_admin_menu',
'cache_advagg_aggregates',
'cache_advagg_info',
'cache_apachesolr',
'cache_block',
'cache_bootstrap',
'cache_features',
'cache_field',
'cache_filter',
'cache_form',
'cache_image',
'cache_libraries',
'cache_menu',
'cache_metatag',
'cache_page',
'cache_path',
'cache_rules',
'cache_search_api_solr',
'cache_token',
'cache_update',
'cache_views',
'cache_views_data',
'history',
'watchdog',
),
);
$options['structure-tables-key'] = 'common';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment