I've done a small school project to manage a library with several books, using SQLite and android 2.2. Later on, they asked me to create a back office system, which I wasn't ready for. So I'm trying to achieve a simple backup system that connects to the internet.
I would like directions or hints to:
- Get the project database from data/data/package_name/databases/school
- Send it to a online repository, could be just a ftp connection to upload school_%date% and latest.db (same contents)
and to restore:
- Download latest file from server, something like http://www.site.com/school/latest.db
- Replace data/data/package_name/databases/school with the downloaded latest.db
I been reading about SOA and REST approaches but I couldn't implement that on the trivial server I own... any other advices? /cheers