<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zulius &#187; backup</title>
	<atom:link href="http://www.zulius.com/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zulius.com</link>
	<description>Advanced Application Development</description>
	<lastBuildDate>Fri, 30 Jul 2010 05:53:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>svnbak.pl: perl Subversion repository backup script</title>
		<link>http://www.zulius.com/freebies/perl-script-backup-subversion-repositories/</link>
		<comments>http://www.zulius.com/freebies/perl-script-backup-subversion-repositories/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 05:49:34 +0000</pubDate>
		<dc:creator>Tim White</dc:creator>
				<category><![CDATA[freebies]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.zulius.com/blog/?p=167</guid>
		<description><![CDATA[
jQuery(document).ready(function(){jQuery("a[rel='colorbox']").colorbox();});


What is it?

A Perl cron script that creates and rotates backups of one or more Subversion repositories.

What does it do?

Verifies repositories (svnadmin verify)
Hot copies -or- dumps repositories (uses svnadmin hotcopy -or- svnadmin dump)
Archives all repositories to a single tar file
Gzips tar file
Backup rotation

Other Features

Email notifications
Nice output
Free

Requirements
Operating System: *nix
Perl (5.8.5 or higher)
Subversion
tar
gzip

Proc::Reliable
MIME::Lite
Math::Round
Configure
At the top of svnbak.pl [...]]]></description>
			<content:encoded><![CDATA[<div style="margin: 0 auto; text-align: center"><a title="Download" href="http://www.zulius.com/scripts/svnbak.pl-0.0.7.tar.gz" target="_blank"><img src="/img/button-dl-orange.png" alt="" /></a></div>
<div style="float: right; padding: 0 5px; margin: 25px 0 0 0;">
<div class="wp-caption alignright" style="width: 160px"><a href="/img/blog/svnbak.pl/fullsize-ss.png" rel="colorbox"><img title="svnbak.pl executing" src="/img/blog/svnbak.pl/svnbak-titleImage.jpg" alt="svnbak.pl executing" width="150" height="110" /></a><p class="wp-caption-text">svnbak.pl executing</p></div><br />
<script type="text/javascript">jQuery(document).ready(function(){jQuery("a[rel='colorbox']").colorbox();});</script>
</div>
<div style="float: none"></div>
<h2>What is it?</h2>
<p>
A Perl cron script that creates and rotates backups of one or more Subversion repositories.
</p>
<h2>What does it do?</h2>
<ol>
<li>Verifies repositories (<a title="svnadmin verify" href="http://svnbook.red-bean.com/en/1.1/re41.html">svnadmin verify</a>)</li>
<li>Hot copies -or- dumps repositories (uses <a title="svnadmin hotcopy" href="http://svnbook.red-bean.com/en/1.0/re33.html">svnadmin hotcopy</a> -or- <a title="svnadmin dump" href="http://svnbook.red-bean.com/en/1.1/re31.html">svnadmin dump</a>)</li>
<li>Archives all repositories to a single tar file</li>
<li>Gzips tar file</li>
<li>Backup rotation</li>
</ol>
<h2>Other Features</h2>
<ul>
<li>Email notifications</li>
<li>Nice output</li>
<li>Free</li>
</ul>
<h2>Requirements</h2>
<p style="padding-left: 30px;">Operating System: *nix<br />
<a title="Perl" href="http://www.perl.org" target="_blank">Perl</a> (5.8.5 or higher)<br />
<a title="Subversion" href="http://subversion.tigris.org/">Subversion</a><br />
<a title="tar" href="http://www.gnu.org/software/tar/" target="_blank">tar</a><br />
<a title="gzip" href="http://www.gzip.org/" target="_blank">gzip</a>
</p>
<p style="padding-left: 30px;"><a title="Proc::Reliable" href="http://search.cpan.org/~dgold/Proc-Reliable-1.16/Reliable.pm" target="_blank">Proc::Reliable</a><br />
<a title="MIME::Lite" href="http://search.cpan.org/~rjbs/MIME-Lite-3.023/lib/MIME/Lite.pm" target="_blank">MIME::Lite</a><br />
<a title="Math::Round" href="http://search.cpan.org/~grommel/Math-Round-0.05/" target="_blank">Math::Round</a></p>
<h2>Configure</h2>
<div class="wp-caption aligncenter" style="width: 589px"><img style="border: 3px solid #000000;" title="Configuration Section" src="/img/blog/svnbak.pl/ss2.png" alt="svnbak.pl: Configuration Section" width="579" height="207" /><p class="wp-caption-text">svnbak.pl Configuration Section</p></div>
<p>At the top of svnbak.pl is a "Configuration Section" that you must add specific information to in order for the script to work.</p>
<ul>
<li><strong>reposDir</strong>: full path to your Subversion repository, or the parent directory of all your repositories.</li>
<li><strong>destDir</strong>: full path to the directory where the backups should be saved.  To save backups to a network file system, first mount the file system, then specify the mounted path.</li>
<li><strong>maxBaks</strong>: maximum number of backups to retain.  Once this limit is reached, the script will automatically remove the oldest backup based on it's last modified time.</li>
<li><strong>svnBakMethod:</strong> type of Subversion backup to create ('<a title="svnadmin hotcopy" href="http://svnbook.red-bean.com/en/1.0/re33.html">hotcopy</a>' or '<a title="svnadmin dump" href="http://svnbook.red-bean.com/en/1.1/re31.html">dump</a>').</li>
<li><strong>tarballName</strong>: the name of the backup file.  Each backup file will be appended with a 14 digit time stamp to preserve <span>singularity.</span></li>
<li><span><strong>tmpDir</strong>: full path to a <strong>new </strong>temporary directory to store files before tarballing.  This directory should not be an existing directory - it will be deleted!</span></li>
<li><strong>emailPref</strong>: when the admin should receive emails ('always', 'errors', 'none').</li>
<li><strong>displayTime</strong>: display execution time in seconds, per task.</li>
</ul>
<p style="text-align: center;">
<div style="margin: 0 auto; text-align: center"><a title="Download" href="http://www.zulius.com/scripts/svnbak.pl-0.0.7.tar.gz" target="_blank"><img src="/img/button-dl-orange.png" alt="" /></a></div>
<h2>Change Log</h2>
<p><strong>0.0.7 - 20100209</strong></p>
<ul>
<li>fixed failure of external commands running longer than 60 seconds</li>
</ul>
<p><strong>0.0.6 - 20091116</strong></p>
<ul>
<li>fixed fatal error when backing up a single repository</li>
<li>destination directory is created if it does not already exist</li>
<li>changed elapsed time format: 'seconds' -> 's'</li>
</ul>
<p><strong>0.0.5 - 20090326</strong></p>
<ul>
<li>added backup option of dumping repositories via svnadmin dump</li>
<li>increased error checking</li>
<li>fixed: some repositories skipped when there was a large number of repositories</li>
</ul>
<p><strong>0.0.1 - 20090108</strong></p>
<ul>
<li>initial release<strong><br />
</strong></li>
</ul>
<img src="http://www.zulius.com/blog/?ak_action=api_record_view&id=167&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.zulius.com/freebies/perl-script-backup-subversion-repositories/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
