I’ve been doing some basic cli testing with Duplicacy. I came across the recent addition of the -repository option to the init and add commands. It seems to me that on a machine with multiple repositories, this would allow you to keep your repository preferences better organized. For example, keeping each preferences file in a subfolder of a single parent (e.g., ~/duplicacy/central-preferences/backup-one, ~/duplicacy/central-preferences/backup-two, etc). The actual repositories those preferences files represent could be in completely different file system locations.
This keeps the repository itself free of any duplicacy configuration files. For many use cases wouldn’t it eliminate the need for the init -pref-dir option? It’s kindof the opposite. The -pref-dir option leaves a .duplicacy file with the absolute path to the preferences directory in the repository, while the -repository option points back from the preferences file itself to the repository.
I’m trying to figure out if my understanding of this is correct and if there is any downside to using this option.
Thoughts?
References:
Added a -repository option to the init and add command to specify an alternate repository path
https://forum.duplicacy.com/t/version-2-1-1-has-been-released/1031
https://github.com/gilbertchen/duplicacy/commit/72239a31c42dd6e01521be19f45d13ed9caf635f

Woukd you mind adding a short explanation to the
Woukd you mind adding a short explanation to the
Yeah, it was an interesting find to see this mostly undocumented feature when playing around with the cli. I’ve been using this application for less than a week, so I may need a minute to muster up the nerve to edit the wiki without feeling like I’m not qualified to make that kind of contribution…
.