1# @ohos.application.BackupExtensionAbility (Backup and Restore Extension Capability) (System API) 2 3The **BackupExtensionAbility** module provides extended backup and restore capabilities for applications. 4 5> **NOTE** 6> 7> - The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8> - This page contains only the system APIs of this module. For details about other public APIs, see [@ohos.application.BackupExtensionAbility (Backup and Restore Extension Capability)](js-apis-application-backupExtensionAbility-sys.md). 9> - The APIs of this module can be used only in the stage model. 10 11## Modules to Import 12 13```ts 14import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit'; 15``` 16 ### getBackupInfo<sup>12+</sup> 17 18getBackupInfo(): string; 19 20Obtains backup information. This API is called when the caller queries application data. You need to implement the operation for querying application data. 21 22**System capability**: SystemCapability.FileManagement.StorageService.Backup 23 24**Example** 25 26 ```ts 27 28 class BackupExt extends BackupExtensionAbility { 29 getBackupInfo(): string { 30 console.log(`getBackupInfo ok`); 31 let info = "app diy info"; 32 return info; 33 } 34 } 35 ``` 36