Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I was wondering if Dropbox works like git/rsync in that it deltas the files against the local repository in order to only send the changes to the files across the link.

For instance, if I put a 1GB file in the Dropbox folder and sync it with Dropbox, then make a change to it and now its 1.2GB. When syncing, will Dropbox send the whole 1.2GB across or just the .2GB?

share|improve this question
    
I believe that Dropbox actually uses rsync internally. I can't find a good reference for that off-hand right now, but if I do, I'll expand this into a full answer. It definitely does use some sort of differencing algorithm. –  nhinkle May 9 '12 at 6:15
    
Duplicate - serverfault.com/questions/52861/… –  Bibhas May 9 '12 at 6:20

1 Answer 1

up vote 7 down vote accepted

Answer by Moo at Serverfault:

Dropbox uses a binary diff algorythm to break down all files into blocks, and only upload blocks that it doesn't already have in the cloud. All of this is done locally on your computer.

Dropbox doesn't just use your files that you have already uploaded, it aggregates everyones files into one database of blocks, and checks each local block hash against that database.

This means that if someone else has uploaded the same file as yourself (say for example, the latest Ubuntu iso), then the upload will seem instant as there is nothing to upload, but if you are updating a file that changes regularly, like your backup file, then only the changes are uploaded. If you upload a totally unique file, then you have to wait for it all to upload.

share|improve this answer
    
That answer is partially inaccurate as Dropbox no longer de-duplicates across all users (there was a bug that allowed people to pirate files by only having a hash of the file; rather than fix the bug, Dropbox opted to simply disable the feature). The blocks will only not be uploaded if they're already in your own account. –  Andrew Maiman May 10 '12 at 12:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.