@towerbr thanks for sharing. I like the idea of being able to back up your settings like that. I think you’d have the same advantage using just the -repository
option.
Unless I’m mistaken, with your method you have to remember where the actual repository root is and execute duplicacy from that directory. There’s no reference to it in the preferences folder other than a naming convention you may choose for the folders themselves (e.g., “rep-name-1” in your case).
Using the -repository
option you could use the same preferences folder scheme you mentioned, but execute duplicacy from each of the preferences subfolders.
@towerbr For example, to do a partial restore (some folders or files) in a temporary folder, just copy (or create) the
.duplicacy
file there and execute the restore.
I guess one minor downside to not using -pref-dir
is losing the simplicity of copying or creating just the .duplicacy file for doing restores to a temporary folder.