国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

Ubuntu 下配置Rsync服務的方法

2019-11-02 16:29:04
字體:
來源:轉載
供稿:網友
默認情況Ubuntu安裝了rsync服務,但在/etc下沒有配置文件,一般情況可以copy示例文件到/etc下

#cp /usr/share/doc/rsync/examples/rsyncd.conf /etc

#vi /etc/rsyncd.conf

# sample rsyncd.conf configuration file

# GLOBAL OPTIONS

motd file=/etc/motd #登錄歡迎信息

log file=/var/log/rsyncd #日志文件

# for pid file, do not use /var/run/rsync.pid if

# you are going to run rsync out of the init.d script.

pid file=/var/run/rsyncd.pid

syslog facility=daemon

#socket options=

# MODULE OPTIONS

[rsync]

comment = public archive

path = /home/soft/rsync

use chroot = yes

# max connections=10 #最大連接數

lock file = /var/lock/rsyncd

# the default for read only is yes...

read only = yes

list = yes

uid = nobody

gid = nogroup

# exclude =

# exclude from =

# include =

# include from =

# auth users =

# secrets file = /etc/rsyncd.secrets

strict modes = yes

# hosts allow =

# hosts deny =

ignore errors = no

ignore nonreadable = yes

transfer logging = no

# log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes.

timeout = 600

refuse options = checksum dry-run

dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz

修改看個人情況,一般修改path=/home/soft/rsync為自己的目錄

修改完后在/etc/下新建一文件rsyncd.pass

#vi /etc/rsyncd.pass

backup:backup

:wq

修改rsyncd.pass權限

#chmod 600 /etc/rsyncd.pass

現在就可以啟動rsync了

#rsync --daemon

啟動成功后可以用lsof -i:873是否正常啟動,也可以查看/var/log/rsyncd相關日志文件。

備份命令:rsync -vzrtopg --progress --delete backup@172.28.156.88::rsync /cygdrive/f/a

注:cygdrive/f/a即表示f:/a目錄

詳細格式說明:

-v, 主站蜘蛛池模板: 财经| 尼勒克县| 遂溪县| 尤溪县| 社旗县| 罗山县| 绥滨县| 通辽市| 宁都县| 明溪县| 简阳市| 运城市| 南岸区| 崇阳县| 林芝县| 锡林郭勒盟| 湟源县| 临夏县| 富锦市| 蒙阴县| 南召县| 长汀县| 元氏县| 浦县| 青州市| 吉林省| 秦安县| 赣榆县| 皮山县| 舒兰市| 读书| 托克逊县| 株洲市| 福泉市| 昌江| 田阳县| 卢湾区| 高雄市| 云梦县| 天津市| 新郑市|