Files
esh-pfi-infrastructure/configs/restic/esh-docker-vm/profiles.yaml
T
vh 574c72daa5 backup pipeline: configs, runbooks, NH3 Synology rest-server, cross-site rsync
Bundles the post-2026-04-21 work that built out the two-layer backup
architecture (PBS for VM images + restic for file/DB), plus the cross-
site mirror and the disaster-recovery runbook.

- configs/restic/esh-docker-vm/profiles.yaml: drop the obsolete
  *_offen_backup_data exclude (offen sidecars retired fleet-wide
  2026-04-23; restic now covers the equivalent scope directly).
- configs/restic/esh-vm-db/: new profile for the dedicated DB VM
  (10.0.50.60), with pre-backup pg_dumpall + mongodump hooks.
- configs/rsync/: ana-nas → nh3-nas (04:00 daily, runs as lkraven)
  and nh3-nas → ana-nas (05:00 daily, runs as root because DSM
  rest-server-nh3 writes mode-400 files only root can read).
- docs/runbooks/pbs-deployment.md: 9-phase PBS rollout runbook,
  refined during the 2026-04-22 deployment with per-hypervisor
  namespaces, NFSv3 + ZFS-case-insensitivity workaround, and the
  Synology syno_acl flatten step.
- docs/runbooks/disaster-recovery.md: blast-radius runbook ordered
  Tier 0 → 5 (ana-nas → hypervisors → Docker hosts → VMs → specialty);
  references incident memory + recovery-step playbooks per consumer.
2026-04-24 21:56:22 -07:00

94 lines
3.0 KiB
YAML

# resticprofile config for esh-docker-vm.
#
# ESH home-lab Docker host — VM on esh-pve. Covered by vzdump at the
# hypervisor (3/3 on esh-pve after the VM 108 retirement), and by this
# file-level restic for fast per-file restore + app-consistent DB dumps.
#
# Writes cross-site to rest-server-ana (10.250.50.70:8000/esh-docker-vm/)
# because the ESH site has no local rest-server.
#
# Multiple DB-bearing services live here (see pre-backup.sh). Several
# containers don't bundle sqlite3, so the pre-backup script runs
# sqlite3 and pg_dump from the HOST against volume bind-mount paths
# (simpler than building custom container images).
version: "1"
global:
priority: low
ionice: true
ionice-class: 2
ionice-level: 7
min-memory: 100
default:
env-file: /etc/restic/restic.env
env:
RESTIC_PASSWORD_FILE: /etc/restic/password
initialize: false
lock: /var/lock/restic-esh-docker-vm.lock
backup:
verbose: 1
run-before:
- /etc/restic/pre-backup.sh
run-after:
- date +%s > /var/lib/restic/last-success
source:
- /opt/docker # compose files + bind-mount conf (~12 MB)
- /etc # host config
- /root # root's ad-hoc scripts, ssh keys, history
- /home # user home dirs
- /var/lib/docker/volumes # HA, paperless, pgadmin, CWA, dockge, etc.
- /var/lib/restic/stage # DB dumps produced by pre-backup.sh
exclude:
# CRITICAL: NFS mounts from 10.0.50.50 — hundreds of GB / TB at least.
# /mnt/backup specifically holds offen-sidecar tarballs which are
# redundant once restic is authoritative.
- /mnt/backup
- /mnt/books
- /mnt/compose
- /mnt/documents
# Docker internals
- /var/lib/docker/volumes/backingFsBlockDev
- /var/lib/docker/volumes/metadata.db
# Offen `*_offen_backup_data` exclude removed 2026-04-23 — offen
# sidecars retired fleet-wide; no more offen-scratch volumes exist.
# Ephemeral / regenerable
- /opt/docker/compose/*/logs
- "**/*.log"
- "**/*.log.*"
- "**/*.pid"
# Per-user shell / app noise
- /root/.cache
- /root/.local/share/Trash
- /root/.python_history
- /home/*/.cache
- /home/*/.local/share/Trash
- /home/*/.npm
- /home/*/.mozilla/firefox/*/Cache
tag:
- host:esh-docker-vm
- site:esh
- fleet:home-lab
schedule: "*-*-* 01:00:00"
schedule-permission: system
schedule-log: /var/log/restic-backup.log
forget:
keep-daily: 7
keep-weekly: 4
keep-monthly: 12
keep-yearly: 3
tag:
- host:esh-docker-vm
# Schedule removed 2026-04-21: forget against --append-only rest-server
# always fails (delete ops blocked). Run manually during the prune
# ceremony when --append-only is temporarily off.
check:
read-data-subset: 10%
schedule: "Sun *-*-* 05:00:00"
schedule-permission: system
schedule-log: /var/log/restic-check.log