<?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>Macintosh How To &#187; terminal</title>
	<atom:link href="http://macintoshhowto.com/category/terminal/feed" rel="self" type="application/rss+xml" />
	<link>http://macintoshhowto.com</link>
	<description>...the art of macintosh maintenance...</description>
	<lastBuildDate>Mon, 08 Mar 2010 04:07: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>How to back up your web server via the terminal</title>
		<link>http://macintoshhowto.com/terminal/how-to-back-up-your-web-server-via-the-terminal.html</link>
		<comments>http://macintoshhowto.com/terminal/how-to-back-up-your-web-server-via-the-terminal.html#comments</comments>
		<pubDate>Fri, 14 Mar 2008 04:45:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://macintoshhowto.com/terminal/how-to-back-up-your-web-server-via-the-terminal.html</guid>
		<description><![CDATA[




This will backup your entire remote server to your local Macintosh computer. It uses the command line so it&#8217;s not for beginners.
Open a terminal window and type the following:
rsync --recursive --verbose --archive --progress --stats --size-only --dry-run yourusername@yourservername.com:folder_to_backup ~/Sites/
replace yourusername@yourservername.com:folder with the folder you want to back up from.
For me it was username@mac-host.com:public_html
This will do a [...]]]></description>
			<content:encoded><![CDATA[<!-- AdSense Now! V1.83 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadin" style="float:right;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-6276085271383628";
/* iblog skyscraper howto */
google_ad_slot = "7096776599";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>This will backup your entire remote server to your local Macintosh computer. It uses the command line so it&#8217;s not for beginners.<span id="more-185"></span></p>
<p>Open a terminal window and type the following:</p>
<p><code>rsync --recursive --verbose --archive --progress --stats --size-only --dry-run yourusername@yourservername.com:folder_to_backup ~/Sites/</code></p>
<p>replace yourusername@yourservername.com:folder with the folder you want to back up from.</p>
<p>For me it was username@mac-host.com:public_html</p>
<p>This will do a practice run!! If it looks OK, repeat the command with &#8211;dry-run removed!</p>
<p>Here&#8217;s how to make it so you don&#8217;t need to type in your password each time you rsync to the remote machine:</p>
<ol>
<li>   Open the terminal window and type <code>ssh-keygen -t rsa</code><br />
Follow the prompts and use the defaults for the filenames it gives you. Don&#8217;t enter in a password.</li>
<li>Go to the finder menu Go|Go to Folder and type in ~/.ssh<br />
You should then have two new files id_rsa and id_rsa.pub.</li>
<li>Use your ftp program to copy id_rsa.pub into the .ssh directory in the home folder on your server machine, and rename it to authorized_keys.</li>
</ol>
<p>Now you won&#8217;t be prompted for a password when you rsync to the server!
<div class="tweetmeme_button" style="float: left; margin-left: 10px; margin-right: 20px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmacintoshhowto.com%2Fterminal%2Fhow-to-back-up-your-web-server-via-the-terminal.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmacintoshhowto.com%2Fterminal%2Fhow-to-back-up-your-web-server-via-the-terminal.html&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<a name="fb_share" type="box_count" share_url="http://macintoshhowto.com/terminal/how-to-back-up-your-web-server-via-the-terminal.html">Share</a>]]></content:encoded>
			<wfw:commentRss>http://macintoshhowto.com/terminal/how-to-back-up-your-web-server-via-the-terminal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
