Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8008027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:00:51+00:00 2026-06-04T18:00:51+00:00

I am wondering the best way to achieve de-duplicated (single instance storage) file storage

  • 0

I am wondering the best way to achieve de-duplicated (single instance storage) file storage within Amazon S3. For example, if I have 3 identical files, I would like to only store the file once. Is there a library, api, or program out there to help implement this? Is this functionality present in S3 natively? Perhaps something that checks the file hash, etc.

I’m wondering what approaches people have use to accomplish this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:00:52+00:00Added an answer on June 4, 2026 at 6:00 pm

    You could probably roll your own solution to do this. Something along the lines of:

    To upload a file:

    1. Hash the file first, using SHA-1 or stronger.
    2. Use the hash to name the file. Do not use the actual file name.
    3. Create a virtual file system of sorts to save the directory structure – each file can simply be a text file that contains the calculated hash. This ‘file system’ should be placed separately from the data blob storage to prevent name conflicts – like in a separate bucket.

    To upload subsequent files:

    1. Calculate the hash, and only upload the data blob file if it doesn’t already exist.
    2. Save the directory entry with the hash as the content, like for all files.

    To read a file:

    1. Open the file from the virtual file system to discover the hash, and then get the actual file using that information.

    You could also make this technique more efficient by uploading files in fixed-size blocks – and de-duplicating, as above, at the block level rather than the full-file level. Each file in the virtual file system would then contain one or more hashes, representing the block chain for that file. That would also have the advantage that uploading a large file which is only slightly different from another previously uploaded file would involve a lot less storage and data transfer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering the best way to upload file to a web server in
I'm wondering what's the best way to achieve this: var $optionSets = $('#options').find('.option-set','#talents').. That
I was wondering about the best way to setup to following. I have a
I was wondering what would be the best way to achieve a multi-language template
I'm wondering if there is a best way to achieve this the rail way
I'm wondering about the best way to achieve a relatively usual layout with mig
Wondering the best way to populate a GridView with my object data. I have
I have been wondering what is the best way to do silverlight development in
Just wondering the best way to replace in place matches on a string. value.replace(bob,
Just wondering what the best way to access read only information form a Microsoft

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.