tags:

views:

135

answers:

1

Please help me understand how to take a backup of a sqlite database?

+4  A: 

SQLite has a backup API for exactly this purpose. If you can guarantee that no-one is changing the database while you're backing it up, then you can simply copy the file.

But, if you want to ensure data integrity and still allow applications to access your database during the backup process, this API is what you need.

paxdiablo