当前位置:网站首页>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的计划任务中调用这个批处理文件,定时执行压缩备份。
边栏推荐
- Detailed explanation of metauniverse public chain caduceus: a creative platform specially built for metauniverse application
- Unity notes 1
- STL -- string container
- 如果猎人用枪打兔子
- Inverse yuan (I'll add these words if there are too many people using the name)
- uni app 微信小程序 点餐系统【再来一单】页面跳转
- STL -- vector container
- Leetcode --- one question per day
- 并发虚拟用户、RPS、TPS的解读
- 简单记录一下并查集
猜你喜欢

逻辑漏洞----身份验证漏洞

Leetcode --- one question per day

Project Performance Optimization Practice: solve the white screen problem of the home page, customize the loading animation to optimize the first screen effect

网络层传输协议(详解)
![【已解决】参考了本地mysql忘记密码后, [Server] --initialize specified but the data directory has files in it. Aborti](/img/a8/2daa2c0d834f1986c8421bf5138c7e.png)
【已解决】参考了本地mysql忘记密码后, [Server] --initialize specified but the data directory has files in it. Aborti

InnoDB, MySQL structure, and the difference between the three kinds of deletion

SSTI template injection

In depth performance test data analysis

JS笔记1

Signal and system experiment
随机推荐
bugku----正则匹配,cookies
Static routing (detailed)
接口(Collection/Map)- 各接口的实现与对比
Use of sqlmap
逆元(名字太多人用我就加这几个字)
CTFHub----RCE
Understanding: what is interface and the concept of interface
Stl--queue container
2022 latest software testing tools
Interface (collection/map) - implementation and comparison of interfaces
Flask template injection
Understand HTTP cache in 30 minutes
[antv G2] how to solve the memory leak caused by G2
Jmeter响应时间测试组件&多接口并发
Reprint: SQL injection common bypass
性能测试实施规范指南
status 500 reading AftersaleService#getAftersaleList(Long)+com.sun.proxy.$Proxy214.getAftersaleList
Buaaos-lab0 experimental report
2022.6.28-数据库-1.数据库的隔离级别
剑指 Offer 48. 最长不含重复字符的子字符串