Skip to content

Instantly share code, notes, and snippets.

@Wylbur
Created May 30, 2017 19:22
Show Gist options
  • Save Wylbur/75d3f41fd7f6e41623bd50eb83fa0627 to your computer and use it in GitHub Desktop.
Save Wylbur/75d3f41fd7f6e41623bd50eb83fa0627 to your computer and use it in GitHub Desktop.
Drush 8 backup with sql-dump
//This will create a compressed database backup with empty cache and sessions tables.
drush -v sql-dump --gzip --result-file=/something --structure-tables-list=cache,cache_*,sessions > file.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment