Add these to your image and then set an env variable $DB_PATH that points to the database file you wish to backup. This will use the proper SQLite backup command for backups.
$DB_PATH