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

by on May 9, 2007 · 4 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 http://dag.wieers.com/rpm/packages/duplicity/duplicity-0.4.2-1.el4.rf.x86_64.rpm
# 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://user@backup.server.com/directory
You can verify backups with --verify option:
# duplicity --encrypt-key="YOUR-KEY" --verify scp://user@backup.server.com/directory /home

Finally, if you need to restore file use command as follows:
# mkdir -p /disk3/resored.file
# duplicity --encrypt-key="YOUR-KEY" scp://user@backup.server.com/directory /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!

{ 4 comments… read them below or add one }

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

How to make passphrase?
Tx

Reply

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/collections.py", line 22, in ?
import log, file_naming, path, dup_time, globals, manifest
File "/usr/lib/python2.4/site-packages/duplicity/path.py", line 27, in ?
import librsync, log, dup_time
File "/usr/lib/python2.4/site-packages/duplicity/librsync.py", line 26, in ?
import _librsync, types, array
ImportError: /usr/lib/python2.4/lib-dynload/array.so: undefined symbol: PyUnicodeUCS2_FromUnicode

do you have any ideas to solve it?

Reply

3 Frank March 21, 2011 at 4:59 am
4 andy September 11, 2014 at 7:55 am

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?

Reply

Leave a Comment

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

Previous Faq:

Next Faq: