EDIT2 I now see/understand that a line for path to the filters file now exists in the preferences file (in previous forum discussions of the -repository
command, this was discussed but not implemented). So I now see that I could add
the second storage from within the same working directory, but then specify two different filter files…no reason to work from two different directories as I’m doing below (and as was discussed in earlier forum posts). But it’s still interesting that you can init the same repo twice, and I wonder if this has any implications…
original post
I understand that the primary design of the init
command means that if you want to add a second storage to the same repo, you need to use the add
command. If you try to init
the same repo twice, it fails, as intended behavior. But if you initially init
the repo using the -repository
flag then duplicacy won’t stop you front init
ing it a second time from a different location.
To clarify, here’s what I have done:
-
Created this directory structure for my duplicacy preference files and scripts, etc.
/duplicacy_preferences/local_storage
/duplicacy_preferences/remote_storage -
cd
'd to the “local_storage” directory and used theinit
command, specifying ~/ as the repository, and an external HD as the storage -
cd
'd to the “remote_storage” directory and used theinit
command, again specifying ~/ as the repository, and a temp folder on my internal HD as the storage
Therefore I have init
'd the same repo twice, which would be impossible with that the -repository
flag.
My questions:
a) Will this cause problems for me?
b) What are the pros (and cons) of using the add
command instead? (which I now see can only be done if working from one directory – add fails from a second directory)
c) Is this a bug? (Should duplicacy see the same path (same repo) and fail?)