全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 822|回复: 7

debian下apt安装的rsync配置文件在哪里?

[复制链接]
发表于 2019-2-8 11:52:06 | 显示全部楼层 |阅读模式
debian下apt安装的rsync配置文件在哪里?

各位老板,麻烦指点一下。

debian下用apt install 安装的rsync配置文件在哪里?要怎么配置?我想两台小鸡之间同步文件
发表于 2019-2-8 12:02:29 | 显示全部楼层
看看 /etc/rsyncd.conf
 楼主| 发表于 2019-2-8 12:06:14 | 显示全部楼层

大佬,etc下并没有这个文件。我用find找了一下,结果如下
root@ns3028883:/etc# find / -name rsyn*
/var/lib/systemd/deb-systemd-helper-enabled/rsync.service.dsh-also
/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/rsync.service
/var/lib/dpkg/info/rsync.list
/var/lib/dpkg/info/rsync.postinst
/var/lib/dpkg/info/rsync.postrm
/var/lib/dpkg/info/rsync.conffiles
/var/lib/dpkg/info/rsync.md5sums
/var/lib/dpkg/info/rsync.prerm
/lib/systemd/system/rsync.service
/etc/default/rsync
/etc/init.d/rsync
/etc/systemd/system/multi-user.target.wants/rsync.service
/usr/share/man/man5/rsyncd.conf.5.gz
/usr/share/man/man1/rsync.1.gz
/usr/share/doc/rsync
/usr/share/doc/rsync/scripts/rsyncstats.gz
/usr/share/doc/rsync/examples/rsyncd.conf
/usr/share/lintian/overrides/rsync
/usr/bin/rsync

不知道哪个才是呢?
发表于 2019-2-8 12:15:49 | 显示全部楼层
一般配置文件都在etc文件里
 楼主| 发表于 2019-2-8 12:22:54 | 显示全部楼层
家有自己自温暖 发表于 2019-2-8 12:15
一般配置文件都在etc文件里

但是没有哎。。大佬。。
发表于 2019-2-8 12:24:40 | 显示全部楼层
贱人 发表于 2019-2-8 12:22
但是没有哎。。大佬。。

不好意思,那我不知道啦,我也没装过这个
发表于 2019-2-8 12:25:39 来自手机 | 显示全部楼层
自己创建/etc/rsyncd.conf或者复制示例配置文件到/etc即cp /usr/share/doc/rsync/examples/rsyncd.conf /etc/
 楼主| 发表于 2019-2-8 12:45:35 | 显示全部楼层
platinum 发表于 2019-2-8 12:25
自己创建/etc/rsyncd.conf或者复制示例配置文件到/etc即cp /usr/share/doc/rsync/examples/rsyncd.conf /et ...

老哥,这个是事例里面的配置内容。要怎么改呢。。

root@ns3028883:/usr/share/doc/rsync/examples# cat 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.
# The init.d script does its own pid file handling,
# so omit the "pid file" line completely in that case.
# pid file=/var/run/rsyncd.pid
#syslog facility=daemon
#socket options=

# MODULE OPTIONS

[ftp]

        comment = public archive
        path = /var/www/pub
        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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-4 20:45 , Processed in 0.069412 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表