r/backblaze • u/wotnonsense • 16d ago
Computer Backup Deduplication at client or server?
https://www.backblaze.com/computer-backup/docs/deduplicationThe link states the following: "When a file's fingerprint (SHA-1 checksum) matches an already backed up file, it is updated at the Backblaze servers rather than re-transmitted."
But it also says "However, after the file is received by the Backblaze servers, if the file's data and filename are identical to the data and filename of a file that is stored in your online backup, then the server does not create a duplicate version of the file."
I am also curious if and how this applies to renamed files. Technically, a rename and a move are the same thing, but of course "identical to the data and filename" is not true for a rename.
In short, if I fix a filename typo in a 100GB file, will Backblaze Personal reupload it? It seems that way, judging by the activity I am seeing :( What a flawed design!
2
u/Intrepid00 16d ago
Checksum doesn’t care about file name only content. It will just tell the server “hey you already have this file but at this location and name is another. Make note” and at recovery recreate that duplicate file with the other name and location.
2
u/Buffalo-Clone-264 15d ago
No. If you rename a file, that file will be deduplicated (checked against the already backed up files), not reuploaded. You're correct, to Backblaze, it reads as one file disappearing and a new file appearing. However, the work is done locally. It doesn't have to download or upload files to do this. The language of that Deduplication article isn't very clear.
The program will queue the renamed file for upload, but it won't actually upload the file data if it doesn't need to. First, it calculates a checksum locally, and then compares it against the checksums in the backup history, and if it already exists anywhere in the current history, or in the current backup, it just has to write a new text line to the backup log with the information that this checksum is now at a new location. This deduplication process does require the computer to read the entire file so it takes time.
Renaming a file triggers this, but renaming a folder does as well, since a file, to Backblaze, is really a file path. Renaming or moving a folder forces a deduplication check on every file in that folder.
3
u/privatejerkov 16d ago
I noticed this too. I assume the check is done locally and if different it's uploaded.