Last active
November 14, 2023 14:09
-
-
Save skounis/407e32b4825bad6adccd364c08eb7f0b to your computer and use it in GitHub Desktop.
Dump Drupal DB without cache tables with drush
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Without cache | |
drush sql-dump --structure-tables-list=cache,cache_* > dumpfile.sql | |
# Without cache, search index and watchdog | |
drush sql-dump --structure-tables-list=cache,cache_*,search_index,watchdog > dumpfile.sql | |
# Without table spaces | |
drush sql-dump --structure-tables-list=cache,cache_*,search_index,watchdog --extra-dump="--no-tablespaces --column-statistics=0 --set-gtid-purged=OFF" > db.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment