railiance-platform/deploy/mas-backup/mas-evidence-backup.service
codex edd8687ea6
All checks were successful
CCR intake gate / gate (push) Successful in 2m14s
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Alert platform-root when the MAS evidence backup fails or goes stale.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 4541@bnt-lap001
Assistant-Session: 2099b3aa-d7d9-49a9-ab4e-fa8b7d0e39e8
2026-11-03 09:14:46 +01:00

22 lines
734 B
Desktop File

[Unit]
Description=Quiesced, age-sealed MAS evidence backup to the primary archive (RPF-WP-0070)
After=network-online.target k3s.service
Wants=network-online.target
OnFailure=mas-evidence-alert@%n.service
[Service]
Type=oneshot
User=root
UMask=0077
StateDirectory=mas-evidence-backup
StateDirectoryMode=0700
EnvironmentFile=/etc/mas-backup/primary.env
ExecStart=/opt/railiance-platform/backup-venv/bin/python /opt/railiance-platform/mas-backup/mas_evidence_backup.py backup --execute
TimeoutStartSec=20min
KillMode=mixed
NoNewPrivileges=true
PrivateTmp=true
# full, not strict: the SQLite read-only open of the stopped writers' WAL
# databases on the local PV may still need their -shm file.
ProtectSystem=full
ProtectHome=read-only