Skip to content

Use full paths in mounted snapshots #1286

@mrzv

Description

@mrzv

If I backup a set of directories: restic backup ~/A ~/B ~/C ~/D/E/F ~/G/H, and then mount the snapshot, I get a directory structure with top level directories: A, B, C, F, H. I.e., only the last directory is used. When I list the snapshots, I can see the full paths, so the information is clearly preserved. I think it would be beneficial, if mounted snapshots used the full path structure, so in the example above, I'd see only one directory: /Users (on a Mac) or /home (on Linux).

This problem, by the way, becomes an actual bug, if there are overlapping names (e.g., ~/A/X and ~/B/X). Only one of them is available in the mounted snapshot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions