<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Easy Rsync Remote Backups Using SSH Keys</title>
	<atom:link href="http://blog.schmichael.com/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.schmichael.com/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/</link>
	<description>good good study, day day up</description>
	<lastBuildDate>Thu, 29 Mar 2012 12:20:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Using Rsync as a Backup Solution</title>
		<link>http://blog.schmichael.com/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/comment-page-1/#comment-138615</link>
		<dc:creator>Using Rsync as a Backup Solution</dc:creator>
		<pubDate>Wed, 14 Dec 2011 05:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://michael.susens-schurter.com/blog/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/#comment-138615</guid>
		<description>[...] solution is to setup password-less login with an SSH key. This will encrypt the sign in, but it does mean that a third party that gains access to your [...]</description>
		<content:encoded><![CDATA[<p>[...] solution is to setup password-less login with an SSH key. This will encrypt the sign in, but it does mean that a third party that gains access to your [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Backup Important Server Files with Rsync</title>
		<link>http://blog.schmichael.com/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/comment-page-1/#comment-119417</link>
		<dc:creator>Backup Important Server Files with Rsync</dc:creator>
		<pubDate>Thu, 16 Jun 2011 17:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://michael.susens-schurter.com/blog/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/#comment-119417</guid>
		<description>[...] order to have the process fully automated without having to manually login, you will need to setup SSH keys on your server and remote backup [...]</description>
		<content:encoded><![CDATA[<p>[...] order to have the process fully automated without having to manually login, you will need to setup SSH keys on your server and remote backup [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinay</title>
		<link>http://blog.schmichael.com/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/comment-page-1/#comment-103806</link>
		<dc:creator>Vinay</dc:creator>
		<pubDate>Tue, 23 Nov 2010 14:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://michael.susens-schurter.com/blog/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/#comment-103806</guid>
		<description>just to add to my last query I am expecting to be prompted for password and that is also not coming.
tried using rsync on both the machines locally and that is working.</description>
		<content:encoded><![CDATA[<p>just to add to my last query I am expecting to be prompted for password and that is also not coming.<br />
tried using rsync on both the machines locally and that is working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinay</title>
		<link>http://blog.schmichael.com/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/comment-page-1/#comment-103805</link>
		<dc:creator>Vinay</dc:creator>
		<pubDate>Tue, 23 Nov 2010 14:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://michael.susens-schurter.com/blog/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/#comment-103805</guid>
		<description>I want to do this remote rsync just one off to create a one time back up for a few days
(need to preserve premissions and timings etc so using rsync)

soo no ssh keys

while specifying the remote directory i am giving as below

I am trying the below commnad

/software/rsync/usr/local/bin/rsync -rlptgov --rsync-path=/software/rsync/usr/local/bin/rsync --delete myUser@123.123.123.123 :/t1 t2

Intending to copy from remote directory t1 to directory t2
I am getting the below response
receiving incremental file list
rsync: change_dir#3 &quot;123.123.123.123&quot; failed: No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(707) [sender=3.0.4]
rsync: connection unexpectedly closed (9 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(632) [receiver=3.0.4]

If you can kindly guide ?</description>
		<content:encoded><![CDATA[<p>I want to do this remote rsync just one off to create a one time back up for a few days<br />
(need to preserve premissions and timings etc so using rsync)</p>
<p>soo no ssh keys</p>
<p>while specifying the remote directory i am giving as below</p>
<p>I am trying the below commnad</p>
<p>/software/rsync/usr/local/bin/rsync -rlptgov &#8211;rsync-path=/software/rsync/usr/local/bin/rsync &#8211;delete <a href="mailto:myUser@123.123.123.123">myUser@123.123.123.123</a> :/t1 t2</p>
<p>Intending to copy from remote directory t1 to directory t2<br />
I am getting the below response<br />
receiving incremental file list<br />
rsync: change_dir#3 &#8220;123.123.123.123&#8243; failed: No such file or directory (2)<br />
rsync error: errors selecting input/output files, dirs (code 3) at main.c(707) [sender=3.0.4]<br />
rsync: connection unexpectedly closed (9 bytes received so far) [receiver]<br />
rsync error: error in rsync protocol data stream (code 12) at io.c(632) [receiver=3.0.4]</p>
<p>If you can kindly guide ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.schmichael.com/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/comment-page-1/#comment-62681</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 12 Nov 2009 18:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://michael.susens-schurter.com/blog/2008/03/19/easy-rsync-remote-backups-using-ssh-keys/#comment-62681</guid>
		<description>you need to limit what command is executed when sync without password, prefix the key with command=&quot;/path/to/validating/script&quot;. 

As an example, your secured authorized_keys file might look like:

command=&quot;/home/user/validate-rsync.sh&quot; ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAyNChQxw/+Da....= user@remotehost.com

Finally, put something like the following in your validate-rsync.sh file:

#!/bin/sh
case &quot;$SSH_ORIGINAL_COMMAND&quot; in
*\&amp;*)
echo &quot;Rejected&quot;
;;
*\;*)
echo &quot;Rejected&quot;
;;
rsync\ --server*)
$SSH_ORIGINAL_COMMAND
;;
*)
echo &quot;Rejected&quot;
;;
esac

Make it executable by typing: chmod +x ~/validate-rsync.sh. 

This will check to see if the ssh session is being used to execute an rsync backup. 

If it is being used for anything else, the session will be rejected and closed.

Nice tutorial bro... ;)</description>
		<content:encoded><![CDATA[<p>you need to limit what command is executed when sync without password, prefix the key with command=&#8221;/path/to/validating/script&#8221;. </p>
<p>As an example, your secured authorized_keys file might look like:</p>
<p>command=&#8221;/home/user/validate-rsync.sh&#8221; ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAyNChQxw/+Da&#8230;.= <a href="mailto:user@remotehost.com">user@remotehost.com</a></p>
<p>Finally, put something like the following in your validate-rsync.sh file:</p>
<p>#!/bin/sh<br />
case &#8220;$SSH_ORIGINAL_COMMAND&#8221; in<br />
*\&amp;*)<br />
echo &#8220;Rejected&#8221;<br />
;;<br />
*\;*)<br />
echo &#8220;Rejected&#8221;<br />
;;<br />
rsync\ &#8211;server*)<br />
$SSH_ORIGINAL_COMMAND<br />
;;<br />
*)<br />
echo &#8220;Rejected&#8221;<br />
;;<br />
esac</p>
<p>Make it executable by typing: chmod +x ~/validate-rsync.sh. </p>
<p>This will check to see if the ssh session is being used to execute an rsync backup. </p>
<p>If it is being used for anything else, the session will be rejected and closed.</p>
<p>Nice tutorial bro&#8230; <img src='http://blog.schmichael.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

