当前位置:网站首页>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
边栏推荐
- Introduction to granularity locking of gbase 8s concurrency control
- Android sqliteopenhelper data table structure upgrade
- 修改数组(并查集)
- Unity combines itextsharp to generate PDF preparation DLL
- Jerry's factors that usually affect CPU performance test results are: [article]
- 腾讯云接口进行人脸检测 和签名出错问题
- Introduction to PCIe xdma IP core (with list) - mingdeyang science and Education (mdy edu. Com)
- 数字藏品平台入驻 数字藏品平台开发 数字藏品SaaS平台
- Chapter 6 uses Matplotlib to draw thermodynamic diagram
- Gbase 8s 并发控制之封锁粒度
猜你喜欢

W801 / w800 WiFi socket development (I) - UDP

Completely uninstall antidote 10? What if the antidote uninstall is not clean?

JSP basic knowledge summary

DFS parity pruning

关于C4D动画如何导入Lumion

W801/W800/W806唯一ID/CPUID/FLASHID

GBase 8s 备份介绍

W801 / w800 WiFi socket development (II) - UDP Bluetooth control WiFi connection

(product resources) mingdeyang ad8488 module high performance digital X-ray FMC interface 128 analog channel high-speed ADC chip

最长公共子序列(记录路径版)
随机推荐
彻底卸载Antidote 10 ?Antidote卸载不干净怎么办?
Blocking granularity of gbase 8s concurrency control
Tight coupling of visual wheel odometer
Rôles attributs personnels Abréviations
World reading day: 18 it books with Douban score above 9.0 are worth collecting
GBase 8s查询处理和优化
计蒜客:方程的解数
Jerry's AI server [chapter]
Introduction à la structure de stockage de gbase 8S et à la gestion de l'espace
New functions of ai2022, introduction to new functions of illustrator 2022
After disk D is distributed to Disk C, what should I do if the database recovery hangs? Please answer
npm——配置淘宝镜像
Learning methods and career development guide (2022 Edition)
W801/W800/W806唯一ID/CPUID/FLASHID
Rotation slice
2n皇后问题
W801 / w800 WiFi socket development (I) - UDP
Prince saves Princess (DFS)
引爆炸弹(DFS)
JSP基础知识总结