Does Relax-and-Recover on Rocky Linux verify restored data integrity, or is a separate checksum pass required?
0 reputation · 01 Jul 2020, 19:13 UTC
0 reputation · 01 Jul 2020, 19:13 UTC
When using Relax-and-Recover (rear) to restore a Rocky Linux system, administrators need to know whether the built-in recovery workflow validates the integrity of restored file contents or merely confirms that the disk layout and filesystem structures were recreated successfully. The default rear process focuses on structural restoration from rescue media, and its completion message does not necessarily indicate that every restored file matches the pre-backup state byte-for-byte.
This uncertainty is compounded by version-specific behavior, as rear configuration options and supported backup programs differ across Rocky Linux 8, 9, and 10, which can affect what verification steps are practical. Silent corruption from storage media or interrupted archive transfers may persist undetected unless a separate validation pass is explicitly performed, but it remains unclear whether rear exposes any native mechanism to detect such mismatches during recovery.
Does a successful rear recover command on Rocky Linux perform any built-in comparison of restored file contents against original checksums? If not, what is the recommended point in the workflow to inject an independent integrity check without disrupting the recovery process? Which rear configuration parameters, if any, control or influence data verification behavior during restoration?
No. A successful rear recover on Rocky Linux does not perform a built-in byte-for-byte comparison of restored file contents against original checksums. The workflow recreates partition tables, filesystems, bootloader configuration, and then extracts the backup archive. Its completion message indicates that structural restoration and archive extraction finished without fatal errors, not that every file matches the pre-backup state.
Relax-and-Recover (ReaR) is a disaster-recovery orchestrator, not a content-verification engine. It prepares rescue media, rebuilds the disk layout, and delegates data restoration to an external backup program such as tar or BorgBackup. Because ReaR does not maintain a manifest of original file checksums, it cannot detect silent corruption introduced by storage media, interrupted transfers, or archive damage unless the underlying backup tool itself reports a fatal error during extraction.
The safest injection point is after rear recover completes and the restored system has rebooted, but before you declare the recovery successful. Attempting to interpose a checksum pass during the live recovery environment is disruptive and unnecessary unless the configured backup tool offers native archive verification (for example, Borg's repository check). For most workflows, a post-boot validation pass is the correct boundary.
ReaR does not expose a universal "verify restored data" flag. The setting that governs behavior is BACKUP in /etc/rear/local.conf (or /etc/rear/site.conf). The available verification capabilities depend entirely on the external tool named there:
grep -E '^BACKUP=' /etc/rear/local.confsha256sum -c /root/manifest.sha256borg check against the archive before starting recovery, and optionally verify extracted critical files after reboot./etc, /boot, and application data directories.Across Rocky Linux 8, 9, and 10, the core ReaR behavior described above is consistent; differences appear in package versions and available backup backends, not in the presence of a native content-verification stage. Because exact tool capabilities can vary by release, treat any tool-specific verification flag as something to confirm against the installed version's documentation.
If the BACKUP method is not already known, that single detail determines whether archive-level verification is available before extraction or whether a post-boot checksum pass is the only option.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.