The SQLite command line provides several methods for exporting or backing up an entire database. One of those involves the .dump
dot command.
The .dump
command enables you to convert a whole database to a single ASCII text file. In other words, it renders the whole database as SQL. The text file contains all the SQL statements required to create the tables, insert data, etc.
You can also use .dump
to create a compressed file. I outline both of these methods below.