大网数据广告活动
服务器运维问答

What is the rsync option "-logDtprze.iLsf" for?

· 52CE 我爱测

I found an article online that gives instructions on how to backup your dedicated server using rsync. In one of the steps of this article I am supposed to create a user called "rsync" and add sudo privileges to it. Everything is …

问题原文

原帖链接 · DrupalFever · CC BY-SA 3.0

I found an article online that gives instructions on how to backup your dedicated server using rsync.

In one of the steps of this article I am supposed to create a user called "rsync" and add sudo privileges to it. Everything is going well but the visudo options for the "rsync" user are pretty hard to understand. Some of the options for the "/usr/bin/rsync" command have virtually no documentation on the Internet.

Following is the visudo line that I am referring to:

rsync ALL=(ALL) NOPASSWD: /usr/bin/rsync --server --sender -logDtprze.iLsf --numeric-ids . /

To begin with, I kind of understand the "--server --sender" properties. What is really bugging me is the option "-logDtprze.iLsf".

I have a CentOS server and this option is not available in the rsync documentation when I run the command "man rsync". Actually, every time I try to use this option in visudo, nothing works.

I eventually found a vague reference to "-logDtprze.iLsf" as being a new feature of rsync in Debian. I am not sure about that.

I just wanted to know what this option does and if it will be OK to ignore it in my backup set up.

I also wanted to understand the purpose of the period & slash at the end of the line ". /"

EDIT: Thanks bodgit! I feel like an idiot! :)

已采纳解答

原帖链接 · bodgit · CC BY-SA 3.0

It's the short options -l, -o, -g, -D, etc. which instead of spelling them out separately can be collapsed which is standard behaviour for most Unix tools, i.e. rm -rf is the same as rm -r -f.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。