无法备份或恢复C:\System目录下的公共文件
Translated from TSS000348 - Backup & Restore of public files in the C:\System folder is not supported
Article Metadata
Compatibility
Platform(s): S60 3rd Edition
Article
Created: huwell
(28 Jun 2007)
Last edited: hamishwillee
(30 May 2013)
- 详细描述:
无法备份或恢复C:\System下的公共文件,虽然data caging configuration并没有把该目录做为私有或控制访问来考虑。
开发者应使用如C:\Data这样的目录,注册为备份及恢复用的公共文件路径。
请阅读文档
PC Connectivity - How To Write Backup Aware Software for Symbian 来进一步了解备份和恢复的知识。
下列代码将文件注册在备份及恢复用的公共区域中,这些文件首先会在安装路径中进行查找,然后才到其他盘符中。请注意如果文件在C盘,那\System\Data中文件将无法备份。
<?xml version="1.0" standalone="yes"?>
<backup_registration>
<passive_backup>
<include_directory name="\" />
</passive_backup>
<public_backup>
<!-- The first file will not be backed up from C-drive! -->
<include_file name="\System\Data\backmeup.txt" />
<!-- Files residing in C:\Data will be backed up also from C-drive -->
<include_file name="\Data\backmeup_2.txt" />
</public_backup>
<system_backup/>
<restore requires_reboot = "no"/>
</backup_registration>


(no comments yet)