Use the shell recovery command.
Section: Output, import, and export
Attempt recovery from a damaged database
text
text
.recoverExplanation
Can salvage data from a corrupt database into SQL output for rebuilding.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Output, import, and export