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.
Added a -repository option to the init and add command to specify an alternate repository path