Skip to content

Instantly share code, notes, and snippets.

@weberjn
Created June 9, 2020 13:26
Show Gist options
  • Select an option

  • Save weberjn/fa5f7743ab95f8a96c772de2cd73323f to your computer and use it in GitHub Desktop.

Select an option

Save weberjn/fa5f7743ab95f8a96c772de2cd73323f to your computer and use it in GitHub Desktop.
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

 ~/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

get pip and install duplicity

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

@yorgabr
Copy link

yorgabr commented Mar 26, 2024

Hi!

Nowadays, it's a piece of cake to install librsync, python and pip:

cd ~
pacman -S mingw-w64-x86_64-librsync python python-pip
export LDFLAGS=-L/mingw64/lib
export CPPFLAGS=-I/mingw64/include
pip install duplicity

Regards!

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