There are various ways you can backup sqlite. One of the ways is to use the sqlite3 command line utility:
/usr/bin/sqlite3 ~/.local/share/akonadi/akonadi.db
SQLite version 3.8.6 2014-08-15 11:46:33
Enter ".help" for usage hints.
sqlite> .backup /tmp/akonadi.db
sqlite> .quitThis will create a backup of akonadi.db in /tmp.
Sqlite also comes with a backup API - see https://www.sqlite.org/backup.html.
As python tends to be my scripting language of choice I was looking for something that I could use in python.