How to run crontab job every week on Sunday

后端 未结 10 1082
忘掉有多难
忘掉有多难 2020-12-02 04:07

I\'m trying to figure out how to run a crontab job every week on Sunday. I think the following should work, but I\'m not sure if I understand correctly. Is the following cor

10条回答
  •  醉梦人生
    2020-12-02 04:22

    @weekly work better for me! example,add the fellowing crontab -e ,it will work in every sunday 0:00 AM @weekly /root/fd/databasebackup/week.sh >> ~/test.txt

提交回复
热议问题