Mylvmbackup version 0.14 on Debian Wheezy

Introduction
mylvmbackup 0.14 had some features I wanted to use. This is how to build on Debian.

Obtain the source
apt-get install devscripts

cd /usr/src wget "http://www.lenzg.net/mylvmbackup/mylvmbackup-current.tar.gz" tar -xvzf mylvmbackup-current.tar.gz apt-get source mylvmbackup cp -a mylvmbackup-0.13/debian mylvmbackup-0.14/ apt-get build-dep mylvmbackup cd mylvmbackup-0.14 dch -v 0.14-0.jamesr1

Make a Comment for the changelog

vi debian/patches/00list

Comment out all the patch file names in this file because version 0.14 includes all of these now except for mylvmbackup.conf's pidfile path which we'll sort out manually.


 * 1) 01_fix-makefile-path.diff
 * 2) 02_fix-config-paths.diff
 * 3) 03_set-umask.diff

sed -i 's/\/var\/tmp\/mylvmbackup_recoverserver.pid/\/var\/run\/mylvmbackup_recoverserver.pid/g' mylvmbackup.conf sed -i 's/$TMP\/mylvmbackup_recoverserver.pid/\/var\/run\/mylvmbackup_recoverserver.pid/g' mylvmbackup.pl.in

Then Build dpkg-buildpackage -us -uc

Install

apt-get install libconfig-inifiles-perl libmime-lite-perl dpkg -i ../mylvmbackup_0.14-0.jamesr1_all.deb