keepcalculator

06 Numbers and Powers

Backup Verification: What to Do Right After Copying

Card No. 06·86106 · Updated · Standard formula, shown below

You should never trust a backup until you have verified it, and the moment to do that is immediately after the copy finishes. The single most important step is to restore a few files from the backup to a different location and open them, confirming they are intact and readable. This article explains why verification is critical, what can go wrong, and the exact steps to take after every backup.

Why Backups Fail Silently

Most people assume that if a backup software reports “success,” the data is safe. In reality, backup failures are common and often go unnoticed until you need the data. The causes range from corrupted source files to incomplete writes, incompatible file formats, or even malware that encrypts both the original and the backup. A 2021 survey by Backblaze found that 69% of respondents had experienced a failed backup, yet many only discovered the failure when trying to restore. The problem is that backup tools often only check that the copy operation completed, not that the resulting files are valid.

Another silent killer is bit rot—the gradual decay of storage media. Hard drives and SSDs can develop bad sectors over time, and if a backup is not periodically read and verified, you may not know it is unreadable until it is too late. Even cloud storage is not immune: data can be corrupted during transfer or due to provider-side issues.

What to Do Immediately After Copying

Once the copy finishes, follow these steps to ensure your backup is actually usable:

  • Check the log: Look for any warnings or errors in the backup software’s log. A “success” message can still hide skipped files or failed verification.
  • Restore a few test files: Pick a few files from different folders (documents, photos, a database) and restore them to a new folder on your computer, not the original location. Open them and confirm they are not corrupted.
  • Verify file count and sizes: Compare the number of files and total size between the source and the backup. A mismatch often indicates missing files.
  • Use checksums: Generate MD5 or SHA-256 hashes for critical files on both the source and the backup, then compare them. If they match, the files are identical.
  • Test bootable backups: If you made a system image or a bootable drive, boot from it on a spare computer or a virtual machine to confirm it starts correctly.

How to Verify Your Backup Properly

Verification goes beyond a quick glance. The most reliable method is a checksum comparison. For a folder, you can use tools like md5deep or hashdeep to create a hash list of the source and then compare it to the backup. On Windows, you can use PowerShell’s Get-FileHash; on macOS and Linux, md5 or sha256sum work well.

For large backups, a full checksum comparison can take hours, but it is the only way to be certain every byte is correct. Many backup tools have a built-in “verify” option that does this automatically. If your tool lacks it, consider using a separate verification utility.

Another practical test is to open a random sample of files—especially ones that are compressed or encrypted, as those are more prone to corruption. For databases, run a consistency check (e.g., DBCC CHECKDB for SQL Server, PRAGMA integrity_check for SQLite).

Common Backup Mistakes and How to Avoid Them

  • Only having one copy: A single external drive can fail, be stolen, or be destroyed in a fire. The 3-2-1 rule (3 copies, 2 different media, 1 offsite) is the gold standard.
  • Not testing restores: A backup that has never been restored is not a backup. Schedule a quarterly restore test.
  • Ignoring open files: If a file is in use during the backup, it may be skipped or copied in an inconsistent state. Use a tool that handles open files or close applications during backup.
  • Storing backups next to the computer: If your house floods or is burglarized, both the original and the backup are lost. Keep one copy offsite.
  • Forgetting to check backup logs: Many people set up automatic backups and never look at the logs. Make it a habit to review them weekly.

How to Choose a Backup Verification Tool

When selecting a tool to verify your backups, consider these factors:

  • Compatibility: Does it work with your file system (NTFS, APFS, ext4) and your backup format (file copies, images, cloud)?
  • Automation: Can it run on a schedule and send alerts on failure?
  • Checksum strength: SHA-256 is more secure than MD5, but MD5 is faster for large datasets. For non-security-critical data, MD5 is usually fine.
  • Ease of use: A command-line tool like rsync -c is powerful but has a learning curve. GUI tools like Teracopy (Windows) or Carbon Copy Cloner (macOS) offer built-in verification.

Costs and Time Implications

Verification takes time and storage space. A full checksum scan of a 1 TB drive can take several hours, depending on the speed of your hardware. The cost is minimal in terms of money—most verification tools are free or open-source—but the time is significant. However, the cost of not verifying is potentially catastrophic data loss.

To minimize time, you can verify only new or changed files since the last backup. Many backup tools do this automatically if you enable incremental backups. Also, consider using a filesystem that supports checksums natively, like ZFS or Btrfs, which can detect and even repair corruption automatically.

Alternatives to Manual Verification

If you find manual verification tedious, there are alternatives:

  • Use a backup tool with built-in verification: Tools like Arq, Duplicati, and Veeam Agent verify backups automatically after creation.
  • Use a filesystem with checksums: ZFS and Btrfs store checksums for every block, so you can run a scrub to verify all data.
  • Use cloud backup with versioning: Services like Backblaze B2 or AWS S3 offer object versioning, allowing you to revert to a previous version if corruption is detected.
  • Periodic restore drills: Set a calendar reminder to do a full restore to a virtual machine once a quarter.

Frequently Asked Questions

How often should I verify my backups?

You should verify after every backup, at least for critical files. For a full system image, a monthly verification is reasonable. Many experts recommend a quarterly full restore test.

What is the best way to verify a backup on Windows?

Use PowerShell’s Get-FileHash to compute hashes for source and backup folders, then compare them. For a simpler approach, use a tool like Teracopy, which has a “Verify” checkbox during copy.

Can I trust cloud backup providers to keep my data safe?

Cloud providers have redundancy, but they are not immune to errors or outages. Always download and test a few files periodically. Also, encrypt sensitive data before uploading to protect privacy.

What does “verify” mean in backup software?

It means the software reads back the written data and compares it to the source, often using checksums. It does not guarantee that the data is logically correct, only that it is a byte-for-byte copy.

My backup says “completed successfully” but I think files are missing. What should I do?

Check the backup log for skipped files. Then manually compare the file count and total size between the source and backup. If they differ, re-run the backup with verbose logging to see which files failed.

Is it enough to back up to an external hard drive?

It is a good start, but you also need an offsite copy. External drives can be lost, stolen, or fail. Use the 3-2-1 rule: three copies, two different media, one offsite.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →