2

导出和导入定时任务

 3 years ago
source link: https://zhiqiang.org/it/save-and-load-cronjob.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.
neoserver,ios ssh client

导出和导入定时任务

作者: 张志强

, 发表于 2020-07-21

, 共 72 字 , 共阅读 83 次

crontab -l > /tmp/crontab 

导入(会清空已有的任务):

crontab /tmp/crontab

Q. E. D.

类似文章:

CRONTAB FAQ 相似度: 0.324

1、查看当前状态
新服务器上遇到一个问题, CronJob 计划任务突然不执行,所有用户的任务都失效,之前定时任务执行时发送的邮件也没了。而且间续发作,准确说,每天白天有 14 小时左右不执行,比如从早上 8 点到晚上 10 点,但有时候是从早上 7 点到晚上 9 点。
今天发现一台新的服务器( ubuntu 18.04 )的计划任务异常,但非常有规律,就是所有任务都比预设时间晚了 8 个小时执行。自然而言猜测是时区设置问题。

2019-07-09, IT »

Linux系统配置

查看当前 DNS :

2020-09-23, IT »

Ubuntu

之前一直没有意识到,等到发生了才后悔莫及。Ubuntu 账号密码过期后果很严重:

安装和配置 boost 相似度: 0.093

boost是除std外最常用的 C++库,覆盖很多常用操作。目前最新的版本是1.59.0
最近在配置 matrix synapse 时,才注意到现在配置一个 https 网站已经非常简单,而且 nginx 也非常好用。
folly::dynamic提供类似于C++的动态类型。和std::any可以容纳任意类型不一样,folly::dynamic只支持保存以下几种类型:

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK