Pither.com / Simonhttps://www.pither.com/simon/blog/2013-07-29T13:54:23+00:00Development, systems administration, parenting and businessBackport rsnapshot 1.3.1 to Lenny2010-09-07T00:00:00+00:002013-07-29T13:54:23+00:00Simon Pitherhttps://www.pither.com/simon/blog/2010/09/07/backport-rsnapshot-1.3.1-to-lenny<article>
<h1>Backport rsnapshot 1.3.1 to Lenny</h1>
<div class="article-meta">
Posted
by <span>Simon Pither</span>
on <time datetime="2010-09-07T00:00:00+00:00">Tue 7th Sep 2010</time>
(updated <time datetime="2013-07-29T13:54:23+00:00">Mon 29th Jul 2013</time>)
</div>
<div>
<p>I recently needed a version of <a href="http://www.rsnapshot.org/">rsnapshot</a> that included LVM snapshot support. Unfortunately the version included with Debian Lenny doesn't include this, so I had to create a quick backport.</p>
<p>This is a very quick record of what I did.</p>
<p>Install useful build scripts:</p>
<pre><code>aptitude install devscripts
</code></pre>
<p>Create somewhere to store our downloads and built files:</p>
<pre><code>mkdir build-dir
cd build-dir
</code></pre>
<p>Fetch the sources for rsnapshot 1.3.1 and one of it's dependencies that also isn't in Lenny.</p>
<pre><code>dget http://ftp.debian.org/debian/pool/main/libl/liblchown-perl/liblchown-perl_1.01-1.dsc
dget http://ftp.debian.org/debian/pool/main/r/rsnapshot/rsnapshot_1.3.1-1.dsc
</code></pre>
<p>We need to build the liblchown-perl package first:</p>
<pre><code>cd liblchown-perl-1.01/
debuild -b -us -uc
</code></pre>
<p>At this point you may find you're missing build dependencies, if so install them and repeat the above debuild command.</p>
<p>Once built, we need to install it. If you're not building on amd64, the filename of your .deb will be different to mine.</p>
<pre><code>cd ..
dpkg -i liblchown-perl_1.01-1_amd64.deb
</code></pre>
<p>Now to build rsnapshot itself. We have to adjust the quilt dependency first though (adjusting it down just a little doesn't seem to harm the build at all).</p>
<pre><code>cd rsnapshot-1.3.1/
sed -e's/quilt (>= 0.46-7~)/quilt (>= 0.46-6~)/' -i debian/control
debuild -b -us -uc
</code></pre>
<p>Again you may need to install extra dependencies and repeat the above debuild command.</p>
<p>Finally, we can install rsnapshot 1.3.1:</p>
<pre><code>cd ..
dpkg -i rsnapshot_1.3.1-1_all.deb
</code></pre>
</div>
<div class="tags-panel panel panel-default">
<div class="panel-body">
Tags:
<a rel="tag" href="/simon/blog/?tag=debian">debian</a>
<a rel="tag" href="/simon/blog/?tag=lenny">lenny</a>
<a rel="tag" href="/simon/blog/?tag=rsnapshot">rsnapshot</a>
<a rel="tag" href="/simon/blog/?tag=technology">technology</a>
</div>
</div>
</article>