rsyncd - 全局部分中常用模块参数配置说明
# 本文件的默认位置是/etc/rsyncd.conf
# GLOBAL PARAMETERS
motd file = /var/rsync/welcome.msg
pid file = /var/run/rsyncd.pid
# DEFAULT MODULE PARAMETERS
# use chroot
# If "use chroot" is true, the rsync daemon will
chroot to the "path" before starting the file transfer with the client.
This has the advantage of extra protection against possible
implementation security holes, but it has the disadvantages of
requiring super-user privileges, of not being able to follow symbolic
links that are either absolute or outside of the new root path, and of
complicating the preservation of users and groups by name (see below).
# 当"use
chroot"是true时,rsync守护进程将在客户端开始文件传输之前chroot到"path",这对于可能的执行安全漏洞提供额外的保护。但是
也有需要超级用户权限的缺陷,也不能展开绝对路径或新root路径之外的符号链接,而且保持用户名和组名(参见下面)
use chroot = no
# max connections
# This parameter allows you to specify the
maximum number of simultaneous connections you will allow. Any clients
connecting when the maximum has been reached will receive a message
telling them to try later. The default is 0, which means no limit. A
negative value disables the module. See also the "lock file" parameter.
# 该参数允许指定允许最大并发连接,在达到最大时任何客户端链接都将收到一个重试的消息,默认值是0,代表无限连接。负值将禁止该模块,参见"lock file"参数。
max connections = 20
# log file
# When the "log file" parameter is set to a
non-empty string, the rsync daemon will log messages to the indicated
file rather than using syslog. This is particularly useful on systems
(such as AIX) where syslog() doesn't work for chrooted programs. The
file is opened before chroot() is called, allowing it to be placed
outside the transfer. If this value is set on a per-module basis
instead of globally, the global log will still contain any
authorization failures or config-file error messages.
# If the daemon fails to open the specified file,
it will fall back to using syslog and output an error about the
failure. (Note that the failure to open the specified log file used to
be a fatal error.)
# 当"log
file"参数设置为非空字符串,rsync守护进程将记录消息到该文件而不使用syslog。特别用于在某些系统(例如AIX)在程序chroot后不
能使用syslog()的情况。该文件在调用chroot()前打开,允许放置在转输之外。如果该值不是全局而是基于每模块设置,全局日志中仍将包含任何
认证错误或配置文件错误的消息。
# 当守候进程打开指定文件失败时,它将退回使用syslog并输出关于该失败的错误。(注意打开指定日志文件的失败通常是一个致命错误)
log file = /var/log/rsyncd.log
# lock file
# This parameter specifies the file to use to
support the "max connections" parameter. The rsync daemon uses record
locking on this file to ensure that the max connections limit is not
exceeded for the modules sharing the lock file. The default is
/var/run/rsyncd.lock.
# 该参数指示用于支持"max connections"参数的文件。rsync守护进程使用该文件上的模块共享该文件的锁定记录来保证最大连接限制不超限。默认值是/var/run/rsyncd.lock
lock file = /var/run/rsync.lock
# uid
# The "uid" option specifies the user name or
user ID that file transfers to and from that module should take place
as when the daemon was run as root. In combination with the "gid"
option this determines what file permissions are available. The default
is uid -2, which is normally the user "nobody".
# "uid"选项指定守护程序以root方式运行时模块应当替换的文件传入和传出的用户名或用户ID,与"gid"选项共同使用来检测文件权限是否有效。默认值是uid -2,也就是通常使用的"nobody"用户。
uid = nobody
# gid
# The "gid" option specifies the group name or
group ID that file transfers to and from that module should take place
as when the daemon was run as root. This complements the "uid" option.
The default is gid -2, which is normally the group "nobody".
# "gid"选项指定守护程序以root方式运行时模块应当替换的文件传入和传出的组名或组ID,配合"uid"选项。默认值是gid -2,也就是通常使用的"nobody"组。
gid = nobody
# MODULE PARAMETERS
[module]
comment = module comment
path = /path/to/module/
read only = yes
list = no
hosts allow = 192.168.1.2
[rsync - 官方网站]
http://rsync.samba.org/
[rsync - 关键词]
rsync
rsyncd
[rsync - 相关问题]
全局部分中常用全局参数配置说明
全局部分中常用模块参数配置说明
模块常用配置说明
客户端常用参数
for Windows (cygwin)
远程shell模式和rsync守护进程模式
22.6. File Synchronization. Building Internet Firewalls, 2nd Edition
Hack 92 Mirroring Web Sites with wget and rsync. Spidering Hacks
Linux Security Cookbook - Recipe 1.16 Integrity Checking with rsync
Linux Security Cookbook - Recipe 1.6 Remote Integrity Checking
Linux Security Cookbook - Recipe 6.3 Copying Files Remotely
分享到:
相关推荐
如果要自定义和构建自己的cygwin-rsyncd可执行文件(例如:为站点预设一些配置参数),请在克隆git存储库。 感谢Ray Frush,此发行版现在与NSIS安装程序一起提供,该安装程序将所有内容包装在单个.exe中。 (请...
备份服务器_Rsync守护进程(daemon)数据传输 所需要的rsyncd配置文件
cygwin 64位,备用,windows下使用unix指令的必备工具
关于rsync daemon的配置文件: rsync安装时没有提供一个配置文件... 配置文件文件分为两部分,全局参数和模块参数。全局参数设定全局的,默认的属性,模块参数设定每个用来同步的目录的属性,模块即用来同步的目录。
uclalib_role_rsyncd 配置rsyncd角色变量此角色的可设置变量的描述应在此处,包括defaults / main.yml,vars / main.yml中的所有变量,以及可以/应该通过该角色的参数设置的任何变量。 从其他角色和/或全局范围(即...
老版本,比较适合开发用,最新版本有的软件不能兼容
--config=FILE 指定其他的配置文件,不使用默认的rsyncd.conf文件 --port=PORT 指定其他的rsync服务端口 --blocking-io 对远程shell使用阻塞IO -stats 给出某些文件的传输状态 --progress 在传输时现实传输过程 --...
Docker中的rsyncd / sshd服务器。 您知道,用于移动文件。 快速开始 启动服务器(同时支持sshd和rsyncd ) $ docker run \ --name rsync-server \ # Name it -p 8000:873 \ # rsyncd port -p 9000:22 \ # sshd ...
同步概要rsyncdのインストール,设定を行う。动作确认バージョンUbuntu的:18.04,20.04 ansible:2.8、2.9使い方(ansible)角色变量# ## インストール設定 #####################################################...
rsync配置
将所有文件系统I/O分离到一个单独的模块中,该模块可以 可由您自己设计的任何模块替换。这允许rsync 非文件系统数据类型(例如:数据库)的接口 发展相对容易。 最初编写RsyncP是为了提供Rsync接口 对于...
项目致力于实现一键部署各种常见服务,实现常用功能,且具有幂等性(多次执行效果一致)的脚本 . ├── 01-installation-scripts │ ├── 01-MySQL │ ├── 02-Zabbix │ ├── 03-Jumpserver │ ├── ...
ubuntu rsync中文乱码 window ubuntu rsync同步中文乱码.docx
此内容是rsync必须的配置文档,修改几处参数即可使用,具体使用步骤:将文档copy到/etc/然后打开文档,编辑相应参数,必须修改的参数有几处,1、hosts allow,这是允许连接至rsync的IP,2、auth users,这是rsync的...
passwordfile="B主机/etc/rsyncd.conf配置文件中的secrets file值" A主机/opt/sersync/confxml.xml配置文件如下图 B主机/etc/rsyncd.conf配置文件如下图 A主机 加载配置文件并启动 /opt/sersync/sersync2 -...
3.在需要同步的文件夹,属性-安全中添加用户SvcCWRSYNC 4.编辑文件C:\Program Files\ICW\rsyncd.conf use chroot = false strict modes = false hosts allow = * log file = rsyncd.log # Module definitions # ...
对于rsync配置,在google上可以找到很多资料,以下只是一些必要的配置和使用说明,仅供参考,请根据您的实际情况修改。 如图所示,需要在同步主服务器上配置sersync,在同步目标服务器配置rsync,并在目标服务器...
同步方案:采用inotify监听文件变化,触发rsync实时同步,并且用supervisor监控inotify进程,莫明死掉后会立即重新启动。 需求:adminweb上的/data/www/user...172.40.0.203:web1 172.40.0.204:web2 172.40.0.205:web3
一、服务器端配置: 安装rsync #系统一般是默认安装的 如果没有安装可以到安装光盘里去找(我的系统为CentOS4.6 所以在第一张光盘的\CentOS\RPMS\目录下) #配置/etc/rsyncd.conf #系统上rsync安装后,并没有创建rsyncd....
开源实验室:简单镜像同步API 目前,以下功能可用(或正在进行中): master.py-主节点API 添加一个从节点列出所有从节点删除从节点添加上游项目删除项目更新项目列出所有项目slave.py-从节点API克隆项目并编辑设置...