当前位置:网站首页>Shell script classic case: backup of files
Shell script classic case: backup of files
2022-07-31 13:47:00 【Jiangxl~】
Shell scripting classic case: backup of files
Article table of contents
1. Periodically delete files in the /data directory that have been modified for more than 7 days
Deleting files older than seven days
find /data -mtime +30 | xargs rm -rffind /data -mtime +30 -exec rm -rf {} \;
2. Periodically clean /data/YY-MM-DD.tar.gz
边栏推荐
猜你喜欢
随机推荐
Miller_Rabin 米勒拉宾概率筛【模板】
基于去噪自编码器的故障隔离与识别方法
ADS communicate with c #
0X7FFFFFFF,0X80000000「建议收藏」
4.爬虫之Scrapy框架2数据解析&配置参数&数据持久化&提高Scrapy效率
Spark学习:为Spark Sql添加自定义优化规则
C#获得网卡信息 NetworkInterface IPInterfaceProperties
VU 非父子组件通信
Controller层代码这么写,简洁又优雅!
The pre-sale of the new Hyundai Paristi is open, and safety and comfort are not lost
MATLAB | 我也做了一套绘图配色可视化模板
C#控件StatusStrip使用
Grab the tail of gold, silver and silver, unlock the programmer interview "Artifact of Brushing Questions"
CLion用于STM32开发
mysql8, starttime的下一个值作为endtime的上一个值?
【牛客刷题-SQL大厂面试真题】NO3.电商场景(某东商城)
网络协议及相关技术详解
文本相似度计算(中英文)详解实战
龟速乘【模板】
尚硅谷-JVM-内存和垃圾回收篇(P1~P203)