Verify a Big File Upload With a Checksum: 3 Windows Steps
Hi there.
A "100% uploaded" bar is not proof that your file is safe.
I archive large video bundles in cloud storage, and I stopped trusting the progress bar.
Now I compare a checksum before and after the upload.
It takes three steps and one built-in Windows command.
What a checksum tells you
A checksum is a short fingerprint calculated from the file's contents.
Change one byte and the fingerprint changes completely.
If the fingerprint of the original matches the fingerprint of the copy you download back, the copy is identical.
Step 1: Fingerprint the original
Open PowerShell and run this line with your own path:
```
Get-FileHash "C:\path\to\bundle.zip" -Algorithm SHA256
```
Copy the long hash into a text file next to the file's name.
Step 2: Upload, then download it back
Upload the file, then download it again from the cloud into a different folder.
Do not reuse the original folder, or you can end up comparing a file with itself.
Step 3: Compare
Run the same command on the downloaded copy.
If the two hashes match, the upload is a true backup.
If they differ, upload again under a new name and keep the first copy until the new one matches.
What went wrong for me
My upload tool rejected a 256 MiB part because the middle step of the transfer capped parts at 100 MB (104,857,600 bytes).
Parts of 96 MiB and a 60 MB ZIP went through fine.
That limit is what I measured on my own account, so treat it as an example.
For anything larger than a few hundred megabytes I now split the file into numbered parts, fingerprint each part, and verify them one by one.
To rebuild the file, I join the parts in order with copy /b part-001+part-002+part-003 joined.zip in Command Prompt and compare the joined file's hash with the original.
Quick checklist
- The original and the re-downloaded copy have the same SHA256.
- The re-downloaded copy sits in a different folder.
- Temporary download links are never saved in notes or documents.
Summary
A finished upload only says the sender had no errors.
A matching checksum says the file arrived intact.
Which of your files would hurt most to lose?
Tell me in the comments.
Related reading:
Thanks for reading.
Comments
Post a Comment