I’m pretty tech-savvy, but new to Duplicacy. Exploring how I could use it to replace CrashPlan soon. I’m on Mac.
I setup my user folder as a repository, copied my exclusions from my CrashPlan config into the $HOME/.duplicacy/filters
file, and setup a SFTP remote to my Linux server on my LAN at home.
I am wondering what is the best way to be able to backup to that SFTP server when I am home, and when I am not. (The hostname & port to use to connect are different, when I am not home.)
I can already detect when I am not home using some shell scripts, which modify my $HOME/.ssh/config
file, allowing me to always connect to my Linux server using the same name/alias from the command line, but I’m pretty sure Duplicacy can’t use this alias.
So my first idea is to create two copies of $HOME/.duplicacy/preferences
, and when I detect I leave or arrive home, I would change the $HOME/.duplicacy/preferences
symlink to point to the correct copy, and restart duplicacy.
Is this the best approach I could implement?
Or can I somehow configure the Duplicacy GUI to try two different remotes, and whichever works at any time would be used, and the other would just log an error that says can't connect
(or similar).
Pointers, suggestions & comments welcome.
Thanks,
- Guillaume