question about the recursive algorithm
Kevin Korb
kmk at sanitarium.net
Thu Jan 16 14:55:32 UTC 2025
-----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 it is quite common for it to
delete things in directories it isn't transferring files in.
On Thu, 16 Jan 2025, BP25 wrote:
> Date: Thu, 16 Jan 2025 14:47:27 +0000
> From: BP25 <bp25 at riseup.net>
> To: Kevin Korb <kmk at sanitarium.net>
> Cc: rsync at lists.samba.org
> Subject: Re: question about the recursive algorithm
>
> 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. 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.
>
-----BEGIN PGP SIGNATURE-----
iF0EARECAB0WIQSHERqysePm7S8yuR9UoLWOVtABBwUCZ4kd5AAKCRBUoLWOVtAB
B8lIAJ4m+yB7YWl/DVwvlWo4lRjDPqBe8wCeJlSMsd+5smY1qpKbQqr0/nqg2u0=
=5Wst
-----END PGP SIGNATURE-----
More information about the rsync
mailing list