Skip to content

Instantly share code, notes, and snippets.

@zerolab
Last active February 8, 2017 16:34
Show Gist options
  • Save zerolab/9b1f2fd39240a3ea65e2913eed53406e to your computer and use it in GitHub Desktop.
Save zerolab/9b1f2fd39240a3ea65e2913eed53406e to your computer and use it in GitHub Desktop.
Drush database import progress
$ brew install pv

-OR-

$ apt-get install pv

Then:

$ pv gunzip -dc database.sql.gz | drush sqlc

Bonus

If you have the dialog app, you can pipe everything to it:

$ pv gunzip -dc database.sql.gz | drush sqlc | dialog --gauge "Importing..." 7 70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment