19 lines
821 B
Plaintext
19 lines
821 B
Plaintext
# 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
|