SQLite database does not run a daemon on the system. Instead, it runs as part of the application. It stores the data in a single file. For backup, copying the data file is not the best approach, as the process might still be writing the data. SQLite utility implements a dot command (.backup) to simplify the process. The command takes a snapshot of the current data and writes it to a newer file in a consistent way. The backup is a new copy of the data file that is also an SQLite database.
!#/bin/sh