How disable multipart upload so sync matches the md5sum of local and remote file in s3cmd

StackOverflow https://stackoverflow.com/questions/19525544

  •  01-07-2022
  •  | 
  •  

How disable multipart upload so sync matches the md5sum of local and remote file in s3cmd. When I upload a large file, s3cmd separates the file into parts. The eTag on Amazon S3 is the last part of the multipart. How can I preserve the file uploaded with the md5sum of the local file.

有帮助吗?

解决方案

You can manually calculate and send (save) md5sum of the whole object in the custom HTTP header. You can add any HTTP header when you send PUT request, and you will get the same header and value for the next GET or HEAD requests. We use this feature in our project RioFS, to save md5sum of the stored object and then compare the hash with the cached object to avoid re-downloading local files.

Hope this information helps you !

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top