admin avatar

How can to add cron on QNAP NAS

🕝 by admin





How to start timed tasks on QNAP NAS

First, you need to open the ssh login of the NAS,,,

Use ssh to QNAP NAS terminal, you can execute the command to start adding QNAP NAS timing tasks

1
2
3
4
5
vi /etc/config/crontab

0 3 * * * /usr/local/demo/scripts/autoreload.sh

//Autoreload.sh script is automatically executed every day at 3 o'clock in the morning
Note that to add a custom script or program, you must remember to grant permission to execute the script program

chmod +x demo.sh

Lazy writing, suitable for people who do not know VI editor

echo "1 4 * * * /usr/local/demo/scripts/autoreload.sh" >> /etc/config/crontab

Restart QNAP NAS task process

crontab /etc/config/crontab && /etc/init.d/crond.sh restart





💘 相关文章


📝 有偿服务

• 服务器合租380/年
• 服务器配置:2.4G,6核12线程
• nvme raid 1硬盘
• 不提供服务器自主面板
• 适合稳定的个人博客
• 提供备份服务,备份空间自备
• 只提供ipv6地址,搭配cloudflare使用
• 提供想要安装的程序和域名
• 博客必须是和谐健康的
• 博客不能是视频和图片站
• 提供以下付费服务
• 建站,FTP,备份,Linux,Wordpress等建站问题咨询管理
• 加微信:344452500(不闲聊,直接说事)

写一条评论

Based on Golang + fastHTTP + sdb | go1.16.8 Processed in 1ms