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:
~/work/librsync-2.3.1
cmake .
make
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
Make pip find librsync:
export LDFLAGS=-L/usr/local/lib
export CPPFLAGS=-I/usr/local/include
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
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
Hi!
Nowadays, it's a piece of cake to install librsync, python and pip:
Regards!