rsync - 相关问题 - --log-file

本文介绍了rsync命令中的--log-file选项,该选项允许用户将rsync的操作记录到指定的文件中,对于调试连接异常关闭等问题十分有用。文中提供了一个示例命令,展示如何配置远程服务器端的日志记录。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

rsync - 相关问题 - --log-file

# rsync - 相关问题 - --log-file
# --log-file=FILE
# This option causes rsync to log what it is doing to a file. This is similar to the logging that a daemon does, but can be requested for the client side and/or the server side of a non-daemon transfer. If specified as a client option, transfer logging will be enabled with a default format of "%i %n%L". See the --log-file-format option if you wish to override this.
# 该选项使rsync将行为记录到一个文件中。类似于守护进程的日志,但是客户端 和/或 非守护进程的服务器传输时可能会要求使用。如果指定为一个客户端选项,传输日志将使用默认格式"%i %n%L",如果希望替换则参见--log-file-format选项。
#
# Here's a example command that requests the remote side to log what is happening:
# 这是一个请求远程端记录日志的示范命令:
#
# rsync -av --rsync-path="rsync --log-file=/tmp/rlog" src/ dest/
#
# This is very useful if you need to debug why a connection is closing unexpectedly.
# 当一个连接不正常关闭时进行调试非常有用。

[rsync - 官方网站]

http://rsync.samba.org/

[rsync - 关键词]

rsync
rsyncd

[rsyncd.conf - 官方文档]

http://samba.org/ftp/rsync/rsyncd.conf.html

[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

正确设置gid参数

--backup-dir 使用示例

hosts allow

hosts deny

gid

synopsis提要

翻译 - daemon options summary守护进程选项概述

--log-file

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值