Backup

"Backup" button shows database backup ability.

On db4o a ExtObjectContainer#backup call is used to backup a database in use.

SQLite does not support a special API to make a backup. However, as you remember SQLite database is stored in a single database file, so the backup can be simply a matter of copying the database file. Unfortunately, this can't be done if the database is in use. In this case you can use Android Debug Bridge (adb) tool to access sqlite3 command-line application, which has .dump command for backing up database contents while the database is in use:

E:\>adb shell

# sqlite3 /data/data/com.db4odoc.android.compare/databases/android.db

sqlite3 /data/data/com.db4odoc.android.compare/databases/android.db

SQLite version 3.5.0

Enter ".help" for instructions

sqlite> .dump > android200711.dmp

.dump > android200711.dmp

BEGIN TRANSACTION;

COMMIT;

sqlite>.exit

.exit

# ^D

Ctrl+D command is used to close adb session.