{{ locale.masterSwitch.label }}
{{ locale.masterSwitch.desc }}
{{ locale.methods.email.smtpHint }}
{{ locale.endpoint.hint }}
{{ triggerEndpointUrl }}
curl -X POST "{{ triggerEndpointUrl }}" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "full"}'
{{ triggerEndpointUrl }}
X-API-Key: YOUR_API_KEY
Content-Type: application/json
{"type": "full"}
name: Auto Backup
on:
schedule:
- cron: '0 3 * * *'
jobs:
backup:
runs-on: ubuntu-latest
steps:
- name: Trigger Backup
run: |
curl -X POST "${{ secrets.BACKUP_URL }}" \
-H "X-API-Key: ${{ secrets.API_KEY }}" \
-H "Content-Type: application/json" \
-d '{"type": "full"}'
# 编辑 crontab
crontab -e
# 添加以下行(每天凌晨3点执行备份)
0 3 * * * curl -X POST "{{ triggerEndpointUrl }}" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "full"}'
加载中...
{{ locale.history.empty }}
{{ locale.history.emptyHint }}