Skip to main content

Consistency, Validation, and Repair

After incidents, upgrades, or partial failures, you need a reliable way to prove and restore consistency.

Repair Workflow

  1. Run rclone check to identify mismatches.
  2. Re-sync affected scope.
  3. Re-run validation and archive logs.
repair-loop.sh
rclone check /srv/data remote-prod:backup/data --one-way --combined /tmp/rclone-check.txt
rclone sync /srv/data remote-prod:backup/data --progress
rclone check /srv/data remote-prod:backup/data --one-way

Validation Modes

ModeUse when
Size/time compareBackend hash support is limited
Hash compareHigh-integrity validation needed
Partial scope validationVery large datasets
tip

For large estates, validate by dataset domain (db/, media/, configs/) to shorten mean-time-to-repair.

Common Pitfalls

PitfallConsequencePrevention
Re-syncing everything firstLonger outage windowCheck first, then targeted repair
No evidence logsHard postmortemKeep combined check output files
Single-threaded repair on huge setsSlow recoveryTune transfers/checkers carefully

What's Next