fix(restore): allow restoring files from different source volume

The file restore command previously assumed that the target volume name
was identical to the volume name used in the backup path. This caused
restores to fail (exit code 2) when restoring data from one volume backup
into a different target volume.

Introduce an optional --source-volume argument for `baudolo-restore files`
to explicitly specify the backup source volume while keeping the target
volume unchanged.

- Default behavior remains fully backward-compatible
- Enables restoring backups from volume A into volume B
- Fixes E2E test scenario restoring into a new volume

Tests:
- Update E2E file restore test to use --source-volume

https://chatgpt.com/share/694ec70f-1d7c-800f-b221-9d22e4b0775e
This commit is contained in:
2025-12-26 18:33:58 +01:00
parent c30b4865d4
commit 4af15d9074
18 changed files with 68 additions and 977 deletions

4
.gitignore vendored
View File

@@ -1,2 +1,2 @@
databases.csv
__pycache__
__pycache__
artifacts/