<?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>cHmuul.net &#187; rsync</title>
	<atom:link href="http://www.chmuul.net/tag/rsync/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chmuul.net</link>
	<description>man muss dabey gewesen seyn</description>
	<lastBuildDate>Sun, 22 Jan 2012 22:01:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>rsync bei TYPO3 Projekten</title>
		<link>http://www.chmuul.net/2010/02/rsync-bei-typo3-projekten/</link>
		<comments>http://www.chmuul.net/2010/02/rsync-bei-typo3-projekten/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 12:09:05 +0000</pubDate>
		<dc:creator>AaL</dc:creator>
				<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.chmuul.net/?p=44</guid>
		<description><![CDATA[Wollte heute mal ein TYPO3 Projekt ganz unkompliziert über rsync/ssh auf den Webserver hochladen. Funktioniert ganz gut mit:
1rsync -rulzPh -e 'ssh -ax' ./ ssh-user@ssh-host:/directory
Die Optionen sind -r für rekursiv, -u für update, -l für symbolische Links (erhalten), -z für Komprimierung, -P für &#8211;progress (Fortschrittsanzeige) und &#8211;partial (erlaubt anscheinend fortsetzen von Dateitransfers) und -h für &#8220;human [...]]]></description>
			<content:encoded><![CDATA[<p>Wollte heute mal ein TYPO3 Projekt ganz unkompliziert über rsync/ssh auf den Webserver hochladen. Funktioniert ganz gut mit:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rsync <span style="color: #660033;">-rulzPh</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'ssh -ax'</span> .<span style="color: #000000; font-weight: bold;">/</span> ssh-user<span style="color: #000000; font-weight: bold;">@</span>ssh-host:<span style="color: #000000; font-weight: bold;">/</span>directory</div></td></tr></tbody></table></div>
<p>Die Optionen sind -r für rekursiv, -u für update, -l für symbolische Links (erhalten), -z für Komprimierung, -P für &#8211;progress (Fortschrittsanzeige) und &#8211;partial (erlaubt anscheinend fortsetzen von Dateitransfers) und -h für &#8220;human readable&#8221; Formate. Mit -e schaltet man die Remote Shell um (da ich ja über SSH verbinde). Damit man aber nicht die ganzen Temp-Dateien und den sonstigen MacOS Filesystem-Mist mit transferiert, erstellt man am besten eine Datei, die zu exkludierende Dateien enthält. Diese hab ich &#8220;.rsync_exclude&#8221; genannt. Der Inhalt sieht dann wie folgt aus:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># exclude this file</span><br />
- .rsync_exclude<br />
<br />
<span style="color: #666666; font-style: italic;"># exclude mac files</span><br />
- .DS_Store<br />
- ._<span style="color: #000000; font-weight: bold;">*</span><br />
<br />
<span style="color: #666666; font-style: italic;"># exclude git repository</span><br />
- .git<br />
<br />
<span style="color: #666666; font-style: italic;"># exclude typo3 temp files</span><br />
- <span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>typo3temp<span style="color: #000000; font-weight: bold;">/*</span><br />
- <span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>typo3conf<span style="color: #000000; font-weight: bold;">/</span>temp_<span style="color: #000000; font-weight: bold;">*</span><br />
<br />
<span style="color: #666666; font-style: italic;"># exclude typo3 install file</span><br />
- <span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>typo3conf<span style="color: #000000; font-weight: bold;">/</span>ENABLE_INSTALL_TOOL<br />
<br />
<span style="color: #666666; font-style: italic;"># exclude typo3 deprecation logs</span><br />
- <span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>typo3conf<span style="color: #000000; font-weight: bold;">/</span>deprecation_<span style="color: #000000; font-weight: bold;">*</span></div></td></tr></tbody></table></div>
<p>Nun muss man beim Aufruf einfach nur noch <code class="codecolorer text blackboard"><span class="text">--exclude-from=.rsync_exclude</span></code> anhängen und ab gehts!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chmuul.net/2010/02/rsync-bei-typo3-projekten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

