Skip to content

Instantly share code, notes, and snippets.

@keopx
Created July 16, 2015 18:36
Show Gist options
  • Save keopx/c7ecd3b70d9672564f5a to your computer and use it in GitHub Desktop.
Save keopx/c7ecd3b70d9672564f5a to your computer and use it in GitHub Desktop.
Import gzipped sql using Drush
gunzip -c database.sql.gz | drush sqlc
@jfcartier
Copy link

jfcartier commented Aug 7, 2021

zcat seems to be the right solution.
I used to use this method :
gunzip < /path/to/file.sql.gz | drush sql-cli --database=default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment