Created
November 2, 2017 21:32
-
-
Save asaph/503fdc4c023679119e0b9e99f561b479 to your computer and use it in GitHub Desktop.
Back Up Remote 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 host -u username -p --compress --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