Last active
December 29, 2017 21:29
-
-
Save stucka/e1fb9fc92ef7048cbb2de464646a4596 to your computer and use it in GitHub Desktop.
MySQL backup script with file naming
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
set datestr=%date:~10,4%-%date:~4,2%-%date:~7,2% | |
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqldump" --add-drop-database --all-databases --user=root -p >d:\mysqldump-stucka%datestr%.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment