[CentOS] How to install Duplicity on your VPS/Dedicated Server

The problem is that you cannot install duplicity via the package manager (yum) on CentOS or the package manager only has an old version of duplicity available.

1. First, we will need to get the latest version from the duplicity website:

[rootsu@backup ~]# wget http://code.launchpad.net/duplicity/0.6-series/0.6.10/+download/duplicity-0.6.10.tar.gz

You can get the latest version from the duplicity website. In my case, it's duplicity version 0.6.10 released on September 10, 2010


2. In order to install the latest version of Duplicity from source, you will need to install its dependencies. Next we will install python-devel, librsync-devel, librsync:

[rootsu@backup ~]# yum install python-devel librsync-devel librsync


3. Once we got that, we can go ahead and compile and installl duplicity:

[rootsu@backup ~]# tar -xzvf ./duplicity-0.6.10.tar.gz [rootsu@backup ~]# cd duplicity-0.6.10 [rootsu@backup ~]# python ./setup.py build <<<< output >>>> [rootsu@backup ~]# python ./setup.py install <<<< output >>>>


4. Now, if nothing is messed up you should get the following output when you check the duplicity version:

[rootsu@backup ~]# duplicity --version duplicity 0.6.10

If you don't want to use duplicity with FTP then you can stop right here, otherwise continue to follow the steps listed beneath.


In order for you to use duplicity with FTP, you will need to install NcFTP. The CentOS package manager (yum) does not have the package ncftp, that's why you will need to install the Epel repository in order for you to be able to install it.

5. Get the latest Epel repository and install it:

Centos 32bit
[rootsu@backup ~]# rpm -Uvh

Centos 64bit
[rootsu@backup ~]# rpm -Uvh


6. Install NcFTP:

[rootsu@backup ~]# yum install ncftp


7. After the Installation, check if it was installed correctly by using the following command:

[rootsu@backup ~]# ncftp -h  Usage:  ncftp [flags] [<host> | <directory URL to browse>]  Flags: -u XX  Use username XX instead of anonymous. -p XX  Use password XX with the username. -P XX  Use port number XX instead of the default FTP service port (21). -j XX  Use account XX with the username (rarely needed). -F     Dump a sample $HOME/.ncftp/firewall prefs file to stdout and exit.  ...

Congratulations, we now successfully installed duplicity on your VPS or dedicated Server. Make sure to check out the other tutorials aout duplicity.

  • 94 Users Found This Useful
Was this answer helpful?

Powered by WHMCompleteSolution