我在rsync手册页上看到有很多delete
选项,但是并不真正理解它们之间的区别。这些选项有什么区别?
--del an alias for --delete-during
--delete delete extraneous files from dest dirs
--delete-before receiver deletes before transfer (default)
--delete-during receiver deletes during xfer, not before
--delete-delay find deletions during, delete after
--delete-after receiver deletes after transfer, not before
--delete-excluded also delete excluded files from dest dirs
man
页面中指定为默认值rsync version 3.1.2 protocol version 31
。但是,我对带引号文本的版本的猜测是,如果你只使用--delete
而不是--delete-WHEN
,那就好像你指定--delete-WHEN
了WHEN
默认值before
。
--delete-before
被描述为(default)
?我无法理解是什么(default)
意思。