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.
We should expose that trough a new webapi that would let 3rd party write
backup/restore apps, and for instance use it in find my device.
Fabrice
--
Fabrice Desré
b2g team
Mozilla Corporation
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g