Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 crontab 的内容导出到文件中?
我需要它,因为我正在切换用户名并且不想丢失 crontab 中的数据。
创建备份(导出):
crontab -l > /some/shared/location/crontab.bak
从新用户导入:
crontab /some/shared/location/crontab.bak