Skip to content

Instantly share code, notes, and snippets.

@QuentinFonteneau
Last active June 13, 2019 07:13
Show Gist options
  • Save QuentinFonteneau/fe41523441d69aab680e4199ba08f62c to your computer and use it in GitHub Desktop.
Save QuentinFonteneau/fe41523441d69aab680e4199ba08f62c to your computer and use it in GitHub Desktop.
Drush export/import database
drush sql-dump --gzip --result-file=../backup/dump_db_$(date +%Y%m%d-%H%M%S).sql.gz
gunzip -c dump.sql.gz | drush sqlc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment