Unison是一款跨平台的文件同步工具,不仅支持本地对本地同步,也支持通过SSH、RSH和Socket等网络协议进行同步。更棒的是,Unison支持双向同步操作,你既可以从A同步到B,也可以从B同步到A,这些都不需要额外的设定。
Unison与一般的Linux软件一样,都是有一个核心的命令行组成。那些命令可能会令上手比较困难。不过幸运的是,Unison有基于GTK+的图形版本:
安装方法如下:
[root@localhost packages]# wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
–2012-04-25 17:31:03– http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
正在解析主机 apt.sw.be… 193.1.193.67
正在连接 apt.sw.be|193.1.193.67|:80… 已连接。
已发出 HTTP 请求,正在等待回应… 200 OK
长度:12700 (12K) [application/x-redhat-package-manager]
正在保存至: “rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm”
100%[===========================================================>] 12,700 22.0K/s in 0.6s
2012-04-25 17:31:06 (22.0 KB/s) – 已保存 “rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm” [12700/12700])
[root@localhost packages]# rpm -Uvh rpmforge-release*rpm
warning: rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing… ########################################### [100%]
1:rpmforge-release ########################################### [100%]
[root@localhost packages]# yum install unison
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, kabi, presto, security, tmprepo,
: verify, versionlock
Loading support for CentOS kernel ABI
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* rpmforge: fr2.rpmfind.net
* updates: mirrors.163.com
rpmforge | 1.1 kB 00:00
rpmforge/primary | 1.5 MB 00:05
rpmforge 4304/4304
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package unison.x86_64 0:2.40.63-1.el6.rf will be installed
–> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================
Package Arch Version Repository Size
=====================================================================================================
Installing:
unison x86_64 2.40.63-1.el6.rf rpmforge 585 k
Transaction Summary
=====================================================================================================
Install 1 Package(s)
Total download size: 585 k
Installed size: 2.1 M
Is this ok [y/N]: n^H
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 585 k
unison-2.40.63-1.el6.rf.x86_64.rpm | 585 kB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : unison-2.40.63-1.el6.rf.x86_64 1/1
Installed:
unison.x86_64 0:2.40.63-1.el6.rf
Complete!
[root@localhost packages]# unison
Usage: unison [options]
or unison root1 root2 [options]
or unison profilename [options]
For a list of options, type “unison -help”.
For a tutorial on basic usage, type “unison -doc tutorial”.
For other documentation, type “unison -doc topics”.
[root@localhost packages]#
具体配置参考:
http://zhumeng8337797.blog.163.com/blog/static/10076891420119173441499/
Unison与一般的Linux软件一样,都是有一个核心的命令行组成。那些命令可能会令上手比较困难。不过幸运的是,Unison有基于GTK+的图形版本:
安装方法如下:
[root@localhost packages]# wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
–2012-04-25 17:31:03– http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
正在解析主机 apt.sw.be… 193.1.193.67
正在连接 apt.sw.be|193.1.193.67|:80… 已连接。
已发出 HTTP 请求,正在等待回应… 200 OK
长度:12700 (12K) [application/x-redhat-package-manager]
正在保存至: “rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm”
100%[===========================================================>] 12,700 22.0K/s in 0.6s
2012-04-25 17:31:06 (22.0 KB/s) – 已保存 “rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm” [12700/12700])
[root@localhost packages]# rpm -Uvh rpmforge-release*rpm
warning: rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing… ########################################### [100%]
1:rpmforge-release ########################################### [100%]
[root@localhost packages]# yum install unison
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, kabi, presto, security, tmprepo,
: verify, versionlock
Loading support for CentOS kernel ABI
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* rpmforge: fr2.rpmfind.net
* updates: mirrors.163.com
rpmforge | 1.1 kB 00:00
rpmforge/primary | 1.5 MB 00:05
rpmforge 4304/4304
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package unison.x86_64 0:2.40.63-1.el6.rf will be installed
–> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================
Package Arch Version Repository Size
=====================================================================================================
Installing:
unison x86_64 2.40.63-1.el6.rf rpmforge 585 k
Transaction Summary
=====================================================================================================
Install 1 Package(s)
Total download size: 585 k
Installed size: 2.1 M
Is this ok [y/N]: n^H
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 585 k
unison-2.40.63-1.el6.rf.x86_64.rpm | 585 kB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : unison-2.40.63-1.el6.rf.x86_64 1/1
Installed:
unison.x86_64 0:2.40.63-1.el6.rf
Complete!
[root@localhost packages]# unison
Usage: unison [options]
or unison root1 root2 [options]
or unison profilename [options]
For a list of options, type “unison -help”.
For a tutorial on basic usage, type “unison -doc tutorial”.
For other documentation, type “unison -doc topics”.
[root@localhost packages]#
具体配置参考:
http://zhumeng8337797.blog.163.com/blog/static/10076891420119173441499/
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/5191/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
评论列表