Automatically Verify File Integrity Using Hash Values

Verify file integrity with hash baselines, comparison criteria, mismatch detection, and operational response.

IT EngineersDevelopers

Getting Started#

Basic Concept#

Compare hash values before and after transfer to verify that the destination file matches the source

After transferring a file to another server or storage system, a completed transfer status alone may not be enough to confirm that the file contents were preserved correctly.

For example, even if a large dataset, backup file, or critical result file appears on the target system after transfer, you may still need to verify that the source and destination contents are identical and that the file was not changed or corrupted during transfer.

A hash value is calculated from file contents. The same file produces the same hash when calculated using the same method, so comparing the source and destination hash values can verify whether the two files are identical.

If hashes are calculated separately on the source and destination after every transfer, however, the transfer and verification jobs must be run separately, and each file may require its own verification result when multiple files are involved.

With INNORIX Flow, you can connect integrity verification to the transfer result and build an automated verification flow that calculates and compares hash values for the source and destination files.

Instead of checking only whether the file reached the Target, you can verify integrity through a complete flow of source file review → hash calculation → file transfer → destination file review → hash calculation → comparison result.

Original File
Hash CalculationSHA-256
Original Hash
File Transfer
Destination File
Hash CalculationSHA-256
Destination Hash
Hash Comparison
Match
Verified
Mismatch
Review

Rather than treating hash verification as a separate manual check, you can configure it to continue automatically from the transfer result and verify integrity for each file.

This also applies to transfers with multiple files, allowing you to review each verification result and distinguish files that match successfully from files that require additional review.

Verification Result Meaning
Match Source and destination hash values are identical
Mismatch Hash values differ and require additional review
Verification Complete Both transfer and file verification are complete
Review Required The file or transfer result requires additional review

This connects the full integrity-check process from file transfer → destination file review → hash calculation → source comparison → verification result within one Flow.

Verification Flow#

Continue automatically from transfer completion to integrity verification

Hash verification can be configured to check the file once before transfer and again after transfer.

Use the source-file hash as the reference value and compare it with the hash of the transferred destination file.

Stage Processing Result
Source Review Identify the file to transfer Determine the verification target
Generate Reference Value Calculate the source-file hash Create the reference hash
File Transfer Transfer from Source to Target Create the destination file
Destination Review Calculate the destination-file hash Create the comparison value
Compare Values Compare source and destination hashes Determine whether they match
Record Result Store the verification result Complete or require review
Source File
Generate Reference Hash
File Transfer
Destination File Applied
Generate Destination Hash
Compare Source ↔ Destination
Verification Complete
Mismatch Detected
Review Cause

This flow verifies not only whether the transfer completed, but also whether the actual file contents are identical.

Application Scope#

Apply verification only where needed based on file importance and characteristics

Not every file requires the same level of verification.

For large datasets, database backups, media masters, deployment files, and other files where corruption could affect downstream work, hash verification can be connected to the transfer job.

Transfer Targets

  • Standard Work FilesReview Transfer Result
  • DB BackupTransfer + Hash Verification
  • Deployment FilesTransfer + Hash Verification
  • Large Source FilesTransfer + Hash Verification

For example, hash verification can be used in the following environments.

File Type How Hash Verification Is Used
DB Backup Verify integrity of remotely stored backup files
Software Deployment File Confirm destination servers received an identical file
Media Master Verify results of large-file transfers
Data Archive Confirm file integrity before long-term storage
Critical Business Data Detect changes or corruption during transfer

IT Engineers#

Verification Criteria#

Configure the hash method and verification scope based on file characteristics

First, define which files should be verified and how their hash values will be compared.

Depending on the transfer environment, you can verify every file or only files matching specific paths, extensions, or size thresholds.

For example, you can define the verification scope as follows.

Source Path/data/backup
File Filter*.sql, *.dump, *.tar
Hash Verification
SHA-256
Selected Files

The verification criteria can include the following settings.

Setting Configuration
Verification Target All files or selected files
File Conditions Path, name, and extension
Hash Method Algorithm used consistently for both files
Verification Timing Before transfer, after transfer, or at completion
Result Handling Next action based on match or mismatch

This makes integrity verification part of the transfer criteria for selected files rather than a separate task from standard file transfer.

Create Baseline#

Record the source-file hash as the verification baseline

When verification starts, first calculate the hash of the source file.

This value becomes the reference used to compare the destination file.

Source/backup
db_01.dump
SHA-256
8F3A...C21
db_02.dump
SHA-256
A71D...E09

When multiple files are transferred together, a separate baseline can be generated for each file and compared with its destination copy.

This lets you distinguish cases where the overall transfer completed but an individual file still requires review.

Connect file transfer completion and hash comparison in one Flow

After the source hash is ready, run the file transfer and continue with verification after the destination file is applied.

Hash verification can be configured as an independent check or as a follow-up stage that runs automatically after transfer completion.

  1. Source File
  2. Generate Hash
  3. File Transfer
  4. Target File
  5. Verify Hash

This structure can be used for the following scenarios.

  • Verify remote backup integrity after file transfer

  • Check integrity on each target after distributing deployment files to multiple servers

  • Compare checksums per file after large-data transfer completes

  • Confirm source and stored files are identical before long-term retention

Compare Results#

Review per-file hash values and the overall verification result together

After transfer and verification complete, review the overall execution result in Runs.

Verification should not be shown only as a transfer success result. Review it based on the per-file hash comparison result as well.

Verification Run

File, Verification
  • db_01.dump✓ Match
  • db_02.dump✓ Match
  • archive_01.tar✓ Match
  • backup_03.dump! Mismatch

Verification results can be categorized as follows.

Result Meaning Next Action
Match Source and destination files are identical Verification complete
Mismatch Hash values are different Review file state
Verification Failed The verification job itself did not complete Review the environment
Pending Verification is waiting to run Check job progress

This distinguishes a completed transfer from a transfer whose file verification is still pending.

Mismatch Response#

Review only files with mismatched hashes and rerun the required work

If the source and destination hash values differ, review the transfer status and the Source and Target environments for that file.

When only some files are affected, review the cause and rerun only the required work for failed verification files instead of rerunning the entire job.

Hash Mismatch
Review Per-File Results
Source File
Target File
Transfer Result
Hash Value
Review Cause
Retry
Hash Recheck
Match
Verified
Mismatch

When a mismatch occurs, review the following items.

Item Details Response
Source File Whether the file changed Generate a new baseline
Target File Whether it was applied correctly Review file state
Transfer History Whether an error occurred during transfer Review Run details
Storage Path Whether the wrong file was compared Review Target path
Verification Method Whether both hashes used the same method Review hash settings

With this recipe, you can automate the entire flow from source file review → hash generation → file transfer → destination file review → checksum comparison → per-file verification result recording → mismatch review.

This verifies not only that the file reached the destination system, but also that it arrived in the same state as the source.