There are many ways to back up MySQL, but not all MySQL can run under Linux. Windows Backup is also unavoidable. The following small compilation teaches you to use Bat script to back up the MySQL method. Next, learn to use Bat script backup MySQL Method!
Rem
REM C:Program Fileswinrar need to be placed under path to invoke the RAR CLI tool
Rem
REM jumps to the working directory
F:
CD F:dbbak
REM Settings variable: backup filename
SET Bak_file=my_dbbak_%date:~0,-4%.sql
REM Settings variable: Log file name
SET Log_file=my_dbbak.log
REM Record Log
echo "%date%"%log_file%
REM Starts doing backup
Mysqldump--default-character-set=utf8-hlocalhost-uroot-r--triggers--single-transaction-b mydb >%BAK_FILE%
REM Compressed backup files
RAR a%bak_file%.rar%bak_file%
REM Delete source files
del/f%bak_file%
echo "%date%"%log_file%
echo "" "%log_file%
After you deploy the script, the rest is to add the Scheduled Tasks item to the system.