Created
September 6, 2015 07:28
-
-
Save typomedia/6d5de5130683dc8aab19 to your computer and use it in GitHub Desktop.
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 | |
# Copyright 2013 Typomedia Foundation. All rights reserved. | |
# Released under GPL version 3. | |
# | |
# MySQL Dump Script v1.0 | |
DBHOST=localhost | |
DBUSER=root | |
PASSWORD=****** | |
DATE=`date '+%Y%m%d'` | |
mysqldump --host=$DBHOST --user=$DBUSER --password=$PASSWORD \ | |
your-db-name > /var/backups/mysql/${DATE}_your-db-name.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment