[QNAP crontab 定時執行程式

注意要自動執行的 sh 檔不要放在 /root 裡, 不然韌體更新後檔案會不見, 要放在個人帳號的資料夾,例如 /share/homes/帳號/
QNAP 的 crontab 放在 /etc/config/crontab
vi /etc/config/crontab
例如要每日5:00執行 backup.sh 的話,加上這行
00 5 * * * /share/homes/帳號/backup.sh
存檔

套用設定
crontab /etc/config/crontab

重啟 crontab
/etc/init.d/crond.sh restart

开机挂载samba

vi /etc/fstab
mount -t cifs -o username=username,password=password //192.168.42.147/anonymous /mnt/147

mount -a

原文地址:https://www.cnblogs.com/k98091518/p/8458362.html