mirror of
https://github.com/restic/restic.git
synced 2026-10-11 20:47:12 +00:00
backup: support specifying volume instead of path on Windows
"C:" (volume name) versus "C:\" (path)
This commit is contained in:
1 parent
a0f2dfbc19
commit
4fcedb4bae
3 files changed
+85
-1
No files matched your search
@@ -0,0 +1,19 @@
|
||||
Bugfix: Correctly handle passing volume name to `backup` command
|
||||
|
||||
On Windows, when the specified backup target only included the volume
|
||||
name without a trailing slash, for example, `C:`, then restoring the
|
||||
resulting snapshot would result in an error. Note that using `C:\`
|
||||
as backup target worked correctly.
|
||||
|
||||
Specifying volume names now works correctly.
|
||||
|
||||
To restore snapshots created before this bugfix, use the `<snapshot>:<subpath>`
|
||||
syntax. For a snapshot with ID `12345678` and a backup of `C:`, the following
|
||||
command can be used:
|
||||
|
||||
```
|
||||
restic restore 12345678:/C/C:./ --target output/folder
|
||||
```
|
||||
|
||||
https://github.com/restic/restic/issues/2004
|
||||
https://github.com/restic/restic/pull/5028
|
||||
Reference in new issue
Block a user