Home
last modified time | relevance | path

Searched refs:backupFile (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/src/
H A Ddualfwk_conf_loader.cpp74 static int32_t ParseBackupFile(const std::string &backupFile, const std::vector<std::string> &keys, in ParseBackupFile() argument
77 RINGTONE_INFO_LOG("parse backupfile %{public}s uid=%{public}d", backupFile.c_str(), getuid()); in ParseBackupFile()
79 if (!PathToRealPath(backupFile, realPath)) { in ParseBackupFile()
80 RINGTONE_ERR_LOG("the file not exists path: %{private}s", backupFile.c_str()); in ParseBackupFile()
106 …FwkConfLoader::Load(DualFwkConf &conf, const RestoreSceneType &type, const std::string &backupFile) in Load() argument
113 …if (ParseBackupFile(backupFile, {"mms_sim1_channel", "mms_sim2_channel"}, backupConfigs) != E_SUCC… in Load()
114 RINGTONE_WARN_LOG("Failed to parse backup file %{public}s", backupFile.c_str()); in Load()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dbackup_manager.cpp157 StoreUtil::FileInfo backupFile; in GetBackupFileInfo() local
165 backupFile = std::move(file); in GetBackupFileInfo()
170 backupFile = std::move(file); in GetBackupFileInfo()
173 return backupFile; in GetBackupFileInfo()
185 auto backupFile = GetBackupFileInfo(name, baseDir, storeId); in Restore() local
186 if (backupFile.name.size() == 0) { in Restore()
189 auto fullName = baseDir + BACKUP_TOP_PATH + "/" + storeId + "/" + backupFile.name; in Restore()
190 auto password = GetRestorePassword(backupFile.name, baseDir, appId, storeId).password; in Restore()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dupgrade.cpp59 auto backupFile = exporter_(old, password); in UpdateStore() local
60 if (backupFile.empty()) { in UpdateStore()
84 auto backupFile = exporter_(old, password); in ExportStore() local
85 if (backupFile.empty()) { in ExportStore()
/ohos5.0/foundation/distributeddatamgr/preferences/test/native/unittest/
H A Dpreferences_file_test.cpp74 std::string backupFile = "/data/test/test.bak"; variable
77 std::remove(backupFile.c_str());
85 PreferencesXmlUtils::WriteSettingXml(backupFile, "", "", settings);
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/backup/src/
H A Dbackup_manager.cpp251 …auto backupFile = DirectoryManager::GetInstance().GetStoreBackupPath(meta) + "/" + AUTO_BACKUP_NAM… in GetClearType() local
254 auto bkFile = backupFile + BACKUP_BK_POSTFIX; in GetClearType()
267 auto tmpFile = backupFile + BACKUP_TMP_POSTFIX; in GetClearType()
/ohos5.0/docs/zh-cn/application-dev/database/
H A Ddata-backup-and-restore.md98 let backupFile = 'BK001';
100 kvStore.backup(backupFile, (err) => {
134 kvStore.restore(backupFile, (err) => {
150 let files = [backupFile];
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Dlocal_database_oper.cpp158 std::string backupFile = info.backupDir + DBConstant::LOCAL_DATABASE_NAME + in BackupCurrentDatabase() local
160 errCode = DBCommon::CopyFile(currentFile, backupFile); in BackupCurrentDatabase()
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/include/
H A Ddualfwk_conf_loader.h49 int32_t Load(DualFwkConf &conf, const RestoreSceneType &type, const std::string &backupFile);
/ohos5.0/foundation/filemanagement/app_file_service/tests/moduletests/backup_kit_inner/
H A Db_session_restore_async_test.cpp106 BFileInfo backupFile("", "", 0); variable
107 callbacks_.onFileReady(backupFile, UniqueFd(-1), 0);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/
H A Ddistributeddb_kv_backup_test.cpp1002 …const std::string backupFile[] = {"/bkpDB1.bin", "/bkpDB2.bin", "/bkpDB3.bin", "/bkpDB4.bin", "/bk… in KvSubImportThread() local
1003 …std::string filePath[] = {(importPath + backupFile[INDEX_ZEROTH]), (importPath + backupFile[INDEX_… in KvSubImportThread()
1004 (importPath + backupFile[INDEX_SECOND]), (importPath + backupFile[INDEX_THIRD]), in KvSubImportThread()
1005 (importPath + backupFile[INDEX_FORTH])}; in KvSubImportThread()
H A Ddistributeddb_nb_backup_test.cpp1052 …const std::string backupFile[] = {"/bkpDB1.bin", "/bkpDB2.bin", "/bkpDB3.bin", "/bkpDB4.bin", "/bk… in NbSubImportThread() local
1053 …std::string nbFilePath[] = {(importPath + backupFile[INDEX_ZEROTH]), (importPath + backupFile[INDE… in NbSubImportThread()
1054 (importPath + backupFile[INDEX_SECOND]), (importPath + backupFile[INDEX_THIRD]), in NbSubImportThread()
1055 (importPath + backupFile[INDEX_FORTH])}; in NbSubImportThread()
/ohos5.0/docs/en/application-dev/database/
H A Ddata-backup-and-restore.md98 let backupFile = 'BK001';
100 kvStore.backup(backupFile, (err) => {
134 kvStore.restore(backupFile, (err) => {
150 let files = [backupFile];
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/
H A Djs-apis-distributedKVStore.md4142 let backupFile = "BK001";
4144 kvStore.backup(backupFile, (err: BusinessError) => {
4191 let backupFile = "BK001";
4193 kvStore.backup(backupFile).then(() => {
4233 let backupFile = "BK001";
4235 kvStore.restore(backupFile, (err: BusinessError) => {
4282 let backupFile = "BK001";
4284 kvStore.restore(backupFile).then(() => {
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/
H A Djs-apis-distributedKVStore.md4142 let backupFile = "BK001";
4144 kvStore.backup(backupFile, (err: BusinessError) => {
4191 let backupFile = "BK001";
4193 kvStore.backup(backupFile).then(() => {
4233 let backupFile = "BK001";
4235 kvStore.restore(backupFile, (err: BusinessError) => {
4282 let backupFile = "BK001";
4284 kvStore.restore(backupFile).then(() => {