Files
gaokao-volunteer-system/ops/systemd/gaokao-backup-verify.service
Hermes Agent 7fe4ddcbc4
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
feat: harden T12 backup and portal workflows
2026-06-14 23:12:18 +08:00

11 lines
468 B
Desktop File

[Unit]
Description=Gaokao volunteer system backup restore smoke
Wants=network-online.target
After=network-online.target gaokao-backup.service
[Service]
Type=oneshot
WorkingDirectory=/srv/gaokao-volunteer-system
Environment=GAOKAO_BACKUP_ROOT=/var/backups/gaokao
ExecStart=/bin/bash -lc 'latest=$(find "$GAOKAO_BACKUP_ROOT" -mindepth 1 -maxdepth 1 -type d -name "backup-*" | sort | tail -n 1); test -n "$latest"; bash scripts/backup_verify.sh --from-backup "$latest"'