Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

群晖中设置每2个月运行一次 #86

Open
whiskyrye opened this issue Apr 9, 2022 · 0 comments
Open

群晖中设置每2个月运行一次 #86

whiskyrye opened this issue Apr 9, 2022 · 0 comments

Comments

@whiskyrye
Copy link

创建计划任务,每月运行一次,记住计划任务号,我的是id=4
用SSH登录群晖后台,sudo -i 切换管理员,vim /etc/crontab 可以看到
image
此条对应我的计划任务,是每月9号运行一次。

#minute hour    mday    month   wday    who command
分  时  天  月  星期  谁运行  脚本

自己可以查一下crontab的用法
设置成每2个月运行一次,按i进入编辑模式,修改好,ESC后输入:wq回车保存
改后是1月9号,3月9号,5月9号,7月9号,9月9号,11月9号运行一次
image
最后重启crond服务: synoservice --restart crond
完成,在群晖计划任务界面还是显示每月运行一次,但实际运行周期是每两个月运行一次。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant