<?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>臭皮匠 &#187; rsync</title>
	<atom:link href="http://guogoul.com/tag/rsync/feed/" rel="self" type="application/rss+xml" />
	<link>http://guogoul.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Oct 2010 00:24:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>rsync数据同步利器</title>
		<link>http://guogoul.com/2009/06/01/rsync/</link>
		<comments>http://guogoul.com/2009/06/01/rsync/#comments</comments>
		<pubDate>Sun, 31 May 2009 16:02:44 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://john.renren.in/?p=124</guid>
		<description><![CDATA[对于系统运维人员来说rsync 应该是工具箱中的一个常用工具，其稳定，便捷，高效的特性一直为人所称道.rsync一般会配合cron工作，cron定时自动完成系统数据同步工作。
1.决定使用哪种传输协议？
在默认条件下，rsync可以用RSH协议与远程系统进行通信。通过调整参数还可以用SSH协议，这样就可利用所有的标准SSH认证方法，并实现加密的文件传输。建议用ssh协议
2.基本应用
试验rsync的时候应该非常小心，因为很可能一不小心就将大量数据发送到它们本不该出现的地方。 verbose(-v)与dry-run(-n)在你试验的时候将会十分的有用，verbose能让你看到修改的结果，dry-run就是不对文件进行真正的修改主，只产生结果信息。
注意： 文件夹参数后面有/与没有/的区别。如果源目录有/表示当前目录下的所有文件 ，如果没有/表示当前文件夹也包括其中
-a:  以归档的模式进行操作，这将导致rsync以递归方式运行，并保留权限，所有权，符号链接，设备文件，访问时间等信息，等同于： -rlptgoD先项的作用

3.实例：
rsync -a /usr/local     root@remote_host:/usr/local
rsync -a /usr/local/     root@remote_host:/usr/local
注意上面两个结果是不同的 前者local与远程机器的同步，后者会出现本地/usr/local与远程/usr/local/local进行同步
参考：
Rsync详解： http://blog.chinaunix.net/u/25100/showart_363397.html
官网： http://rsync.samba.org/
]]></description>
		<wfw:commentRss>http://guogoul.com/2009/06/01/rsync/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

