Maybe just write a script which adds the --include options?
You may also try out rustic (disclaimer: I’m the author) which has a restore command which checks existing files and only restores what’s missing or different. That way you wouldn’t need a list of corrupted files but can let rustic find out which files are corrupted and only restore them. Moreover, if you have files where only parts are corrupted, also only the wring parts are restored… I don’t know how your files are corrupted but this could be interesting for large files. Use rustic restore --dry-run to see what it would do.
AFAIK this works as you expect it - I was just proposing you write a script which takes a plain list of dirs and creates that command for you.
Note that restic isn’t able to do in-place restores - it assumes that /tmp/restore-work is empty in your case. You have to manually move/copy your restored content to the desired place.
Fatal: unable to open repository at /data/extdrive/restic-repo: ReadDir: open /data/extdrive/restic-repo/keys: input/output error
Fatal: unable to open repository at /data/extdrive/restic-repo: ReadDir: open /data/extdrive/restic-repo/keys: input/output error
extract.sh: line 66: unexpected EOF while looking for matching `''
extract.sh: line 67: syntax error: unexpected end of file
The text was copied into nano from Windows via SSH, and then I ran dos2unix to try to fix carriage return errors, but it didn’t help the errors I was getting.
I figured it out. It turns out that quite simply the repo had been mounted to a folder already, which is impossible to unmount if you close the SSH session. It worked after resetting the nas.