Created
July 11, 2016 12:13
-
-
Save jazio/825997543f45ed55d6cffdc46feace02 to your computer and use it in GitHub Desktop.
Efficiently save database dumps with Drush
This file contains hidden or 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
dump_dir="${HOME}/your/tmp/dumps" && project_name="SITE_NAME" && environment="production" | |
drush sql-dump > ${dump_dir}/${project_name}-${environment}.$(date '+%F-%H%M%S').sql | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment