1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
@echo off
robocopy G:\APUE G:\backup-test /E /R:5 /W:60 /LOG+:G:\backup-test\copyLog.txt
set "Ymd=%date:~0,4%%date:~5,2%%date:~8,2%0%time:~1,1%%time:~3,2%%time:~6,2%"
E:\Software_work\xampp\mysql\bin\mysqldump --opt --single-transaction=TRUE --user=root --password=root --host=127.0.0.1 --protocol=tcp --port=3306 --default-character-set=utf8 --single-transaction=TRUE --routines --events "bupt" > "G:\bupt_backup\backup_%Ymd%.sql" rem @echo on rem ******MySQL backup end********
|