vps-health-api/agent/pg-backup-pull/maximus-pg-backup-pull.service
le king fu 59b963220d
Some checks failed
CI / verification (pull_request) Failing after 28s
feat(agent): daily pull of the encrypted PostgreSQL backups
POSIX sh agent run by a systemd user timer (Persistent=true, retries on
failure): rsync over the classic sshd on 100.86.30.21:2222 with a pinned
host key, .age files only, 30-day rotation that fails loudly, and a
report to POST /backups/pull when the ingest token is configured (sent
through a header file, never argv). Never decrypts.

Refs maximus/la-compagnie-maximus#220

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 16:18:17 -04:00

15 lines
499 B
Desktop File

# Daily pull of the encrypted PostgreSQL backups (la-compagnie-maximus#220).
# Installed as a systemd *user* unit, see agent/README.md.
[Unit]
Description=Pull the encrypted PostgreSQL backups from the VPS
# A run caught up at boot may start before Tailscale is up: retry a few times.
StartLimitIntervalSec=4h
StartLimitBurst=8
[Service]
Type=oneshot
ExecStart=%h/.local/share/maximus-pg-backup-pull/run-pg-backup-pull.sh
SyslogIdentifier=pg-backup-pull
Nice=10
Restart=on-failure
RestartSec=15min