rustic_core icon indicating copy to clipboard operation
rustic_core copied to clipboard

`canonicalizing path failed` when backing-up a mounted path by dokan or winfsp

Open 9-2-1 opened this issue 1 year ago • 1 comments

C:\gocryptfs is a NTFS mounted path, by cppcryptfs with dokan.

> rustic -P config backup C:\gocryptfs\data
[INFO] using config C:\config.toml
[INFO] repository C:\restic-repo: password is correct.
[INFO] using cache at C:\Users\Legion\AppData\Local\rustic\e5e8b63342b9d4ad2db6cd90683754ee887d28d74a6b806f26763c6b2edaf015
[00:00:00] reading index...               ████████████████████████████████████████         43/43
error: canonicalizing path failed: `Os { code: 2, kind: NotFound, message: "系统找不到指定的文件。" }`

Likely a issue of dunce, which is used to canonicalize non-UNC path on Windows.

9-2-1 avatar Aug 18 '24 13:08 9-2-1

It is likely a issue of the standard library since std::fs::canonicalize also failed to process such a mounted path.

9-2-1 avatar Aug 18 '24 13:08 9-2-1