因为家里有个摄像头,搭的NFS服务器给它存视频,可是呢摄像头只有等硬盘存满了才会删除以前的视频,我那台电脑是做服务器的,所以不可能让它把空间存完了,所以想设置一个脚本。按时删除文件夹。
:可以一天检测一次,删除20天前的文件夹,文件夹命名方式20170112,这是今天的名字。
该怎么实现呢
新手,关于定期删除文件内容问题
-
- 帖子: 9
- 注册时间: 2016-09-05 18:20
- 系统: ubuntu16.04
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 新手,关于定期删除文件内容问题
参考
http://stackoverflow.com/questions/1386 ... han-n-days
http://unix.stackexchange.com/questions ... han-x-days
http://unix.stackexchange.com/questions ... han-3-days
http://askubuntu.com/questions/789602/a ... han-7-days
https://ma.ttias.be/delete-files-older-x-days-linux/
http://www.howtogeek.com/howto/ubuntu/d ... -on-linux/
http://stackoverflow.com/questions/1386 ... han-n-days
http://unix.stackexchange.com/questions ... han-x-days
http://unix.stackexchange.com/questions ... han-3-days
http://askubuntu.com/questions/789602/a ... han-7-days
https://ma.ttias.be/delete-files-older-x-days-linux/
http://www.howtogeek.com/howto/ubuntu/d ... -on-linux/
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户