rsyncd 守护进程-如何最小化记录的信息?

rsyncd 守护进程-如何最小化记录的信息?

我将 Synology NAS 备份到运行 rsyncd 守护程序的 Linux Debian 服务器上。典型的备份会话会将数十万条无用消息(示例如下)写入守护程序日志文件。

问:如何在 Debian 上配置 rsyncd 以便仅将错误、警告和授权消息发送到日志文件而不发送其他任何内容?

约束:Synology 备份客户端是一个封闭系统,我无法控制。所有配置更改都必须在 Debian 服务器上进行。

当前 rsyncd.conf 文件

port = 873
max verbosity = 0

[NAS]
path = /media/e230a109-1a8b-bd46-81fc8-304c5d8fe401a/./
uid = nobody
gid = users
list = yes
read only = no
write only = no
use chroot = yes
hosts allow = 192.168.0.100
hosts deny = ALL
lock file = /var/lock/rsyncd-NAS

无用日志条目示例

Tue Mar 24 07:54:34 2015    building file list
Tue Mar 24 07:54:34 2015    rsync on NAS/nas_0032110CDF4A/@app/_Syno_NetShareArchive.db from nas.local (192.168.0.100)
Tue Mar 24 07:54:34 2015    connect from nas.local (192.168.0.100)
Tue Mar 24 07:54:33 2015    sent 87 bytes received 42 bytes total size 2048
Tue Mar 24 07:54:33 2015    building file list
Tue Mar 24 07:54:33 2015    rsync on NAS/nas_0032110CDF4A/@app/_Syno_NetShareArchive.db from nas.local (192.168.0.100)
Tue Mar 24 07:54:33 2015    connect from nas.local (192.168.0.100)
Tue Mar 24 07:54:33 2015    sent 42 bytes received 56 bytes total size 0
Tue Mar 24 07:54:33 2015    receiving file list
Tue Mar 24 07:54:33 2015    rsync to NAS/nas_0032110CDF4A/ from nas.local (192.168.0.100)
Tue Mar 24 07:54:33 2015    connect from nas.local (192.168.0.100)
Tue Mar 24 07:54:33 2015    sent 54 bytes received 2146 bytes total size 2048
Tue Mar 24 07:54:33 2015    receiving file list

and so on...

相关内容