Installing Duplicity for Backups on CentOS 7

backup-imageBackups are an important part of any personal or professional work day. Without proper backups, you can find yourself missing critical data in the event of a system crash or other disaster.

If you’re an admin and are looking for something that will help retain critical information on your *nix system, look no further than Duplicity.  Duplicity uses librsync, so the backup sets are space efficient when configured in incremental format.  Full backups are also performed as required.

Since it’s usually best to run with the latest version of Duplicity, you’re best to install it from source.  Installing Duplicity on CentOS 7 from source is a straightforward process, if you follow the steps outlined below.

  1. Update yum
    yum update -y
  2. Install EPEL repo
    yum install
  3. Install the required development tools
    yum groupinstall “Development Tools”
  4. Install the required python tools
    yum install python-devel librsync-devel librsync python-setuptools python-lockfile python-boto wget
  5. Fetch the Duplicity source
  6. Extract the source
    tar xvf duplicity-0.6.26.tar.gz
  7. Move to the extracted folder
    cd duplicity-0.6.26
  8. Build the source
    python build
  9. Install Duplicity
    python install
  10. Verify
    duplicity –version

That’s it!  This post won’t go into the usage of Duplicity (maybe another post if people request it…), but you should at least read the man page to know the options and arguments.

Relax and enjoy – you’re now backed up!

Configuring httrack for build on Amazon Linux

When you need to pull a static copy of a site, whether for development or archival purposes, it’s useful to have a tool that can resolve links and update them for local browsing.

One such tool is httrack ( It can pull a local mirrored copy of a website, retaining all the links and relevant web server resources.

Since there is no simple way to install httrack using yum on Amazon Linux, you have to build from source. Don’t be afraid!  Follow these steps to ensure the build is done right:

Download the Linux source from here (

  1. Extract the source
    tar xvf <downloaded-file>.tar.gz
  2. Install some dependencies
    yum install openssl-devel zlib-devel
    yum groupinstall 'Development Tools'
  3. Move to the directory containing the source of httrack
  4. Run ./configure
  5. Run make
  6. Run make install
  7. Verify the installatio
    which httrack

Now you can mirror a site locally for offline browsing or archiving.

To run the httrack Wizard, run httrack with no options:


The application will walk you through a wizard to configure the fetch operation.



For more posts like this, follow me on Twitter or subscribe using an RSS reader.