<?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>Naqoosh &#187; incremental</title>
	<atom:link href="http://www.naqoosh.com/tag/incremental/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.naqoosh.com</link>
	<description>Software Development, Trekking and Wildlife</description>
	<lastBuildDate>Thu, 05 Jan 2012 10:19:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Incremental backup using Rdiff-Backup</title>
		<link>http://www.naqoosh.com/incremental-backup-using-rdiff-backup/</link>
		<comments>http://www.naqoosh.com/incremental-backup-using-rdiff-backup/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 05:05:08 +0000</pubDate>
		<dc:creator>Meraj Khattak</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[incremental]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rdiff-backup]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://www.naqoosh.com/?p=103</guid>
		<description><![CDATA[Backup. No one can deny the fact that it is a very core requirement of IT businesses. We had been using a script to backup data to a specified folder on our Linux server and then from Linux server we &#8230; <a href="http://www.naqoosh.com/incremental-backup-using-rdiff-backup/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Backup. No one can deny the fact that it is a very core requirement of IT businesses. We had been using a script to backup data to a specified folder on our Linux server and then from Linux server we used to write CD weekly or bi weekly basis. Due to lack of time, we couldn&#8217;t improve this for quite sometime.</p>
<p>Recently, when due to some extremely busy schedule I couldn&#8217;t take backups on CDs, I thought to improve our backup process. Our requirements were really simple, we needed a backup process which could copy our required folders to a remote server and then later on keep doing some incremental backups there. Upon some research, I found two software being used for this purpose one is <em>rsync</em>, the other one <em>rdiff-backup</em>, I chose to go with <em>rdiff-backup</em> software as it was purely written for this purpose of backup and it also uses the libraries of rsync.</p>
<p>I studied and evaluated it and found it worth trying. After a few days of trying on this on my local machine, I installed this both on our local server and online server to start backup using this. Following are some of the steps which would help anyone setup this on their machines:</p>
<ul>
<li>To use rdiff-backup for remote backup of local servers. Both servers need to have rdiff-backup installed. rdiff-backup is available from apt-get on a debian system and for Redhat based systems it could be downloaded from <a title="rdiff-backup home page" href="http://rdiff-backup.nongnu.org/">http://rdiff-backup.nongnu.org/</a></li>
<li>After installing rdiff-backup on both servers to start taking backup issue the following command:<br />
rdiff-backup /home/www/ root@192.168.0.103::/home/meraj/backup/ (whhere /home/www/ is my local source folder to taken backup of and root@192.168.0.103::/home/meraj/backup/ is server address and destination folder)</li>
</ul>
<p>Now my next step is to automate this stuff. I don&#8217;t want do this every day manually so now will try to get some time and automate this by writing a shell script and then run it through <em>crontab</em>.</p>
<p>While setting up and running rdiff-backup, I noticed the following issues:</p>
<ol>
<li>To make sure that <em>rdiff-backup</em> is working correctly, before trying to start backup run &#8216;<em>rdiff-backup &#8211;version</em>&#8216; on both servers and make sure that it returns version correctly, which would mean that <em>rdiff-backup</em> is correctly configured and running.</li>
<li>Make sure that on the destination server we have SE (on redhat machines) not running or if running, then make it permissive mode.</li>
<li>In case running SE in permissive mode also doesn&#8217;t help then try to relabel the _librsync.s using &#8216;<em>chcon -t texrel_shlib_t /usr/lib/python2.4/site-packages/rdiff_backup/_librsync.s</em>&#8216;</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.naqoosh.com/incremental-backup-using-rdiff-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

