diff --git a/scripts/nfs-mirror.sh b/scripts/nfs-mirror.sh index 034f3317..7672d658 100644 --- a/scripts/nfs-mirror.sh +++ b/scripts/nfs-mirror.sh @@ -57,6 +57,14 @@ EXCLUDES=( --exclude='/.lv-pvc-mapping.json' --exclude='/.nfs-changes.log' + # ---- anca-elements: photos are being ingested into Immich (2026-05-24), + # so /srv/nfs/immich/library/ becomes the canonical copy and the separate + # anca-elements tree is redundant. Excluded from nfs-mirror going forward. + # The historical 771G at /mnt/backup/anca-elements/ stays put until manual + # cleanup once Immich ingest completes; offsite-sync Step 1 also excludes + # it from the Synology pve-backup/ upload so we don't ship the redundant copy. + --exclude='/anca-elements/' + # ---- NFS paths: too big / transient / re-fetchable ---- --exclude='/immich/' --exclude='/frigate/' diff --git a/scripts/offsite-sync-backup.sh b/scripts/offsite-sync-backup.sh index 1f3f7cf7..8cc89336 100644 --- a/scripts/offsite-sync-backup.sh +++ b/scripts/offsite-sync-backup.sh @@ -70,12 +70,16 @@ if [ "${DAY_OF_MONTH}" -le 7 ] || [ -n "${FORCE_FULL}" ]; then --exclude='.lv-pvc-mapping.json' \ --exclude='.nfs-changes.log' \ --exclude='.force-full-sync' \ + --exclude='/anca-elements/' \ "${BACKUP_ROOT}/" "${PVE_BACKUP_DEST}/" 2>&1 || STATUS=1 rm -f "${FORCE_FULL_FLAG}" elif [ -s "${MANIFEST}" ]; then MANIFEST_LINES=$(wc -l < "${MANIFEST}") log "Incremental sync (${MANIFEST_LINES} files from manifest)..." + # /anca-elements is being ingested into Immich (Immich becomes canonical) — + # skip the redundant copy in /mnt/backup/anca-elements/ until manual cleanup. rsync -rlt --chmod=Du=rwx,Dgo=rx,Fu=rw,Fog=r --files-from="${MANIFEST}" \ + --exclude='anca-elements/' \ "${BACKUP_ROOT}/" "${PVE_BACKUP_DEST}/" 2>&1 || STATUS=1 else log "No changed files in manifest, nothing to sync"