标签:com http style div code c size t tar sp color
@echo off
mysqldump --add-drop-database
--add-drop-table -u root -p123456 dbname >
d:\db_backup\%date:~0,4%-%date:~5,2%-%date:~8,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_dbname.sql
#!/bin/sh
cd /usr/bin
DATE=`date
+%Y-%m-%d`
#
备份dbname数据库
/usr/local/mysql/bin/mysqldump -uusername -ppassword
dbname >/wwwroot/backup/$DATE.sql
cd /wwwroot/backup
#tar -zcvf
$DATE.tar.gz $DATE.sql
zip -rP
compress_password dbname_$DATE.zip $DATE.sql
rm -f
$DATE.sql
标签:com http style div code c size t tar sp color
原文地址:http://www.cnblogs.com/daojoo/p/3698935.html