Dump Drupal database excluding data from temporary storage tables


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.