2
复制计划任务 crontab 到其它服务器
source link: https://zhiqiang.org/it/copy-cronjob-to-other-services.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
复制计划任务 crontab 到其它服务器
第一步,在当前服务器导出计划任务:
crontab -l > ~/crontab
第二步,复制该文件到其它服务器:
rsync ~/crontab user@server_ip:~/
第三步,在其它服务器上运行(注意会清空当前所有已配置的计划任务):
crontab ~/crontab
Q. E. D.
前一篇:
C++ 中非阻塞式的用户输入
带圣的山都不简单。山门就是九路门钉,里面打着「南有武当,北有圣莲」的标语。到处是佛像,风景也特别美,山顶云雾缭绕,是一个超小号的黄山。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK