For anyone interested, I’m using a slightly different approach to this that makes working with multiple directories/repositories super easy. I haven’t found it specifically mentioned or documented, so figured I’d post it here alongside the other strategies posted above.
Basically, after you init
a main/central repository, you can then use the add
command to add other directories you want to backup. The trick is using the -repository
option with the same storage as the main repository. For example:
cd ~
duplicacy init home gcd://Backups
duplicacy add -repository /mnt/work work work gcd://Backups
Then to backup each directory/repository:
duplicacy backup # backup home repository
duplicacy backup -storage work # backup work repository
It’s also possible to list
or prune
all repositories at once:
duplicacy list -all # list all snapshots from all repositories
duplicacy prune -all -keep X:X # prune all repositories at once
The nice thing about this method is you only have one central .duplicacy
folder in the main repository, with a single preferences
file listing all of your repositories/storages.
I’m not sure if there are any unapparent downsides, but it’s been working great for me for over a month of daily backups, pruning and several restores.