复制代码 代码如下:
@echo off
echo 开始备份本站重要数据!
xcopy "D:\web\YUNSAFE.COM\WWWROOT\*.*" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\" /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\api" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\api\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\archiver" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\archiver\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\config" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\config\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\data" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\data\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\install" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\install\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\Rewrite" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\Rewrite\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\source" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\source\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\static" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\static\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\template" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\template\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\uc_client" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\uc_client\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\uc_server" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\uc_server\" /e /i /q
echo 本站重要数据备份完成!
echo 开始备份本站MYSQL数据库!
xcopy "D:\Program Files\MySQL\MySQL Server 5.1\Data\yafan" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\MYSQLData\YAFAN\" /e /i /q
echo 数据库备份完成!
echo 开始打包所有数据!
cd D:\web\YUNSAFE.COM\BAK
"C:\Program Files\WinRAR\Rar.exe" a -k -r -s -m1 -inul "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%.rar" BakUp%date:~0,10%
echo 打包所有数据完成!
exit
@echo off
echo 开始备份本站重要数据!
xcopy "D:\web\YUNSAFE.COM\WWWROOT\*.*" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\" /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\api" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\api\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\archiver" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\archiver\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\config" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\config\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\data" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\data\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\install" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\install\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\Rewrite" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\Rewrite\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\source" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\source\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\static" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\static\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\template" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\template\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\uc_client" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\uc_client\" /e /i /q
xcopy "D:\web\YUNSAFE.COM\WWWROOT\uc_server" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\WWWROOT\uc_server\" /e /i /q
echo 本站重要数据备份完成!
echo 开始备份本站MYSQL数据库!
xcopy "D:\Program Files\MySQL\MySQL Server 5.1\Data\yafan" "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%\MYSQLData\YAFAN\" /e /i /q
echo 数据库备份完成!
echo 开始打包所有数据!
cd D:\web\YUNSAFE.COM\BAK
"C:\Program Files\WinRAR\Rar.exe" a -k -r -s -m1 -inul "D:\web\YUNSAFE.COM\BAK\BakUp%date:~0,10%.rar" BakUp%date:~0,10%
echo 打包所有数据完成!
exit
标签:
自动备份
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
内蒙古资源网 Copyright www.nmgbbs.com
暂无“discuzX2全站自动备份批处理”评论...