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

by on May 9, 2007 · 3 comments· LAST UPDATED October 16, 2007

in , ,

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.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 3 comments… read them below or add one }

1 bayoe haryanto May 9, 2008 at 3:19 am

How to make passphrase?


2 Oriol November 18, 2008 at 12:19 pm

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?


3 Frank March 21, 2011 at 4:59 am

Leave a Comment

Tagged as: , , , , , , , , , ,

Previous Faq:

Next Faq: