当前位置:网站首页>WINRAR命令拷贝指定文件夹为压缩文件,调用计划任务进行备份。
WINRAR命令拷贝指定文件夹为压缩文件,调用计划任务进行备份。
2022-07-17 00:15:00 【yleihj】
1:在WINDWOS系统中安装WINRAR。
2:新建一个文本文件,输入代码"C:\Program Files\WinRAR\Rar.exe" a -agYYYYMMDD-{bak}-NN "e:\Backup\" "d:\123"
3:把文本文件保存为.bat结尾的批处理文件。
4:在E盘建立Backup文件夹。
5:代码解释"C:\Program Files\WinRAR\Rar.exe"WINRAR的安装路径。
a表示添加压缩文件。
-ag表示已当前日期生产压缩文件名,YYYYMMDD表示年月日的格式。
-{bak}-表示自定义的名称,在压缩文件名中包括-bak-
NN表示是1开头的连续号
"e:\Backup\" "d:\123" 表示压缩D盘的123文件夹到E盘的Backup文件夹中。
6:执行批处理文件显示下面图片。
7:可以在WINDOWS SERVER的计划任务中调用这个批处理文件,定时执行压缩备份。
边栏推荐
- [Ruiji takeout ⑩] rough learning of Linux & rough learning of redis
- 性能瓶颈定位XMind
- No, no, No. yesterday, someone really didn't write binary enumeration
- 网络层协议和IP数据包的格式(详解)
- Attack and defense world - easytornado notes
- Make a simple record and check the set
- STL -- stack container
- Sigaga
- [solved] after referring to the local MySQL and forgetting the password, [server] --initialize specified but the data directory has files in it Aborti
- Unity notes 1
猜你喜欢
leetcode---每日一题
The JMeter BeanShell implementation writes the parameterized data generated by the request to the file
Decentralized edge rendering meta universe protocol cadeus was invited to attend the cbaia 2022 summit to enable more Web3 application scenarios with technology
[Ruiji takeout ⑩] rough learning of Linux & rough learning of redis
Full link voltage measurement
子网划分(详)
ctfhub--ssrf
【瑞吉外卖⑩】Linux 粗略学习 & Redis 粗略学习
Metersphere is based on JMeter distributed performance pressure testing platform
Detailed explanation of caduceus project of metauniverse public chain (I): project concept and technical framework of caduceus metaverse protocol
随机推荐
find()(名字太多人用我就加字)
面试:接口和抽象类的区别-简洁的总结
leetcode---每日一题
种下一颗种子,十年后长成了参天B+树
攻防世界----easytornado笔记
After unity imports the FBX model, the rotation and position of the object will change automatically at runtime
STL -- vector container
BeanShell script gets the current time
性能测试实施规范指南
Leetcode --- one question per day
No, no, No. yesterday, someone really didn't write binary enumeration
CTFHub----RCE
攻防世界----shrine
How to add software shortcuts to the right mouse button list
剑指 Offer 53 - I. 在排序数组中查找数字 I
静态路由(详)
GoReplay
status 500 reading AftersaleService#getAftersaleList(Long)+com.sun.proxy.$Proxy214.getAftersaleList
Jstat命令查看jvm的GC情况
2022.6.28-数据库-1.数据库的隔离级别