Files
esh-pfi-infrastructure/playbooks/esh-vm-db-restic-repair.yaml
T
vh 48e34e1849 playbooks: repoint the four remaining live fv-ml1 targets
homepage-regroup, mog-sec-move-to-gpu0, pull-hf-repo and serve-qwen3.5-122b
all carried runnable 'scripts/elway ana-ml2 --playbook ...' instructions or
the old 10.250.50.54 address. Each would fail today against a dead name and a
dead IP, so these are corrections rather than cosmetics. homepage-regroup is
renamed to match; the other three keep their names, which never carried the
host.
2026-09-12 22:04:41 -07:00

34 lines
1.3 KiB
YAML

steps:
- name: Preserve old hook and staged PostgreSQL dump
sudo: true
shell: |
set -eu
install -d -m 0700 /var/lib/restic/repair-20260912
test -e /var/lib/restic/repair-20260912/pre-backup.sh || cp -p /etc/restic/pre-backup.sh /var/lib/restic/repair-20260912/pre-backup.sh
test -e /var/lib/restic/repair-20260912/pg_dumpall.sql.gz || cp -p /var/lib/restic/stage/pg_dumpall.sql.gz /var/lib/restic/repair-20260912/pg_dumpall.sql.gz
- name: Install tested fail-closed database hook
sudo: true
upload:
src: configs/restic/esh-vm-db/pre-backup.sh
dest: /etc/restic/pre-backup.sh
mode: '0700'
- name: Add bounded retry to backup job
sudo: true
upload:
src: configs/restic/esh-vm-db/retry.conf
dest: /etc/systemd/system/resticprofile-backup@profile-default.service.d/retry.conf
mode: '0644'
- name: Add bounded retry to repository check
sudo: true
upload:
src: configs/restic/esh-vm-db/retry.conf
dest: /etc/systemd/system/resticprofile-check@profile-default.service.d/retry.conf
mode: '0644'
- name: Reload service definitions and run fresh backup
sudo: true
shell: |
set -eu
bash -n /etc/restic/pre-backup.sh
systemctl daemon-reload
systemctl start resticprofile-backup@profile-default.service