Expand description
The one error type the tool reports, and the exit codes it maps onto.
A runbook branches on $?, so the numbers are fixed here and stated in the
crate README and in docs/operations/backup-restore.md. They are chosen to
sit beside krabka restore’s own: 2 is a bad argument in both tools, 4
is an unreadable archive in both, and 5 is an integrity failure in both.
Enums§
- Backup
Error - Everything that can stop a capture, a verification, or an offset restore.
Constants§
- EXIT_
BAD_ ARGUMENT - Exit code for a bad argument, or a flag set that contradicts itself.
- EXIT_
CLUSTER - Exit code for a cluster that could not be reached, or that refused.
- EXIT_
INTEGRITY - Exit code for a captured artifact that does not match its recorded digest.
- EXIT_
STALE_ METADATA - Exit code for a node whose only metadata checkpoint is the format-time one.
- EXIT_
UNREADABLE - Exit code for an archive or a log directory that cannot be read.