Files
evig/scripts/ops/evig-backup.service
1b69f7746e fix(ops): rename revampit-* systemd units to evig-* (#435)
Completes the deliberate follow-up #434 called out: the box paths were
already fixed to /opt/evig, but the unit *names* — evig-transcription
(installed directly on the box, no repo unit file existed for it),
evig-backup.{service,timer}, and evig-cron@{.service,*.timer} — were
still revampit-*.

Renamed on the box first with a verified cutover (installed new units,
confirmed every timer's next-elapse time was unchanged from the old
schedule, ran a live one-off test of evig-cron@close-decisions.service —
got a real HTTP 200 from the app — then removed the old units). This
commit brings the repo, the source of truth per scripts/ops/README.md,
in line with what's now actually running.

Left alone, deliberately: the R2 bucket name (`revampit-backups`) and its
object-key prefixes (`revampit-db-`, `revampit-uploads-`) — renaming
live storage is a separate, higher-stakes change with no reliability
upside, not folded in here.


Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 11:32:08 +00:00

12 lines
354 B
Desktop File

[Unit]
Description=evig nightly DB + uploads backup to R2 (revampit-backups)
After=network-online.target postgresql.service
Wants=network-online.target
[Service]
Type=oneshot
# Runs as root so it can read the root-owned /opt/evig/app/.env.
ExecStart=/opt/evig/ops/backup-db-to-r2.sh
# A backup must never wedge the box; cap the run.
TimeoutStartSec=900