Created
December 30, 2014 08:57
-
-
Save mjvdende/bb9bb42b2cd3404ce9f6 to your computer and use it in GitHub Desktop.
commit db backup to svn
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/bash | |
USERNAME=username | |
PASSWORD=password | |
SVN_REMOTE="svn | |
--no-auth-cache | |
--username=$USERNAME | |
--password=$PASSWORD" | |
mysqldump -uphp -h [HOST] | |
[TABLE] > [FILE].sql.gz | |
$SVN_REMOTE commit -m "message" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment