<?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>www.unnionline.com &#187; Backup</title>
	<atom:link href="http://www.unnionline.com/blog/category/subversion/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unnionline.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Nov 2011 11:49:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>A Fast And Non-resource Hungry Backup Stategy For Ubuntu</title>
		<link>http://www.unnionline.com/blog/2011/04/a-fast-and-non-resource-hungry-backup-stategy-for-ubuntu/</link>
		<comments>http://www.unnionline.com/blog/2011/04/a-fast-and-non-resource-hungry-backup-stategy-for-ubuntu/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 15:56:51 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Adobe Lightroom]]></category>
		<category><![CDATA[Adobe Photoshop]]></category>
		<category><![CDATA[Backing up photographs]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[cron and rsync]]></category>
		<category><![CDATA[DNG]]></category>
		<category><![CDATA[luckyBackup]]></category>
		<category><![CDATA[Photography Workflow]]></category>
		<category><![CDATA[RAW]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=236</guid>
		<description><![CDATA[I love command line, and]]></description>
			<content:encoded><![CDATA[<p>I love command line, and I spend most of the day working with a black-and-white terminal.  For this reason, ever since I started with Ubuntu, I have been using rsync and cron for backing up my files (in one of my previous <a href="http://www.unnionline.com/blog/category/subversion/backup/">posts</a>, I have provided a detailed how-to on backing up subversion repositories using rsync). However, not so long ago, I came across a very useful GUI for rsync and cron based backup called &#8216;luckyBackup&#8217;. I liked this software as it allowed me to visualise all my backup cron jobs in a single window. For some reason the experience of using this tool was a bit more reassuring than what I used to do. Some of its features such as multiple profiles, exclude/include files/directories, synchronisation etc were found to be very handy.</p>
<p>Now that I have started working with RAW and DNG photographs, my <a href="http://www.unnionline.com/blog/2011/04/nondestructive-photography-workflow-that-i-follow/">workflow</a> demands an efficient backup solution. I work on these files using Adobe Lighroom and Photoshop (I prefer them more than Gimp) on a VirtualBox WindowsXP. I have configured luckyBackup on my server to make backup of my RAW files every 12 hours to two independent locations &#8211; an internal backup only hard drive and a portable hard drive. luckyBackup emails me when the target directories are 25GB in size, so that I can then write it on to a Blue-Ray disk and lock it up safely. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2011/04/a-fast-and-non-resource-hungry-backup-stategy-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup Subversion Repositories And Projects</title>
		<link>http://www.unnionline.com/blog/2009/05/backup-subversion-repositories-and-projects/</link>
		<comments>http://www.unnionline.com/blog/2009/05/backup-subversion-repositories-and-projects/#comments</comments>
		<pubDate>Tue, 12 May 2009 15:51:08 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[cron jobm rsync]]></category>
		<category><![CDATA[Crontab]]></category>
		<category><![CDATA[hot-backup.py]]></category>
		<category><![CDATA[Repositories]]></category>
		<category><![CDATA[subversion backup]]></category>
		<category><![CDATA[subversion server]]></category>
		<category><![CDATA[svn backup]]></category>
		<category><![CDATA[svn hotcopy]]></category>
		<category><![CDATA[svnadmin]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=97</guid>
		<description><![CDATA[After I decided to manage]]></description>
			<content:encoded><![CDATA[<p>After I decided to manage my PhD thesis and projects with subversion, the most important thing to consider was a proper backup strategy. I decided to go a bit overboard with it as it might save me some day. There are several ways to backup subversion and I decided to use all of them!</p>
<p><strong>a. Using crontab and rsync to backup subversion</strong></p>
<p>Read my earlier post on crontab if you are not familiar with it. Someday I will write about rsync as well. But for now read  <a href="http://www.samba.org/rsync/">this</a> if you are new to rsync. I use the following code to backup the entire subversion repository to my backup directory.</p>
<p><code>rsync -av --delete --progress /source_directory/subversion/ /destination_directory/backups/subversion_backup/</code></p>
<p>I used crontab to schedule the above job to run at midnight every day. In case something happens to the original subeversion repository, it is easy to retrieve data from this backup &#8211; just copy it to the original location!</p>
<p><strong>b. Using the backup script from COLLABNET (the subversion guys)</strong></p>
<p>The next technique it to use the python based backup script from subversion called hot-backup.py. This script can be used to make a backup of the latest version of the subversion repository. I used the following code to download the latest version from COLLABNET website and install it on my system.</p>
<p><code>wget http://svn.collab.net/repos/svn/trunk/tools/backup/hot-backup.py.in<br />
mv hot-backup.py.in hot-backup.py</code></p>
<p>Once that is done, I had to make some configuration changes in the file. The following lines were changed</p>
<p><code># Path to svnlook utility<br />
svnlook = r"@SVN_BINDIR@/svnlook"<br />
# Path to svnadmin utility<br />
svnadmin = r"@SVN_BINDIR@/svnadmin"</code></p>
<p>to look like this</p>
<p><code># Path to svnlook utility<br />
svnlook = r"/usr/bin/svnlook"<br />
# Path to svnadmin utility<br />
svnadmin = r"/usr/bin/svnadmin"</code></p>
<p>The next step is to run the script check if everything is fine. I used the code below:</p>
<p><code>python hot-backup.py --archive-type=zip --num-backups=10 ~/source_directory/subversion_repository /destination_directory/subversion_backup/</code></p>
<p>The above code will make a hotcopy of the latest version of the subversion repository into the backup directory in zip format. A total of 10 backups will be maintained at a time, oldest one being deleted when new ones are added.</p>
<p>Once the backup was properly inspected I created a cron job to run this command at midnight every day.</p>
<p><strong>c. Using the subversion &#8216;hotcopy&#8217; command</strong></p>
<p>This is a very simple technique as it uses the inbuilt &#8216;hotcopy&#8217; command to backup the svn repository. Follow the command below to make a reliable incremental backup of your svn repositories. </p>
<p><code>svnadmin hotcopy /source_directory/subversion_repository /destination_directory/subversion_backup/</code></p>
<p>Create a cron job to schedule it.</p>
<p>Once you have your backup system in place, rest assured that your data are safe.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2009/05/backup-subversion-repositories-and-projects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

