question about the recursive algorithm

2025-01-16 Thread BP via rsync
Hello, I always run rsync as follows: "sudo rsync -PaSHAXvi --del DIR1/ DIR2". I would think that whenever I see in the output of this rsync command a few lines of the form A/B/... and then further down in the output again a few lines of the form A/B/... (dots are dirs or files), then every line b

Re: question about the recursive algorithm

2025-01-16 Thread Marc Aurèle La France via rsync
On Thu, 2025-Jan-16, BP via rsync wrote: I always run rsync as follows: "sudo rsync -PaSHAXvi --del DIR1/ DIR2". I would think that whenever I see in the output of this rsync command a few lines of the form A/B/... and then further down in the output again a few lines of the form A/B/... (dots a

Re: question about the recursive algorithm

2025-01-16 Thread Kevin Korb via rsync
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rsync doesn't really give much control over the order it does things in. If you want to control when the deletions happen there is only - --delete-before or --delete-during but both are slower than the default - --delete. On Thu, 16 Jan 2025, BP via

Re: question about the recursive algorithm

2025-01-16 Thread Kevin Korb via rsync
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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 i

Re: question about the recursive algorithm

2025-01-16 Thread BP25 via rsync
Thanks Kevin, but I don't understand your message, or at least how it answers my "real question" (last paragraph)... and by the way --delete defaults to --delete-during for current versions of rsync as far as I know... > rsync doesn't really give much control over the order it does things > in. I

Re: question about the recursive algorithm

2025-01-16 Thread bp25--- via rsync
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 f

Re: question about the recursive algorithm

2025-01-16 Thread Kevin Korb via rsync
-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. O

Re: question about the recursive algorithm

2025-01-16 Thread bp25--- via rsync
> I don't believe the transferring part of rsync will jump around. How about the deleting part? > 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. In the sen