Files
macos-tools/gitea/crontab.example
2025-12-24 13:42:39 +08:00

19 lines
821 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Gitea to GitHub Sync - Crontab Configuration
#
# 安装方式:
# 1. 编辑 crontab: crontab -e
# 2. 添加以下行(去掉前面的 #)
# 3. 保存并退出
#
# 说明:每天凌晨 2:00 执行同步任务
# 分 时 日 月 周 命令
# Gitea → GitHub 同步(凌晨 2:00)
0 2 * * * /bin/bash /Users/brunogao/work/codes/tools/macos/gitea/gitea-github-sync.sh sync >> /Users/brunogao/ops/logs/gitea-github-sync-cron.log 2>&1
# 可选:每 6 小时同步一次
# 0 */6 * * * /bin/bash /Users/brunogao/work/codes/tools/macos/gitea/gitea-github-sync.sh sync >> /Users/brunogao/ops/logs/gitea-github-sync-cron.log 2>&1
# 可选:每周日凌晨 3:00 同步
# 0 3 * * 0 /bin/bash /Users/brunogao/work/codes/tools/macos/gitea/gitea-github-sync.sh sync >> /Users/brunogao/ops/logs/gitea-github-sync-cron.log 2>&1