: The filename, directory name, or volume label syntax is incorrect.

I’m running a test restore to Windows server from files backed up on a Linux server. Both using CLI. It seems to work, but stops after several directories restored with errors like this:

: The filename, directory name, or volume label syntax is incorrect.

That is because some file names contain characters that are invalid under Windows, such as:

< (less than)
> (greater than)
: (colon)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
* (asterisk)

If you run duplicacy -d restore ... you will see what files cause the issue and you can exclude those files.

What does this do? So the command would be something like:

duplicacy -d restore -r 58

PS - I have preferences with the path and creds cached.

I see now, it’s a debug setting