<?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/tag/terminal/feed" rel="self" type="application/rss+xml" />
	<link>http://macintoshhowto.com</link>
	<description>...the art of macintosh maintenance...</description>
	<lastBuildDate>Fri, 13 Apr 2012 00:03:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<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>Wayne</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 [...]]]></description>
			<content:encoded><![CDATA[<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!</p>
<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>

