Skip to content

Instantly share code, notes, and snippets.

@ph00lt0
Last active April 16, 2022 17:31
Show Gist options
  • Save ph00lt0/837cfcde4932e4b7173d8ccb4a1cabf9 to your computer and use it in GitHub Desktop.
Save ph00lt0/837cfcde4932e4b7173d8ccb4a1cabf9 to your computer and use it in GitHub Desktop.
read -p "Username: " user
read -p "Database: " database
date=`date +%m-%d-%Y`
mysql -u $user -p $database > ${database}-${date}.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment