簡單使用 rsync server gnu linux

man rsync

下戴

http://rsync.samba.org/

安裝

http://my.oschina.net/chuangpoyao/blog/57347

建檔 /etc/rsyncd.conf

max connections = 1
log file = /varlog/rsync.log

[pub]
    path = /home/刹叉岔/rsync夾
    readonly = no
    list = yes
    uid = nobody
    gid = nogroup
    auth users = 蝙蝠侠
    secrets file = /etc/rsyncd.secrets

建檔 /etc/rsyncd.secrets

蝙蝠侠:密碼

開機開起 rsync server, 改 /etc/default/rsync

RSYNC_ENABLE=true

起動

/etc/init.d/rsync restart

rsync 123.456.789.01::

rsync 123.456.789.01::pub

下載

rsync -av 123.456.789.101:/home/刹叉岔/rsync夾 /home/蝙蝠侠/rsync夾

下載用 ssh

rsync -ave ssh 123.456.789.101:/home/刹叉岔/rsync夾 /home/蝙蝠侠/rsync夾

 

 

你可能感兴趣的:(linux,rsync,gnu)