Can not resore a file under windows (WOW Solved it)

hi forum,
i want to restore one file from a backup of my whole D:\ drive.

OK I could solve it myself... unix path worked HA HA HA.
even it restic said "d:\" I did some restore before but only whole backups. This was the first time I only needed one file from a backup.

C:\Windows\System32>restic -r h:\restic_d snapshots
repository d799032c opened successfully, password is correct
ID        Time                 Host        Tags        Paths
------------------------------------------------------------
157cc5bf  2021-10-19 20:16:41  ryzen                   d:\
d4658d23  2021-10-21 19:56:35  ryzen                   d:\
061caa92  2021-10-22 11:27:05  ryzen                   d:\
17495646  2021-10-22 11:28:12  ryzen                   d:\
------------------------------------------------------------
4 snapshots

It should be the latest file version.
It was stored under d:\ssh keys
But I only get this:

D:\>restic -r h:\restic_d restore latest --target d:\restore --include "d:\ssh keys\"
repository d799032c opened successfully, password is correct
restoring <Snapshot 17495646 of [d:\] at 2021-10-22 11:28:12.8303894 +0200 CEST by ryzen\ArpO@ryzen> to d:\restore

and NOTHING under d:\restore :confused:
Must I really restore the whole backup under Windows?
Or is there any other way to restore all files under “d:\ssh keys” from the latest backup?

Another failed try:

D:\>restic -r h:\restic_d restore latest --target d:\restore --include "d:\ssh keys"
repository d799032c opened successfully, password is correct
restoring <Snapshot 17495646 of [d:\] at 2021-10-22 11:28:12.8303894 +0200 CEST by ryzen\ArpO@ryzen> to d:\restore

d:\restore is still empty.

Also faied with an \ at the end

D:\>restic -r h:\restic_d restore latest --target d:\restore --include "d:\ssh keys\"
repository d799032c opened successfully, password is correct
restoring <Snapshot 17495646 of [d:\] at 2021-10-22 11:28:12.8303894 +0200 CEST by ryzen\ArpO@ryzen> to d:\restore

OMG i got it… last try was “unix path” d/ssh keys/

D:\>restic -r h:\restic_d restore latest --target d:\restore --include "/d/ssh keys/"
repository d799032c opened successfully, password is correct
restoring <Snapshot 17495646 of [d:\] at 2021-10-22 11:28:12.8303894 +0200 CEST by ryzen\ArpO@ryzen> to d:\restore

BTW why is some of my text red? Damm these “new” forum software that everyone uses today sucks like hell!
WTF happend to the old stuff like WoltLab Burning Board, vBulletin or MyBB?

2 Likes