Use File Hashes to Verify a Backup You Can Restore
A checksum can flag mismatched bytes if it travels with the right file and a trustworthy baseline.

In this article
A folder on a backup drive can have the right names and still contain a short, damaged or older copy. A hash gives you a repeatable test of the bytes, provided you know which version the expected hash describes. Follow the test through a restore to see why a good checksum is only one part of the job.
Make the reference before relying on the copy
Choose a small, settled set of source files. Close applications that might save over them midway through the operation, or use a reliable snapshot of the chosen versions. Compute SHA-256 with a trusted tool. PowerShell’s Get-FileHash uses SHA-256 by default, and Linux tools commonly expose it through sha256sum. The algorithm produces a fixed-length digest regardless of file size. With a trusted expected digest, a match gives strong practical evidence that the checked bytes match the baseline. It supplies no record of which people can open the file or whether you selected the correct original.
Preserve the date, algorithm and relative paths next to the digests, with a safe copy of the manifest separate from the backup being tested. A manifest for a project called “release” needs a version if the project directory is normally reused. Store it in a location with appropriate permissions. If someone can replace both the archived files and the only manifest without leaving evidence, they can present matching results for changed data. For intentional tamper resistance, keep an independently protected or appropriately signed reference.
Verify the copied items and the file inventory
Read the copied files back from the destination and calculate their digests. Comparing a source checksum to a checksum generated from the source again would leave the destination untested. Record success and errors separately. A missing file, a file that could not be read and a mismatched digest need different follow-up. Also compare the expected file count and name list. A digest for one document cannot account for an untracked folder, a missing sidecar or a project export you forgot to include.
Different machines may store files where the root directory changes. Relative paths avoid tying a manifest to one drive letter, but need a documented root folder. Check spaces, accented characters and deeply nested names if your real archive includes them. Depending on the tool, a symbolic link can be treated as the target’s bytes or handled differently from a regular file. Decide how links and references belong in the archive before interpreting a match.
Work through a deliberate mismatch
In a disposable test only, change one character in the copied text document and re-run the verifier. The digest should change. If your tool still reports success, check the directory it is reading and the file list in the manifest. Open the copied file in its normal application too. A successful hash does not prove a 2026 device has the fonts, plug-ins, project dependencies or decryption keys that the file needs. Project files may refer to assets outside the set you hashed.
Restore somewhere separate
Copy the test set from the backup to a new location and verify the bytes again from there. Open at least one representative file without the source drive connected if that is safe for your setup. Do so using the same access path you would have after the failure. Preserve ownership and permissions if you need them, and keep the documentation or keys needed to read encrypted content in a location compatible with your recovery plan.
Choose between hashing a container and hashing its contents
Suppose a photo archive travels as a single ZIP file with a project folder inside it. A SHA-256 digest of the ZIP gives you a direct comparison for the exact package delivered. Recreating a ZIP from identical images can change its digest if the tool writes entries in another order or picks different timestamps and compression choices. That is expected because the container bytes differ. To verify the stored images after extraction, make a per-file manifest from the source files too. The container check protects the transfer as a whole, while per-file checks make missing or mismatched items easier to localize. You can keep both when reproducing a particular release or relocating an archive is important. Tell the recipient how the manifest was built and whether it covers the container, the extracted content or both, so they run the right check against the right path.
A manifest that contains the names of account exports, people or projects is itself a document to protect. Use a private location for it and preserve the required metadata separately if a process must reconstruct access rules or dates. A byte check of an image will cover metadata embedded in the image, but generally does not include an external filesystem timestamp or permission record. When your work contains two files that differ only in the normalization of a character in the filename, a destination filesystem may interpret the names differently. Test a representative sample with case and Unicode names if those are likely to occur. This is especially useful for a NAS that serves both desktop operating systems. A manifest and restore plan can describe the supported name rules without modifying the only copy of a project to force it through an incompatible destination.
An archive tool may also create multiple parts. Verify the list of required parts before testing any one of them. Compared with a file of one document, such an archive can concentrate the loss from one unreadable part. Keep a separately recoverable copy of essential work and document the restoration tool if it is not routinely available. A regular sample of ordinary files may be straightforward to restore, while a compressed or encrypted backup deserves a trial with the exact reader, credentials and recovery key supported by that product. A manifest from the decrypted source is useful for verifying the outcome. A digest of the encrypted package only tests the delivered encrypted bytes. Those two checks can both succeed while a person without the key still cannot use the archive. Test what the breakage or outage you anticipate would actually leave in your hands.
Classify differences before re-copying
When a comparison fails, keep the source, destination and valid manifest available until you know which is authoritative. A different digest after a buffer or snapshot timing problem may identify a legitimate newer file rather than damaged data. Compare name, size, expected version and creation of the manifest. Then read from a separate copy where available. If a file could not be read, inspect the supported health and access reports for the storage involved and avoid writing on equipment that may need recovery. A read error and a cleanly readable file with changed bytes are different problems. Record the exact error and path rather than treating the whole folder as corrupt. In a managed synchronization system, pause uninformed retries long enough to check which file would overwrite which. A repair that writes bad content over the only remaining good copy defeats the reason for verification.
For a simple example, consider a manifest listing 40 items. Thirty-eight match, one is absent and one digest differs. You need to determine why the missing path is absent and whether the different digest stands for an intended edit, corruption or a copy of another valid revision. Recomputing the hash of the whole directory in the destination and declaring it the new baseline would erase the diagnostic information. Restore those two files into a scratch location from an independently known good source, verify them against the original manifest and only then decide which paths should be updated. A later successful result should include the corrected inventory. If the verified copy differs intentionally, make a properly dated new generation so an earlier manifest still remains useful. Someone opening it in a future year should be able to put each reported difference in the context of a real change.
Plan how often you can do a full check. Reading a 2 TB drive for verification takes time, and a sample does not prove every file matches. If a drive could read continuously at 150 MB/s in a hypothetical ideal scenario, 2 TB would take roughly 3.7 hours to read before smaller-file access, computer load and verification overhead. Keep a suitable way to check an important subset after routine copies and a defined occasion for a full check. If data is being updated while you read, decide whether you need consistency from a snapshot rather than any live-file scan. Check an important file on the only older generation you still retain as well. The newest backup’s good digest cannot tell you whether an earlier version remained readable on another device.
Keep manifests alongside named generations
A backup can intentionally retain several different versions, each with a legitimate set of digests. Label them in a way that identifies the date or revision you would choose and keep the manifest in the same record system. Run a new check after a disk move or a substantial archive change. Hash verification is a useful log entry because you can answer exactly which version was checked, where it was restored and what action followed any mismatch.
Keep the checked copies available until your backup policy allows retirement. Test recovery using the other records normally required for access, such as the device inventory or the list of files intentionally excluded. That inventory can flag a folder you never hashed in the first place. A digest is excellent at answering a narrow question about bytes and works best next to a record of what you expected to recover.


