Friday, February 15, 2008

Backup, Restore, XML

By default, backup and restore of application are not supported in S60 3rd Edition. Each application must include a file, backup_registration.xml, to register itself in the backup/restore process. However, none of the examples in SDK provide a good enough registration file - all of them only work for simple applications. Below are some URLs I found these days:

Symbian.com: How-To Write Backup-aware Software
- official documentation on backup and restore. But it's hard to understand and too deep into the underlying but too little about the XML.

Forum Nokia: nokia n95 full backup program
- this is where I start to find some useful information on the XML.

Forum Nokia: How to backup/restore themes in Symbian v.9.x based devices?
- for theme creators. But I wonder, how to put the XML in Carbide.ui Theme Edition 3.2?

NewLC.com: How to enable backup and restore for Symbian OS applications
- the best place to look for Symbian C++ sample codes.

Wiki of FN: Enabling backup and restore for installed C++ applications
- the example in this page is the best so far.


Here is my XML file:
<?xml version="1.0" standalone="yes" ?>
<backup_registration>
<system_backup />
<passive_backup>
<include_directory name="\" />
</passive_backup>
<public_backup>
<include_directory name="C:\PATH1\UID" />
<include_directory name="C:\PATH2\UID" />
</public_backup>
<restore requires_reboot="no" />
</backup_registration>

No comments: