Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.