interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / infra / ops / aien-run-forge-backup.service

20 lines · 1054 bytes Raw Blame History
1[Unit]
2Description=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]
9Type=simple
10Environment=PATH=/usr/bin:/bin
11Environment=FORGE_BACKUP_RECIPIENT=age1kj2a3s98qgu9nc7nlxd7npj50ekgqh32jfdp6jg9dgn2v6scrccqus5ec6
12ExecStart=%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
13Restart=always
14RestartSec=10
15Nice=5
16IOSchedulingClass=idle
17UMask=0077
18
19[Install]
20WantedBy=default.target