Hello,

On Wed, Jan 17, 2024 at 11:09:35PM -0500, Stefan Monnier wrote:
> > However, I have read that using rsync --delete instead of rsync --
> > delete-after is faster and uses less memory, and so is more efficient. 
> 
> I'd be surprised if it makes a significant difference.

If you use --delete-after (and some other options) then rsync has to
check every file before it can do any work, whereas normally it will
find a few files to work on and start work, meanwhile incrementally
scanning for more. Each file that it's working on uses 100 bytes of
memory, so that's about 100MB for each million files.

Not a huge amount of memory either way so probably won't cause an
issue. It would be the thing about not starting any work until
having fully scanned the file tree.

It's all covered in the man page where it talks about those options.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to