使用bat脚本备份mysql数据库
wiphone 项目的例子:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | @echo off set var="%date:~,4%%date:~5,2%%date:~8,2%" echo %var% C:\server\xampp-win32-1.8.1-VC9\xampp\mysql\bin\mysqldump --extended-insert=false --hex-blob=true --opt -u wiphone --password=your-pass --port=3306 wiphone > .\%var% rem d:\BitNami\redmine-2.1.4-0\mysql\bin\mysqld -nt rem if installed winrar, zip it rem winrar a -df -agYYYYMMDD-HHMMSS .zip %var% rem use 7-zip %~dp07za a -tzip %var%.zip %var% del %var% rem echo . & pause |