On 5/24/19, Tony Papadimitriou <[hidden email]> wrote:
> Can someone explain the behavioral differences of the following shell
> .backup ?DB? FILE Backup DB (default "main") to FILE
> .clone NEWDB Clone data into NEWDB from the existing database
> .save FILE Write in-memory database into FILE
.backup and .save are aliases for the same command.
.clone attempts to move as much information as possible from the main
database file into a new database file, even if the main database file
is corrupt. The ".clone" command was originally called ".repair". I
do not recall why we created that command.
There will be a new ".recover" command in the next release (currently
available in the prerelease snapshot) which does a better job of
recovering content from a corrupt database file.