How to ignore the drive letter when listing snapshots using '--path'

Hi,

I have snapshots of a file which came from stdin and whose filename had been set by ‘–stdin-filename’ to, say, ‘/backup’. Now, when I list snapshots (restic snapshots) it shows the path as D:\backup. It’s probably the drive letter what ever had been current when running restic backup.

There are other snapshots and I want to specifically list these snapshots from stdin.
Unfortunately, I have to specify the drive letter like restic snapshot --path D:\backup which is, especially when accessed from Linux in an automated environment, not intuitive and rather error prone.

IMO this is a bug, because the file does not really exist at D:. OTOH, this is a more general problem with repositories written to on Windows. How could I get rid of that drive letter?

Regards
Jeff

It’s not just a windows issue, but an underlying conceptual flaw in the restic snapshots storage model.

There are discussions about a new model that could overcome these sorts of issues, including Microsoft Windows 45-year drive letter legacy.

1 Like