Last active
April 16, 2022 17:31
-
-
Save ph00lt0/837cfcde4932e4b7173d8ccb4a1cabf9 to your computer and use it in GitHub Desktop.
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
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