当前位置:网站首页>Encrypted compressed backup bat script
Encrypted compressed backup bat script
2022-04-23 01:41:00 【zyxlyfe】
@echo off
:: The copied source folder
set sourceDir=D:\ Yi AI ERP\ERP
set sourceDir0=D:\ Yi AI ERP\ERP\DataBackup
:: Find the latest file name bak
FOR /F "delims=|" %%I IN ('DIR "%sourceDir0%\*.bak" /B /O:D') DO SET NewestFile=%%I
echo clear flie.......
:: Create a temporary folder , Ensure the latest copy of the document
md %sourceDir%\tmpfile
echo copy files......
:: Start copying the folder in the same directory as the script To tmpfile Change to folder
echo %NewestFile%
xcopy /E/Y %sourceDir0%\%NewestFile% %sourceDir%\tmpfile
echo copy finish
:: Delete D:\temp Under the table of contents 7 Documents before
Forfiles /p %sourceDir%\backup /s /d -7 /m *.* /c "cmd /c del /q /f @path"
echo start packing........
:: Start compressing files tmpfile , Compressed file EIERPSQL+ Time of the day
"D:\Program Files\WinRAR\WinRAR.exe" a -ep1 -p123456 %sourceDir%\backup\EIERPSQL%date:~0,4%%date:~5,2%%date:~8,2%.zip %sourceDir%\tmpfile
echo pack finish!!
:: Delete temporary folder
rd /s/q %sourceDir%\tmpfile
exit
Be careful. , Save the above script file as bat When you file , Because the catalogue here has Chinese , So save it as ANSI Coding format
Run to test whether the script file can be used normally , If there is no problem , Go to the next step .
Reuse the timing function of the system , Run regularly every day
版权声明
本文为[zyxlyfe]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220915323030.html
边栏推荐
- Linux系统下以RPM方式如何安装mysql-5.7.9
- Unrelated interprocess communication -- creation and use of named pipes
- Jerry's CPU performance test [chapter]
- Introduction to gbase 8s storage structure and space management
- GBase 8s查询处理和优化
- Small example of gin - get request 1-handle handles get requests
- CDR2022首发全新版本性能介绍
- Gbase 8s数据库日志简介及管理
- The most understandable life cycle of dependency injection
- DO447管理用户和团队的访问
猜你喜欢
The most understandable life cycle of dependency injection
Qingyan environment and Shenzhen Stock Exchange listing: annual revenue of 180 million and market value of 4.1 billion
W801 / w800 / w806 unique ID / CPUID / flashid
[registration] tf54: engineer growth map and excellent R & D organization building
Solve the problem when installing MySQL
42、使用mmrotate中k3det进行旋转目标检测,并进行mnn部署和ncnn部署
计蒜客:数独(DFS)
New functions of ai2022, introduction to new functions of illustrator 2022
计蒜客:方程的解数
关于C4D动画如何导入Lumion
随机推荐
Itextsharp displays Chinese fonts
Summary of commonly used commands of LSF
Oracle database query lock table SQL script and delete lock information script (necessary for database development ETL and DBA)
W801 / w800 WiFi socket development (II) - UDP Bluetooth control WiFi connection
Jerry's AI server [chapter]
Gbase 8s Group by 功能介绍
GBase8s SQL 引擎框架简介
数字藏品平台入驻 数字藏品平台开发 数字藏品SaaS平台
K zeros after leetcode factorial function
GBase 8s 备份介绍
Garlic Junkai company (DFS full arrangement)
Small example of gin - get request 1-handle handles get requests
Introduction to gbase 8s shared memory buffer pool
Vscode + PHP debug + namespace guidelines
mb_substr()、mb_strpos()函数(故事篇)
2n queen problem
计蒜客(踏青)(染色块问题的DFS和BFS解法)
角色个人属性英文缩写
Gbase 8s客户端与服务器的通信
Jerry's CPU performance test [chapter]