个人工具
登录
查看“UbuntuHelp:Rsync”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Rsync”的源代码
来自Ubuntu中文
←
UbuntuHelp:Rsync
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/rsync}} {{Languages|UbuntuHelp:rsync}} == Note == '''This page lacks explanation and doesn't explain what the user can do with rsync. It needs revision to be useful.''' == Introduction == '''rsync''' is a program that synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. An important feature of rsync not found in most similar programs/protocols is that the mirroring takes place with only one transmission in each direction. rsync can copy or display directory contents and copy files, optionally using compression and recursion. This document is a rsync quick howto. == Installation == To install rsync do the following steps: <pre><nowiki> $ sudo apt-get install rsync xinetd </nowiki></pre> == Configuration == 1. Edit ''/etc/default/rsync'' to start rsync as daemon using xinetd. <pre><nowiki> $ sudo vim /etc/default/rsync RSYNC_ENABLE=inetd </nowiki></pre> 2. Create ''/etc/xinetd.d/rsync'' to launch rsync via xinetd. <pre><nowiki> $ sudo vim /etc/xinetd.d/rsync service rsync { disable = no socket_type = stream wait = no user = root server = /usr/bin/rsync server_args = --daemon log_on_failure += USERID } </nowiki></pre> 3. Create ''/etc/rsyncd.conf'' configuration for rsync in daemon mode. <pre><nowiki> $ sudo vim /etc/rsyncd.conf max connections = 2 log file = /var/log/rsync.log timeout = 300 [share] comment = Public Share path = /home/share read only = no list = yes uid = nobody gid = nogroup auth users = user secrets file = /etc/rsyncd.secrets </nowiki></pre> 4. Create ''/etc/rsyncd.secrets'' for user's password. <pre><nowiki> $ sudo vim /etc/rsyncd.secrets user:password </nowiki></pre> 4.a <pre><nowiki> $ sudo chmod 600 /etc/rsyncd.secrets </nowiki></pre> 5. Start/Restart xinetd <pre><nowiki> $ sudo /etc/init.d/xinetd restart </nowiki></pre> == Testing == Run the following command to check if everything is ok. <pre><nowiki> $ sudo rsync user@192.168.0.1::share Password: drwxr-xr-x 4096 2006/12/13 09:41:59 . drwxr-xr-x 4096 2006/11/23 18:00:03 folders </nowiki></pre> ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Rsync
。