<?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>Shark UI &#187; publish</title>
	<atom:link href="http://blog.sharkui.com/tag/publish/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sharkui.com</link>
	<description>deep, fast, sharp, as a shark</description>
	<lastBuildDate>Fri, 07 May 2010 07:30:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>用rsync向Dreamhost发布网站</title>
		<link>http://blog.sharkui.com/2007/08/20/publish_site_to_dreamhost_by_rsync/</link>
		<comments>http://blog.sharkui.com/2007/08/20/publish_site_to_dreamhost_by_rsync/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 15:42:59 +0000</pubDate>
		<dc:creator>Shark</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[publish]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.sharkui.com/?p=27</guid>
		<description><![CDATA[首先用ssh登录到Dreamhost的服务器上，执行以下命令： cd $HOME mkdir .ssh cd .ssh touch authorized_keys chmod go-w $HOME $HOME/.ssh $HOME/.ssh/authorized_keys 在本地终端中执行： ssh-keygen -t rsa 连续三次回车 rsync -avrz --progress "/home/shark/.ssh/id_rsa.pub" sharkui@www.sharkui.com:/home/sharkui/.ssh/authorized_keys 注意替换其中的shark、sharkui、www.sharkui.com为你自己的本地用户名、Dreamhost用户名、Dreamhost主机名。 然后执行发布命令： rsync -avzP --delete --exclude=wp-config.php /var/www/ sharkui@www.sharkui.com:/home/sharkui/sharkui.com/ 同样请注意替换其中的用户名和主机名。 /var/www是我的本地测试路径， &#8211;exclude=wp-config.php表示不发布wp-config.php文件，因为两边的数据库配置是不一样的，发上去就麻烦了。 &#169; Shark for Shark UI, 2007. &#124; Permalink &#124; One comment &#124; Add to del.icio.us Post tags: dreamhost, Linux/Ubuntu, publish, [...]]]></description>
			<content:encoded><![CDATA[<p>首先用ssh登录到Dreamhost的服务器上，执行以下命令：</p>
<pre lang="bash">
cd $HOME
mkdir .ssh
cd .ssh
touch authorized_keys
chmod go-w $HOME $HOME/.ssh $HOME/.ssh/authorized_keys</pre>
<p>在本地终端中执行：</p>
<pre lang="bash">ssh-keygen -t rsa</pre>
<p>连续三次回车</p>
<pre lang="bash">rsync -avrz  --progress "/home/shark/.ssh/id_rsa.pub" sharkui@www.sharkui.com:/home/sharkui/.ssh/authorized_keys</pre>
<p>注意替换其中的shark、sharkui、www.sharkui.com为你自己的本地用户名、Dreamhost用户名、Dreamhost主机名。</p>
<p>然后执行发布命令：</p>
<pre lang="bash">rsync -avzP --delete --exclude=wp-config.php /var/www/ sharkui@www.sharkui.com:/home/sharkui/sharkui.com/</pre>
<p>同样请注意替换其中的用户名和主机名。</p>
<p>/var/www是我的本地测试路径， &#8211;exclude=wp-config.php表示不发布wp-config.php文件，因为两边的数据库配置是不一样的，发上去就麻烦了。</p>
<hr />
<p><small>&copy; Shark for <a href="http://blog.sharkui.com">Shark UI</a>, 2007. |
<a href="http://blog.sharkui.com/2007/08/20/publish_site_to_dreamhost_by_rsync/">Permalink</a> |
<a href="http://blog.sharkui.com/2007/08/20/publish_site_to_dreamhost_by_rsync/#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://blog.sharkui.com/2007/08/20/publish_site_to_dreamhost_by_rsync/&amp;title=用rsync向Dreamhost发布网站">del.icio.us</a>
<br/>
Post tags: <a href="http://blog.sharkui.com/tag/dreamhost/" rel="tag">dreamhost</a>, <a href="http://blog.sharkui.com/tag/linux/" rel="tag">Linux/Ubuntu</a>, <a href="http://blog.sharkui.com/tag/publish/" rel="tag">publish</a>, <a href="http://blog.sharkui.com/tag/rsync/" rel="tag">rsync</a>, <a href="http://blog.sharkui.com/tag/ssh/" rel="tag">ssh</a>, <a href="http://blog.sharkui.com/tag/ubuntu/" rel="tag">ubuntu</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sharkui.com/2007/08/20/publish_site_to_dreamhost_by_rsync/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
