71.3. Unison File Synchronizer

简介:

If you are looking for a tool to sync your laptop with your workstation, you better have a look at Unison.

homepage: http://www.cis.upenn.edu/~bcpierce/unison/

installation

$ sudo apt-get install unison	
	

71.3.1. local

dir to dir

unison dir1 dir2		
		

71.3.2. remote

ssh

unison dir1 ssh://username@remotehostname(ip)//absolute/path/to/dir2		
		

socket

target host

# unison -socket NNNN	
		

source host

# unison dir1 socket://remotehost(ip):port//absolute/path/to/dir2			
		

71.3.3. config

create a config file under '.unison' directory.

vim ~/.unison/config.prf

root = /var/www
root = ssh://netkiller@netkiller.8800.org//var/www
force = /var/www
ignore = Path templates_compiled
ignore = Name tmp/*.pdf
auto = true
log = true
logfile = /home/netkiller/.unison/netkiller.8800.org.log
		




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
mkdir: cannot create directory `**': No such file or directory
在mkdir时报错的解决方案,在网上找了很多文章都没有说清楚原因。
416 0
|
应用服务中间件
./configure *: No such file or directory
今天在CentOS下安装Nginx时,遇到了类似以下的问题: ./configure auto/unix: No such file or directory ./configure auto/options: No such file or directory 之前在另一台服务器上安装的时候也没有遇到此问题, 安装过程参考:CentOS6.5下Nginx1.7.4安装记录 于是网上搜索解决方案,但是搜索了很久也没有找到解决方案, 当我使用“mkdir auto/unix”之后,还是提示类似的错误,但目录名又变了。
3315 0
|
12月前
|
Ubuntu Shell
bash: No such file or directory
bash: No such file or directory
157 0
objdump: ‘1443.14.0)‘: No such file or directory
objdump: ‘1443.14.0)‘: No such file or directory
107 0
|
Perl
/usr/bin/sed: No such file or directory
/usr/bin/sed: No such file or directory
175 0
curses.h: No such file or directory
curses.h: No such file or directory
128 0
No such file or directory
No such file or directory
318 0
No such file or directory
CentOS cp 复制隐藏文件提示 cp: cannot stat ?.xxx*?. No such file or directory
执行的命令与错误信息: # cp -a /etc/skel/* /home/postgrescp: cannot stat ?.etc/skel/*?. No such file or directory 使用cp复制普通文件时,可以使用 * 号通配符,而在复制隐藏文件时,需要使用.
4627 0
|
网络安全 开发工具
|
网络协议 Ubuntu 安全