博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
4.3. Unison File Synchronizer
阅读量:6824 次
发布时间:2019-06-26

本文共 812 字,大约阅读时间需要 2 分钟。

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

4.3.1. local

dir to dir

unison dir1 dir2

4.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

4.3.3. config

create a config file under '.unison' directory.

vim ~/.unison/config.prfroot = /var/wwwroot = ssh://netkiller@netkiller.8800.org//var/wwwforce = /var/wwwignore = Path templates_compiledignore = Name tmp/*.pdfauto = truelog = truelogfile = /home/netkiller/.unison/netkiller.8800.org.log

原文出处:Netkiller 系列 手札

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

你可能感兴趣的文章