自动保存90的crontab
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
160 B

  1. 在root目录下创建run.sh脚本
  2. vim run.sh
  3. # 文件内容如下
  4. #!/bin/sh
  5. cd /home/crontab_backup
  6. git add .
  7. git commit -m "crontab备份"
  8. git push
  9. # 保存