WO2022188417A1 - 数据处理方法、装置、设备及存储介质 - Google Patents

数据处理方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2022188417A1
WO2022188417A1 PCT/CN2021/126003 CN2021126003W WO2022188417A1 WO 2022188417 A1 WO2022188417 A1 WO 2022188417A1 CN 2021126003 W CN2021126003 W CN 2021126003W WO 2022188417 A1 WO2022188417 A1 WO 2022188417A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
storage
processed
address
backup file
Prior art date
Application number
PCT/CN2021/126003
Other languages
English (en)
French (fr)
Inventor
罗建清
Original Assignee
深圳市广和通无线股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市广和通无线股份有限公司 filed Critical 深圳市广和通无线股份有限公司
Publication of WO2022188417A1 publication Critical patent/WO2022188417A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data

Definitions

  • the present disclosure generally relates to the field of data processing, and more particularly, to a data processing method, apparatus, device, and storage medium.
  • Backup refers to copying and saving data from electronic devices to other storage devices in response to possible unexpected situations such as data loss or damage.
  • the backup data backed up to other storage devices can be restored to the electronic device, so that the electronic device can be restored to the state when it was backed up, avoiding the need for Unavailability of electronic equipment due to data loss, etc.
  • NV non-volatile memory
  • the backup data includes not only the required basic parameter data, but also some non-essential data.
  • the present disclosure relates to a data processing method, including: obtaining a data address list in a device to be processed that needs to perform data backup, wherein the data address list is generated according to at least one storage address when storing data; obtaining the data address The data stored correspondingly under each described storage address in the list; and according to each described storage address in the data address list, and the corresponding stored data under each described storage address, generate the data of the device to be processed. Backup files, and save the backup files to a third-party storage.
  • the process of generating the data address list includes: acquiring at least one data category that needs to be backed up by the device to be processed; using a preset relationship between the data category and the storage address , obtain the storage address corresponding to each of the data categories; and generate the data address list according to the storage address corresponding to each of the data categories.
  • the acquiring at least one data category that needs to be backed up by the device to be processed includes: acquiring a category selection instruction transmitted by an interactive interface for selecting the data category in the device to be processed and, according to the category selection instruction, obtain at least one of the data categories that need to be backed up; wherein, the interactive interface is used to display all the data categories in the device to be processed, and to provide a There are selectable category selection controls corresponding to the data categories, so as to generate the category selection instruction.
  • the backup file of the device to be processed is generated according to each of the storage addresses in the data address list and the data stored correspondingly under each of the storage addresses, and the stored After the backup file is saved to a third-party storage, the method further includes: receiving a restoration instruction of the device to be processed; acquiring the backup file of the device to be processed from the third-party storage according to the restoration instruction; The data corresponding to the storage address in the backup file is restored to the storage address in the device to be processed.
  • the restoration instruction includes a target storage address to be restored, wherein the target storage address is at least one of the storage addresses in the data address list;
  • the data corresponding to the storage address is restored to the storage address in the device to be processed, including: acquiring the data corresponding to the target storage address in the backup file, and restoring to the storage address in the device to be processed. under the target storage address.
  • the backup file of the device to be processed is generated according to each of the storage addresses in the data address list and the data stored correspondingly under each of the storage addresses, and the stored The backup file is saved to a third-party storage, including: generating the backup file of the device to be processed according to each of the storage addresses in the data address list, and the data stored correspondingly under each of the storage addresses ; obtain the unique identifier corresponding to the device to be processed, and generate the name of the backup file according to the unique identifier; and save the backup file with the unique identifier to the third-party storage.
  • the data categories include at least one of radio frequency parameters, communication parameters, credential parameters, network parameters.
  • the present disclosure relates to a data processing device, comprising: a first acquisition module configured to acquire a data address list in a device to be processed that needs to perform data backup, wherein the data address list is based on at least one storage address when storing data Generation; a second acquisition module, configured to acquire data correspondingly stored under each of the storage addresses in the data address list; and a processing module, configured to be configured according to each of the storage addresses in the data address list, and For the data stored under each of the storage addresses, a backup file of the device to be processed is generated, and the backup file is saved to a third-party storage.
  • the present disclosure relates to an electronic device, including: a processor, a memory and a communication bus, wherein the processor and the memory communicate with each other through the communication bus; the memory is configured to store a computer program ; the processor is configured to execute the program stored in the memory to implement the data processing method described in the present disclosure.
  • the present disclosure relates to a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the data processing method of the present disclosure.
  • the present disclosure obtains a pre-generated data address list in the device to be processed, obtains the corresponding stored data under the storage address according to the storage address in the data address list, generates a backup file and saves it.
  • the data backed up by this method stores the data corresponding to the address in the data address list, and the storage address in the data address list is the address corresponding to the data to be backed up, instead of directly backing up the data of the entire storage space, which reduces the data that needs to be processed for backup.
  • the backup process is accelerated, the resulting backup files are smaller, and the storage space required to store the backup files is smaller, which further speeds up the backup processing speed and improves the overall efficiency of the backup and restore process.
  • FIG. 1 is a schematic flowchart of steps of a data processing method provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of steps of a data address list generation process provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic structural connection diagram of a data processing apparatus according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural connection diagram of an electronic device according to an embodiment of the present disclosure.
  • the data processing method provided in the embodiment of the present disclosure realizes the backup of the data stored in the device to be processed.
  • the method can be implemented in the processor of the device to be processed itself, or can be implemented in the processing in other devices independent of the device to be processed. device.
  • the device to be processed and other devices independent of the device to be processed can be various types of electronic devices, for example, mobile phones, tablet computers, computers, server devices, etc., the electronic devices that need to perform data backup can use this method,
  • the scope of protection of the present disclosure is not limited by the type of equipment that implements the method.
  • the flow of the data processing method includes the following steps:
  • Step 101 Obtain a data address list that needs to be backed up in the device to be processed, wherein the data address list is generated according to at least one storage address when storing data;
  • Step 102 obtain the data stored correspondingly under each storage address in the data address list.
  • Step 103 according to each storage address in the data address list and the corresponding stored data under each storage address, generate a backup file of the device to be processed, and save the backup file to a third-party storage.
  • the device to be processed includes a processor and a first memory, the first memory being a device where the device to be processed stores data.
  • the memory stores data according to the byte organization. When a data is stored or taken out as a whole, the data is stored in one or several bytes to form a storage unit.
  • Each storage unit has a corresponding address, which is the storage address of the storage unit. There is a one-to-one correspondence between the storage address and the storage unit, and the processor accesses the data in the storage unit through the storage address.
  • the data address list is generated based on at least one storage address. After determining the data to be backed up by the device to be processed, the storage address corresponding to the data is obtained, and a data address list is generated.
  • the generation process of the data address list is as follows:
  • Step 201 acquiring at least one data category that needs to be backed up by the device to be processed
  • Step 202 through the preset relationship between the data category and the storage address, obtain the storage address corresponding to each data category;
  • Step 203 Generate a data address list according to the storage address corresponding to each data category.
  • a data category refers to a collective term for data related to implementing a function, for example, data implementing a mobile phone communication function is collectively termed data related to communication parameters.
  • the data categories include at least one of radio frequency parameters, communication parameters, credential parameters, network parameters.
  • radio frequency parameters include, but are not limited to, receive sensitivity, signal-to-noise ratio, transmit power, and the like.
  • Communication parameters include, but are not limited to, International Mobile Equipment Identity (IMEI), Pseudo-noise Sequence (PN), Subscriber Identity Module (SIM) annotation information Wait.
  • the certificate parameters include but are not limited to a network access license (license) and the like.
  • the network parameters include, but are not limited to, wireless communication technology (Wi-Fi) information, Bluetooth (Bluetooth), and the like.
  • the above data categories are relatively important data categories in electronic devices. According to needs and actual conditions, the data categories can also be other categories of data in the device to be processed.
  • the protection scope of this disclosure is not limited to the specific data categories. Content is restricted.
  • the storage address of the data corresponding to the data category is determined, and there is a preset relationship between the data category and the storage address. After the data category is determined, the specific storage address of the data corresponding to the data category can be obtained.
  • the data type is determined to be a communication parameter, and the storage address of the data related to the communication parameter can be obtained through a preset relationship.
  • the storage addresses corresponding to each data category are sequentially arranged in order to generate a data address list. After the data address list is generated, it may be stored in the first memory of the device to be processed, or may be stored in other memories. When data backup of the device to be processed is required, the data address list is obtained from the first memory or other memory.
  • an initialization (initialization, ini for short) file is generated according to the data address list, and the ini file is named BackupList.
  • the ini file is named BackupList.
  • the data address list is saved in the device to be processed for use in data backup of the device to be processed.
  • the data address list includes the number of storage addresses included in the entire list and each storage address, and the specific format of the list is as follows: number of addresses+storage address 1+storage address 2+...+storage address N; Wherein, N is an integer greater than 1.
  • the number of addresses occupies 4 bytes (Bytes), and each storage address occupies 2 bytes.
  • acquiring at least one data category that needs to be backed up by the device to be processed is completed through an interactive interface
  • the interactive interface may be an interactive interface included in the device to be processed, or it may be an interactive interface that can be performed with the device to be processed.
  • the process is as follows: acquiring a category selection instruction transmitted by the interactive interface for selecting a data category in the device to be processed; and acquiring at least one data category that needs to be backed up according to the category selection instruction; wherein, the interactive interface It is used to display all data categories in the device to be processed, and to provide selectable category selection controls corresponding to each data category, so as to generate category selection instructions.
  • the data categories displayed on the interactive interface are the categories of various data stored in the device to be processed.
  • the number and content of the displayed categories can be set according to the actual situation and needs, or can be read and displayed by the device to be processed through an automated program.
  • the data category of the device to be processed can be viewed through the interactive interface. After viewing, from all the displayed data categories, use the category selection control to select the data category that needs to be backed up to generate a data address list.
  • the storage address corresponding to the data to be backed up can be accurately obtained, so as to quickly back up the required data.
  • the storage address that needs to be backed up is determined by the data category, which simplifies the process of determining the storage address, makes the process of determining the storage address more simple and convenient, and improves the user experience.
  • the data stored under each storage address is sequentially acquired according to the storage addresses in the data address list, and then all data that needs to be backed up corresponding to the data address list is acquired.
  • a check code is written in the backup file, for example, a cyclic redundancy check (Cyclic Redundancy Check, referred to for short) CRC) to prevent the backup file from being modified externally, resulting in data corruption or loss.
  • CRC Cyclic Redundancy Check
  • a file size threshold is set for the backup file.
  • the threshold value is set according to the actual situation and needs.
  • a reminder message is generated to prompt the user to deal with it.
  • the file size threshold of the backup file device can avoid the problem that the file is too large, and the file is lost at one time when encountering special circumstances.
  • the backup file in order to reduce the storage space occupied by the backup file in the third-party storage, the backup file is compressed before being stored in the third-party storage to reduce the size of the backup file.
  • the compressed backup file occupies less storage space in the third-party storage, thereby saving storage resources.
  • a backup file is generated after acquiring the corresponding stored data under each storage address in the data address list.
  • index information is established according to the data address list, and data corresponding to each storage address is stored according to the index information to form a backup file.
  • the backup file is generated, it is saved to a third-party storage.
  • the data in the data address list is stored in the first memory in the device to be processed.
  • the third-party storage refers to a storage device different from the first storage.
  • the third-party memory can be a memory integrated on the device to be processed, such as a hard disk integrated on the device to be processed, etc.; it can also be a memory provided independently, such as a removable disk; it can also be a cloud storage space.
  • the third-party storage can transfer files with the device to be processed, the protection scope of the present disclosure is not limited by the specific implementation form of the third-party storage.
  • the backup file after the backup file is generated, it can also be stored in other storage devices different from the first storage and the third-party storage while being stored in the third-party storage.
  • FTP FTP
  • FTP server File Transfer Protocol Server
  • multiple electronic devices are respectively used as devices to be processed to perform data backup to generate respective corresponding backup files, and these backup files can be stored in the same third-party storage for convenient management. Therefore, it is necessary to set a unique identifier for each backup file to distinguish it.
  • the backup file of the device to be processed is generated, and the process of saving the backup file to the third-party storage includes: According to each storage address in the data address list and the corresponding stored data under each storage address, generate a backup file of the device to be processed; obtain the unique identifier corresponding to the device to be processed, and generate the name of the backup file according to the unique identifier; Backup files with unique identifiers are saved to third-party storage.
  • the unique identifier corresponding to the device to be processed can be read from the device to be processed through a preset query instruction, and the unique identifier of each device to be processed can uniquely represent the device to be processed.
  • the unique identifier may be one of various types of identifiers of the device to be processed, for example, an IMEI code, a PN code, etc., and the protection scope of the present disclosure is not limited by the specific type of the unique identifier.
  • the backup file is obtained from the third-party storage, and the data in the backup file is restored to the device to be processed. .
  • a backup file of the device to be processed is generated, and after the backup file is saved to a third-party storage, the pending device is received. Processing the restoration instruction of the device; obtaining the backup file of the device to be processed from the third-party storage according to the restoration instruction; restoring the data corresponding to the storage address in the backup file to the storage address in the device to be processed.
  • the restoration instruction includes the unique identifier of the device to be processed, and the backup file of the device to be processed can be obtained through the unique identifier.
  • the data in the backup file is stored according to the data address list.
  • the data corresponding to each storage address in the backup file is read and restored to the storage address in the device to be processed.
  • the restore instruction includes a target storage address selected according to actual conditions and needs. When restoring, you only need to restore the data corresponding to the selected target storage address, and you do not need to restore all the data in the backup file.
  • the restoration instruction includes the target storage address to be restored, wherein the target storage address is at least one storage address in the data address list; restore the data corresponding to the storage address in the backup file to the storage address in the device to be processed. Under the storage address, including: obtaining the data corresponding to the target storage address in the backup file, and restoring to the target storage address in the device to be processed.
  • the selection of the target storage address can be accomplished through the interactive interface mentioned in the preceding process.
  • the interactive interface can display each storage address under each data category in the backup file, and the user can select the data category or directly select the storage address. After all the storage addresses to be restored are determined as the target storage addresses, the data corresponding to the target storage addresses are restored. This method increases the flexibility of the restoration process, prevents data in the backup file from overwriting data in the device to be processed that does not need to be restored, and improves user experience.
  • the device to be processed is a mobile phone
  • the first memory is the NV memory of the mobile phone
  • there are fixed partitions in the NV memory there are fixed partitions in the NV memory, and each partition has multiple consecutive storage addresses.
  • the mobile phone can view the partition status of the NV memory and the storage address of each partition through the preset visualization tool.
  • the mobile phone When the mobile phone starts the backup work, it obtains the data address list from the mobile phone system by calling the preset address list reading interface (named as ReadBackupList interface). According to the data address list, call the preset NV dump interface (named NVDump interface) to find the data under each storage address and store the data in the specified container variable.
  • the container variable refers to the container that temporarily stores the data.
  • the container variable can obtain the data corresponding to all storage addresses in the data address list.
  • a binary (binary, referred to as bin) file is created by the CreateFile function. Write the obtained data into the bin file through a preset file writing interface (named WriteFile interface), generate a backup file of the mobile phone, and save the backup file to a third-party storage.
  • the preset file reading interface (named ReadFile interface) to read the data corresponding to each storage address in the backup file, store it in the container variable, and then call the preset NV write interface.
  • the input interface (named the WriteNV interface) writes the data in the container variable to the storage address in the mobile phone to restore the data in the NV memory.
  • the data processing method provided by the present disclosure obtains the data address list pre-generated in the device to be processed, obtains the corresponding stored data under the storage address according to the storage address in the data address list, generates a backup file and saves it.
  • the data backed up by this method stores the data corresponding to the address in the data address list, and the storage address in the data address list is the address corresponding to the data to be backed up, instead of directly backing up the data of the entire storage space, which reduces the data that needs to be processed for backup.
  • the backup process is accelerated, the resulting backup files are smaller, and the storage space required to store the backup files is smaller, which further speeds up the backup processing speed and improves the overall efficiency of the backup and restore process.
  • the unique identifier of the device to be processed is configured for the backup file, which avoids the confusion of multiple files, and can accurately identify the backup file of the device to be processed, which provides a basis for the data restoration process.
  • the present disclosure provides a data processing apparatus, as shown in FIG. 3 , the apparatus includes:
  • the first obtaining module 301 is configured to obtain a data address list in the device to be processed that needs to be backed up, wherein the data address list is generated according to at least one storage address when storing data;
  • the second obtaining module 302 is configured to obtain data correspondingly stored under each storage address in the data address list.
  • the processing module 303 is configured to generate a backup file of the device to be processed according to each storage address in the data address list and corresponding stored data under each storage address, and save the backup file to a third-party storage.
  • the data processing apparatus further includes a list generation module 304, configured to obtain at least one data category that needs to be backed up by the device to be processed; obtain each data through the preset relationship between the data category and the storage address The storage address corresponding to the category; according to the storage address corresponding to each data category, a data address list is generated.
  • a list generation module 304 configured to obtain at least one data category that needs to be backed up by the device to be processed; obtain each data through the preset relationship between the data category and the storage address The storage address corresponding to the category; according to the storage address corresponding to each data category, a data address list is generated.
  • the list generation module 304 is configured to obtain a category selection instruction transmitted by the interactive interface for selecting the data category in the device to be processed; according to the category selection instruction, obtain at least one data category that needs to be backed up; wherein , the interactive interface is used to display all data categories in the device to be processed, and to provide optional category selection controls corresponding to each data category, so as to generate category selection instructions.
  • the data processing apparatus further includes a restoration module 305, configured to receive a restoration instruction of the device to be processed; according to the restoration instruction, obtain the backup file of the device to be processed from a third-party storage; The data is restored to the storage address in the device to be processed.
  • a restoration module 305 configured to receive a restoration instruction of the device to be processed; according to the restoration instruction, obtain the backup file of the device to be processed from a third-party storage; The data is restored to the storage address in the device to be processed.
  • the restoration module 305 is configured to obtain the data corresponding to the target storage address in the backup file and restore it to the target storage address in the device to be processed, wherein the restoration instruction includes the target storage address to be restored, and the target storage address The address is at least one storage address in the data address list.
  • the processing module 303 is configured to generate a backup file of the device to be processed according to each storage address in the data address list and the corresponding stored data under each storage address; obtain a unique corresponding to the device to be processed. ID, and generate the name of the backup file according to the unique ID; save the backup file with the unique ID to the third-party storage.
  • the present disclosure also provides electronic equipment.
  • the electronic equipment can be a module capable of realizing data processing functions or a terminal device including a module.
  • the terminal device can be a mobile terminal and/or a smart terminal, etc.
  • the mobile terminal can be a mobile phone, a tablet
  • the smart device can be at least one of a smart watch, a smart refrigerator, a smart speaker, a smart washing machine, a smart TV, etc.
  • the modules can be 2G communication modules, 3G communication modules, Any of 4G communication modules, 5G communication modules, NB-IOT communication modules, etc.
  • the electronic device includes: a processor 401 , a memory 402 and a communication bus 403 , wherein the processor 401 and the memory 402 communicate with each other through the communication bus 403 .
  • the memory 402 stores a program that can be executed by the processor 401, and the processor 401 executes the program stored in the memory 402 to implement the following steps: obtaining a list of data addresses in the device to be processed that need to be backed up, wherein the data address The list is generated according to at least one storage address when storing data; the data corresponding to each storage address in the data address list is obtained; according to each storage address in the data address list, and the corresponding stored data under each storage address, generate Backup files of the device to be processed, and save the backup files to a third-party storage.
  • the communication bus 403 mentioned in the above electronic equipment may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus 403 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 4, but it does not mean that there is only one bus or one type of bus.
  • the memory 402 may include random access memory (Random Access Memory, RAM for short), or may include non-volatile memory (non-volatile memory), such as at least one disk memory. In certain embodiments, the memory may also be at least one storage device located remotely from the aforementioned processor 401 .
  • RAM Random Access Memory
  • non-volatile memory such as at least one disk memory.
  • the memory may also be at least one storage device located remotely from the aforementioned processor 401 .
  • the above-mentioned processor 401 may be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc., or may be a digital signal processor (Digital Signal Processing, referred to as DSP) ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the present disclosure also provides a computer-readable storage medium, where a computer program is stored, and when the computer program runs on a computer, the computer causes the computer to execute the data processing method described in the above embodiments.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present disclosure are produced in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, eg, from a website site, computer, server, or data center via wired (eg, Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, microwave, etc.) means to transmit to another website site, computer, server or data center.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes, etc.), optical media (eg, DVDs), or semiconductor media (eg, solid state drives), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种数据处理方法、装置、设备及存储介质,该方法包括:获取待处理设备中需要进行数据备份的数据地址列表(101),其中所述数据地址列表根据至少一个存储数据时的存放地址生成;获取所述数据地址列表中每个存放地址下对应保存的数据(102);以及根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的备份文件,并将所述备份文件保存至第三方存储器(103)。

Description

数据处理方法、装置、设备及存储介质
相关申请的引用
本公开要求于2021年3月11日向中国人民共和国国家知识产权局提交的申请号为202110267994.3,发明名称为“数据处理方法、装置、设备及存储介质”的发明专利公开的全部权益,并通过引用的方式将其全部内容并入本公开。
领域
本公开大体上涉及数据处理领域,更具体地涉及数据处理方法、装置、设备及存储介质。
背景
随着科技的发展,数据的备份与还原已经成为电子设备的一个重要功能。备份指的是为应对数据丢失或损坏等可能出现的意外情况,将电子设备中的数据复制并保存到其他存储设备中。将电子设备中的数据进行备份后,如果电子设备的系统或者软件发生故障后,可以将备份到其他存储设备中的备份数据还原至该电子设备,使电子设备还原至备份时的状态,避免了数据丢失造成的电子设备不可用等情况。
现有技术中,在对电子设备中的数据进行备份时,往往将电子设备的某个存储器中的数据全部备份,例如,手机的非易失性存储器(non-volatile memory,简称NV)中保存有手机系统运行基本参数的相关数据,对这些数据进行备份时,需要将手机NV存储器中的全部内容作为一个整体进行备份,备份数据中除了包括需要的基本参数数据,还包括一些非必要的数据。
概述
第一方面,本公开涉及数据处理方法,包括:获取待处理设备中 需要进行数据备份的数据地址列表,其中,所述数据地址列表根据至少一个存储数据时的存放地址生成;获取所述数据地址列表中每个所述存放地址下对应保存的数据;以及根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的备份文件,并将所述备份文件保存至第三方存储器。
在某些实施方案中,所述数据地址列表的生成过程,包括:获取所述待处理设备需要进行数据备份的至少一个数据类别;通过所述数据类别与所述存放地址之间的预设关系,获得每个所述数据类别对应的所述存放地址;以及根据所述每个所述数据类别对应的所述存放地址,生成所述数据地址列表。
在某些实施方案中,所述获取所述待处理设备需要进行数据备份的至少一个数据类别,包括:获取交互界面传输的、对所述待处理设备中所述数据类别进行选择的类别选择指令;以及,根据所述类别选择指令,获取需要进行数据备份的至少一个所述数据类别;其中,所述交互界面用于展示所述待处理设备中的所有数据类别,以及用于提供分别与每个所述数据类别对应的、可供选择的类别选择控件,以生成所述类别选择指令。
在某些实施方案中,所述根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的备份文件,并将所述备份文件保存至第三方存储器之后,还包括:接收所述待处理设备的还原指令;根据所述还原指令,从所述第三方存储器获取所述待处理设备的所述备份文件;以及将所述备份文件中所述存放地址对应的数据,还原至所述待处理设备中的所述存放地址下。
在某些实施方案中,所述还原指令包括需要还原的目标存放地址,其中,所述目标存放地址为所述数据地址列表中的至少一个所述存放地址;以及所述将所述备份文件中所述存放地址对应的数据,还原至所述待处理设备中的所述存放地址下,包括:获取所述备份文件中所 述目标存放地址对应的数据,还原至所述待处理设备中的所述目标存放地址下。
在某些实施方案中,所述根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的备份文件,并将所述备份文件保存至第三方存储器,包括:根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的所述备份文件;获取所述待处理设备对应的唯一标识,并根据所述唯一标识生成所述备份文件的名称;以及将带有所述唯一标识的所述备份文件保存至所述第三方存储器。
在某些实施方案中,所述数据类别包括射频参数、通信参数、证书参数、网络参数中的至少一种。
第二方面,本公开涉及数据处理装置,包括:第一获取模块,配置为获取待处理设备中需要进行数据备份的数据地址列表,其中,所述数据地址列表根据至少一个存储数据时的存放地址生成;第二获取模块,配置为获取所述数据地址列表中每个所述存放地址下对应保存的数据;以及处理模块,配置为根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的备份文件,并将所述备份文件保存至第三方存储器。
第三方面,本公开涉及电子设备,包括:处理器、存储器和通信总线,其中,所述处理器和所述存储器通过所述通信总线完成相互间的通信;所述存储器,配置为存储计算机程序;所述处理器,配置为执行所述存储器中所存储的程序,实现本公开所述的数据处理方法。
第四方面,本公开涉及计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现本公开的数据处理方法。
在某些实施方案中,本公开通过获取待处理设备中预先生成的数据地址列表,根据该数据地址列表中的存放地址,获取存放地址下对应保存的数据,生成备份文件并进行保存。该方法备份的数据使数据 地址列表中存放地址对应的数据,该数据地址列表中的存放地址是需要备份的数据对应的地址,并不是直接备份整个存储空间的数据,减少了备份需要处理的数据量,加快备份过程,形成的备份文件较小,存储备份文件需要的存储空间较小,进一步加快备份时的处理速度,提高备份还原过程的整体效率。
附图简要说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开的技术方案,下面将对本公开所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开一实施例提供的数据处理方法流程步骤示意图;
图2为本公开一实施例提供的数据地址列表生成过程步骤示意图;
图3为本公开一实施例提供的数据处理装置结构连接示意图;以及
图4为本公开一实施例提供的电子设备结构连接示意图。
详述
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开 保护的范围。
本公开实施例中提供的数据处理方法,实现对待处理设备中存储数据的备份,该方法可以实现于待处理设备本身的处理器,也可以实现于独立于该待处理设备的其他设备中的处理器。其中,待处理设备和独立于待处理设备的其他设备均可以为多种类型的电子设备,例如,手机、平板电脑、计算机、服务器设备等,需要进行数据备份的电子设备均可以采用本方法,本公开的保护范围不以实现本方法的设备类型为限制。
在某些实施方案中,如图1所示,数据处理方法实现的流程,包括以下步骤:
步骤101,获取待处理设备中需要进行数据备份的数据地址列表,其中,数据地址列表根据至少一个存储数据时的存放地址生成;
步骤102,获取数据地址列表中每个存放地址下对应保存的数据;以及
步骤103,根据数据地址列表中的每个存放地址,以及每个存放地址下对应保存的数据,生成待处理设备的备份文件,并将备份文件保存至第三方存储器。
在某些实施方案中,待处理设备包括处理器和第一存储器,第一存储器是待处理设备存储数据的设备。存储器按照字节组织存放数据,当一个数据作为一个整体存入或取出时,这个数据存放在一个或几个字节中组成一个存储单元。每一个存储单元存在一个对应的地址,即为该存储单元的存放地址。存放地址与存储单元是一一对应的,处理器通过存放地址访问存储单元中的数据。
数据地址列表是根据至少一个存放地址生成的。确定待处理设备需要备份的数据后,获取该数据对应的存放地址,生成数据地址列表。
在某些实施方案中,如图2所示,数据地址列表的生成过程如下:
步骤201,获取待处理设备需要进行数据备份的至少一个数据类别;
步骤202,通过数据类别与存放地址之间的预设关系,获得每个数据类别对应的存放地址;以及
步骤203,根据每个数据类别对应的存放地址,生成数据地址列表。
在某些实施方案中,数据类别指的是实现一个功能的相关数据的统称,例如,实现手机通信功能的数据统称为通讯参数的相关数据。通过获取数据类别,能够简单明了的确定需要备份的数据内容。
在某些实施方案中,数据类别包括射频参数、通信参数、证书参数、网络参数中的至少一种。
在某些实施方案中,射频参数包括但不限于接收灵敏度、信噪比、发射功率等。通信参数包括但不限于国际移动设备识别码(International Mobile Equipment Identity,简称IMEI)、伪噪声序列(Pseudo-noise Sequence,简称PN)、用户身份识别卡(Subscriber Identity Module,简称SIM)的注网信息等。证书参数包括但不限于入网许可证(license)等。网络参数包括但不限于无线通信技术(Wi-Fi)信息、蓝牙(Bluetooth)等。
需要说明的是,上述数据类别为电子设备中较为重要的数据的类别,根据需要和实际情况,数据类别还可以是待处理设备中数据的其他类别,本公开的保护范围不以数据类别的具体内容为限制。
在某些实施方案中,数据类别对应数据的存放地址是确定的,数据类别和存放地址存在预设关系,当确定数据类别后,即可获得该数据类别对应数据保存的具体存放地址。在某些实施方案中,确定数据类别为通信参数,即可通过预设关系获得通信参数相关数据的存放地址。
在某些实施方案中,将每个数据类别对应的存放地址依次有序排列,生成数据地址列表。该数据地址列表生成后,可以保存在待处理设备的第一存储器中,也可以保存至其他存储器中。当需要对待处理设备进行数据备份时,从第一存储器或其他存储器中获取该数据地址列表。
在某些实施方案中,当数据地址列表保存至待处理设备中时,根据数据地址列表生成初始化(initialization,简称ini)文件,该ini文件命名为BackupList。将BackupList.ini文件合入待处理设备的系统原始固件以后,编译生成带有数据地址列表的固件文件(Package,简称Pac),将带有数据地址列表的Pac文件烧入待处理设备中。这样,待处理设备中即保存了数据地址列表,以供待处理设备数据备份时使用。
在某些实施方案中,数据地址列表中包括整个列表包含的存放地址的个数以及每个存放地址,列表具体格式如下:地址个数+存放地址1+存放地址2+…+存放地址N;其中,N为大于1的整数。地址个数占用4字节(Bytes),每一个存放地址占用2字节。
在某些实施方案中,获取待处理设备需要进行数据备份的至少一个数据类别时,通过交互界面完成,该交互界面可以为待处理设备包含的交互界面,也可以为能够与待处理设备能够进行数据交换的其他设备上的交换界面。在某些实施方案中,过程如下:获取交互界面传输的、对待处理设备中数据类别进行选择的类别选择指令;以及根据类别选择指令,获取需要进行数据备份的至少一个数据类别;其中,交互界面用于展示待处理设备中的所有数据类别,以及用于提供分别与每个数据类别对应的、可供选择的类别选择控件,以生成类别选择指令。
交互界面显示的数据类别为待处理设备中存储的多种数据的类别,显示的类别数量和内容,可以根据实际情况和需要进行设定,也 可以通过自动化程序对待处理设备读取后显示,用户可以通过交互界面查看待处理设备的数据类别。查看后,从显示的所有数据类别中,通过类别选择控件,选择需要进行备份的数据类别,以生成数据地址列表。
在某些实施方案中,通过预先生成数据地址列表,能够准确获得需要进行备份的数据所对应的存放地址,以快捷地备份需要的数据。在某些实施方案中,生成数据地址列表时,通过数据类别确定需要进行数据备份的存放地址,简化了确定存放地址的过程,使确定存放地址的过程更加简单方便,提升用户的使用体验。
在某些实施方案中,获取数据地址列表之后,按照该数据地址列表中的存放地址,依次获取每个存放地址下保存的数据,进而获得数据地址列表对应的所有需要备份的数据。
在某些实施方案中,根据每个存放地址以及每个存放地址对应的数据,生成备份文件时,在备份文件中写入校验码,例如,循环冗余校验码(Cyclic Redundancy Check,简称CRC),以防止该备份文件在外部被修改,导致数据损坏或丢失。
在某些实施方案中,生成备份文件时,为防止备份文件生成异常,为备份文件设置文件大小门限。门限值根据实际情况和需要设置,当备份文件大于门限值时,生成提醒信息,以提示用户处理。为备份文件设备文件大小门限,能够避免文件过大,当遇到特殊情况时,文件一次性丢失的问题。
在某些实施方案中,为了减少备份文件在第三方存储器中占用的存储空间,在存入第三方存储器之前,将备份文件进行压缩,缩小备份文件的大小。压缩后的备份文件在第三方存储器中占用的存储空间更小,进而节省存储资源。
在某些实施方案中,获取数据地址列表中每个存放地址下对应保 存的数据后,生成一个备份文件。该备份文件中,按照数据地址列表建立索引信息,按照该索引信息将每个存放地址对应的数据保存,形成备份文件。
在某些实施方案中,备份文件生成后,保存至第三方存储器。在待处理设备进行数据备份之前,数据地址列表中的数据保存在待处理设备中的第一存储器中。而第三方存储器指的是不同于第一存储器的存储设备。该第三方存储器可以为集成在待处理设备上的存储器,例如,集成于待处理设备上的硬盘等;也可以为独立设置的存储器,例如,可移动磁盘等;还可以为云存储空间。只要第三方存储器能够与待处理设备之间传输文件即可,本公开的保护范围不以第三方存储器的具体实现形式为限制。
在某些实施方案中,备份文件生成后,存入第三方存储器的同时,还可以存入不同于第一存储器、第三方存储器的其他存储设备中,例如以文件传输协议(File Transfer Protocol,简称FTP)为基础的FTP服务器(File Transfer Protocol Server)。这样,当第三方存储器因为环境变化等原因损坏时,依旧可以找到该备份文件,进一步防止数据的丢失。
在某些实施方案中,多个电子设备分别作为待处理设备进行数据备份,生成各自对应的备份文件,这些备份文件可以保存在同一个第三方存储器中,以方便进行管理。因此,需要为各个备份文件设置唯一标识进行区分。在某些实施方案中,根据数据地址列表中的每个存放地址,以及每个存放地址下对应保存的数据,生成待处理设备的备份文件,并将备份文件保存至第三方存储器的过程包括:根据数据地址列表中的每个存放地址,以及每个存放地址下对应保存的数据,生成待处理设备的备份文件;获取待处理设备对应的唯一标识,并根据唯一标识生成备份文件的名称;将带有唯一标识的备份文件保存至第三方存储器。
在某些实施方案中,待处理设备对应的唯一标识,可以通过预先设置的查询指令从待处理设备中读取,每个待处理设备的唯一标识能够唯一代表该待处理设备。唯一标识可以为待处理设备多种类型标识中的一个,例如,IMEI码、PN码等,本公开的保护范围不以唯一标识的具体类型为限制。
在某些实施方案中,备份文件保存至第三方存储器之后,当待处理设备需要将备份文件的数据进行还原时,从第三方存储器获取备份文件,将备份文件中的数据还原至待处理设备中。在某些实施方案中,根据数据地址列表中的每个存放地址,以及每个存放地址下对应保存的数据,生成待处理设备的备份文件,并将备份文件保存至第三方存储器之后,接收待处理设备的还原指令;根据还原指令,从第三方存储器获取待处理设备的备份文件;将备份文件中存放地址对应的数据,还原至待处理设备中的存放地址下。
在某些实施方案中,还原指令中包含待处理设备的唯一标识,通过唯一标识可以获取该待处理设备的备份文件。备份文件中的数据是按照数据地址列表进行存储的。数据还原时,读取备份文件中每个存放地址对应的数据,还原至待处理设备中的存放地址下。
在某些实施方案中,还原指令中包含根据实际情况和需要选择的目标存放地址。还原时,只需要将选定的目标存放地址对应的数据还原即可,不需要将备份文件中的全部数据进行还原。在某些实施方案中,还原指令包括需要还原的目标存放地址,其中,目标存放地址为数据地址列表中的至少一个存放地址;将备份文件中存放地址对应的数据,还原至待处理设备中的存放地址下,包括:获取备份文件中目标存放地址对应的数据,还原至待处理设备中的目标存放地址下。
在某些实施方案中,目标存放地址的选择可以通过前述过程中提到的交互界面完成。交互界面可以显示备份文件中的每个数据类别下 的每个存放地址,用户可以选定数据类别,也可以直接选定存放地址。确定所有需要还原的存放地址为目标存放地址后,将目标存放地址对应的数据还原。这种方式增加了还原过程的灵活性,避免备份文件中的数据覆盖待处理设备中并不需要还原的数据,提升了用户的使用体验性。
在某些实施方案中,待处理设备为手机,第一存储器为手机的NV存储器,NV存储器中存在固定分区,每个分区有多个连续的存放地址。手机可以通过预设的可视化工具查看NV存储器的分区情况和每个分区的存放地址。
通过可视化工具查看NV存储器后,确定需要进行备份的存放地址,生成数据地址列表并合入手机系统的原始固件中,完成数据地址列表的保存。
手机在开始备份工作时,通过调用预先设置的地址列表读取接口(命名为ReadBackupList接口),从手机系统中获取数据地址列表。根据数据地址列表,调用预先设置的NV转储接口(命名为NVDump接口)查找每个存放地址下的数据并将该数据存入指定容器变量中,容器变量指的是临时存放数据的容器,通过该容器变量,能够获得数据地址列表中所有存放地址对应的数据。获得数据后,通过创建文件(CreateFile)函数创建一个二进制(binary,简称bin)文件。将获得的数据通过预先设定的文件写入接口(命名为WriteFile接口)写入该bin文件中,生成手机的备份文件,并将备份文件保存至第三方存储器。
在手机需要进行数据还原时,调用预先设置的文件读取接口(命名为ReadFile接口)分别读取备份文件中每个存放地址对应的数据,并存入容器变量中,再调用预先设置的NV写入接口(命名为WriteNV接口)将容器变量中的数据写入到手机中的存放地址下,实现NV存储器中数据的还原。
本公开提供的数据处理方法,通过获取待处理设备中预先生成的数据地址列表,根据该数据地址列表中的存放地址,获取存放地址下对应保存的数据,生成备份文件并进行保存。该方法备份的数据使数据地址列表中存放地址对应的数据,该数据地址列表中的存放地址是需要备份的数据对应的地址,并不是直接备份整个存储空间的数据,减少了备份需要处理的数据量,加快备份过程,形成的备份文件较小,存储备份文件需要的存储空间较小,进一步加快备份时的处理速度,提高备份还原过程的整体效率。
数据地址列表生成的过程中,可以通过交互界面选择需要的数据类别,确定需要进行数据备份的存放地址,增加了数据地址列表生成的灵活性,且数据类别的选择比直接存放地址的选择更加直观简单,进一步提升了用户的使用体验。
为备份文件配置待处理设备的唯一标识,避免了多个文件的混淆,且能够准确识别到待处理设备的备份文件,为数据还原过程提供了基础。
当进行数据还原时,在备份文件的所有存放地址中,选择目标存放地址进行还原,在增加还原过程灵活性的基础上,还能够减少还原的数据量,进一步加快数据还原的过程。同时,还能够避免备份文件中的数据覆盖待处理设备中并不需要还原的数据,提升用户的使用体验。
本公开提供了数据处理装置,如图3所示,该装置包括:
第一获取模块301,配置为获取待处理设备中需要进行数据备份的数据地址列表,其中,数据地址列表根据至少一个存储数据时的存放地址生成;
第二获取模块302,配置为获取数据地址列表中每个存放地址下对应保存的数据;以及
处理模块303,配置为根据数据地址列表中的每个存放地址,以及每个存放地址下对应保存的数据,生成待处理设备的备份文件,并将备份文件保存至第三方存储器。
在某些实施方案中,数据处理装置还包括列表生成模块304,配置为获取待处理设备需要进行数据备份的至少一个数据类别;通过数据类别与存放地址之间的预设关系,获得每个数据类别对应的存放地址;根据每个数据类别对应的存放地址,生成数据地址列表。
在某些实施方案中,列表生成模块304,配置为获取交互界面传输的、对待处理设备中数据类别进行选择的类别选择指令;根据类别选择指令,获取需要进行数据备份的至少一个数据类别;其中,交互界面用于展示待处理设备中的所有数据类别,以及用于提供分别与每个数据类别对应的、可供选择的类别选择控件,以生成类别选择指令。
在某些实施方案中,数据处理装置还包括还原模块305,配置为接收待处理设备的还原指令;根据还原指令,从第三方存储器获取待处理设备的备份文件;将备份文件中存放地址对应的数据,还原至待处理设备中的存放地址下。
在某些实施方案中,还原模块305,配置为获取备份文件中目标存放地址对应的数据,还原至待处理设备中的目标存放地址下,其中,还原指令包括需要还原的目标存放地址,目标存放地址为数据地址列表中的至少一个存放地址。
在某些实施方案中,处理模块303,配置为根据数据地址列表中的每个存放地址,以及每个存放地址下对应保存的数据,生成待处理设备的备份文件;获取待处理设备对应的唯一标识,并根据唯一标识生成备份文件的名称;将带有唯一标识的备份文件保存至第三方存储器。
本公开还提供了电子设备,该电子设备可以为能够实现数据处理功能的模组或包含模组的终端设备等,终端设备可以为移动终端和/或 智能终端等,移动终端可以为手机、平板电脑、笔记本电脑等中的至少一种,智能设备可以为智能手表、智能冰箱、智能音箱、智能洗衣机、智能电视等中的至少一种,模组可以为2G通信模组、3G通信模组、4G通信模组、5G通信模组、NB-IOT通信模组等中任意一种。
如图4所示,该电子设备包括:处理器401、存储器402和通信总线403,其中,处理器401和存储器402通过通信总线403完成相互间的通信。其中,存储器402中存储有可被至处理器401执行的程序,处理器401执行存储器402中存储的程序,实现如下步骤:获取待处理设备中需要进行数据备份的数据地址列表,其中,数据地址列表根据至少一个存储数据时的存放地址生成;获取数据地址列表中每个存放地址下对应保存的数据;根据数据地址列表中的每个存放地址,以及每个存放地址下对应保存的数据,生成待处理设备的备份文件,并将备份文件保存至第三方存储器。
上述电子设备中提到的通信总线403可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。该通信总线403可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器402可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。在某些实施方案中,存储器还可以是至少一个位于远离前述处理器401的存储装置。
上述的处理器401可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等,还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场 可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
本公开还提供了计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上运行时,使得计算机执行上述实施例中所描述的数据处理方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本公开实施例所述的流程或功能。该计算机可以时通用计算机、专用计算机、计算机网络或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、微波等)方式向另外一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带等)、光介质(例如DVD)或者半导体介质(例如固态硬盘)等。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排 除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

  1. 数据处理方法,其包括:
    获取待处理设备中需要进行数据备份的数据地址列表,其中,所述数据地址列表根据至少一个存储数据时的存放地址生成;
    获取所述数据地址列表中每个所述存放地址下对应保存的数据;以及
    根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的备份文件,并将所述备份文件保存至第三方存储器。
  2. 如权利要求1所述的数据处理方法,其中,所述数据地址列表的生成过程,包括:
    获取所述待处理设备需要进行数据备份的至少一个数据类别;
    通过所述数据类别与所述存放地址之间的预设关系,获得每个所述数据类别对应的所述存放地址;以及
    根据所述每个所述数据类别对应的所述存放地址,生成所述数据地址列表。
  3. 如权利要求1或2所述的数据处理方法,其中,所述获取所述待处理设备需要进行数据备份的至少一个数据类别,包括:
    获取交互界面传输的、对所述待处理设备中所述数据类别进行选择的类别选择指令;以及
    根据所述类别选择指令,获取需要进行数据备份的至少一个所述数据类别;
    其中,所述交互界面用于展示所述待处理设备中的所有数据类别,以及用于提供分别与每个所述数据类别对应的、可供选择的类别选择控件,以生成所述类别选择指令。
  4. 如权利要求1至3中任一权利要求所述的数据处理方法,其中,所述根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的备份文件,并将所述备份文件保存至第三方存储器之后,还包括:
    接收所述待处理设备的还原指令;
    根据所述还原指令,从所述第三方存储器获取所述待处理设备的所述备份文件;以及
    将所述备份文件中所述存放地址对应的数据,还原至所述待处理设备中的所述存放地址下。
  5. 如权利要求4所述的数据处理方法,其中,所述还原指令包括需要还原的目标存放地址,其中,所述目标存放地址为所述数据地址列表中的至少一个所述存放地址;以及
    所述将所述备份文件中所述存放地址对应的数据,还原至所述待处理设备中的所述存放地址下,包括:
    获取所述备份文件中所述目标存放地址对应的数据,还原至所述待处理设备中的所述目标存放地址下。
  6. 如权利要求1至5中任一权利要求所述的数据处理方法,其中,所述根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的备份文件,并将所述备份文件保存至第三方存储器,包括:
    根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的所述备份文件;
    获取所述待处理设备对应的唯一标识,并根据所述唯一标识生成所述备份文件的名称;以及
    将带有所述唯一标识的所述备份文件保存至所述第三方存储器。
  7. 如权利要求2至6中任一权利要求所述的数据处理方法,其中,所述数据类别包括射频参数、通信参数、证书参数和网络参数中的至少一种。
  8. 数据处理装置,其包括:
    第一获取模块,配置为获取待处理设备中需要进行数据备份的数据地址列表,其中,所述数据地址列表根据至少一个存储数据时的存放地址生成;
    第二获取模块,配置为获取所述数据地址列表中每个所述存放地址下对应保存的数据;以及
    处理模块,配置为根据所述数据地址列表中的每个所述存放地址,以及每个所述存放地址下对应保存的数据,生成所述待处理设备的备份文件,并将所述备份文件保存至第三方存储器。
  9. 电子设备,其包括:处理器、存储器和通信总线,其中,所述处理器和所述存储器通过所述通信总线完成相互间的通信;
    所述存储器,配置为存储计算机程序;以及
    所述处理器,配置为执行所述存储器中所存储的程序,实现权利要求1至7任一权利要求所述的数据处理方法。
  10. 计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至7任一权利要求所述的数据处理方法。
PCT/CN2021/126003 2021-03-11 2021-10-25 数据处理方法、装置、设备及存储介质 WO2022188417A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110267994.3 2021-03-11
CN202110267994.3A CN113051105A (zh) 2021-03-11 2021-03-11 数据处理方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022188417A1 true WO2022188417A1 (zh) 2022-09-15

Family

ID=76511748

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/126003 WO2022188417A1 (zh) 2021-03-11 2021-10-25 数据处理方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN113051105A (zh)
WO (1) WO2022188417A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051105A (zh) * 2021-03-11 2021-06-29 深圳市广和通无线股份有限公司 数据处理方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325785A (zh) * 2008-07-28 2008-12-17 深圳华为通信技术有限公司 数据备份与恢复方法及装置、移动设备
CN104484240A (zh) * 2014-12-09 2015-04-01 青岛海信宽带多媒体技术有限公司 一种终端数据存储的方法及装置
US20180300207A1 (en) * 2017-04-17 2018-10-18 EMC IP Holding Company LLC Method and device for file backup and recovery
CN113051105A (zh) * 2021-03-11 2021-06-29 深圳市广和通无线股份有限公司 数据处理方法、装置、设备及存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100936390B1 (ko) * 2002-11-26 2010-01-14 삼성전자주식회사 데이터 백업 및 복원 방법

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325785A (zh) * 2008-07-28 2008-12-17 深圳华为通信技术有限公司 数据备份与恢复方法及装置、移动设备
CN104484240A (zh) * 2014-12-09 2015-04-01 青岛海信宽带多媒体技术有限公司 一种终端数据存储的方法及装置
US20180300207A1 (en) * 2017-04-17 2018-10-18 EMC IP Holding Company LLC Method and device for file backup and recovery
CN113051105A (zh) * 2021-03-11 2021-06-29 深圳市广和通无线股份有限公司 数据处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN113051105A (zh) 2021-06-29

Similar Documents

Publication Publication Date Title
TWI743458B (zh) 一種並行化執行區塊鏈交易的方法、裝置及系統
WO2021180025A1 (zh) 一种消息处理方法、装置、电子设备及介质
CN110225104B (zh) 数据获取方法、装置及终端设备
US11720515B2 (en) Article, device, and techniques for serverless stack for streaming message processing
CN106681581B (zh) 应用程序图标排列方法和装置
CN103475572A (zh) 在即时通信应用中发送多张图片的方法、装置及系统
US11050550B2 (en) Methods and systems for reading data based on plurality of blockchain networks
US10630399B2 (en) Testing distributed applications that have an established exchange in an advanced message queuing protocol (AMQP) message broker
CN104169913A (zh) 一种图片展示方法及装置、终端设备
WO2020042769A1 (zh) 图像信息的传输方法、装置、存储介质及电子设备
CN110825694A (zh) 数据处理方法、装置、设备和存储介质
WO2016110203A1 (zh) 一种文件路径的存储和本地文件的访问方法及装置
WO2022188417A1 (zh) 数据处理方法、装置、设备及存储介质
CN110244963B (zh) 数据更新方法、装置及终端设备
CN110865981A (zh) 用于移动终端的文件访问方法及其移动终端
CN104639973A (zh) 一种信息推送方法及装置
WO2020113421A1 (zh) 一种挂载文件系统的方法、终端设备及存储介质
CN116628773A (zh) 数据处理方法、装置、电子设备及存储介质
CN109271266B (zh) 文件传输方法、装置及终端设备
WO2017076027A1 (zh) 一种壁纸处理方法及装置
CN109104481B (zh) 文件完整性检测方法、文件完整性检测装置及终端设备
CN110263006A (zh) 一种在用户设备上下载文件的方法与设备
US11086849B2 (en) Methods and systems for reading data based on plurality of blockchain networks
JP6553650B2 (ja) データ処理の方法及びシステム
CN111400327B (zh) 一种数据同步方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21929881

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21929881

Country of ref document: EP

Kind code of ref document: A1