个人工具
登录
查看“UbuntuHelp:Unison”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Unison”的源代码
来自Ubuntu中文
←
UbuntuHelp:Unison
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Unison}} {{Languages|UbuntuHelp:Unison}} === About === From the [http://www.cis.upenn.edu/~bcpierce/unison/ Unison website]: ''Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other.'' === Installation === Unison can be found in Ubuntu's Universe software repository, in the ''unison'' package. See [[UbuntuHelp:InstallingSoftware|InstallingSoftware]] for information about installing software, and [[UbuntuHelp:Repositories]] if you need help enabling Universe. In order to use Unison with Ubuntu and Microsoft Windows, you will need to have Samba installed and setup. For instructions on setting up Samba in Ubuntu, visit the [[UbuntuHelp:SettingUpSamba|SettingUpSamba]] wiki page. === GUI Configuration === Unison uses ''Profiles'', this refers to the two ''root'' (directories) that are to be synchronized. On starting Unison via the Applications menu you will be presented with a window that allows you to select an existing profile or create a new one. On selecting '''Create New Profile''' you will be asked to enter a profile name, such as "USB Stick". Once named the profile can be selected. As the profile is new Unison will guide you though the steps of setting the roots. The first root should be a local directory for example ''/home/[Username]/work/''. The second root can be local or on a target machine. Unison allows synchronization to be carried out over a network using SHH (Further information at [[UbuntuHelp:SSHHowto]]), RSH or a specific port on the target machine. Notice the '''Help''' button, this gives more information on setting up of remote access. Once this is complete Unison will scan the two locations and show the differences. === Command Line usage === Unison can be invoked from the command line. This makes it a useful program for writing backup scripts that clone two directories. The following is a simple example to synchronize a music directory between two PC's. <pre><nowiki> unison /home/[Username]/MyMusic /location_of_samba_directory </nowiki></pre> Or if a profile has been created. <pre><nowiki> unison "USB Stick" </nowiki></pre> Notice you do not need to specify a path, Unison searches in ''/home/[Username]/.unison/'' for a corresponding profile. Depending on the size of the directories and the amount of files, a good amount of time may be needed. Unison can be setup to run on a schedule. This can be done by utilizing the "cron" scheduler. Further information regarding cron can be found at the [[UbuntuHelp:CronHowto|CronHowto]] wiki page. === Further Help === Included in Unison is a great help section, it can be found via the GUI under ''Help''. Its topics include the different interfaces, the basic concepts and ways of running Unison. I would highly recommend reading this for more detailed information. Unison has many command line options available, for more information type <pre><nowiki> man unison </nowiki></pre> or <pre><nowiki> unison --help </nowiki></pre> [[category:CategoryDocumentation]] [[category:CategoryCleanup]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Unison
。