目录

Verification Guide for App Data Backup and Restore

This guide describes how to trigger data backup and restoration using the data clone app on HarmonyOS devices and provides answers to frequently asked questions (FAQs). It aims to help you verify the results of Accessing Backup and Restore.

Environment Setup

Triggering Data Backup and Restore

  1. Open the Data Clone app. On one device, select "This is the new device" to serve as the data restoration side. On the other device, select "This is the old device" to serve as the data backup side. Connect the two devices as prompted.

  2. On the data selection screen, select the app and data, and select the app to be tested.

  3. Wait until the backup and restoration are complete. Analyze the backup and restoration process based on the backup and restoration results and logs.

FAQs

[h2]The app to be tested is not found on the "Apps & data" screen

Issues

The app to be tested is not found when you select the app on the "Apps & data" screen.

Possible Causes

The app to be tested is not installed on the backup device.

Solution

Install the app to be tested on the backup device.

[h2]The migration result shows that only the app is cloned and no data is migrated.

Issues

After the clone is complete, the migration result shows that only the app is cloned and no data is migrated.

Possible Causes

onBackup/onBackupEx is not implemented according to the specifications.

Solution

Check whether the implementation complies with the specifications in Accessing Backup and Restore and analyze the onBackup/onBackupEx implementation process based on logs.

[h2]The migration result shows that the app data fails to be restored.

Issues

After the clone is complete, the migration result shows that the app data fails to be restored.

Possible Causes

  1. The app to be tested is not installed on the restoration device.

  2. onRestore/onRestoreEx is not implemented according to the specifications.

Solution

  1. Install the app to be tested on the restoration device.

  2. Check whether the implementation complies with the specifications in Accessing Backup and Restore and analyze the onRestore/onRestoreEx implementation process based on logs.