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.
May 22, 2013 — 22:23
For me it does not work: /etc/config/crontab gets overwritten with the old copy within several minutes by some QNAP background process.
May 23, 2013 — 09:24
What Qnap version do you have?
June 3, 2013 — 23:37
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.
July 2, 2013 — 22:42
I am running 3.8.3 Build 20130426 on QNAP TS-259 Pro+