Rustic does not recognise the file path with spaces and a trailing back slash on Windows #1041
-
rustic version 0.5.4. On PowerShell 5.1:
On PowerShell 7.4.1 all commands above work fine. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Thanks for opening this issue. In fact, this seems to be a powershell problem and not a rustic one. rustic relies on the caller to put correct commands in the I don't use powershell, but according to https://www.howtogeek.com/694949/how-to-escape-spaces-in-file-paths-on-the-windows-command-line/ your escaping is wrong. |
Beta Was this translation helpful? Give feedback.
-
Hi! I've updated my comment above. Please check it there. |
Beta Was this translation helpful? Give feedback.
-
@refutable4890 If all this works with Powershell 7.4, but not with Powershell 5.1, this is something we cannot solve in rustic. Please refer to the Powershell 5.1 docu how to pass paths with spaces and trailing back slashes to commands. I can however suggest using a config file for rustic, see https://github.com/rustic-rs/rustic/blob/main/config/README.md. |
Beta Was this translation helpful? Give feedback.
@refutable4890 If all this works with Powershell 7.4, but not with Powershell 5.1, this is something we cannot solve in rustic. Please refer to the Powershell 5.1 docu how to pass paths with spaces and trailing back slashes to commands.
I can however suggest using a config file for rustic, see https://github.com/rustic-rs/rustic/blob/main/config/README.md.