<?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 &#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>Thu, 12 Jan 2012 08:43:04 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>rsync over ssh</title><link>http://www.semioticpixels.com/linux-server-administration/rsync-over-ssh/</link> <comments>http://www.semioticpixels.com/linux-server-administration/rsync-over-ssh/#comments</comments> <pubDate>Tue, 19 Jan 2010 19:29:30 +0000</pubDate> <dc:creator>chris</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 &#8230; <a href="http://www.semioticpixels.com/linux-server-administration/rsync-over-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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><span id="more-174"></span></p><p><em>Note:</em> the ending {/} is important if you don&#8217;t want to hose a directory.</p><h3>Rsync with a custom ssh port</h3><p>place the ssh command in quotes; for example:<br /> <code>rsync -avz 'ssh -p1234'</p><h3>Backup a website on a linux box to your windows machine</h3><p>rsync reads ":" in a filepath as a remote directory, so if you're trying to rsync to "c://" 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/linux-server-administration/rsync-over-ssh/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 13/23 queries in 0.423 seconds using disk: basic
Object Caching 332/349 objects using disk: basic

Served from: www.semioticpixels.com @ 2012-02-04 23:12:41 -->
