While trying to restore from a backup, was trying to exclude a directory. On adding
-- -"TV Series, Others"
(quotes included) this was parsed as 3 filters
-- -"TV Series,"
again 3 filters
-- -"TV Series"
2 filters
-- -"TV"
1 filter.
Running the same filter with the cli -- -"TV Series, Others"
works perfectly with one filter detected and used, and the restore proceeding as expected.
Relevant log snippets
cli:
2021-06-02 20:17:55.580 INFO STORAGE_SET Storage set to gcd://duplicacy
2021-06-02 20:17:58.416 INFO SNAPSHOT_FILTER Loaded 2 include/exclude pattern(s)
2021-06-02 20:18:00.636 INFO RESTORE_INPLACE Forcing in-place mode with a non-default preference path
2021-06-02 20:18:07.016 INFO SNAPSHOT_FILTER Parsing filter file /cache/localhost/restore/.duplicacy/filters
2021-06-02 20:18:07.017 INFO SNAPSHOT_FILTER Loaded 0 include/exclude pattern(s)
webui:
2021/06/02 20:17:55 Running /home/duplicacy/.duplicacy-web/bin/duplicacy_linux_x64_2.7.2 [-log restore -r 52 -storage gcd -overwrite -stats -threads 16 -- -"TV Series"]
2021/06/02 20:17:55 Set current working directory to /cache/localhost/restore
Things I tried: double quotes, single quotes, backslashes to escape the space, not adding any quotes/backslashes.
Finally opened a shell inside the container, ran the same command posted by duplicacy web (after removing [ ]
) and it’s running fine now.
Am I missing something obvious? Thanks.