I like to keep things organized so I don’t want a .duplicacy folder inside of every directory I want to backup.
For example, say I want to backup the following directories:
/home/upsman/Pictures
/home/upsman/Documents
From my /home directory I can run the following:
duplicacy -d init -e -storage-name nacho -repository /home/upsman/Pictures photobackup sftp://upsman@nacho.local/photobackup
That works great and creates a .duplicacy/preferences file under my root /home
But now if I try the following it fails:
duplicacy -d init -e -storage-name nacho2 -repository /home/upsman/Documents documentbackup sftp://upsman@nacho.local/documentbackup
Duplicacy won’t let you because .duplicacy already exists.
So the hack I have to do, is change to the Documents folder first and then run the duplicacy init command from there. It works but it creates a .duplicacy folder in my Documents folder.
So the hack is to copy the contents of /home/upsman/Documents/.duplicacy to my original /home/upsman/.duplicacy/preferences file and then delete the /home/upsman/Documents/.duplicacy folder.
Why is this. On the GUI version, multiple storages/repositories are stored under ONE file. Why do you have to hack the CLI version