Files
hermes-agent/website/docs/reference
kshitijk4poor b222c8d01c fix(backup): match host-managed dirs at the Hermes root only, skip them on import
Follow-up to the portal-recovery/lost+found exclusion (#158231).

- One HOST_MANAGED_ROOT_DIRS constant in home_data_layout, matched at the
  Hermes root only. The profile-aware exclusion also dropped
  profiles/<name>/portal-recovery/ from backups while keep-host still
  overwrote it, so the undo point lost a copy main could restore.
- Plain and keep-host imports skip root portal-recovery/ and lost+found/
  (restore loop and _import_skipped). Older Cloud archives carry readable
  portal-recovery/ files, and writing them into the root-owned folder
  ended the import incomplete. keep-host's _HOST_ROOT_DIRS goes back to
  webapp only, since the import skip covers it.
- Tests: shared deny-reading helper, the archived lost+found member is
  rejected, skill/profile folders of the same name stay in backups, and
  a plain import of an older archive leaves the host's copy alone.
- Document the exclusion in the backup reference (en + zh-Hans).
2026-11-27 15:37:30 +05:30
..