Home > Database > Mysql Tutorial > mysql自动备份跟压缩

mysql自动备份跟压缩

WBOY
Release: 2016-06-07 16:25:30
Original
1298 people have browsed it

mysql自动备份和压缩 set Today=%date:~0,4%%date:~5,2%%date:~8,2% set filename=mzo-%Today% set source=D:\thwl\bak-sql\%filename%.sql forfiles /p "D:\thwl\bak-sql"? /m *.7z /d -15 /c "cmd /c del @path" mysqldump -uroot -pszk^^^^* -R MZO %sourc

mysql自动备份和压缩

set Today=%date:~0,4%%date:~5,2%%date:~8,2%
set filename=mzo-%Today%
set source=D:\thwl\bak-sql\%filename%.sql

forfiles /p "D:\thwl\bak-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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template