Return to Snippet

Revision: 61438
at December 13, 2012 00:53 by ihadgraft


Initial Code
mysqldump -u USER -p DB_NAME \
  | grep -v '^INSERT INTO `cache\(_[_a-z]\+\)\?`' \
  | grep -v '^INSERT INTO `search_index`' \
  | grep -v '^INSERT INTO `menu_router`'

Initial URL


Initial Description
This dumps a database and excludes data from the cache tables, search index and menu router.

Initial Title
Dump Drupal database excluding data from temporary storage tables

Initial Tags


Initial Language
Bash