-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I don't believe the transferring part of rsync will jump around. It
will transfer files it deems need it in the order it finds them which
will be 1 dir at a time. Though when it enters a child dir that doesn't
mean it is done with the parent dir.
On Thu, 16 Jan 2025, b...@riseup.net wrote:
Date: Thu, 16 Jan 2025 15:16:02 +0000
From: b...@riseup.net
To: Kevin Korb <k...@sanitarium.net>
Cc: rsync@lists.samba.org
Subject: Re: question about the recursive algorithm
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.
-----BEGIN PGP SIGNATURE-----
iF0EARECAB0WIQSHERqysePm7S8yuR9UoLWOVtABBwUCZ4kkewAKCRBUoLWOVtAB
B7BqAJ9Xa5sz8HRl/YbZCFlcPgZQJv2FegCfXLo+l0kNOjs5aEp4cPAeiis7W/g=
=si9a
-----END PGP SIGNATURE-----
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html