question about the recursive algorithm

bp25 at riseup.net bp25 at riseup.net
Thu Jan 16 15:16:02 UTC 2025


Thanks for your message again. I appreciate your answers.

I don't mind about the order of the files, and neither really about the
order of the directories: I'm interested about whether rsync might
transfer some files into a directory, then transfer some files into
another which is outside of the first one, and then transfer more files
into the first directory again.

And with the --del option, which afaik means --delete-during, whether it
might delete some files from a directory, then delete some files from
another which lies outside of the first dir, and then delete some more
files from the first directory again.  This behaviour would be at odds
in my mind with the word recursion, which in my mind implies walking
through the directory tree with some criteria, rather than jumping
around the directory tree. And in your message you use the word
"directory indexing", which in my mind also suggests "focusing
exclusively on such directory", at least as far as only the lines
starting by *delete are concerned, or only the lines starting by > are
concerned...

On Thu, Jan 16 2025, Kevin Korb wrote:
> There is no guarantee that rsync will do anything in any order since
> it is going by the filesystem without any sorting.  With
> --delete-during the directory indexing and therefore the deletions are
> running in parallel with file transfers.  This means it is quite
> common for it to delete things in directories it isn't transferring
> files in.



More information about the rsync mailing list