《Mysql实例mysql自动备份与压缩代码》要点:
本文介绍了Mysql实例mysql自动备份与压缩代码,希望对您有用。如果有疑问,可以联系我们。
导读:在windows中mysql自动备份与自动压缩的批处理脚本:
set Today=%date:~0,4%%date:~5,2%%date:~8,2%set filename=mzo-%Today%set source=D...
在windows中mysql自动备份与自动压缩的批处理脚本:
MYSQL学习
set Today=%date:~0,4%%date:~5,2%%date:~8,2%
set filename=mzo-%Today%
set source=D:thwlbak-sql%filename%.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
转载请注明本页网址:
http://www.vephp.com/jiaocheng/6475.html