mysql自动备份和压缩 set Today=�te:~0,4%�te:~5,2%�te:~8,2% set filename=mzo-%Today% set source=D:thwlbak- sql%文件名%.sql forfiles /p "D:thwlbak-sql"? /m *.7z /d -15 /c "cmd /c del @path" mysqldump -uroot -pszk^^^^* -R MZO %sourc
mysql 自动备份和压缩设置今天=�te:~0,4%�te:~5,2%�te:~8,2%
设置文件名=mzo-%Today%
设置源=D:thwlbak -sql%文件名%.sql
forfiles /p "D:thwlbak-sql"? /m *.7z /d -15 /c "cmd /c del @path"
mysqldump -uroot -pszk^^^&^* -R MZO > %source%
HaoZipC a -t7z %filename%.7z %filename%.sql
del %filename%.sql