<?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>Stereo Interactive &#38; Design &#187; rsync</title>
	<atom:link href="http://stereointeractive.com/blog/tag/rsync/feed/" rel="self" type="application/rss+xml" />
	<link>http://stereointeractive.com/blog</link>
	<description>Development Blog</description>
	<lastBuildDate>Wed, 07 Jul 2010 19:16:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using rsync to synchronize local and remote directories</title>
		<link>http://stereointeractive.com/blog/2008/08/28/using-rsync-to-synchronize-local-and-remote-directories/</link>
		<comments>http://stereointeractive.com/blog/2008/08/28/using-rsync-to-synchronize-local-and-remote-directories/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 16:40:55 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://stereointeractive.com/blog/2008/08/28/using-rsync-to-synchronize-local-and-remote-directories/</guid>
		<description><![CDATA[When our design team is done with an html / css design, they upload it to a webserver for the client to review. Once it&#8217;s been approved, it&#8217;s time for the developers to download the static site and start integrating it into the php application. To pull down the site files, FTP does the job [...]]]></description>
			<content:encoded><![CDATA[<p>When our design team is done with an html / css design, they upload it to a webserver for the client to review. Once it&#8217;s been approved, it&#8217;s time for the developers to download the static site and start integrating it into the php application. To pull down the site files, FTP does the job just fine, but invariably there will be changes made to the template even after it&#8217;s been approved. Or, perhaps the developers want to start on a few pages that have been finished before every page has been coded into html. A nice way to pull down only the latest files changed by your designers, making sure to get any related images or css files, is by using rsync.</p>
<p>Here is what works for us:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rsync <span class="re5">-avcn</span> <span class="re5">-e</span> <span class="st_h">'ssh -p [ssh port number]'</span> <span class="br0">&#91;</span>user<span class="br0">&#93;</span><span class="sy0">@</span><span class="br0">&#91;</span>your remote domain<span class="br0">&#93;</span>:<span class="sy0">/</span>home<span class="sy0">/</span><span class="br0">&#91;</span>user<span class="br0">&#93;</span><span class="sy0">/</span><span class="br0">&#91;</span>your remote template path<span class="br0">&#93;</span><span class="sy0">/</span> <span class="br0">&#91;</span>your <span class="kw3">local</span> template path<span class="br0">&#93;</span></pre></div></div>

<p>This will do a dry-run, meaning it won&#8217;t actually copy any files, but it will show you what it <em>would have</em> done. When you are ready to go for it, remove the &#8220;n&#8221; from &#8220;-avcn&#8221;, and you&#8217;ll automatically pull down any files that have been modified on the remote server.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2008/08/28/using-rsync-to-synchronize-local-and-remote-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
