Last active
May 5, 2016 06:32
-
-
Save skatsuta/17a311fc708f8366d618 to your computer and use it in GitHub Desktop.
mysqldump command
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 | |
DATABASE="$1" | |
TABLE="$2" | |
mysqldump | |
--user=username \ | |
--password=password \ | |
--complete-insert \ | |
--quick \ | |
--no-create-db \ | |
--verbose \ | |
"${DATABASE}" "${TABLE}" > "dump_${DATABASE}_${TABLE}_`date +%Y-%m-%d`.sql" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment