SEK

rsync

vi /etc/rsyncd.conf

## Rsync logging Settings

#syslog facility = local5

#transfer logging = yes

## Global Settings uid = root gid = root log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid

dont compress = *.gz *.tgz *.zip *.pdf *.sit *.sitx *.lzh *.bz2 *.jpg *.jpeg *.gif *.png

[dsk0]

       path = /mnt/dsk0
       comment = comic files
       hosts allow = 192.168.0.7
       hosts deny = *
       read only = no

[dsk1]

       path = /mnt/dsk1
       comment = media files
       hosts allow = 192.168.0.7
       hosts deny = *
       read only = no

[books]

       path = /mnt/dsk1/books
       comment = media files
       hosts allow = 192.168.0.7
       hosts deny = *
       read only = no

vi /etc/xinetd.d/rsync

# default: off

# description: The rsync server is a good addition to an ftp server, as it \

# allows crc checksumming etc. service rsync {

       disable = no
       flags           = IPv6
       socket_type     = stream
       wait            = no
       user            = root
       server          = /usr/bin/rsync
       server_args     = --daemon
       log_on_failure  += USERID

}


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS