<?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>HostOnNet.com &#187; Funny</title>
	<atom:link href="http://blog.hostonnet.com/category/funny/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hostonnet.com</link>
	<description>Windows, Linux, Ubuntu, Web Hosting</description>
	<lastBuildDate>Mon, 07 Jun 2010 08:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Copying files with rsync</title>
		<link>http://blog.hostonnet.com/copying-files-with-rsync</link>
		<comments>http://blog.hostonnet.com/copying-files-with-rsync#comments</comments>
		<pubDate>Fri, 05 Jun 2009 09:53:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[copy files between servers]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=75</guid>
		<description><![CDATA[rsync is very good command to copy files between two linux servers. To move a folder from server1 to server2, login to server1 with ssh Rrun rsync -a -v --progress --timeout=0 -e &#34;ssh -p 22&#34; /path/to/source/folder/ user@server2-ip:/path/to/destination/folder/ Here ssh -p 22 is the default SSH port, if you use non standard ssh port, replace 22 [...]]]></description>
			<content:encoded><![CDATA[<p>rsync is very good command to copy files between two linux servers.</p>
<p>To move a folder from server1 to server2, login to server1 with ssh</p>
<p>Rrun</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rsync <span style="color: #660033;">-a</span> <span style="color: #660033;">-v</span> <span style="color: #660033;">--progress</span> <span style="color: #660033;">--timeout</span>=<span style="color: #000000;">0</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;ssh -p 22&quot;</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span>folder<span style="color: #000000; font-weight: bold;">/</span> user<span style="color: #000000; font-weight: bold;">@</span>server2-ip:<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>destination<span style="color: #000000; font-weight: bold;">/</span>folder<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Here <strong>ssh -p 22 </strong> is the default SSH port, if you use non standard ssh port, replace 22 with your ssh port number.</p>
<p>For example, if you want to copy (sync) folder /home/hoston/public_html/ on server 1 to server2, run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rsync <span style="color: #660033;">-a</span> <span style="color: #660033;">-v</span> <span style="color: #660033;">--progress</span> <span style="color: #660033;">--timeout</span>=<span style="color: #000000;">0</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;ssh -p 22&quot;</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hoston<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span> user<span style="color: #000000; font-weight: bold;">@</span>server2-ip:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hoston<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>You need to run the command on the server where your files are in (source server).</p>
<p>rsync is not just copy, it do sync two folders, can be used for backup, so only changed files need to be transferred to remote server when you run rsync. </p>
<p>rsync can also used to mirror your web site to another web sever for load balancing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/copying-files-with-rsync/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy way to Shutdown  MS Windows</title>
		<link>http://blog.hostonnet.com/shutdown-ms-windows</link>
		<comments>http://blog.hostonnet.com/shutdown-ms-windows#comments</comments>
		<pubDate>Mon, 01 Jun 2009 14:37:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[shutdown windows]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=58</guid>
		<description><![CDATA[Easy Way to Shutdown Microsoft Windows]]></description>
			<content:encoded><![CDATA[<p>Easy Way to Shutdown Microsoft Windows</p>
<p><a href="http://blog.hostonnet.com/wp-content/uploads/2009/06/windows-xp-semicolon.png"><img src="http://blog.hostonnet.com/wp-content/uploads/2009/06/windows-xp-semicolon-300x224.png" alt="windows-xp-semicolon" title="windows-xp-semicolon" width="300" height="224" class="alignnone size-medium wp-image-59" /></a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/shutdown-ms-windows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evolution of Computer Languages</title>
		<link>http://blog.hostonnet.com/evolution-of-computer-languages</link>
		<comments>http://blog.hostonnet.com/evolution-of-computer-languages#comments</comments>
		<pubDate>Sun, 31 May 2009 14:35:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Computer Languages]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=55</guid>
		<description><![CDATA[Evolution of Computer Languages]]></description>
			<content:encoded><![CDATA[<p>Evolution of Computer Languages</p>
<p><a href="http://blog.hostonnet.com/wp-content/uploads/2009/05/userfriendly-evolution-of-language.png"><img src="http://blog.hostonnet.com/wp-content/uploads/2009/05/userfriendly-evolution-of-language-300x207.png" alt="userfriendly-evolution-of-language" title="userfriendly-evolution-of-language" width="300" height="207" class="alignnone size-medium wp-image-56" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/evolution-of-computer-languages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
