Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
duplicity on MSYS2

duplicity on MSYS2

Currently the duplicity backup tool is not available in the MSYS2 pacman repository. These are the steps to install it via the Python PIP package manager:

pacman -S base-devel gcc vim cmake
pacman -S libbz2-devel zlib-devel libcrypt-devel

duplicity needs librsync, which is not in the pacman repository, so we have to build it ourselves:

build librsync


cmake .


make test

make install

Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/librsync.dll.a
-- Installing: /usr/local/bin/msys-rsync-2.dll
-- Installing: /usr/local/include/librsync.h
-- Installing: /usr/local/include/librsync_export.h
-- Installing: /usr/local/share/man/man3/librsync.3
-- Installing: /usr/local/share/man/man1/rdiff.1

get pip and install duplicity

Make pip find librsync:

export LDFLAGS=-L/usr/local/lib
export CPPFLAGS=-I/usr/local/include

curl -O


pip install setuptools_scm

pip3 install duplicity

Successfully built duplicity future
Installing collected packages: six, monotonic, fasteners, future, duplicity
Successfully installed duplicity-0.8.13 fasteners-0.15 future-0.18.2 monotonic-1.5 six-1.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment