--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
确实建议仔细阅读该手册页,因为有很多有用的选项。
rsync has tons of options -- see man rsync
e.g.:
--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
It's really recommended to read that man page thoroughly because there are so many useful options.
发布评论
评论(2)
我可以通过使用以下方法来解决此问题:
向文件夹路径添加尾部斜杠。
I was able to fix this by using this instead:
Add trailing slashes to paths that are folders.
rsync 有大量选项 - 请参阅
man rsync
例如:
确实建议仔细阅读该手册页,因为有很多有用的选项。
rsync has tons of options -- see
man rsync
e.g.:
It's really recommended to read that man page thoroughly because there are so many useful options.