自动保存90的crontab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 line
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. # 保存