标签:sp bs as sql mysql nbsp c ip user
[root@AY130828161048465847Z ~]# vi mysqlbak.sh
#!/bin/bash
USERNAME=root
PASSWORD=mysql
DBNAME=test
DATE=`date +%Y%m%d`
MYSQLDUMP=/usr/bin/mysqldump
BACKDIR=/data/bak
${MYSQLDUMP} -u${USERNAME} -p${PASSWORD} ${DBNAME} | gzip > ${BACKDIR}/${DBNAME}.${DATE}.sql.gz
标签:sp bs as sql mysql nbsp c ip user
原文地址:http://www.cnblogs.com/hllnj2008/p/4075369.html