Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (5 sloc) 213 Bytes
#!/bin/sh
export d=`date +'%Y-%m-%d'`
mkdir -p /opt/backup/
mysqldump --add-drop-table --allow-keywords -q -a -c --single-transaction -u root --password= databasename > /opt/backup/$d.sql
gzip /opt/backup/$d.sql