<?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>semioticpixels scratch pad &#187; backups</title>
	<atom:link href="http://www.semioticpixels.com/tag/backups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.semioticpixels.com</link>
	<description></description>
	<lastBuildDate>Sun, 23 May 2010 20:07:32 +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>rsync over ssh</title>
		<link>http://www.semioticpixels.com/2010/01/rsync-over-ssh/</link>
		<comments>http://www.semioticpixels.com/2010/01/rsync-over-ssh/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 19:29:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[crib notes]]></category>
		<category><![CDATA[data security]]></category>
		<category><![CDATA[linux server administration]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[infrastructure]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.semioticpixels.com/?p=174</guid>
		<description><![CDATA[Rysnc from 1 linux box to another and keep the file structure identical
Delete files from the target directory that have been deleted in the source directory
rsync -avz -e ssh --delete  remoteuser@remotehost:/remote/dir/ /this/dir/
Note: the ending {/} is important if you don&#8217;t want to hose a directory.  
Backup a website on a linux box to [...]]]></description>
			<content:encoded><![CDATA[<h3>Rysnc from 1 linux box to another and keep the file structure identical</h3>
<p>Delete files from the target directory that have been deleted in the source directory<br />
<code>rsync -avz -e ssh --delete  remoteuser@remotehost:/remote/dir/ /this/dir/</code></p>
<p><em>Note:</em> the ending {/} is important if you don&#8217;t want to hose a directory.  </p>
<h3>Backup a website on a linux box to your windows machine</h3>
<p>rsync reads &#8220;:&#8221; in a filepath as a remote directory, so if you&#8217;re trying to rsync to &#8220;c://&#8221; rsync will be confused.  Instead of using windows syntax for filepaths, use the cygwin directory structure.</p>
<ol>
<li><a href="http://www.cygwin.com/cygwin-ug-net/setup-net.html">Install cygwin</a> to windows</li>
<li>test rsync and ssh are installed by typing from within the cygwin terminal:<br />
<code>rsync --version</code><br />
<code>ssh -l username somedomain</code>
</li>
<li>create a directory in c://cygwin named backups or whatever you want to call it.</li>
<li><code>rsync -avz -e ssh --delete  remoteuser@remotehost:/remote/dir/ /cygdrive/c/directoryname</code> Change the directory drive to whatever it should be</li>
</ol>
<h3>references</h3>
<p><a href="http://troy.jdmz.net/rsync/index.html">rsync over ssh</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.semioticpixels.com/2010/01/rsync-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
