Le 05/08/2014 17:15, Fabrice Desré a écrit :
On 08/05/2014 04:12 AM, Julien Wajsberg wrote:
We'll need to check how other OS are doing this, but I fail to see how
to do it differently. Either the backup application knows about the
internal format (and then it's application specific) or the application
can save/restore its data in a generic way. I'm not saying it's easy,
especially for forward compatibility...
I thought a bit more abut that since I discussed with Frederik and I now
believe that we should try to do something that is 1) user oriented
(devs can already use the various scripts laying around) and 2) that
doesn't need any application specific code.
The way I see it is that all apps that are saving data locally do it
through a storage mechanism that is known to the platform, be it
cookies, localStorage or indexedDB. So we could provide platform-level
application backup by exporting/importing data relevant to a given app.
Anything else is likely managed "in the cloud" by the app itself.
We also have some non-app content: chrome databases (like contacts, sms)
and any data that is saved by web pages. It seems clear we want to
backup the chrome ones when doing a "system backup", but I'm not sure
about the web ones.
So, say, the user selects the "Contacts" app. How do you decide you need
to take away the datastore for facebook contacts and the idb for
mozContacts?
Another question is: how do you manage restoring to an earlier version ?
I don't think it would generally work without help from the app itself...
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g