Howto install duplicity rpm under RedHat / CentOS / Fedora Core Linux

Q. I would like to use duplicity package to automatically encrypting and storing remote backups in a bandwidth efficient manner in our backup server. The server is already configured and I’d like to install the same under RedHat Enterprise Linux. How do I install duplicity w/o compiling from source code?

A. Duplicity is a piece of software which provides easy encrypted versioned remote backup of files requiring little of the remote server. It does this using GnuPG, tar, and rdiff. To transmit data it can use ssh/scp, local file access, rsync, ftp, and Amazon S3.

The best way to install it to use rpm files from DAG’s repo. For example RHEL 4 64 bit version can be installed using RPM command:
# wget
# rpm -ivh duplicity-0.4.2-1.el4.rf.x86_64.rpm

In order to use duplicity you need to create a GPG key:
# gpg --gen-key
Next run duplicity as follows to make backups:
# duplicity --encrypt-key="YOUR-KEY" /home scp://
You can verify backups with –verify option:
# duplicity --encrypt-key="YOUR-KEY" --verify scp:// /home

Finally, if you need to restore file use command as follows:
# mkdir -p /disk3/resored.file
# duplicity --encrypt-key="YOUR-KEY" scp:// /disk3/resored.file

Read the man page of duplicity and gpg for more information and command options.

🐧 Please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
4 comments… add one
  • bayoe haryanto May 9, 2008 @ 3:19

    How to make passphrase?

  • Oriol Nov 18, 2008 @ 12:19

    I have a problem after install your package:

    # duplicity -v
    Traceback (most recent call last):
    File "/usr/bin/duplicity", line 29, in ?
    from duplicity import collections, commandline, diffdir, dup_temp, \
    File "/usr/lib/python2.4/site-packages/duplicity/", line 22, in ?
    import log, file_naming, path, dup_time, globals, manifest
    File "/usr/lib/python2.4/site-packages/duplicity/", line 27, in ?
    import librsync, log, dup_time
    File "/usr/lib/python2.4/site-packages/duplicity/", line 26, in ?
    import _librsync, types, array
    ImportError: /usr/lib/python2.4/lib-dynload/ undefined symbol: PyUnicodeUCS2_FromUnicode

    do you have any ideas to solve it?

  • Frank Mar 21, 2011 @ 4:59
  • andy Sep 11, 2014 @ 7:55

    bamc02:/usr/bin>>duplicity -v
    Traceback (most recent call last):
    File “/usr/bin/duplicity”, line 29, in ?
    from duplicity import collections, commandline, diffdir, dup_temp, \
    ImportError: No module named duplicity

    do you have any ideas to solve it?

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Problem posting comment? Email me @