interplane-forge
INTERPLANE Forge
Brought by drakestapleton
interplane-forge / infra / ops / aien-run-forge-backup.service
| 1 | [Unit] |
| 2 | Description=forge state backup (forge-data, nginx config, Radicle refs) into an age-encrypted spool whenever it changes (continuous; aien-onchange, at most every hour, at least daily) |
| 3 | # Source of record: ~/work/forge/web/infra/ops/forge-backup.sh, infra/RUNBOOK.md. |
| 4 | # Spool: ~/forge-backups (pulled by the Mac: infra/ops/mac/com.aien.forge-backup-pull.plist). |
| 5 | # Recipient: the PUBLIC key already used by ~/.local/bin/forgejo-backup; its identity lives only on |
| 6 | # the operator Mac (~/.config/atlas-forgejo-backup/recovery.agekey). Without it the script exits 3. |
| 7 | |
| 8 | [Service] |
| 9 | Type=simple |
| 10 | Environment=PATH=/usr/bin:/bin |
| 11 | Environment=FORGE_BACKUP_RECIPIENT=age1kj2a3s98qgu9nc7nlxd7npj50ekgqh32jfdp6jg9dgn2v6scrccqus5ec6 |
| 12 | ExecStart=%h/work/forge/web/infra/ops/onchange-glob.sh 3600 86400 %h/forge-data /etc/nginx /etc/nginx/*/ %h/.radicle/storage %h/.radicle/storage/*/ %h/.radicle/storage/*/refs/**/ -- %h/work/forge/web/infra/ops/forge-backup.sh run |
| 13 | Restart=always |
| 14 | RestartSec=10 |
| 15 | Nice=5 |
| 16 | IOSchedulingClass=idle |
| 17 | UMask=0077 |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=default.target |