<?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>base42.nl &#187; rSync</title>
	<atom:link href="http://blog.base42.nl/tag/rsync/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.base42.nl</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 19:40:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Quick deploy with rSync</title>
		<link>http://blog.base42.nl/2008/quick-deploy-with-rsync/</link>
		<comments>http://blog.base42.nl/2008/quick-deploy-with-rsync/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 13:47:47 +0000</pubDate>
		<dc:creator>jankees</dc:creator>
				<category><![CDATA[workflow]]></category>
		<category><![CDATA[rSync]]></category>

		<guid isPermaLink="false">http://blog.base42.nl/?p=296</guid>
		<description><![CDATA[A month ago I discovered rSync (Wikipedia) it made the deployment of websites so much easier for me!! The nice thing is it only transfers the files you&#8217;ve changed. That&#8217;s much faster that copying all the files over FTP. I made a video of the deployment of my latest project; What it does: Export the [...]]]></description>
			<content:encoded><![CDATA[<p>A month ago I discovered rSync (<a href="http://en.wikipedia.org/wiki/Rsync">Wikipedia</a>) it made the deployment of websites so much easier for me!! The nice thing is it only transfers the files you&#8217;ve changed. That&#8217;s much faster that copying all the files over FTP.</p>
<p>I made a video of the deployment of my latest project;</p>
<p>What it does:</p>
<ul>
<li>Export the MySQL database (both local and online)</li>
<li>Commit the SQL files to a subversion server</li>
<li>Uploads the complete website to my webserver with an option to sync the uploaded files from the cms. (transfer is done over <a href="http://en.wikipedia.org/wiki/Ssh">SSH</a>)</li>
</ul>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="450" height="285" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=1998542&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="450" height="285" src="http://vimeo.com/moogaloop.swf?clip_id=1998542&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>If you want this for yourself check the basic version of the script below; (If you want to backup a MySQL server like I do, contact me)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">path</span>=<span style="color: #ff0000;">&quot;/Users/jankees/Documents/work/Blond/frontend/web/&quot;</span>
<span style="color: #007800;">exclude_path</span>=<span style="color: #ff0000;">&quot;/Users/jankees/Documents/work/Blond/rsync/&quot;</span>
<span style="color: #007800;">online_path</span>=<span style="color: #ff0000;">&quot;~/base42.nl/subdomains/projects/blond/flash/&quot;</span>
<span style="color: #007800;">mysqldump_path</span>=<span style="color: #ff0000;">&quot;/Applications/MAMP/Library/bin/mysqldump&quot;</span>
<span style="color: #007800;">mysqldumpsql_path</span>=<span style="color: #ff0000;">&quot;/Users/jankees/Documents/work/Blond/backend/sql&quot;</span>
<span style="color: #007800;">svn_path</span>=<span style="color: #ff0000;">&quot;/opt/subversion/bin/svn&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;------------------------------------------&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- website syncing tool version 0.5&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- Jankees van Woezik 2008&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;------------------------------------------&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;------------------------------------------&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- VARIABLES:&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- exclude: <span style="color: #007800;">${exclude_path}</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- local storage path: <span style="color: #007800;">${path}</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- online storage path: <span style="color: #007800;">${online_path}</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- mysqldumppath: <span style="color: #007800;">${mysqldump_path}</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- local sql path: <span style="color: #007800;">${mysqldumpsql_path}</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;------------------------------------------&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Let's start.&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;------------------------------------------&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- Do some rSync? [yes/no]:&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> do_rsync
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$do_rsync</span> = <span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;  <span style="color: #000000; font-weight: bold;">then</span>
&nbsp;
			rsync <span style="color: #660033;">--recursive</span> <span style="color: #660033;">--checksum</span> <span style="color: #660033;">--progress</span> <span style="color: #660033;">--compress</span> <span style="color: #660033;">--update</span> <span style="color: #660033;">--delete</span> <span style="color: #660033;">-e</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> \
			 <span style="color: #007800;">$path</span> \
			user<span style="color: #000000; font-weight: bold;">@</span>yourdomein.com:<span style="color: #ff0000;">&quot;<span style="color: #007800;">${online_path}</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- Skipping rSync..&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;------------------------------------------&quot;</span></pre></div></div>

<p>If you don&#8217;t like the terminal check <a href="http://arrsync.sourceforge.net/">arSync</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.base42.nl/2008/quick-deploy-with-rsync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

