Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- DBUSER="root"
- DBPASS=""
- DB="wordpress_bio"
- SCHEMAPATH="__sql"
- if [ ! -d "$SCHEMAPATH" ]; then
- mkdir $SCHEMAPATH
- fi
- C:/xampp/mysql/bin/mysqldump -u $DBUSER --password=$DBPASS $DB > $SCHEMAPATH/$DB.sql
- git add $SCHEMAPATH/$DB.sql
- echo 'Exported and added Database to commit'
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement