Posted By

ihadgraft on 12/13/12


Tagged

drupal6 drupal7


Versions (?)

Dump Drupal database excluding data from temporary storage tables


 / Published in: Bash
 

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

  1. mysqldump -u USER -p DB_NAME \
  2. | grep -v '^INSERT INTO `cache\(_[_a-z]\+\)\?`' \
  3. | grep -v '^INSERT INTO `search_index`' \
  4. | grep -v '^INSERT INTO `menu_router`'

Report this snippet  

You need to login to post a comment.