ci(backup): 备份步骤输出 tee 到 NAS _last-run.log(便于排障)

This commit is contained in:
wangjia
2026-07-06 15:32:10 +08:00
parent e557a94ed0
commit 84b042394d
+4 -1
View File
@@ -20,7 +20,10 @@ jobs:
- name: Backup pangolin1 SQLite → NAS
env:
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
run: bash scripts/ci/backup-db.sh
run: |
mkdir -p /volume1/docker/backups/pangolin
bash scripts/ci/backup-db.sh 2>&1 | tee /volume1/docker/backups/pangolin/_last-run.log
exit "${PIPESTATUS[0]}"
- name: Notify (Telegram)
if: always()