I’m tired. So I’m going to make this as short and clear-cut as possible:

  1. backupninja is a pretty nice backup program for linux which supports rdiff-backup, rsync, and duplicity.

  2. backupninja exists as version 1.0.1 for the latest stable ubuntu and debian packages.

  3. There exists a bug in this version of backupninja which disables it from rsyncing. This is a critical bug which disables you from using any host.rsync backup files.

  4. This bug was fixed in the master branch (don’t know which commit exactly) over one year ago.

  5. Version 1.0.2 has not been released, hence no packages exist for it on deb/ubu or any other distro.

What does all this mean? Looks like we’re building from Source!!!!!!!!

Using the patch from here, I was successfully able to fix the ubuntu package and reinstall it:)

apt-get source backupninja
tar xzvf backupninja_1.0.1.orig.tar.gz
cd backupninja-1.0.1/
cd handlers/
patch < ../derp.patch
apt-get update; apt-get install build-essential fakeroot dpkg-dev -y; apt-get build-dep backupninja -y
dpkg-source -x ../backupninja_1.0.1-2.dsc
dpkg-buildpackage -rfakeroot -b
cd ..
dpkg -i backupninja_1.0.1-2_all.deb

You can find the patched deb in my docker-backupninja container repo.

A few other notes about how much fun this was:

  • RiseUp Labs apparantly doesn’t know how to git:

    ?[~]> git clone http://labs.riseup.net/git/backupninja.git
    Cloning into 'backupninja'...
    fatal: repository 'https://labs.riseup.net/git/backupninja.git/' not found
    
  • There is no version on github that seems to be as up-to-date as their site. However, I found one that seems to be pretty current. Keep in mind you’ll need to set the configure parameters to match what they are in ubuntu and debian (i.e. config exists in /etc/backupninja.conf, etc…)

Mario Loria is a builder of diverse infrastructure with modern workloads on both bare-metal and cloud platforms. He's traversed roles in system administration, network engineering, and DevOps. You can learn more about him here.