In the past few days I’m trying restic for backup a whole Windows Computer.
But I can’t find on docs how would I backup whole Windows computer, including additional drives letters.
In fact, I don’t really need to backup C: drive, but all others drives are important to me. That computer has many usb external drives and, from time to time, they are replaced for new ones with a lot of files on them.
You need to pass each drive to restic, yes. You can use wmic logicaldisk get caption or fsutil fsinfo drives from a batch script to get the drives in the system. The output of both is somewhat machine-friendly.
Use NTFS junction points to link all of the drives you want to back up into a single directory somewhere under the C drive, then point restic at that directory.
Mount the drives directly on paths like you would do in Linux. I believe you can do this from the GUI Disk Management control panel. (Right-click partition > change drive letter and paths > add > mount in the following empty NTFS folder)
My method is to use a separate restic backup repository for each drive. The disk which holds the backups has a separate directory for each restic directory. I also use separate directories for the cache of each repository. By using a PowerShell script a bunch of the directory names are variables. I have no idea how a script would know which of the drives are connected.