Skip to content

Instantly share code, notes, and snippets.

@nkgokul
Last active March 29, 2019 13:36
Show Gist options
  • Save nkgokul/ef05c48d78be90550953 to your computer and use it in GitHub Desktop.
Save nkgokul/ef05c48d78be90550953 to your computer and use it in GitHub Desktop.
Drush SQL dump with timestamp
drush sql-dump > project_dev1.$(date +%Y%m%d\-%H%M).sql
drush sql-dump > ${PWD##*/}-$(date +%Y-%m-%d\-%H-%M).sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment