Synology NAS添加cron job

在/usr/syno/bin/ 下创建sh脚本,例如clean.sh

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 -delete

然后添加到/etc/crontab 文件中
Synology NAS添加cron job

然后需要重启crontab服务:
synoservice -restart crond
synoservice -status crond

猜你喜欢

转载自blog.51cto.com/helpdesk/2514929
job