Qnap – Adding items to cron permanently

Quick hint on how to add a permanent task in Qnap cron (one that will be there after reboot or update).

Login to your Qnap via ssh and edit the crontab with:

vim /etc/config/crontab

And after that just run:

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

And that's all. One more thing that is worth mentioning, is that you should not put your sripts in /root directory. Unless you want to do some magic with your Qnap, you will loose all the scripts after reboot. So probably the best idea is not to put your scripts in /root dir.

Categories: Default


  1. For me it does not work: /etc/config/crontab gets overwritten with the old copy within several minutes by some QNAP background process.

  2. What Qnap version do you have?

  3. Ya mine gets wiped after a reboot too. Running version Version 3.8.2 (2013/03/01) on a TS-419P+

    I ended up using an Optware startup script to add jobs to my crontab. It is an ugly fix, but it works. Changes to Optware that get included in firmware may break this method, but I have it backed up with repatching instructions.

  4. I am running 3.8.3 Build 20130426 on QNAP TS-259 Pro+

Leave a Reply

Your email address will not be published. Required fields are marked *


Copyright © 2023 Closer to Code

Theme by Anders NorenUp ↑