在/usr/syno/bin/ 下建立sh脚本,例如clean.sh
sudo chmod +x clean.shide
find /volume1/shareDoc/TestLog/ -type f -name '星号PASS星号' -delete -print
find /volume1/shareDoc/TestLog/ -type f -mtime +90 -delete -print
find /volume1/shareDoc/TestLog/ -type d -empty -deleterest
而后添加到/etc/crontab 文件中blog
而后须要重启crontab服务:
synoservice -restart crond
synoservice -status crondcrontab