顯示具有 rsync 標籤的文章。 顯示所有文章
顯示具有 rsync 標籤的文章。 顯示所有文章

2014年5月19日 星期一

unison

# server 及 client 都要安裝 unison
# apt-get install unison

$ vi .unison/default.prf
root = /home/yan/sync
root = ssh://yan@192.168.1.1//home/yan/sync

# 如果不想要在同步過程中因unison詢問而暫停,請設定batch=true
batch = true

# 檔案衝突的處理方式,設定為auto可讓unison決定最適合的處理方式而不會暫停等候使用者決定
auto = true
$ crontab -e
*/1 * * * * /usr/bin/unison &> /dev/null




References :
Unison | chtseng

2013年3月29日 星期五

2012年11月14日 星期三

sh: rsync: not found

rsync 需要兩台機器都有 rsync 程式,並且都在相同路徑


Linux : /usr/bin/rsync


Solaris : /usr/bin/local/rsync
# ln -s /usr/bin/local/rsync /usr/bin/rsync
 



Reference :
利用rsync同步solaris上的檔案到Linux‏ @ 人本自然 :: 隨意窩 Xuite日誌