Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
ok. i read the information in the link, but i want to make sure that i understand it correctly: because my rsync command implements the recursion algorithm, rsync is required to know the full file list. in order to do this, my rsync command must specify an option which disables the incremental recursion mode. therefore, it is necessary for me to specify one of these options as a flag in my rsync command. correct? if so, i must then figure out the appropriate flag to implement. correct?
I know it's been a while since this thread. But a Google search for the exact same information lead me here, so posting in case it helps others.
In the end I checked the man page for rsync and found
This tells rsync to copy directories recursively. See also --dirs (-d).
Beginning with rsync 3.0.0, the recursive algorithm used is now an incremental scan that uses much less memory than before and
begins the transfer after the scanning of the first few directories have been completed. This incremental scan only affects
our recursion algorithm, and does not change a non-recursive transfer. It is also only possible when both ends of the transfer
are at least version 3.0.0.
Some options require rsync to know the full file list, so these options disable the incremental recursion mode. These include:
--delete-before, --delete-after, --prune-empty-dirs, and --delay-updates. Because of this, the default delete mode when you
specify --delete is now --delete-during when both ends of the connection are at least 3.0.0 (use --del or --delete-during to
request this improved deletion mode explicitly). See also the --delete-delay option that is a better choice than using
Incremental recursion can be disabled using the --no-inc-recursive option or its shorter --no-i-r alias.