Tag Archives: backups

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!