I need to upload a huge amount of (small) files to R2 (we're talking about several million). And I n

I need to upload a huge amount of (small) files to R2 (we're talking about several million). And I need to keep uploading newly generated files, while skipping the ones that were already uploaded.

What would it be a good way to achieve that?

if I understand the docs correctly, rclone can check if each file exists (with an API call) and upload it (with another API call), but this is basically the same as just uploading it directly (the files are just a couple of kb so the round trip for an extra API call is more expensive than just uploading the file). And that wastes a lot of time and resources. Not ideal.

Maybe R2 supports uploading a zip and unzipping it once uploaded?
Was this page helpful?