Created
November 2, 2017 21:31
-
-
Save asaph/28154c35bbe65fff04daaf331ea8da83 to your computer and use it in GitHub Desktop.
Back Up Local MySQL Database
This file contains 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
#!/bin/sh | |
mysqldump -h 127.0.0.1 -u username -p --single-transaction databasename | gzip > /tmp/databasename.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment