<?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>rsnapshot &#8211; Arun&#8217;s blog</title>
	<atom:link href="https://arunns.net/tag/rsnapshot/feed/" rel="self" type="application/rss+xml" />
	<link>https://arunns.net</link>
	<description>Arun&#039;s blog</description>
	<lastBuildDate>Mon, 22 Aug 2011 16:28:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.2</generator>
	<item>
		<title>Install and configure rsnapshot for central backup (without root privilege)</title>
		<link>https://arunns.net/install-and-configure-rsnapshot-without-root-privilege/</link>
					<comments>https://arunns.net/install-and-configure-rsnapshot-without-root-privilege/#respond</comments>
		
		<dc:creator><![CDATA[Arun N.]]></dc:creator>
		<pubDate>Mon, 22 Aug 2011 16:28:57 +0000</pubDate>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[rsnapshot]]></category>
		<guid isPermaLink="false">http://arunnsblog.com/?p=559</guid>

					<description><![CDATA[Download and install RsnapShot Download the latest package from: http://rsnapshot.org/downloads.html # wget http://rsnapshot.org/downloads/rsnapshot-1.3.1-1.noarch.rpm # rpm -Uvh rsnapshot-1.3.1-1.noarch.rpm Configure public key authentication &#8211; Enable public key authentication with remote hosts with normal user privilege local# ssh-keygen -t rsa local# scp id_rsa.pub ssh-remote-server:id_rsa.pub remote# useradd -c &#8220;Backup user&#8221; -d /data/home/backup/ backup remote# su &#8211; backup remote# vi [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><strong>Download and install RsnapShot</strong></span><br />
Download the latest package from: http://rsnapshot.org/downloads.html</p>
<blockquote><p># wget http://rsnapshot.org/downloads/rsnapshot-1.3.1-1.noarch.rpm<br />
# rpm -Uvh rsnapshot-1.3.1-1.noarch.rpm</p></blockquote>
<p><strong><span style="text-decoration: underline;">Configure public key authentication</span></strong></p>
<p>&#8211; Enable public key authentication with remote hosts with normal user privilege</p>
<blockquote><p>local# ssh-keygen -t rsa<br />
local# scp id_rsa.pub ssh-remote-server:id_rsa.pub</p>
<p>remote# useradd -c &#8220;Backup user&#8221; -d /data/home/backup/ backup<br />
remote# su &#8211; backup</p>
<p>remote# vi .ssh/authorized_keys</p>
<p>remote# chmod 600 .ssh/authorized_keys</p>
<p>remote# cat id_rsa.pub &gt;&gt; authorized_keys ; rm id_rsa.pub</p></blockquote>
<p>Add the command allowed to execute in the authorized_keys</p>
<blockquote><p>command=&#8221;/home/backup/validate-rsync.sh&#8221;</p></blockquote>
<p>Create the /home/backup/validate-rsync.sh script with following contents</p>
<blockquote><p><em>#!/bin/sh</em><br />
<em>case &#8220;$SSH_ORIGINAL_COMMAND&#8221; in</em><br />
<em>  *\&amp;*)</em><br />
<em>    echo &#8220;Rejected 1&#8221;</em><br />
<em>    ;;</em><br />
<em>  *\;*)</em><br />
<em>    echo &#8220;Rejected 2&#8221;</em><br />
<em>    ;;</em><br />
<em>    rsync*)</em><br />
<em>    $SSH_ORIGINAL_COMMAND</em><br />
<em>    ;;</em><br />
<em>  *true*)</em><br />
<em>    echo $SSH_ORIGINAL_COMMAND</em><br />
<em>    ;;</em><br />
<em>  *)</em><br />
<em>    echo &#8220;Rejected 3&#8221;</em><br />
<em>    ;;</em><br />
<em>esac</em></p>
<p>$ chmod 700 validate-rsync.sh</p></blockquote>
<p>Create the rsync wrapper script</p>
<blockquote><p>$ cat  &gt; /usr/local/bin/rsync_wrapper.sh</p>
<p><em>#!/bin/sh</em><br />
<em>/usr/bin/sudo /usr/bin/rsync &#8220;$@&#8221;;</em></p>
<p># chmod 755 /usr/local/bin/rsync_wrapper.sh</p></blockquote>
<p>This steps will basically force the ssh connection to execute the rsync as sudo</p>
<p>Grant user to execute rsync as root</p>
<blockquote><p><em>backup    ALL=(root) NOPASSWD: /usr/bin/rsync</em></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Configure Rsnapshot</strong></span></p>
<blockquote><p>master# cp /etc/rsnapshot.conf.default /etc/rsnapshot.conf</p></blockquote>
<p>Configure path for cp, rsync, ssh, logger, du etc</p>
<blockquote><p>set link_dest = 1</p></blockquote>
<p>change rsync_long_args like</p>
<blockquote><p>rsync_long_args &#8211;rsync-path=rsync_wrapper.sh &#8211;delete &#8211;numeric-ids &#8211;relative &#8211;delete-excluded</p></blockquote>
<p>If you require daily backup for a week,</p>
<blockquote><p>interval daily 7</p></blockquote>
<p>More details are on the how to section for rsnapshot website<br />
http://rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html</p>
<p>Configure the hosts and file system to backup</p>
<blockquote><p>backup      backup@remotehost:/etc/     remotehost/</p></blockquote>
<p>./arun</p>
<blockquote><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://arunns.net/install-and-configure-rsnapshot-without-root-privilege/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Rsnapshot Lchown</title>
		<link>https://arunns.net/rsnapshot-lchown/</link>
					<comments>https://arunns.net/rsnapshot-lchown/#comments</comments>
		
		<dc:creator><![CDATA[Arun N.]]></dc:creator>
		<pubDate>Mon, 06 Jun 2011 07:28:39 +0000</pubDate>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Lchown]]></category>
		<category><![CDATA[rsnapshot]]></category>
		<guid isPermaLink="false">http://arunnsblog.com/?p=506</guid>

					<description><![CDATA[# rsnapshot du localhost require Lchown Lchown module not found Install the Lchown module: # wget http://www.rsnapshot.org/downloads/extras/Lchown-1.00.tar.gz # tar xvzf Lchown-1.00.tar.gz # cd Lchown-1.00 # perl Makefile.PL Checking if your kit is complete&#8230; Looks good # make install # rsnapshot du localhost require Lchown Lchown module loaded successfully You can also try installing the module [&#8230;]]]></description>
										<content:encoded><![CDATA[<blockquote><p># rsnapshot du localhost<br />
<em>require Lchown</em><br />
<em>Lchown module not found</em></p></blockquote>
<p>Install the Lchown module:</p>
<blockquote><p># wget http://www.rsnapshot.org/downloads/extras/Lchown-1.00.tar.gz</p>
<p># tar xvzf Lchown-1.00.tar.gz</p>
<p># cd Lchown-1.00</p>
<p># perl Makefile.PL<br />
<em>Checking if your kit is complete&#8230;</em><br />
<em>Looks good</em></p>
<p># make install</p></blockquote>
<blockquote><p># rsnapshot du localhost<br />
<em>require Lchown</em><br />
<em>Lchown module loaded successfully</em></p></blockquote>
<p>You can also try installing the module from Perl CPAN</p>
<blockquote><p># perl -MCPAN -e &#8216;install qw(Lchown)&#8217;</p></blockquote>
<p>./arun</p>
]]></content:encoded>
					
					<wfw:commentRss>https://arunns.net/rsnapshot-lchown/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
