Every backup feels solid until the day you restore from it. The copy sits on a drive or in a folder, the right name, a plausible size, and no sign of trouble. But a copy is only a backup if its bytes are still the original's bytes, and copies can drift: an interrupted transfer, a disk that wrote some bytes wrongly, a file that was edited after it was copied. You find out at the worst possible moment, when the original is gone and the copy is all you have.

The fix is a habit, not a tool purchase: record a hash of the original when the backup is made, then check the copy against that value whenever it matters. This guide sets out the routine using the free Hash Checker on Ovatly, which hashes files locally in your browser and never uploads them.

Contents

  • Quick answer
  • Why copies drift without telling you
  • The routine: record, store, check
  • How to check a backup copy, step by step
  • Worked example: the invisible newline
  • Which copies deserve a check
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

A backup copy is verified when its hash matches the hash recorded from the original. When you make the backup, note the original file's SHA-256 value and keep it with the copy. Later, open the Hash Checker, select the backup copy, paste the recorded value, and run the check. Match means the copy is byte for byte the original. No match means it differs, even if it opens and looks identical, and it should not be trusted as your only copy until you know why.

Why copies drift without telling you

A copy operation moves bytes, and anything that interrupts or corrupts that movement leaves a file that looks finished. The copy can be truncated by a dropped connection or a full disk. It can be written by hardware that is starting to fail. It can be silently replaced later by an edited version saved over it. File managers report success based on the operation completing, not on the result being identical.

Time makes it worse. The longer a backup sits, the more chances its storage has had to degrade, and the less you remember about how it was made. The only property that survives all of that is a fingerprint taken at the start: a hash of the original, recorded when the backup was made, against which any later copy can be judged.

The routine: record, store, check

The routine has three parts. Record: when the backup is made, take the hash of the original file, not of the copy, and take it before anything has a chance to change the original. For files you downloaded, the publisher's checksum from the download page or a SHA256SUMS file is already that record. For your own files, compute the value once and write it down.

Store: keep the value with the backup, in the same folder or the same note, labelled with the file name and the algorithm. A hash you cannot find later is no use, and an unlabelled string of hex is nearly as bad.

Check: before you rely on the copy, and every so often for the copies that matter most, run the comparison. It takes seconds, and it converts "the backup is probably fine" into a fact.

How to check a backup copy, step by step

  1. Record the original's hash when the backup is made, and store the value with the copy. Prefer SHA-256.
  2. When it is time to verify, open the Hash Checker and select the backup copy. It is hashed locally and never uploaded.
  3. Paste the recorded hash. Upper and lower case and stray spaces in the pasted value are ignored.
  4. Leave Auto-detect on unless you recorded the algorithm yourself: 32 hex characters is MD5, 64 is SHA-256.
  5. Read the verdict. Match: the copy is the original, byte for byte. No match: the copy differs; investigate before trusting it.

Worked example: the invisible newline

Suppose that when you backed up a small text file, you recorded its SHA-256. The file contained exactly abc, no trailing newline, and the recorded value was:

ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Months later you check the backup copy against that value and get Match: the copy survived intact. Then you check a second copy, one that passed through a text editor, and get No match. Open it and it shows the same three letters. The difference is invisible: the editor added a newline at the end when it saved. That single extra byte makes it a different file.

For a shopping list, that difference is nothing. For a contract, a configuration file or a record you may need to stand behind, it is exactly the kind of quiet change you recorded the hash to catch.

Which copies deserve a check

You do not need to hash every file you own. Spend the effort where a silent difference would hurt: the only copy of a document or photo collection, archives you cannot recreate, installers and disk images you rely on, and anything you would hand to someone else as evidence of what the original said. Spot-check those on a rhythm that matches how much they matter, and always check before a restore, a migration or a hand-over, the moments when the copy is about to become the original.

Limitations and honest tradeoffs

The check proves the copy matches the recorded hash. It cannot prove the recorded hash came from a good original, so record it from the file you trust, at the moment you trust it. It cannot repair a copy that fails: a No match means fetching or making a fresh copy from a source that still matches, and if no source matches, the honest conclusion is that the original is lost.

A failed check also has dull explanations first: the wrong file selected, or a hash recorded from a different version. Very large files are read into memory to be hashed, so checking a huge archive can be slow. And prefer SHA-256 for your records: MD5 collisions can be manufactured, which weakens an MD5 match as evidence.

Common mistakes

  • Recording the hash of the copy instead of the original. Then the check proves the copy matches itself, which was never in doubt. Always record from the original.
  • Recording the hash late. A value taken weeks later certifies whatever state the file had reached by then, damage included.
  • Losing the record. A hash stored away from the backup, without the file name, will not be findable or trustworthy when needed.
  • Checking everything or nothing. Hashing an entire drive of replaceable files is wasted effort; never checking the irreplaceable ones is the real risk.
  • Trusting a copy that failed because it opens. Opening proves the format survived. It says nothing about whether the content is complete.

FAQs

When should I record the hash of a file I am backing up? At the moment the backup is made, from the original file, before anything has a chance to change it. Store the value with the backup or in a separate note. A hash recorded later only proves the file matches whatever state it was in when you finally got round to it.

How do I check a backup copy against the original? Open the Hash Checker, select the backup copy, paste the hash you recorded from the original, and run the check. Match means the copy is byte for byte the original. No match means the copy differs, even if it opens and looks fine.

The check says No match but the file looks identical. What happened? Something below the visible level changed. The classic case is a text file that gained a trailing newline: it reads exactly the same, but the extra byte changes the hash. Compare file sizes, and if the content matters, treat the copy as different until you know why.

Do I need to check every file in a backup? Check the copies that would hurt to lose: the only copy of a document, an archive you cannot recreate, installation files you rely on. Spot-checking the important files is a realistic routine; hashing an entire drive of replaceable files is effort spent where it buys little.

MD5 or SHA-256 for backup records? Record SHA-256. MD5 collisions can be manufactured, so an MD5 match is weaker evidence. SHA-256 values are longer to store, but a backup record is exactly the place where the stronger proof is worth it.

Conclusion

A recorded hash turns "I think the copy is good" into "the copy is proven good", and the routine costs seconds once the habit exists. For the thinking behind the check itself, see our explainer on file integrity and how hash checks catch corruption. Run your important copies through the Hash Checker, record the values, and future checks become a formality. More guides in this series live in our Security and Privacy guides.

References