DNS-323 - rdiff-backup

So I have a few DNS-323 boxes that I love and needed rdiff-backup installed.  I am using the fun-plug setup so the following are the steps that I have taken.  At the time of writing this the fun-plug version is 0.5

Your first step, if you haven't already done so, is to install fun_plug, change the root password, and activate ssh.  An excellent description of this procedure can be found here.  The guide is for CH3SNAS but the DNS-323 is pretty much identical as far as the procedure goes.

SSH into your DNS-323 as root after you have enabled fun_plug, changed root password, and activated ssh.
Make a download directory for all your sources

# mkdir -p /mnt/HD_a2/SRC/funplug-0.5
# cd /mnt/HD_a2/SRC/fun-plug
# rsync -avP inreto.de::dns323/fun-plug/0.5 .

- Note: you don't really need all of these files but it is nice to have them available.  If you just want to download what you need the files are listed below

Make an rdiff directory for all your rdiff specific downloads

# mkdir /mnt/HD_a2/SRC/rdiff-backup
# cd /mnt/HD_a2/SRC/rdiff-backup

Download and install all required packages for rdiff not in fun-plug

# cd /mnt/HD_a2/SRC/rdiff-backup
# wget http://www.drak0.com/files/dns323/librsync-0.9.7-1-ffp0.5.tgz
# funpkg -i librsync-0.9.7-1-ffp0.5.tgz
# wget http://www.drak0.com/files/dns323/Python-2.5.2-2.tgz
# funpkg -i Python-2.5.2-2.tgz

Now install the required packages to compile and install rdiff-backup

# cd /mnt/HD_a2/SRC/fun-plug/0.5/packages
# funpkg -i gcc-4.1-2.tgz
# funpkg -i uclibc-09.29-7.tgz
# funpkg -i kernel-headers-2.6.9.1-2tgz
# funpkg -i binutils-2.18.50.0.1-4.tgz

Download the rdiff-backup source files

# wget http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-1.2.8.tar.gz
# tar -xzf rdiff-backup-1.2.8.tar.gz

Now build and install rdiff-backup

# cd rdiff-backup-1.2.8
# python setup.py install --prefix=/ffp

The manifest of files installed is

/ffp/bin/rdiff ???? not sure about this one
/ffp/bin/rdiff-backup
/ffp/bin/rdiff-backup-statistics
/ffp/share/man/man1/rdiff-backup.1
/ffp/share/man/man1/rdiff-backup-statistics.1
/ffp/share/doc/rdiff-backup-1.2.8
/ffp/share/doc/rdiff-backup-1.2.8/CHANGELOG
/ffp/share/doc/rdiff-backup-1.2.8/COPYING
/ffp/share/doc/rdiff-backup-1.2.8/README
/ffp/share/doc/rdiff-backup-1.2.8/FAQ.html
/ffp/lib/python2.5/site-packages/rdiff_backup-1.2.8-py2.5.egg-info
/ffp/lib/python2.5/site-packages/rdiff_backup

Here is the fun-plug file: rdiff-backup-1.2.8.tgz

Here is a suggestion from Ray for an rdiff-backup command:

You can now backup your system to the lan or remotely with the command:

rdiff-backup foo/ user@DNS323::/mnt/HD_a2/backupsdir

Leave a Reply