On 5/24/19, Tony Papadimitriou <[email protected]> wrote:
> Can someone explain the behavioral differences of the following shell
> commands?
>
> .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.

-- 
D. Richard Hipp
[email protected]
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to