Home

Duplicity Backup on OpenBSD 5.8

Published on 12/14/2015


The duplicity 0.6.26 package seems to be broken for OpenBSD 5.8 (i386). Here’s how to make it work.

Get the ports tree and unpack it:

pkg_add wget
cd /tmp
wget http://ftp.openbsd.org/pub/OpenBSD/5.8/ports.tar.gz
cd /usr
tar -zxvf /tmp/ports.tar.gz

(this takes a few minutes)

Compile duplicity:

cd /usr/ports/sysutils/duplicity
make install

(go get some coffee)

Install gpg and generate a key:

pkg_add gnupg
gpg --gen-key

(accept the defaults)

Full backup:

duplicity full $sourceDir file:///$targetDir

Incremental backup:

duplicity incremental $sourceDir file:///$targetDir

Restore:

duplicity restore file:///$sourceDir $targetDir

If you’re using S3:

... views