rddbcheck(8) is a command-line interface (CLI) program that can be used to check a Rivendell database for consistency and correct errors found.
Full documentation is available by doing man 8 rddbcheck.
man 8 rddbcheck