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 https://mirrors.kernel.org/fedora-epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  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
    wget https://code.launchpad.net/duplicity/0.6-series/0.6.26/+download/duplicity-0.6.26.tar.gz
  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 setup.py build
  9. Install Duplicity
    python setup.py 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 (http://www.httrack.com/). 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 (http://www.httrack.com/page/2/en/index.html)

  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:

httrack

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

httrack

 

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