Skip to content

Instantly share code, notes, and snippets.

@JosielFaleiros
Created September 16, 2018 19:35
Show Gist options
  • Save JosielFaleiros/650a8ab5d4825201ebb6d5f7ce9c5211 to your computer and use it in GitHub Desktop.
Save JosielFaleiros/650a8ab5d4825201ebb6d5f7ce9c5211 to your computer and use it in GitHub Desktop.
export_db_with_name_datetime.sql
mysqldump -u root -p dbname > ~/"dbname_$(date +"%Y_%m_%d_%I_%M_%p"
).sql"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment