| ID | TSS000750 | Creation date | September 17, 2007 |
| Platform | S60 3rd Edition | Devices | |
| Category | Symbian C++ | Subcategory | Base/System |
| Keywords (APIs, classes, methods, functions): |
In S60 3rd Edition, installed applications will not be backed up by default. 3rd party application developers need to enable backup and restore for their applications by including a backup_registration.xml file in the application's private directory.
A backup registration file typically includes the following information:
The following is an example of a backup registration file for a data owner that requires passive backup of all its files and system files ( \private\<UID>\):
<?xml version="1.0" standalone="yes"?>
<backup_registration>
<passive_backup>
<include_directory name = "\" />
</passive_backup>
<system_backup/>
<restore requires_reboot = "no"/>
</backup_registration>
The above code can be used as a default template for applications that store files only under the \private directory structure.
If an application wants to store data which is accessed by another application, the data should be stored in the C:\Data directory. This directory will be automatically backed up and doesn't need to be defined in the backup registration file. However, if the application wants to backup other public directories, they should be defined using the <public_backup> tag.
For example, the following registration file defines two additional public directories that need to be backed up:
<?xml version="1.0" standalone="yes" ?>
<backup_registration>
<passive_backup>
<include_directory name="\" />
</passive_backup>
<public_backup>
<include_directory name="c:\cities\" />
<include_directory name="e:\cities\" />
</public_backup>
<system_backup />
<restore requires_reboot="no" />
</backup_registration>
Active backup
If the application requires more control over the files that are backed up and restored, it can register for active backup. The secure backup engine will start any process registered for active backup, if it's not already running. It is the application's responsibility to react to backup and restore events, and actively provide its private data to or receive it from the secure backup engine.
For more information, see:
How To Write Backup Aware Software for Symbian OS v9 by Symbian
KIS000544 - Backup and restore fails for applications using a developer certificate
Related articles
No related wiki articles found