Periodic off-site replication with FreeBSD, duplicacy and B2
I've recently discovered duplicacy, and I've decided to use it with an B2 backend to keep a mirrored offsite replication of the main directories of my home NAS.
I use the
periodic system, which offers a nice abstraction over
crontab for periodic tasks, and duplicacy to perform the actual backup. To setup duplicacy, I've followed the guide. In simple words, for each directory that I want to replicate, I setup duplicacy in it, which in turns means that you'll have to have a
.duplicacy subdirectory in it.
First off, I've added the following to
/etc/defaults/periodic.conf. The prefix, 666, is on purpose.