<?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>ZuhaiBlog &#187; Laughing Squid</title>
	<atom:link href="http://zuhaiblog.com/tag/laughing-squid/feed/" rel="self" type="application/rss+xml" />
	<link>http://zuhaiblog.com</link>
	<description>A blog about Zuhaib.. What you never heard of me?</description>
	<lastBuildDate>Mon, 02 Jan 2012 22:21:53 +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>Using diff (or rsync) to compare folders over SSH on two different servers</title>
		<link>http://zuhaiblog.com/2011/02/14/using-diff-to-compare-folders-over-ssh-on-two-different-servers/</link>
		<comments>http://zuhaiblog.com/2011/02/14/using-diff-to-compare-folders-over-ssh-on-two-different-servers/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 05:42:39 +0000</pubDate>
		<dc:creator>zuhaib</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Laughing Squid]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Server Fault]]></category>

		<guid isPermaLink="false">http://zuhaiblog.com/?p=9384</guid>
		<description><![CDATA[So I wanted to find a quick code that will allow me to a diff over two folders as I want to be sure all files get transfered as we are using Plesk migrator to move domains from one server to another. Found a Serverfault post titled How do diff over ssh? but most of [...]]]></description>
			<content:encoded><![CDATA[<p>So I wanted to find a quick code that will allow me to a diff over two folders as I want to be sure all files get transfered as we are using Plesk migrator to move domains from one server to another.  Found a Serverfault post titled <a href="http://serverfault.com/questions/59140/how-do-diff-over-ssh">How do diff over ssh?</a> but most of the suggestions are for files and not folders and none that work recursively.  Well using <a href="http://serverfault.com/questions/59140/how-do-diff-over-ssh/59147#59147">this answer</a> from Server Fault and some man pages I have the following</p>
<pre class="brush: bash; title: ; notranslate">
diff &lt;(ssh server1 'sudo ls -1aR /var/www/vhosts/domain.com') &lt;(ssh server2 'sudo ls -1aR /var/www/vhosts/domain.com')
</pre>
<p>Update:<br />
So a lot of people in the ServerFault page I linked to mentioned rync with the &#8211;dry-run flag.  I did not look in to this much but just as I posted this blog the first @reply i got on twitter was from <a href="https://twitter.com/#!/evanhoffman/status/37387348912250880">@EvanHoffman</a> asking if I had looked at using rsync.  Ok so I thought I should revisited the problem and using rsync and I got the follow: </p>
<pre class="brush: bash; title: ; notranslate">
rsync --dry-run -rvce &quot;ssh -p port#&quot; user@server1:/var/www/vhosts/ /var/www/vhosts/domain.com/
</pre>
<p>(I have not tested the rsync solution with a live box but from testing on my local system I assume this would work)<br />
One of the limitation of this you need to be on one of the two servers vs the solutions using diff is something you do on your computer that can SSH to both systems.</p><fb:like href='http://zuhaiblog.com/2011/02/14/using-diff-to-compare-folders-over-ssh-on-two-different-servers/' send='false' layout='button_count' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like><div id="tweetbutton9384" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fzuhaiblog.com%2F2011%2F02%2F14%2Fusing-diff-to-compare-folders-over-ssh-on-two-different-servers%2F&amp;via=zuhaib&amp;text=Using%20diff%20%28or%20rsync%29%20to%20compare%20folders%20over%20SSH%20on%20two%20different%20servers&amp;related=zuhaib&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fzuhaiblog.com%2F2011%2F02%2F14%2Fusing-diff-to-compare-folders-over-ssh-on-two-different-servers%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://zuhaiblog.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://zuhaiblog.com/2011/02/14/using-diff-to-compare-folders-over-ssh-on-two-different-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Laughing Squid 15th Anniversary New York Trip Photos</title>
		<link>http://zuhaiblog.com/2010/10/03/laughing-squid-15th-anniversary-new-york-trip-photos/</link>
		<comments>http://zuhaiblog.com/2010/10/03/laughing-squid-15th-anniversary-new-york-trip-photos/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 05:44:34 +0000</pubDate>
		<dc:creator>zuhaib</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[Laughing Squid]]></category>
		<category><![CDATA[New York]]></category>

		<guid isPermaLink="false">http://zuhaiblog.com/2010/10/03/laughing-squid-15th-anniversary-new-york-trip-photos/</guid>
		<description><![CDATA[Tweet]]></description>
			<content:encoded><![CDATA[<p><object width="637" height="475"><param name="flashvars" value="offsite=true&#038;lang=en-us&#038;page_show_url=%2Fphotos%2Fzuhaib%2Fsets%2F72157625021111876%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Fzuhaib%2Fsets%2F72157625021111876%2F&#038;set_id=72157625021111876&#038;jump_to="></param><param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"></param><param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=71649" allowFullScreen="true" flashvars="offsite=true&#038;lang=en-us&#038;page_show_url=%2Fphotos%2Fzuhaib%2Fsets%2F72157625021111876%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Fzuhaib%2Fsets%2F72157625021111876%2F&#038;set_id=72157625021111876&#038;jump_to=" width="637" height="475"></embed></object></p><fb:like href='http://zuhaiblog.com/2010/10/03/laughing-squid-15th-anniversary-new-york-trip-photos/' send='false' layout='button_count' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like><div id="tweetbutton6198" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fzuhaiblog.com%2F2010%2F10%2F03%2Flaughing-squid-15th-anniversary-new-york-trip-photos%2F&amp;via=zuhaib&amp;text=Laughing%20Squid%2015th%20Anniversary%20New%20York%20Trip%20Photos&amp;related=zuhaib&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fzuhaiblog.com%2F2010%2F10%2F03%2Flaughing-squid-15th-anniversary-new-york-trip-photos%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://zuhaiblog.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://zuhaiblog.com/2010/10/03/laughing-squid-15th-anniversary-new-york-trip-photos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Laughing Squid Trip to New York</title>
		<link>http://zuhaiblog.com/2010/07/21/laughing-squid-trip-to-new-york/</link>
		<comments>http://zuhaiblog.com/2010/07/21/laughing-squid-trip-to-new-york/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 23:31:21 +0000</pubDate>
		<dc:creator>zuhaib</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[Laughing Squid]]></category>
		<category><![CDATA[New York]]></category>

		<guid isPermaLink="false">http://zuhaiblog.com/2010/07/21/laughing-squid-trip-to-new-york/</guid>
		<description><![CDATA[Tweet]]></description>
			<content:encoded><![CDATA[<p><object width="637" height="475"><param name="flashvars" value="offsite=true&#038;lang=en-us&#038;page_show_url=%2Fphotos%2Fzuhaib%2Fsets%2F72157624394268283%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Fzuhaib%2Fsets%2F72157624394268283%2F&#038;set_id=72157624394268283&#038;jump_to="></param><param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"></param><param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=71649" allowFullScreen="true" flashvars="offsite=true&#038;lang=en-us&#038;page_show_url=%2Fphotos%2Fzuhaib%2Fsets%2F72157624394268283%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Fzuhaib%2Fsets%2F72157624394268283%2F&#038;set_id=72157624394268283&#038;jump_to=" width="637" height="475"></embed></object></p><fb:like href='http://zuhaiblog.com/2010/07/21/laughing-squid-trip-to-new-york/' send='false' layout='button_count' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like><div id="tweetbutton3691" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fzuhaiblog.com%2F2010%2F07%2F21%2Flaughing-squid-trip-to-new-york%2F&amp;via=zuhaib&amp;text=Laughing%20Squid%20Trip%20to%20New%20York&amp;related=zuhaib&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fzuhaiblog.com%2F2010%2F07%2F21%2Flaughing-squid-trip-to-new-york%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://zuhaiblog.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://zuhaiblog.com/2010/07/21/laughing-squid-trip-to-new-york/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great Backdrop for a Laughing Squid Part&#8230;</title>
		<link>http://zuhaiblog.com/2010/06/28/great-backdrop-for-a-laughing-squid-part/</link>
		<comments>http://zuhaiblog.com/2010/06/28/great-backdrop-for-a-laughing-squid-part/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 15:52:15 +0000</pubDate>
		<dc:creator>zuhaib</dc:creator>
				<category><![CDATA[status]]></category>
		<category><![CDATA[Cruiser]]></category>
		<category><![CDATA[Laughing Squid]]></category>
		<category><![CDATA[Russian]]></category>
		<category><![CDATA[Ship]]></category>

		<guid isPermaLink="false">http://zuhaiblog.com/2010/06/28/great-backdrop-for-a-laughing-squid-part/</guid>
		<description><![CDATA[Great Backdrop for a Laughing Squid Party from last Thursday. http://en.wikipedia.org/wiki/Russian_cruiser_Varyag_(1983)Tweet]]></description>
			<content:encoded><![CDATA[<p><a href="http://zuhaiblog.com/?attachment_id=189" rel="attachment wp-att-189"><img src="http://zuhaiblog.com/wp-content/uploads/2010/06/IMG_0736-300x224.jpg" alt="Russian Cruise Missile Ship" title="Laughing Squid Party Backdrop" width="300" height="224" class="alignnone size-medium wp-image-189" /></a><br />
Great Backdrop for a Laughing Squid Party from last Thursday.  <a href="http://en.wikipedia.org/wiki/Russian_cruiser_Varyag_(1983)" rel="nofollow">http://en.wikipedia.org/wiki/Russian_cruiser_Varyag_(1983)</a></p><fb:like href='http://zuhaiblog.com/2010/06/28/great-backdrop-for-a-laughing-squid-part/' send='false' layout='button_count' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like><div id="tweetbutton190" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fzuhaiblog.com%2F2010%2F06%2F28%2Fgreat-backdrop-for-a-laughing-squid-part%2F&amp;via=zuhaib&amp;text=Great%20Backdrop%20for%20a%20Laughing%20Squid%20Part%26%238230%3B&amp;related=zuhaib&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fzuhaiblog.com%2F2010%2F06%2F28%2Fgreat-backdrop-for-a-laughing-squid-part%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://zuhaiblog.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://zuhaiblog.com/2010/06/28/great-backdrop-for-a-laughing-squid-part/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

