<?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>Mike&#039;s Blog &#187; rsnapshot</title>
	<atom:link href="http://www.brintech.net/tag/rsnapshot/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brintech.net</link>
	<description>Gospel study notes and technical journal</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:01:19 +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>rsnapshot (Linux backup with versioning)</title>
		<link>http://www.brintech.net/rsnapshot-linux-backup-with-versioning/</link>
		<comments>http://www.brintech.net/rsnapshot-linux-backup-with-versioning/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 23:02:17 +0000</pubDate>
		<dc:creator>mbrinson</dc:creator>
				<category><![CDATA[Technical Journal]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rsnapshot]]></category>
		<category><![CDATA[versioning]]></category>

		<guid isPermaLink="false">http://www.brintech.net/2010/02/10/rsnapshot-linux-backup-with-versioning/</guid>
		<description><![CDATA[Apt-get install rsnapshot Edit the rsnapshot.conf file -> vim /etc/rsnapshot.conf If you do the install from the rsnapshot site instead of from the aptitude repository for debian then the default location for rsnapshot.conf is /usr/local/etc/rsnapshot.conf Set the snapshot root directory -> (this is the directory where the revisioned backups will be stored to) If this [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-left: 19pt">Apt-get install rsnapshot
</p>
<p style="margin-left: 19pt">Edit the rsnapshot.conf file -> vim /etc/rsnapshot.conf
</p>
<p style="margin-left: 19pt">If you do the install from the rsnapshot site instead of from the aptitude repository for debian then the default location for rsnapshot.conf is /usr/local/etc/rsnapshot.conf
</p>
<p style="margin-left: 19pt">Set the snapshot root directory ->  (this is the directory where the revisioned backups will be stored to)
</p>
<p style="margin-left: 19pt">If this directory doesn&#8217;t already exist, you will need to create it.
</p>
<p style="margin-left: 19pt"><img src="http://www.brintech.net/wp-content/uploads/2010/02/021010_2302_rsnapshotLi1.png" alt=""/><span style="font-family:Times New Roman; font-size:12pt"><br />
		</span></p>
<p style="margin-left: 19pt">Set the intervals (really, this just controls how many sets of backups will be retained before being overwritten by the next one.  For example, if you set the weekly interval to &#8220;3&#8243; as below, then that means once you reach &#8220;weekly.2&#8243; in /backup then it will start over with weekly.0 again.  Notice that the newest ones are always kept in the [hourly/daily/weekly].0 folder.
</p>
<p style="margin-left: 19pt"><img src="http://www.brintech.net/wp-content/uploads/2010/02/021010_2302_rsnapshotLi2.png" alt=""/><img src="http://www.brintech.net/wp-content/uploads/2010/02/021010_2302_rsnapshotLi3.png" alt=""/><span style="font-family:Times New Roman; font-size:12pt"><br />
		</span></p>
<p>Cron is what controls the actual timing of the backups and ensures that they are done on the hour, daily, or weekly.
</p>
<p style="margin-left: 19pt">Go to /etc/cron.[hourly/daily/weekly] and create a file named rsnapshot[hourly/daily/weekly] corresponding to each matching folder.
</p>
<p style="margin-left: 19pt">Contents of files:    (  [ … ] represents a set of options.  It means that you create 3 different files and in each of those files you have just one of the [ ] options, correspondingly.
</p>
<p style="margin-left: 19pt"><span style="background-color:aqua">#!/bin/sh<br/>#<br/># rsnapshot cron [hourly/daily/weekly]<br/>rsnapshot [hourly/daily/weekly]</span>
	</p>
<p style="margin-left: 19pt">Then you need to be sure to make the newly created bash scripts executable using the following:
</p>
<p style="margin-left: 19pt"><span style="background-color:aqua">chmod u+x rsnapshot…  (whatever the filename is)</span>
	</p>
<p style="margin-left: 19pt">Test it by running &#8220;rsnapshot configtest&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brintech.net/rsnapshot-linux-backup-with-versioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

