infra/scripts
Viktor Barzin d5f73ce109 backup: exclude /anca-elements/ from nfs-mirror + offsite Step 1
Anca's photos are being ingested into Immich (started 2026-05-24
afternoon), so /srv/nfs/immich/library/ becomes the canonical copy
for those photos. The separate /srv/nfs/anca-elements/ archive tree
+ its sda mirror at /mnt/backup/anca-elements/ are now redundant.

Going forward:
- nfs-mirror EXCLUDES /anca-elements/ so future weekly runs don't
  re-touch the 771G subtree (also no longer required since Immich
  has the data via its NFS library).
- offsite-sync Step 1 also excludes /anca-elements/ — the historical
  771G under /mnt/backup/anca-elements/ stays on sda for now but is
  NOT shipped to Synology pve-backup/ (Immich's library reaches
  Synology via Step 2 bypass leg anyway).

The 771G on /mnt/backup/anca-elements/ will be cleaned up manually
once Immich ingest completes and we verify all photos are in the
Immich library. Same for /srv/nfs/anca-elements/ on sdc thin pool —
freeing both would reclaim ~1.5 TB across sdc + sda.

In-flight context: today's nfs-mirror first run was killed mid-flight
at ~70% (was at /srv/nfs/postgresql/). The killed run wrote ~200G of
service NFS subtrees to /mnt/backup/<svc>/, then sda hit 95% used,
prompting this change. Next nfs-mirror run will not touch
anca-elements and will fit comfortably (~250G total for the keep-list
minus anca-elements).
2026-05-24 18:34:41 +00:00
..
server_safe_poweroff
check-ingress-auth-comments.py
cluster_healthcheck.sh
cluster_manager.py
daily-backup.service
daily-backup.sh
daily-backup.timer
extend_vm_storage.sh
forgejo-migrate-orphan-images.sh
frigate-bulk-classify.js
frigate-inspect.mjs
gen_service_stacks.py
graceful-db-maintenance.sh
image_pull.sh
image_pull_remote.sh
kill_ns.sh
lvm-pvc-snapshot.sh
lvm-pvc-snapshot.timer
migrate-state-to-pg [infra] Migrate Terraform state from local SOPS to PostgreSQL backend 2026-04-16 19:33:12 +00:00
migrate_service_state.sh
nfs-change-tracker.service
nfs-mirror.service
nfs-mirror.sh
nfs-mirror.timer
node_registry_manager.sh
offsite-sync-backup.service
offsite-sync-backup.sh
offsite-sync-backup.timer
parse-postmortem-todos.sh
pfsense-haproxy-bootstrap.php
pfsense-nat-mailserver-haproxy-flip.php
pfsense-nat-mailserver-haproxy-unflip.php
postmortem-pipeline.sh
pve-nfs-exports
renew_worker_certs.sh
setup-containerd-pullthrough.sh
setup-forgejo-containerd-mirror.sh
setup-task-pipeline.sh
setup_containerd_mirrors.sh
state-sync
stop_storage_services.sh
task-processor.sh
tg
update-istio-injection.sh
update_k8s.sh
update_node.sh
upgrade_state.sh
vault-kubeconfig
woodpecker-register-forgejo-repo.sh