zerobyte/app/server/modules/backups/__tests__
Nico c4f3300e9b
fix(backups): correctly resolve paths when folder name matches volume name (#576)
When a selected subfolder had the exact same name as its parent volume
mount, the `path.relative` check falsely identified the subfolder path
as an absolute path already inside the volume. This caused the entire
volume root to be backed up instead of the intended subfolder.

Closes #250

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Bug Fixes**
  * Improved handling of backup patterns when folder names match volume names.
  * Enhanced error handling for snapshot deletion operations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-25 19:09:32 +01:00
..
backups.controller.test.ts refactor: snapshot strip out base path (#542) 2026-02-18 21:45:19 +01:00
backups.execution.test.ts fix(repositories): append short id when using the default path for local repos (#536) 2026-02-17 18:28:33 +01:00
backups.patterns.test.ts fix(backups): correctly resolve paths when folder name matches volume name (#576) 2026-02-25 19:09:32 +01:00
backups.queries.test.ts test: fix impossible test scenarios 2026-02-16 23:20:33 +01:00
backups.service.test.ts refactor: always use short id in api calls (#545) 2026-02-19 20:08:40 +01:00