resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

The create schedule command doesn't add double quotes around the --config {path} inside "Add arguments (optional):" field

Open Finessest opened this issue 1 year ago • 0 comments

Hi,

I have noticed that after performing resticprofile.exe -c "C:\foo bar\baz boo\config.toml" --name my_task schedule, the task is successfully created. However, after verification in taskschd.msc, the path located in the "Actions" tab, specifically inside "Add arguments (optional):," results in--no-ansi --config C:\foo bar\baz boo\config.toml --name obsidian --no-lock my_task. This leads to improper execution of the scheduled task, since spaces in the path aren’t recognized. Adding the double quotes manually fixes the issue.

If I’m overlooking something to avoid that behavior, please let me know.

Many thanks for this great and useful wrapper. I really appreciate the work!

Finessest avatar Oct 09 '24 14:10 Finessest