WO2018076818A1 - 数据的备份方法、装置、电子设备、存储介质及系统 - Google Patents

数据的备份方法、装置、电子设备、存储介质及系统 Download PDF

Info

Publication number
WO2018076818A1
WO2018076818A1 PCT/CN2017/093431 CN2017093431W WO2018076818A1 WO 2018076818 A1 WO2018076818 A1 WO 2018076818A1 CN 2017093431 W CN2017093431 W CN 2017093431W WO 2018076818 A1 WO2018076818 A1 WO 2018076818A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
backed
priority
application
backup
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2017/093431
Other languages
English (en)
French (fr)
Inventor
马志峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to EP17865447.1A priority Critical patent/EP3531290B1/en
Priority to US16/339,721 priority patent/US10956280B2/en
Publication of WO2018076818A1 publication Critical patent/WO2018076818A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 operations
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1461Backup scheduling policy
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 operations
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 operations
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a data backup method, device, electronic device, storage medium and system.
  • the embodiment of the invention provides a data backup method, device, electronic device, storage medium and system, and solves the technical problem of timeliness and flexibility of the data backup method.
  • an embodiment of the present invention provides a data backup method, including:
  • the embodiment of the present invention further provides a data backup device, including:
  • An obtaining module configured to acquire an update frequency of data of an application in the terminal and data to be backed up by the application
  • a priority generation module configured to generate a backup priority according to the update frequency
  • a transmission module configured to transmit, to the server, the data to be backed up of the application according to the backup priority.
  • an embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform a backup method of the foregoing data.
  • the embodiment of the present invention further provides a data backup system, including a server and a terminal, where the terminal includes the data backup device provided by the second aspect.
  • an embodiment of the present invention further provides an electronic device, including a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is configured to execute the following step:
  • the embodiment of the invention provides a data backup method, device, electronic device, storage medium and system, and solves the technical problem of timeliness and flexibility of the data backup method.
  • FIG. 1 is a flowchart of a method for backing up data according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for backing up data according to another embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for backing up data according to still another embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a data backup device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a preferred structure of a data backup device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a data backup system according to an embodiment of the present invention.
  • first”, “second” and “third” and the like in the present invention are used to distinguish different objects, and are not intended to describe a specific order.
  • the terms “comprises” and “comprising” and “comprising” are intended to cover a non-exclusive inclusion.
  • a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the update frequency of the application data of the terminal is different, and the update frequency determines the frequency of frequent use of the user, and the data with higher update frequency is used by the user more frequently, that is, the data with higher user attention. Since the existing backup method cannot be backed up according to the update frequency, it is easy to cause the updated data to fail to be backed up in time, so that the user cannot quickly synchronize the data with higher attention.
  • An embodiment of the present invention provides a data backup method, including the following steps:
  • the step of transmitting the data to be backed up of the application to the server according to the backup priority comprises:
  • the data to be backed up of the application corresponding to the current priority is completed, the data to be backed up of the application of the next priority is transmitted to the server, where the current priority level is higher than the next priority Level of level.
  • the method further includes:
  • the backup progress information of the data to be backed up of the application corresponding to the current priority is recorded.
  • the method further includes:
  • the step of detecting whether the data to be backed up of the application corresponding to the current priority is transmitted is returned.
  • the step of generating a backup priority according to the update frequency includes:
  • the backup priority of the application is determined according to the updated update frequency.
  • the step of acquiring data to be backed up by the application comprises:
  • the terminal When detecting that the initial data of the application changes, the terminal acquires current data of the application;
  • the step of acquiring the data to be backed up according to the initial data and the current data includes:
  • the execution body of the data backup method provided by the embodiment of the present invention may be a data backup device provided by the embodiment of the present invention, or a mobile terminal (such as a notebook, a tablet computer, a mobile phone, or a wearable device) that integrates the data backup device.
  • the data backup device can be implemented by hardware or software.
  • FIG. 1 is a flowchart of a method for backing up data according to an embodiment of the present invention.
  • Step S101 Acquire an update frequency of data of the application in the terminal and data to be backed up by the application.
  • the terminal acquires the update frequency of the data of each application and the data to be backed up. For example, the terminal obtains the frequency of data update of each application within a certain period of time.
  • the application can also specify the application to be backed up for the user. For example, if the user sets up only some of the applications to be backed up in the terminal, the terminal can also obtain only the data update frequency and the data to be backed up by these applications.
  • the step of acquiring the data to be backed up may include: the terminal acquiring initial data of the application, and when detecting that the initial data of the application changes, the terminal acquires current data of the application, and then obtains the current data.
  • the difference between the data and the initial data, and the difference between the current data and the initial data is taken as data to be backed up.
  • the difference between the current data and the initial data is used as the data to be backed up. That is, the data to be backed up is preferably incremental data.
  • Step S102 Generate a backup priority according to the update frequency.
  • the terminal according to the update frequency of all applications, the order of each application in the backup, that is, the backup priority.
  • the update frequency of the terminal for all applications is sorted in descending order of high to low or low to high, wherein the update frequency determines the user's usage frequency, that is, the user's attention.
  • the terminal can also obtain the order of the applications in the backup according to the update frequency of the applications.
  • the terminal can also generate the backup priority according to other manners. For example, the terminal acquires the amount of data change in a certain period of time, and generates a backup priority according to the data change amount and the update frequency. Specifically, the terminal may pre-store an association table with a change amount, an update frequency, and a priority, and obtain a backup priority by using a lookup table.
  • Step S103 The data to be backed up of the application is transmitted to the server according to the backup priority.
  • the terminal sequentially transfers the data to be backed up of the corresponding application to the server according to the sequence of the backups obtained in step S102, and then the server stores the data to be backed up.
  • the data backup method of the embodiment obtains the update frequency of the data of the application in the terminal and the data to be backed up; generates a backup priority according to the update frequency; and transmits the data to be backed up to the server according to the backup priority . Since the frequency of data update of each application is obtained, and the priority of the backup is determined according to the obtained update frequency, the data of the application with high user attention can be backed up in time, thereby improving the timeliness and flexibility of the backup.
  • FIG. 2 is a flowchart of a method for backing up data according to another embodiment of the present invention.
  • Step S201 Acquire an update frequency of data of the application in the terminal and data to be backed up by the application.
  • the terminal acquires the update frequency of the data of each application and the data to be backed up.
  • the step of obtaining the update frequency of the data of the application in the terminal includes:
  • the terminal obtains the number of data updates per application for a certain period of time. For example, the terminal obtains the number of updates of each application in three days, and divides the number of updates by the number of days to obtain the update frequency.
  • the application can also specify the application to be backed up for the user. For example, if the user has previously set up only some of the applications to be backed up in the terminal, the terminal may also only obtain the update frequency of these applications.
  • Step S202 Sort the update frequency according to a preset rule.
  • the terminal according to the update frequency of all applications, the order of each application in the backup, that is, the backup priority.
  • the update frequency of the terminal for all applications is sorted in descending order, wherein the update frequency determines the frequency of use or attention of the user. The higher the update frequency, the higher the user's attention.
  • the terminal can also sort according to the update frequency of the applications from high to low.
  • Step S203 determining a backup priority of the application according to the updated update frequency.
  • the terminal obtains the backup priority of the above application according to all update frequencies sorted from high to low. That is, the terminal first backs up the data to be backed up of the application with high update frequency, and then backs up the data to be backed up by the application with low update frequency.
  • Step S204 The data to be backed up of the application is transmitted to the server according to the backup priority.
  • the terminal sequentially transfers the data to be backed up of the corresponding application to the server according to the sequence of the backups obtained in step S203, and then the server stores the data to be backed up.
  • the terminal may also transmit the data to be backed up with higher priority.
  • the data to be backed up is detected, the data to be backed up is transmitted, that is, step S204, according to the backup priority.
  • the steps to transfer the application's data to be backed up to the server include:
  • Step S2041 The data to be backed up of the application corresponding to the current priority is transmitted to the server.
  • step S2042 it is detected whether the data to be backed up of the application corresponding to the current priority is transmitted.
  • Step S2043 If the data to be backed up of the application corresponding to the current priority is completed, the data to be backed up of the application of the next priority is transmitted to the server, where the current priority level is higher than the next The level of priority.
  • the terminal transmits the data to be backed up of the application with the highest priority to the server, and detects whether the data to be backed up of the application with the highest priority is transmitted; if the data to be backed up of the application with the highest priority is detected is transmitted. Then, the terminal transmits the data to be backed up of the second priority application to the server. It can be understood that the data to be backed up by the application corresponding to the priority after the second priority is similar to that of the data to be backed up, and details are not described herein again.
  • the terminal may also detect the network connection status of the terminal when the current data to be backed up is not transmitted, and record whether the backup is performed when there is no network connection. Finished, and the ratio information of the backup. That is, the above method further includes:
  • step S2044 if the data to be backed up of the application corresponding to the current priority is not transmitted, it is detected whether the current network connection status of the terminal is in the disconnected state.
  • step S2045 is performed; when the terminal detects that it currently has a network connection, it may return to step S2042.
  • step S2045 when it is detected that the current network connection status of the terminal is in the disconnected state, the backup progress information of the data to be backed up of the application corresponding to the current priority is recorded.
  • the terminal when the terminal detects that it has no network connection, the terminal records whether the data to be backed up of the highest priority application is backed up, and the backup ratio information. It can be understood that, in the data transmission process of the other priority applications, if the terminal detects that the data to be backed up by the application corresponding to the priority has not been transmitted, the backup progress information may also be recorded in the foregoing manner.
  • the terminal may obtain an initial capacity of the data to be backed up of the application corresponding to the current priority, and a backup capacity of the backup data of the application corresponding to the current priority, and calculate a ratio of the backup capacity to the initial capacity. , get the ratio information of the backup.
  • the data backup method of the embodiment obtains the update frequency of the data of the application in the terminal, the data to be backed up, the update frequency according to the preset rule, and the backup priority of the application according to the updated update frequency. Transfer the data to be backed up of the application to the server according to the backup priority. Since the update frequency is sorted in the order of high to low, and the data to be backed up of each application is backed up according to the sorted result, the frequently used data of the user can be backed up in time, so that the user synchronizes the data on other terminals. When the data is used, the synchronization efficiency of other terminals is improved, which brings convenience to the user.
  • FIG. 3 is a flowchart of a method for backing up data according to still another embodiment of the present invention.
  • Step S301 Acquire an update frequency of data of each application in the terminal within the preset duration and data to be backed up by each application.
  • the terminal separately obtains the number of data updates in the photo and address book within one day. For example, if the number of photos is updated 5 times and the number of updates of the address book is 1 time, the calculated frequency of the photos is 5 times/day, and the update frequency of the address book is 1 time/day.
  • the terminal also obtains the data to be backed up in one day for photos and contacts. In order to prevent data loss, it is preferable that the terminal can separately acquire the incremental data of the photo and the address book, and the update frequency of the incremental data in the photo and the address book.
  • Step S302 generating a backup priority according to the update frequency.
  • the terminal sorts the update frequency by the largest to the smallest, and the order of the updated update frequency is 5, 1.
  • the sorting result of the update frequency respectively corresponds to the frequency of use of the application, that is, the application whose frequency is high to low is a photo or an address book. Therefore, the backup priority of the application obtained by the terminal is to back up the data of the photo first, and then back up the data of the address book.
  • Step S303 the data to be backed up of the highest priority application is transmitted to the server.
  • the terminal transmits the data to be backed up to the server to back up the data of the photo.
  • Step S304 detecting whether the data to be backed up of the application corresponding to the highest priority is transmitted.
  • the terminal detects whether the data to be backed up of the photo is transmitted. If the terminal detects that the data to be backed up of the photo is transmitted, the terminal performs step S305. Otherwise, the terminal may perform step S306.
  • Step S305 If the data to be backed up of the application corresponding to the highest priority is completed, the data to be backed up of the lower priority application is transmitted to the server.
  • the terminal when the terminal detects that the data to be backed up of the photo is transmitted, the terminal continues to transmit the data to be backed up of the address book to the server to back up the data of the address book.
  • Step S306 if the data to be backed up of the application corresponding to the highest priority is not transmitted, it is detected whether the current network connection status is in the disconnected state.
  • the terminal when the terminal detects that the data to be backed up of the photo has not been transmitted, the terminal can detect whether the current network connection status is in the disconnected state. If the terminal detects that the current network connection state is in the disconnected state, the terminal may perform step S307; if the terminal detects that the current network connection state is in the connected state, the terminal may return to step S304.
  • Step S307 When detecting that the network connection status of the terminal is in the disconnected state, record the backup progress information of the data to be backed up of the application corresponding to the current priority.
  • the terminal detects that the current network connection status is in the disconnected state, it records the proportion of the current photo's data to be backed up that has been backed up. It can be understood that when the terminal detects the current network connection state to resume the connection, the data to be backed up of the photo is continuously transmitted to the server.
  • the terminal when the terminal is in the process of transmitting the data to be backed up in the address book, if the terminal detects that the current network connection state is in the disconnected state, the terminal also records the backup progress information of the data to be backed up in the address book.
  • the data backup method of the embodiment obtains the backup frequency of the data of each application in the terminal within the preset duration and the data to be backed up, generates a backup priority according to the update frequency, and transmits the highest priority application to the server. If the data to be backed up of the application corresponding to the highest priority is transmitted, if the data to be backed up of the application corresponding to the highest priority is completed, the lower priority application is transmitted to the server. If the data to be backed up of the application corresponding to the highest priority is not transmitted, the terminal detects whether the current network connection status is in the disconnected state; when the network connection status of the detecting terminal is in the disconnected state, the recording is performed. The backup progress information of the data to be backed up by the application corresponding to the current priority. Since the transmission is still detected during the transmission process, when the transmission is not completed, and the network connection is not detected, the backup ratio information is recorded, thereby preventing the terminal from being mishandled and improving the accuracy of the backup.
  • the embodiment of the invention further provides a data backup device, which comprises:
  • An obtaining module configured to acquire an update frequency of data of an application in the terminal and data to be backed up by the application
  • a priority generation module configured to generate a backup priority according to the update frequency
  • a transmission module configured to transmit, to the server, the data to be backed up of the application according to the backup priority.
  • the transmission module comprises:
  • a first transmission submodule configured to transmit, to the server, data to be backed up of an application corresponding to the current priority
  • a transmission detection sub-module configured to detect whether the data to be backed up of the application corresponding to the current priority is transmitted
  • a second transmission submodule configured to: when the data to be backed up of the application corresponding to the current priority is transmitted, transmit, to the server, data to be backed up of the application of the next priority, where the current priority is The level is higher than the level of the next priority.
  • the transmission module further includes:
  • a network detection sub-module configured to detect, when the data to be backed up of the application corresponding to the current priority is not transmitted, detecting whether the current network connection status of the terminal is in an disconnected state
  • a recording submodule configured to record backup progress information of the to-be-backed data of the application corresponding to the current priority when detecting that the current network connection state is in a disconnected state.
  • the priority generation module includes:
  • a sorting submodule configured to sort the update frequency according to a preset rule
  • the obtaining module is specifically configured to:
  • the terminal acquires current data of the application; and acquires the data to be backed up according to the initial data and the current data.
  • the obtaining module is specifically configured to: acquire a difference between the current data and the initial data, and use a difference between the current data and the initial data as data to be backed up.
  • FIG. 4 is a schematic structural diagram of a data backup device according to an embodiment of the present invention.
  • the backup device 40 of the data of the preferred embodiment includes an acquisition module 41, a priority generation module 42, and a transmission module 43.
  • the obtaining module 41 is configured to acquire an update frequency of the data of the application in the terminal and data to be backed up by the application.
  • the terminal acquires the update frequency of the data of each application and the data to be backed up. For example, the terminal obtains the frequency of data update of each application within a certain period of time.
  • the application can also specify the application to be backed up for the user. For example, if the user sets up only some of the applications to be backed up in the terminal, the terminal can also obtain only the data update frequency and the data to be backed up by these applications.
  • the step of acquiring the data to be backed up may include: the terminal acquiring initial data of the application, and when detecting that the initial data of the application changes, the terminal acquires current data of the application, and then obtains the current data.
  • the difference between the data and the initial data, and the difference between the current data and the initial data is taken as data to be backed up.
  • the difference between the current data and the initial data is used as the data to be backed up.
  • the priority generation module 42 is configured to generate a backup priority according to the update frequency.
  • the terminal according to the update frequency of all applications, the order of each application in the backup, that is, the backup priority.
  • the update frequency of the terminal for all applications is sorted in descending order of high to low or low to high, wherein the update frequency determines the user's usage frequency, that is, the user's attention.
  • the terminal can also obtain the order of the applications in the backup according to the update frequency of the applications.
  • the terminal can also generate the backup priority according to other manners. For example, the terminal acquires the amount of data change in a certain period of time, and generates a backup priority according to the data change amount and the update frequency. Specifically, the terminal may pre-store an association table with a change amount, an update frequency, and a priority, and obtain a backup priority by using a lookup table.
  • the transmission module 43 is configured to transmit the data to be backed up of the application to the server according to the backup priority.
  • the terminal sequentially transfers the data to be backed up of the corresponding application to the server according to the order of the backup, and then the server stores the data to be backed up.
  • the transmission module 43 includes a first transmission submodule 431, a transmission detection submodule 432, and a second transmission submodule 433.
  • the first transmission sub-module 431 is configured to transmit, to the server, data to be backed up of the application corresponding to the current priority.
  • the transmission detection sub-module 432 is configured to detect whether the data to be backed up of the application corresponding to the current priority is transmitted.
  • the second transmission sub-module 433 is configured to: when the data to be backed up of the application corresponding to the current priority is completed, transmit, to the server, data to be backed up of the application of the next priority, where the current priority level Higher than the level of the next priority.
  • the terminal transmits the data to be backed up of the application with the highest priority to the server, and detects whether the data to be backed up of the application with the highest priority is transmitted; if the data to be backed up of the application with the highest priority is detected is transmitted. Then, the terminal transmits the data to be backed up of the second priority application to the server. It can be understood that the data to be backed up by the application corresponding to the priority after the second priority is similar to that of the data to be backed up, and details are not described herein again.
  • the transmission module 43 further includes: a network detection sub-module 434, a recording sub-module 435, and a trigger sub-module 436.
  • the network detection sub-module 434 is configured to detect whether the current network connection status of the terminal is in an disconnected state when the data to be backed up of the application corresponding to the current priority is not transmitted.
  • the terminal detects whether its current network connection status is in the disconnected state. That is, the terminal detects that it has no network connection currently.
  • the recording sub-module 435 is configured to record backup progress information of the data to be backed up of the application corresponding to the current priority when detecting that the current network connection state is in the disconnected state.
  • the terminal when the terminal detects that it has no network connection, the terminal records whether the data to be backed up of the highest priority application is backed up, and the backup ratio information. It can be understood that, in the data transmission process of the other priority applications, if the terminal detects that the data to be backed up by the application corresponding to the priority has not been transmitted, the backup progress information may also be recorded in the foregoing manner.
  • the terminal may obtain an initial capacity of the data to be backed up of the application corresponding to the current priority, and a backup capacity of the backup data of the application corresponding to the current priority, and calculate a ratio of the backup capacity to the initial capacity. , get the ratio information of the backup.
  • the triggering sub-module 436 is configured to trigger, when detecting that the current network connection state is not in the disconnected state, the step of triggering the transmission detection sub-module 432 to detect whether the data to be backed up by the application corresponding to the current priority is completed. .
  • the terminal may return to perform the step of detecting whether the data to be backed up of the application corresponding to the current priority is transmitted.
  • the priority generation module 42 includes a sorting submodule 421 and a determining submodule 422.
  • the sorting sub-module 421 is configured to sort the update frequency according to a preset rule.
  • the terminal according to the update frequency of all applications, the order of each application in the backup, that is, the backup priority.
  • the update frequency of the terminal for all applications is sorted in descending order, wherein the update frequency determines the frequency of use or attention of the user. The higher the update frequency, the higher the user's attention.
  • the terminal can also sort according to the update frequency of the applications from high to low.
  • the determining sub-module 422 is configured to determine a backup priority of the application according to the sorted update frequency.
  • the terminal obtains the backup priority of the above application according to all update frequencies sorted from high to low. That is, the terminal first backs up the data to be backed up of the application with high update frequency, and then backs up the data to be backed up by the application with low update frequency.
  • the foregoing modules may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
  • the foregoing modules refer to the foregoing method embodiments, and details are not described herein again.
  • the data backup device of the preferred embodiment obtains the update frequency of the data of the application in the terminal and the data to be backed up; generates a backup priority according to the update frequency; and transmits the data to be backed up to the application according to the backup priority
  • the server is storing. Since the frequency of data update of each application is obtained, and the priority of the backup is determined according to the obtained update frequency, the data of the application with high user attention can be backed up in time, thereby improving the timeliness and flexibility of the backup.
  • the embodiment of the present invention further provides an electronic device, including a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is configured to perform the following steps:
  • the processor when the data to be backed up of the application is transmitted to the server according to the backup priority, the processor is configured to perform the following steps:
  • the data to be backed up of the application corresponding to the current priority is completed, the data to be backed up of the application of the next priority is transmitted to the server, where the current priority level is higher than the next priority Level of level.
  • the processor is further configured to perform the following steps:
  • the backup progress information of the data to be backed up of the application corresponding to the current priority is recorded.
  • the processor is further configured to perform the following steps:
  • the step of detecting whether the data to be backed up of the application corresponding to the current priority is transmitted is returned.
  • the processor when generating a backup priority based on the update frequency, the processor is configured to perform the following steps:
  • the backup priority of the application is determined according to the updated update frequency.
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the present embodiment provides a terminal, and the terminal may include the above-mentioned data backup device.
  • the data backup device For details of the data backup device, refer to the detailed description of the previous embodiment, and details are not described herein again.
  • the embodiment of the invention further provides an electronic device, which may be a terminal such as a smart phone or a tablet computer.
  • the electronic device 60 can include radio frequency (RF, Radio) Frequency circuit 61, memory 62 including one or more computer readable storage media, input unit 63, display unit 64, sensor 65, audio circuit 66, wireless fidelity (WiFi, Wireless)
  • the Fidelity module 67 includes a processor 68 having one or more processing cores, and a power supply 69 and the like. It will be understood by those skilled in the art that the electronic device structure illustrated in FIG. 6 does not constitute a limitation on the electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the radio frequency circuit 61 can be used for transmitting and receiving information, or receiving and transmitting signals during a call. Specifically, after receiving the downlink information of the base station, the downlink information is processed by one or more processors 68; in addition, the data related to the uplink is sent to the base station. .
  • the radio frequency circuit 61 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, Subscriber Identity Module) Card, Transceiver, Coupler, Low Noise Amplifier (LNA, Low Noise) Amplifier), duplexer, etc.
  • SIM Subscriber Identity Module
  • the radio frequency circuit 61 can also communicate with the network and other devices through wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to the global mobile communication system (GSM, Global System of Mobile communication), General Packet Radio Service (GPRS, General Packet Radio) Service), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA, Wideband Code) Division Multiple Access), Long Term Evolution (LTE), e-mail, short message service (SMS, Short) Messaging Service) and so on.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short message service
  • Memory 62 can be used to store software programs as well as modules.
  • the processor 68 executes various functional applications and data processing by running software programs and modules stored in the memory 62.
  • the memory 62 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of electronic devices (such as audio data, phone books, etc.).
  • memory 62 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 62 may also include a memory controller to provide access to memory 62 by processor 68 and input unit 63.
  • Input unit 63 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 63 can include a touch-sensitive surface as well as other input devices.
  • Touch-sensitive surfaces also known as touch screens or trackpads, collect touch operations on or near the user (such as the user using a finger, stylus, etc., any suitable object or accessory on a touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connecting device according to a preset program.
  • the touch sensitive surface may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 68 is provided and can receive commands from the processor 68 and execute them.
  • touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 63 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 64 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 64 can include a display panel, and optionally, a liquid crystal display (LCD, Liquid) can be used. Crystal Display), Organic Light-Emitting (OLED) Diode) and other forms to configure the display panel.
  • the touch-sensitive surface can cover the display panel, and when the touch-sensitive surface detects a touch operation thereon or nearby, it is transmitted to the processor 68 to determine the type of the touch event, and then the processor 68 displays the type according to the type of the touch event. A corresponding visual output is provided on the panel.
  • the touch-sensitive surface and display panel are implemented as two separate components to implement input and input functions, in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
  • Electronic device 60 may also include at least one type of sensor 65, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel when the electronic device moves to the ear, and/or Backlighting.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the electronic device can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
  • the audio circuit 66 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • the audio circuit 66 can convert the received audio data into an electrical signal, which is transmitted to the speaker and converted into a sound signal output by the speaker.
  • the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 66 and converted into
  • the audio data is processed by the audio data output processor 68, transmitted via the RF circuit 61 to, for example, another electronic device, or the audio data is output to the memory 62 for further processing.
  • the audio circuit 66 may also include an earbud jack to provide communication of the peripheral earphones with the electronic device.
  • Wireless Fidelity is a short-range wireless transmission technology.
  • the electronic device can help users to send and receive e-mail, browse web pages and access streaming media through the wireless fidelity module 67, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the wireless fidelity module 67, it can be understood that it does not belong to the essential configuration of the electronic device, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 68 is a control center for the electronic device that connects various portions of the entire electronic device using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 62, and recalling data stored in the memory 62. , performing various functions and processing data of the electronic device to perform overall monitoring of the electronic device.
  • the processor 68 may include one or more processing cores; preferably, the processor 68 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 68.
  • the electronic device 60 also includes a power source 69 (such as a battery) that powers the various components.
  • the power source can be logically coupled to the processor 68 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 69 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the electronic device may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 68 in the electronic device loads the executable file corresponding to the process of one or more applications into the memory 62 according to the following instructions, and is stored and stored by the processor 68.
  • the application in memory 62 thereby implementing various functions:
  • the processor 68 has an acquisition module, a priority generation module, and a transmission module.
  • the obtaining module is configured to acquire an update frequency of the data of the application in the electronic device and data to be backed up by the application.
  • a priority generation module is configured to generate a backup priority according to the update frequency.
  • a transmission module configured to transmit the data to be backed up of the application to the server according to the backup priority.
  • the processor 68 when the data to be backed up of the application is transmitted to the server according to the backup priority, the processor 68 is configured to perform the following steps:
  • the data to be backed up of the application corresponding to the current priority is completed, the data to be backed up of the application of the next priority is transmitted to the server, where the current priority level is higher than the next priority Level of level.
  • the processor 68 is further configured to perform the following steps:
  • the backup progress information of the data to be backed up of the application corresponding to the current priority is recorded.
  • the processor is further configured to perform the following steps:
  • the step of detecting whether the data to be backed up of the application corresponding to the current priority is transmitted is returned.
  • the processor when generating a backup priority based on the update frequency, the processor is configured to perform the following steps:
  • the backup priority of the application is determined according to the updated update frequency.
  • the electronic device of the preferred embodiment acquires the update frequency of the data of the application in the electronic device and the data to be backed up; generates a backup priority according to the update frequency; and transmits the data to be backed up of the application to the server according to the backup priority Store. Since the frequency of data update of each application is obtained, and the priority of the backup is determined according to the obtained update frequency, the data of the application with high user attention can be backed up in time, thereby improving the timeliness and flexibility of the backup.
  • the embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform the backup method of the data described in any of the foregoing embodiments.
  • the present invention further provides a data backup system 100 including a server 70 and at least one terminal 60, wherein the terminal 60 can include any data backup device provided by the above embodiment, and the terminal can be Specifically, it is a device such as a tablet computer or a mobile phone.
  • the terminal 60 acquires the update frequency of the data of the application and the data to be backed up; afterwards, the terminal 60 generates a backup priority according to the update frequency; and transmits the data to be backed up of the application to the backup priority according to the backup priority.
  • the server 70 after which the server 70 receives the data to be backed up and stores it.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Read only memory (ROM, Read Only Memory), Random Access Memory (RAM), disk or CD.
  • ROM Read only memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种数据的备份方法、装置、电子设备、存储介质及系统,该数据的备份方法包括:获取终端中应用程序的数据的更新频率和该应用程序的待备份数据(S101);根据该更新频率生成备份优先级(S102);按照该备份优先级将该应用程序的待备份数据传输至服务器(S103)。

Description

数据的备份方法、装置、电子设备、存储介质及系统
本申请要求于2016年10月25日提交中国专利局、申请号为201610939625.3、发明名称为“数据的备份方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及终端技术领域,特别是涉及一种数据的备份方法、装置、电子设备、存储介质及系统。
背景技术
随着终端的不断普及,面向终端的云服务也在不断地发展。通过将数据备份至云服务器,有效地避免了数据丢失的风险,给用户带来了更多的便利。目前,用户可以只申请一个账号,便可在多台终端上使用云服务,从而方便地将不同终端的数据备份至云服务器,避免重复申请多个账户。
技术问题
本发明实施例提供一种数据的备份方法、装置、电子设备、存储介质及系统,解决数据的备份方法的及时性和灵活性较差的技术问题。
技术解决方案
第一方面,本发明实施例提供一种数据的备份方法,其包括:
获取终端中应用程序的数据的更新频率和所述应用程序的待备份数据;
根据所述更新频率生成备份优先级;
按照所述备份优先级将所述应用程序的待备份数据传输至服务器。
第二方面,本发明实施例还提供一种数据的备份装置,其包括:
获取模块,用于获取终端中应用程序的数据的更新频率和所述应用程序的待备份数据;
优先级生成模块,用于根据所述更新频率生成备份优先级;
传输模块,用于按照所述备份优先级将所述应用程序的待备份数据传输至服务器。
第三方面,本发明实施例还提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述数据的备份方法。
第四方面,本发明实施例还提供一种数据的备份系统,包括服务器以及终端,该终端包括上述第二方面提供的数据的备份装置。
第五方面,本发明实施例还提供一种电子设备,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:
获取终端中应用程序的数据的更新频率和所述应用程序的待备份数据;
根据所述更新频率生成备份优先级;
按照所述备份优先级将所述应用程序的待备份数据传输至服务器。
有益效果
本发明实施例提供一种数据的备份方法、装置、电子设备、存储介质及系统,解决数据的备份方法的及时性和灵活性较差的技术问题。
附图说明
图1为本发明一实施例提供的数据的备份方法的流程图。
图2为本发明另一实施例提供的数据的备份方法的流程图。
图3为本发明再一实施例提供的数据的备份方法的流程图。
图4为本发明实施例提供的数据的备份装置的结构示意图。
图5为本发明实施例提供的数据的备份装置的优选结构示意图。
图6为本发明实施例提供的终端的结构示意图。
图7为本发明实施例提供的数据的备份系统的示意图。
本发明的最佳实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
终端的应用程序的数据的更新频率各不相同,而更新频率的高低决定了用户的使用频繁次数,更新频率较高的数据为用户使用较频繁的,也即用户关注度比较高的数据。由于现有的备份方式不能根据更新频率的大小进行备份,因而容易导致更新较快的数据未能及时备份,使用户无法快速地将关注度比较高的数据进行高效地同步。
本发明实施例提供一种数据的备份方法,包括以下步骤:
获取终端中应用程序的数据的更新频率和所述应用程序的待备份数据;
根据所述更新频率生成备份优先级;
按照所述备份优先级将所述应用程序的待备份数据传输至服务器。
在一些实施例中,所述按照所述备份优先级将所述应用程序的待备份数据传输至服务器的步骤包括:
向所述服务器传输当前优先级对应的应用程序的待备份数据;
检测所述当前优先级对应的应用程序的待备份数据是否传输完毕;
若所述当前优先级对应的应用程序的待备份数据传输完毕,则向所述服务器传输下一优先级的应用程序的待备份数据,其中所述当前优先级的级别高于所述下一优先级的级别。
在一些实施例中,若所述当前优先级对应的应用程序的待备份数据未传输完毕,所述方法还包括:
检测终端的当前网络连接状态是否处于断开状态;
当检测到所述当前网络连接状态处于断开状态时,记录所述当前优先级对应的应用程序的待备份数据的备份进度信息。
在一些实施例中,所述方法还包括:
当检测到所述当前网络连接状态未处于断开状态时,返回所述检测所述当前优先级对应的应用程序的待备份数据是否传输完毕的步骤。
在一些实施例中,所述根据所述更新频率生成备份优先级的步骤包括:
按照预设规则对所述更新频率进行排序;
根据排序后的更新频率确定所述应用程序的备份优先级。
在一些实施例中,所述获取所述应用程序的待备份数据的步骤包括:
获取所述应用程序的初始数据;
当检测到所述应用程序的初始数据发生变化时,终端获取所述应用程序的当前数据;
根据所述初始数据和所述当前数据获取所述待备份数据。
在一些实施例中,所述根据所述初始数据和所述当前数据获取所述待备份数据的步骤包括:
获取所述当前数据与所述初始数据之间的差,将所述当前数据与所述初始数据之间的差作为待备份数据。
本发明实施例提供的数据的备份方法的执行主体,可以为本发明实施例提供的数据的备份装置,或者集成了该数据的备份装置的移动终端(譬如笔记本、平板电脑、手机、可穿戴设备等),该数据的备份装置可以采用硬件或者软件的方式实现。
请参照图1,图1为本发明一实施例提供的数据的备份方法的流程图。
本优选实施例的数据的备份方法,包括:
步骤S101,获取终端中应用程序的数据的更新频率和该应用程序的待备份数据。
例如,终端中设置有多个应用程序,比如照片、通讯录等等。终端获取每个应用程序的数据的更新频率和待备份数据。比如,终端获取每个应用程序在一定时间内的数据更新频率。
当然,该应用程序也可以为用户指定的待备份的应用程序。比如,如果用户预先在终端设置了仅对部分应用程序进行备份,则终端也可以仅获取这些应用程序的数据更新频率和待备份数据。
可以理解的是,该待备份数据的获取步骤可以包括:终端获取该应用程序的初始数据,当检测到该应用程序的初始数据发生变化时,终端获取该应用程序的当前数据,之后获取该当前数据与该初始数据之间的差,将该当前数据与该初始数据之间的差作为待备份数据。优选地,如果该当前数据大于该初始数据,则将当前数据与该初始数据之间的差作为该待备份数据。也即该待备份数据优选为增量数据。
步骤S102,根据该更新频率生成备份优先级。
例如,终端按照所有应用程序的更新频率,得出各应用程序在备份时的先后顺序,也即备份优先级。比如,终端对所有应用程序的更新频率按照由高到低或者由低到高的顺序进行排序,其中更新频率的高低决定用户的使用频繁度,也即用户的关注度。
当然,如果用户预先在终端设置了仅对部分应用程序进行备份,终端也可以按照这些应用程序的更新频率得出这些应用程序在备份时的先后顺序。
可以理解的,终端还可以根据其他方式生成该备份优先级。比如终端获取在一定时间内的数据变化量,根据该数据变化量和该更新频率生成备份优先级。具体地,终端可以预先存储有变化量、更新频率以及优先级的关联表,通过查表方式得到备份的优先级。
步骤S103,按照该备份优先级将该应用程序的待备份数据传输至服务器。
例如,终端按照步骤S102得到的备份的先后顺序依次将对应的应用程序的待备份数据传输至服务器,之后服务器将该待备份数据进行存储。
本实施例的数据的备份方法,通过获取终端中应用程序的数据的更新频率和待备份数据;根据该更新频率生成备份优先级;按照该备份优先级将该应用程序的待备份数据传输至服务器。由于获取每个应用程序的数据更新频率,并根据获取的更新频率确定备份的优先级,从而能够及时对用户关注度比较高的应用程序的数据进行备份,提高了备份的及时性和灵活性。
请参照图2,图2为本发明另一实施例提供的数据的备份方法的流程图。
本优选实施例的数据的备份方法,包括:
步骤S201,获取终端中应用程序的数据的更新频率和该应用程序的待备份数据。
例如,终端中设置有多个应用程序,比如照片、通讯录等等。终端获取每个应用程序的数据的更新频率和待备份数据。该获取终端中应用程序的数据的更新频率的步骤包括:
(1)、获取预设时长内该应用程序的数据的更新频率。
例如,终端获取每个应用程序在一定时间内的数据更新次数。比如,终端获取每个应用程序在三天内的更新次数,将该更新次数除以天数得到该更新频率。
当然,该应用程序也可以为用户指定的待备份的应用程序。比如,如果用户预先在终端设置了仅对部分应用程序进行备份,则终端也可以仅获取这些应用程序的更新频率。
步骤S202,按照预设规则对该更新频率进行排序。
例如,终端按照所有应用程序的更新频率,得出各应用程序在备份时的先后顺序,也即备份优先级。比如,终端对所有应用程序的更新频率按照由大到小的顺序进行排序,其中更新频率的高低决定了用户的使用频繁度或者关注度。更新频率越高,用户的关注度越高。
当然,如果用户预先在终端设置了仅对部分应用程序进行备份,终端也可以按照这些应用程序的更新频率由高到低的顺序进行排序。
步骤S203,根据排序后的更新频率确定该应用程序的备份优先级。
例如,终端按照由高到低排序后的全部更新频率,得到上述应用程序的备份优先级。也即终端先对更新频率高的应用程序的待备份数据进行备份,之后再对更新频率低的应用程序的待备份数据进行备份。
步骤S204,按照该备份优先级将该应用程序的待备份数据传输至服务器。
例如,终端按照步骤S203得到的备份的先后顺序依次将对应的应用程序的待备份数据传输至服务器,之后服务器将该待备份数据进行存储。
为了提高数据传输的效率,终端还可先传输优先级较高的待备份数据,当检测到该待备份数据传输完毕时,传输次优先级的待备份数据,也即步骤S204,按照该备份优先级将该应用程序的待备份数据传输至服务器的步骤包括:
步骤S2041、向该服务器传输当前优先级对应的应用程序的待备份数据。
步骤S2042、检测该当前优先级对应的应用程序的待备份数据是否传输完毕。
步骤S2043、若该当前优先级对应的应用程序的待备份数据传输完毕,则向该服务器传输下一优先级的应用程序的待备份数据,其中所述当前优先级的级别高于所述下一优先级的级别。
例如,终端向服务器传输优先级最高的应用程序的待备份数据,并检测该优先级最高的应用程序的待备份数据是否传输完毕;如果检测到该优先级最高的应用程序的待备份数据传输完毕,则终端将第二优先级的应用程序的待备份数据传输至服务器。可以理解的,第二优先级之后的优先级对应的应用程序的待备份数据的传输方式与此类似,在此不再赘述。
当然,为了在传输中断时,便于该终端获知该待备份数据的备份情况,终端还可以在当前待备份数据未传输完毕时,检测终端的网络连接情况,在无网络连接时,记录其备份是否完毕,以及备份的比例信息。也即上述方法还包括:
步骤S2044、若该当前优先级对应的应用程序的待备份数据未传输完毕,则检测终端的当前网络连接状态是否处于断开状态。
例如,如果终端检测到该优先级最高的应用程序的待备份数据未传输完毕,则终端检测其当前的网络连接状态是否处于断开状态。也即终端检测其当前无网络连接。当终端检测到其当前无网络连接时,执行步骤S2045;当终端检测到其当前有网络连接时,可以返回步骤S2042。
步骤S2045、当检测到终端的当前网络连接状态处于断开状态时,记录该当前优先级对应的应用程序的待备份数据的备份进度信息。
例如,当终端检测到其当前无网络连接时,终端才记录该优先级最高的应用程序的待备份数据是否备份完毕,以及备份比例信息。可以理解的,对于其他优先级的应用程序的待备份数据传输过程中,如果终端检测到该优先级对应的应用程序的待备份数据未传输完毕,也可以采用上述方式记录其备份进度信息。
具体地,终端可以获取当前优先级对应的应用程序的待备份数据的初始容量,以及当前优先级对应的应用程序的待备份数据已完成备份的备份容量,计算该备份容量与该初始容量的比值,得到该备份的比例信息。
本实施例的数据的备份方法,通过获取终端中应用程序的数据的更新频率和待备份数据、按照预设规则对该更新频率进行排序、根据排序后的更新频率确定该应用程序的备份优先级、按照该备份优先级将该应用程序的待备份数据传输至服务器。由于按照由高到低的顺序对更新频率进行排序,并按照排序的结果对各应用程序的待备份数据进行备份,从而能够及时对用户使用频繁的数据进行备份,使得用户在其他终端上同步该数据时,提高了其他终端的同步效率,给用户带来了便利。
请参照图3,图3为本发明再一实施例提供的数据的备份方法的流程图。
本优选实施例的数据的备份方法,包括:
步骤S301,获取预设时长内终端中各应用程序的数据的更新频率和各应用程序的待备份数据。
例如,以照片、通讯录的数据备份为例,终端分别获取照片和通讯录1天内的数据更新次数。比如,照片的更新次数为5次,通讯录的更新次数为1次,则经过计算得出,照片的更新频率为5次/天,通讯录的更新频率为1次/天。终端还分别获取照片和通讯录在1天内的待备份数据。为了防止数据丢失,优选地,终端可以分别获取照片和通讯录的增量数据,以及照片和通讯录中增量数据的更新频率。
步骤S302,根据该更新频率生成备份优先级。
例如,由于照片的更新频率大于通讯录的更新频率,因此终端对更新频率按照由大到小进行排序,排序后的更新频率的顺序为5、1。该更新频率的排序结果分别对应的应用程序的使用频繁程度,也即使用频繁程度由高到低的应用程序为照片、通讯录。因此终端得到的应用程序的备份优先级为先对照片的数据进行备份,之后对通讯录的数据进行备份。
步骤S303,向该服务器传输最高优先级的应用程序的待备份数据。
例如,终端向服务器传输照片的待备份数据,以对照片的数据进行备份。
步骤S304,检测该最高优先级对应的应用程序的待备份数据是否传输完毕。
例如,终端检测照片的待备份数据是否传输完毕。如果终端检测到照片的待备份数据传输完毕,则终端执行步骤S305,否则,终端可以执行步骤S306。
步骤S305,若该最高优先级对应的应用程序的待备份数据传输完毕,则向该服务器传输较低优先级的应用程序的待备份数据。
例如,当终端检测照片的待备份数据传输完毕时,终端继续将通讯录的待备份数据传输至服务器,以对通讯录的数据进行备份。
步骤S306,若该最高优先级对应的应用程序的待备份数据未传输完毕,则检测当前的网络连接状态是否处于断开状态。
例如,当终端检测照片的待备份数据未传输完毕时,终端可以检测其当前的网络连接状态是否处于断开状态。如果终端检测到当前的网络连接状态处于断开状态时,则终端可以执行步骤S307;如果终端检测到当前的网络连接状态处于连接状态时,则终端可以返回执行步骤S304。
步骤S307,当检测终端的网络连接状态处于断开状态时,记录该当前优先级对应的应用程序的待备份数据的备份进度信息。
例如,如果终端检测到当前的网络连接状态处于断开状态时,记录当前照片的待备份数据已完成备份的比例。可以理解的,当终端检测到当前的网络连接状态恢复连接时,继续向服务器传输照片的待备份数据。
可以理解的,当终端在传输通讯录的待备份数据过程中,如果终端检测到其当前网络连接状态处于断开状态时,终端也记录通讯录的待备份数据的备份进度信息。
本实施例的数据的备份方法,通过获取预设时长内终端中各应用程序的数据的更新频率和待备份数据,根据该更新频率生成备份优先级,向该服务器传输最高优先级的应用程序的待备份数据,检测该最高优先级对应的应用程序的待备份数据是否传输完毕,若该最高优先级对应的应用程序的待备份数据传输完毕,则向该服务器传输较低优先级的应用程序的待备份数据,若该最高优先级对应的应用程序的待备份数据未传输完毕,则终端检测其当前的网络连接状态是否处于断开状态;当检测终端的网络连接状态处于断开状态时,记录该当前优先级对应的应用程序的待备份数据的备份进度信息。由于在传输过程中还检测传输是否完毕,当检测到传输未完毕时,且无网络连接时,记录备份比例信息,从而防止终端误操作,提高了备份的准确度。
本发明实施例还提供一种数据的备份装置,其包括:
获取模块,用于获取终端中应用程序的数据的更新频率和所述应用程序的待备份数据;
优先级生成模块,用于根据所述更新频率生成备份优先级;
传输模块,用于按照所述备份优先级将所述应用程序的待备份数据传输至服务器。
在一些实施例中,所述传输模块包括:
第一传输子模块,用于向所述服务器传输当前优先级对应的应用程序的待备份数据;
传输检测子模块,用于检测所述当前优先级对应的应用程序的待备份数据是否传输完毕;
第二传输子模块,用于当所述当前优先级对应的应用程序的待备份数据传输完毕时,向所述服务器传输下一优先级的应用程序的待备份数据,其中所述当前优先级的级别高于所述下一优先级的级别。
在一些实施例中,所述传输模块还包括:
网络检测子模块,用于当所述当前优先级对应的应用程序的待备份数据未传输完毕时,检测终端的当前网络连接状态是否处于断开状态;
记录子模块,用于当检测到所述当前网络连接状态处于断开状态时,记录所述当前优先级对应的应用程序的待备份数据的备份进度信息。
在一些实施例中,所述优先级生成模块包括:
排序子模块,用于按照预设规则对所述更新频率进行排序;
确定子模块,用于根据排序后的更新频率确定所述应用程序的备份优先级。
在一些实施例中,所述获取模块具体用于:
获取所述应用程序的初始数据;当检测到所述应用程序的初始数据发生变化时,终端获取所述应用程序的当前数据;根据所述初始数据和所述当前数据获取所述待备份数据。
在一些实施例中,所述获取模块具体用于:获取所述当前数据与所述初始数据之间的差,将所述当前数据与所述初始数据之间的差作为待备份数据。
请参照图4,图4为本发明实施例提供的数据的备份装置的结构示意图。本优选实施例的数据的备份装置40包括:获取模块41、优先级生成模块42以及传输模块43。
该获取模块41,用于获取终端中应用程序的数据的更新频率和该应用程序的待备份数据。
例如,终端中设置有多个应用程序,比如照片、通讯录等等。终端获取每个应用程序的数据的更新频率和待备份数据。比如,终端获取每个应用程序在一定时间内的数据更新频率。
当然,该应用程序也可以为用户指定的待备份的应用程序。比如,如果用户预先在终端设置了仅对部分应用程序进行备份,则终端也可以仅获取这些应用程序的数据更新频率和待备份数据。
可以理解的是,该待备份数据的获取步骤可以包括:终端获取该应用程序的初始数据,当检测到该应用程序的初始数据发生变化时,终端获取该应用程序的当前数据,之后获取该当前数据与该初始数据之间的差,将该当前数据与该初始数据之间的差作为待备份数据。优选地,如果该当前数据大于该初始数据,则将当前数据与该初始数据之间的差作为该待备份数据。
该优先级生成模块42,用于根据该更新频率生成备份优先级。
例如,终端按照所有应用程序的更新频率,得出各应用程序在备份时的先后顺序,也即备份优先级。比如,终端对所有应用程序的更新频率按照由高到低或者由低到高的顺序进行排序,其中更新频率的高低决定用户的使用频繁度,也即用户的关注度。
当然,如果用户预先在终端设置了仅对部分应用程序进行备份,终端也可以按照这些应用程序的更新频率得出这些应用程序在备份时的先后顺序。
可以理解的,终端还可以根据其他方式生成该备份优先级。比如终端获取在一定时间内的数据变化量,根据该数据变化量和该更新频率生成备份优先级。具体地,终端可以预先存储有变化量、更新频率以及优先级的关联表,通过查表方式得到备份的优先级。
该传输模块43,用于按照该备份优先级将该应用程序的待备份数据传输至服务器。
例如,终端按照备份的先后顺序依次将对应的应用程序的待备份数据传输至服务器,之后服务器将该待备份数据进行存储。
如图5所示,该传输模块43包括:第一传输子模块431、传输检测子模块432、第二传输子模块433。
第一传输子模块431,用于向该服务器传输当前优先级对应的应用程序的待备份数据。
传输检测子模块432,用于检测该当前优先级对应的应用程序的待备份数据是否传输完毕。
第二传输子模块433,用于当该当前优先级对应的应用程序的待备份数据传输完毕时,向该服务器传输下一优先级的应用程序的待备份数据,其中所述当前优先级的级别高于所述下一优先级的级别。
例如,终端向服务器传输优先级最高的应用程序的待备份数据,并检测该优先级最高的应用程序的待备份数据是否传输完毕;如果检测到该优先级最高的应用程序的待备份数据传输完毕,则终端将第二优先级的应用程序的待备份数据传输至服务器。可以理解的,第二优先级之后的优先级对应的应用程序的待备份数据的传输方式与此类似,在此不再赘述。
所述传输模块43还包括:网络检测子模块434、记录子模块435、触发子模块436。
网络检测子模块434,用于当所述当前优先级对应的应用程序的待备份数据未传输完毕时,检测终端的当前网络连接状态是否处于断开状态。
例如,如果终端检测到该优先级最高的应用程序的待备份数据未传输完毕,则终端检测其当前的网络连接状态是否处于断开状态。也即终端检测其当前无网络连接。
记录子模块435,用于当检测到该当前网络连接状态处于断开状态时,记录所述当前优先级对应的应用程序的待备份数据的备份进度信息。
例如,当终端检测到其当前无网络连接时,终端才记录该优先级最高的应用程序的待备份数据是否备份完毕,以及备份比例信息。可以理解的,对于其他优先级的应用程序的待备份数据传输过程中,如果终端检测到该优先级对应的应用程序的待备份数据未传输完毕,也可以采用上述方式记录其备份进度信息。
具体地,终端可以获取当前优先级对应的应用程序的待备份数据的初始容量,以及当前优先级对应的应用程序的待备份数据已完成备份的备份容量,计算该备份容量与该初始容量的比值,得到该备份的比例信息。
触发子模块436,用于当检测到该当前网络连接状态未处于断开状态时,触发所述传输检测子模块432执行检测所述当前优先级对应的应用程序的待备份数据是否传输完毕的步骤。
例如,当终端检测到其当前有网络连接时,终端可以返回执行检测所述当前优先级对应的应用程序的待备份数据是否传输完毕的步骤。
该优先级生成模块42包括:排序子模块421和确定子模块422。
排序子模块421,用于按照预设规则对该更新频率进行排序。
例如,终端按照所有应用程序的更新频率,得出各应用程序在备份时的先后顺序,也即备份优先级。比如,终端对所有应用程序的更新频率按照由大到小的顺序进行排序,其中更新频率的高低决定了用户的使用频繁度或者关注度。更新频率越高,用户的关注度越高。
当然,如果用户预先在终端设置了仅对部分应用程序进行备份,终端也可以按照这些应用程序的更新频率由高到低的顺序进行排序。
确定子模块422,用于根据排序后的更新频率确定该应用程序的备份优先级。
例如,终端按照由高到低排序后的全部更新频率,得到上述应用程序的备份优先级。也即终端先对更新频率高的应用程序的待备份数据进行备份,之后再对更新频率低的应用程序的待备份数据进行备份。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。
本优选实施例的数据的备份装置,通过获取终端中应用程序的数据的更新频率和待备份数据;根据该更新频率生成备份优先级;按照该备份优先级将该应用程序的待备份数据传输至服务器进行存储。由于获取每个应用程序的数据更新频率,并根据获取的更新频率确定备份的优先级,从而能够及时对用户关注度比较高的应用程序的数据进行备份,提高了备份的及时性和灵活性。
本发明实施例还提供一种电子设备,其包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:
获取终端中应用程序的数据的更新频率和所述应用程序的待备份数据;
根据所述更新频率生成备份优先级;
按照所述备份优先级将所述应用程序的待备份数据传输至服务器。
在一些实施例中,按照所述备份优先级将所述应用程序的待备份数据传输至服务器时,所述处理器用于执行以下步骤:
向所述服务器传输当前优先级对应的应用程序的待备份数据;
检测所述当前优先级对应的应用程序的待备份数据是否传输完毕;
若所述当前优先级对应的应用程序的待备份数据传输完毕,则向所述服务器传输下一优先级的应用程序的待备份数据,其中所述当前优先级的级别高于所述下一优先级的级别。
在一些实施例中,若当前优先级对应的应用程序的待备份数据未传输完毕时,所述处理器还用于执行以下步骤:
检测终端的当前网络连接状态是否处于断开状态;
当检测到所述当前网络连接状态处于断开状态时,记录所述当前优先级对应的应用程序的待备份数据的备份进度信息。
在一些实施例中,所述处理器还用于执行以下步骤:
当检测到所述当前网络连接状态未处于断开状态时,返回所述检测所述当前优先级对应的应用程序的待备份数据是否传输完毕的步骤。
在一些实施例中,根据所述更新频率生成备份优先级时,所述处理器用于执行以下步骤:
按照预设规则对所述更新频率进行排序;
根据排序后的更新频率确定所述应用程序的备份优先级。
请参照图6,图6为本发明实施例提供的终端的结构示意图。
本实施例提供一种终端,该终端可以包括上述的数据的备份装置,该数据的备份装置具体请参见上一实施例的具体描述,在此不再赘述。
本发明实施例还提供一种电子设备,该电子设备可以是智能手机、平板电脑等终端。如图6所示,该电子设备60可以包括射频(RF,Radio Frequency)电路61、包括有一个或一个以上计算机可读存储介质的存储器62、输入单元63、显示单元64、传感器65、音频电路66、无线保真(WiFi,Wireless Fidelity)模块67、包括有一个或者一个以上处理核心的处理器68、以及电源69等部件。本领域技术人员可以理解,图6中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
射频电路61可用于收发信息,或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器68处理;另外,将涉及上行的数据发送给基站。通常,射频电路61包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM, Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,射频电路61还可以通过无线通信与网络和其他设备通信。该无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统 (GSM,Global System of Mobile communication)、通用分组无线服务(GPRS ,General Packet Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long Term Evolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。
存储器62可用于存储软件程序以及模块。处理器68通过运行存储在存储器62的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器62可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器62可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器62还可以包括存储器控制器,以提供处理器68和输入单元63对存储器62的访问。
输入单元63可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一些实施例中,输入单元63可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器68,并能接收处理器68发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元63还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元64可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元64可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器68以确定触摸事件的类型,随后处理器68根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图6中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。
电子设备60还可包括至少一种传感器65,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路66可通过扬声器、传声器提供用户与电子设备之间的音频接口。音频电路66可将接收到的音频数据转换成电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路66接收后转换为音频数据,再将音频数据输出处理器68处理后,经射频电路61以发送给比如另一电子设备,或者将音频数据输出至存储器62以便进一步处理。音频电路66还可能包括耳塞插孔,以提供外设耳机与电子设备的通信。
无线保真(WiFi)属于短距离无线传输技术,电子设备通过无线保真模块67可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了无线保真模块67,但是可以理解的是,其并不属于电子设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器68是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器62内的软件程序和/或模块,以及调用存储在存储器62内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器68可包括一个或多个处理核心;优选的,处理器68可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器68中。
电子设备60还包括给各个部件供电的电源69(比如电池)。优选的,电源可以通过电源管理系统与处理器68逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源69还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管图6中未示出,电子设备还可以包括摄像头、蓝牙模块等,在此不再赘述。
具体在本实施例中,电子设备中的处理器68会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器62中,并由处理器68来运行存储在存储器62中的应用程序,从而实现各种功能:
获取电子设备中应用程序的数据的更新频率和待备份数据;根据该更新频率生成备份优先级;按照该备份优先级将该应用程序的待备份数据传输至服务器。
优选地,处理器68具有获取模块、优先级生成模块以及传输模块。
获取模块,用于获取电子设备中应用程序的数据的更新频率和该应用程序的待备份数据。
优先级生成模块,用于根据该更新频率生成备份优先级。
传输模块,用于按照该备份优先级将该应用程序的待备份数据传输至服务器。
在一些实施例中,按照所述备份优先级将所述应用程序的待备份数据传输至服务器时,所述处理器68用于执行以下步骤:
向所述服务器传输当前优先级对应的应用程序的待备份数据;
检测所述当前优先级对应的应用程序的待备份数据是否传输完毕;
若所述当前优先级对应的应用程序的待备份数据传输完毕,则向所述服务器传输下一优先级的应用程序的待备份数据,其中所述当前优先级的级别高于所述下一优先级的级别。
在一些实施例中,若当前优先级对应的应用程序的待备份数据未传输完毕时,所述处理器68还用于执行以下步骤:
检测当前网络连接状态是否处于断开状态;
当检测到所述当前网络连接状态处于断开状态时,记录所述当前优先级对应的应用程序的待备份数据的备份进度信息。
在一些实施例中,所述处理器还用于执行以下步骤:
当检测到所述当前网络连接状态未处于断开状态时,返回所述检测所述当前优先级对应的应用程序的待备份数据是否传输完毕的步骤。
在一些实施例中,根据所述更新频率生成备份优先级时,所述处理器用于执行以下步骤:
按照预设规则对所述更新频率进行排序;
根据排序后的更新频率确定所述应用程序的备份优先级。
本优选实施例的电子设备,通过获取电子设备中应用程序的数据的更新频率和待备份数据;根据该更新频率生成备份优先级;按照该备份优先级将该应用程序的待备份数据传输至服务器进行存储。由于获取每个应用程序的数据更新频率,并根据获取的更新频率确定备份的优先级,从而能够及时对用户关注度比较高的应用程序的数据进行备份,提高了备份的及时性和灵活性。
本发明实施例还提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述任一实施例所述的数据的备份方法。
另外,如图7所示,本发明还提供一种数据的备份系统100包括服务器70、至少一个终端60,其中该终端60可以包括如上实施例所提供的任一数据的备份装置,该终端可具体为如平板电脑、手机等设备。
具体地,工作时,终端60获取其中应用程序的数据的更新频率和待备份数据;之后终端60根据该更新频率生成备份优先级;并按照该备份优先级将该应用程序的待备份数据传输至服务器70,之后服务器70接收该待备份数据并存储。
可以理解的是,其中该数据的备份装置的结构以及功能实现可以参见上文的详细描述,此处不再赘述。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
以上对本发明实施例所提供的一种数据的备份方法、装置、电子设备、存储介质及系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种数据的备份方法,其包括以下步骤:
    获取终端中应用程序的数据的更新频率和所述应用程序的待备份数据;
    根据所述更新频率生成备份优先级;
    按照所述备份优先级将所述应用程序的待备份数据传输至服务器。
  2. 根据权利要求1所述的数据的备份方法,其中所述按照所述备份优先级将所述应用程序的待备份数据传输至服务器的步骤包括:
    向所述服务器传输当前优先级对应的应用程序的待备份数据;
    检测所述当前优先级对应的应用程序的待备份数据是否传输完毕;
    若所述当前优先级对应的应用程序的待备份数据传输完毕,则向所述服务器传输下一优先级的应用程序的待备份数据,其中所述当前优先级的级别高于所述下一优先级的级别。
  3. 根据权利要求2所述的数据的备份方法,其中若所述当前优先级对应的应用程序的待备份数据未传输完毕,所述方法还包括:
    检测终端的当前网络连接状态是否处于断开状态;
    当检测到所述当前网络连接状态处于断开状态时,记录所述当前优先级对应的应用程序的待备份数据的备份进度信息。
  4. 根据权利要求3所述的数据的备份方法,其中所述方法还包括:
    当检测到所述当前网络连接状态未处于断开状态时,返回所述检测所述当前优先级对应的应用程序的待备份数据是否传输完毕的步骤。
  5. 根据权利要求1至4任一项所述的数据的备份方法,其中所述根据所述更新频率生成备份优先级的步骤包括:
    按照预设规则对所述更新频率进行排序;
    根据排序后的更新频率确定所述应用程序的备份优先级。
  6. 根据权利要求1所述的数据的备份方法,其中所述获取所述应用程序的待备份数据的步骤包括:
    获取所述应用程序的初始数据;
    当检测到所述应用程序的初始数据发生变化时,终端获取所述应用程序的当前数据;
    根据所述初始数据和所述当前数据获取所述待备份数据。
  7. 根据权利要求6所述的数据的备份方法,其中所述根据所述初始数据和所述当前数据获取所述待备份数据的步骤包括:
    获取所述当前数据与所述初始数据之间的差,将所述当前数据与所述初始数据之间的差作为待备份数据。
  8. 一种数据的备份装置,其包括:
    获取模块,用于获取终端中应用程序的数据的更新频率和所述应用程序的待备份数据;
    优先级生成模块,用于根据所述更新频率生成备份优先级;
    传输模块,用于按照所述备份优先级将所述应用程序的待备份数据传输至服务器。
  9. 根据权利要求8所述的数据的备份装置,其中所述传输模块包括:
    第一传输子模块,用于向所述服务器传输当前优先级对应的应用程序的待备份数据;
    传输检测子模块,用于检测所述当前优先级对应的应用程序的待备份数据是否传输完毕;
    第二传输子模块,用于当所述当前优先级对应的应用程序的待备份数据传输完毕时,向所述服务器传输下一优先级的应用程序的待备份数据,其中所述当前优先级的级别高于所述下一优先级的级别。
  10. 根据权利要求9所述的数据的备份装置,其中所述传输模块还包括:
    网络检测子模块,用于当所述当前优先级对应的应用程序的待备份数据未传输完毕时,检测终端的当前网络连接状态是否处于断开状态;
    记录子模块,用于当检测到所述当前网络连接状态处于断开状态时,记录所述当前优先级对应的应用程序的待备份数据的备份进度信息。
  11. 根据权利要求8所述的数据的备份装置,其中所述优先级生成模块包括:
    排序子模块,用于按照预设规则对所述更新频率进行排序;
    确定子模块,用于根据排序后的更新频率确定所述应用程序的备份优先级。
  12. 根据权利要求8所述的数据的备份装置,其中所述获取模块具体用于:
    获取所述应用程序的初始数据;当检测到所述应用程序的初始数据发生变化时,终端获取所述应用程序的当前数据;根据所述初始数据和所述当前数据获取所述待备份数据。
  13. 根据权利要求12所述的数据的备份装置,其中所述获取模块具体用于:获取所述当前数据与所述初始数据之间的差,将所述当前数据与所述初始数据之间的差作为待备份数据。
  14. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1至7任一项所述的数据的备份方法。
  15. 一种数据的备份系统,包括服务器以及终端,其中该终端包括如权利要求8至13任一项所述的数据的备份装置。
  16. 一种电子设备,其包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:
    获取终端中应用程序的数据的更新频率和所述应用程序的待备份数据;
    根据所述更新频率生成备份优先级;
    按照所述备份优先级将所述应用程序的待备份数据传输至服务器。
  17. 根据权利要求16所述的电子设备,其中,按照所述备份优先级将所述应用程序的待备份数据传输至服务器时,所述处理器用于执行以下步骤:
    向所述服务器传输当前优先级对应的应用程序的待备份数据;
    检测所述当前优先级对应的应用程序的待备份数据是否传输完毕;
    若所述当前优先级对应的应用程序的待备份数据传输完毕,则向所述服务器传输下一优先级的应用程序的待备份数据,其中所述当前优先级的级别高于所述下一优先级的级别。
  18. 根据权利要求17所述的电子设备,其中,若当前优先级对应的应用程序的待备份数据未传输完毕时,所述处理器还用于执行以下步骤:
    检测当前网络连接状态是否处于断开状态;
    当检测到所述当前网络连接状态处于断开状态时,记录所述当前优先级对应的应用程序的待备份数据的备份进度信息。
  19. 根据权利要求18所述的电子设备,其中,所述处理器还用于执行以下步骤:
    当检测到所述当前网络连接状态未处于断开状态时,返回所述检测所述当前优先级对应的应用程序的待备份数据是否传输完毕的步骤。
  20. 根据权利要求16至19任一项所述的电子设备,其中,根据所述更新频率生成备份优先级时,所述处理器用于执行以下步骤:
    按照预设规则对所述更新频率进行排序;
    根据排序后的更新频率确定所述应用程序的备份优先级。
PCT/CN2017/093431 2016-10-25 2017-07-18 数据的备份方法、装置、电子设备、存储介质及系统 Ceased WO2018076818A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP17865447.1A EP3531290B1 (en) 2016-10-25 2017-07-18 Data backup method, apparatus, electronic device, storage medium, and system
US16/339,721 US10956280B2 (en) 2016-10-25 2017-07-18 Data backup method, electronic device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610939625.3A CN106502834B (zh) 2016-10-25 2016-10-25 数据的备份方法、装置及系统
CN201610939625.3 2016-10-25

Publications (1)

Publication Number Publication Date
WO2018076818A1 true WO2018076818A1 (zh) 2018-05-03

Family

ID=58320080

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/093431 Ceased WO2018076818A1 (zh) 2016-10-25 2017-07-18 数据的备份方法、装置、电子设备、存储介质及系统

Country Status (4)

Country Link
US (1) US10956280B2 (zh)
EP (1) EP3531290B1 (zh)
CN (1) CN106502834B (zh)
WO (1) WO2018076818A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363735A (zh) * 2020-11-10 2021-02-12 深圳Tcl新技术有限公司 配网软件下载方法、装置、设备及存储介质

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502834B (zh) 2016-10-25 2019-10-25 Oppo广东移动通信有限公司 数据的备份方法、装置及系统
CN107315657B (zh) * 2017-06-19 2020-09-29 浙江大华技术股份有限公司 一种数据备份的方法及装置
US10981576B2 (en) 2017-12-27 2021-04-20 Micron Technology, Inc. Determination of reliability of vehicle control commands via memory test
CN109408283A (zh) * 2018-09-04 2019-03-01 深圳市宝德计算机系统有限公司 一种服务器数据保护的方法、设备及存储介质
US11507175B2 (en) 2018-11-02 2022-11-22 Micron Technology, Inc. Data link between volatile memory and non-volatile memory
CN109800105B (zh) * 2018-12-03 2021-11-19 华为技术有限公司 一种数据备份方法和终端设备
US11249859B2 (en) * 2019-12-12 2022-02-15 EMC IP Holding Company LLC System and method for intelligent backup scheduling and management
CN111176899B (zh) * 2019-12-29 2023-05-02 浪潮(北京)电子信息产业有限公司 一种云备份方法、装置及设备
US11314605B2 (en) * 2020-08-03 2022-04-26 EMC IP Holding Company LLC Selecting optimal disk types for disaster recovery in the cloud
CN114647537B (zh) * 2020-12-18 2025-06-17 伊姆西Ip控股有限责任公司 用于备份和恢复的方法
US11768738B2 (en) 2021-04-30 2023-09-26 Bank Of America Corporation Intelligent failsafe engine
CN113726845A (zh) * 2021-07-14 2021-11-30 深圳市有为信息技术发展有限公司 车载终端的数据传输方法、装置、车载终端和商用车辆
CN114676190B (zh) * 2022-05-27 2022-10-11 太平金融科技服务(上海)有限公司深圳分公司 数据展示方法、装置、计算机设备和存储介质
CN116126593B (zh) * 2023-01-10 2023-09-08 华南高科(广东)股份有限公司 一种云平台环境下的数据备份系统及方法
CN117056322A (zh) * 2023-07-26 2023-11-14 杭州安恒信息技术股份有限公司 一种基于元数据的Hadoop数据质量监控及资源调配方法和装置
CN117149527B (zh) * 2023-10-31 2024-03-08 江苏华鲲振宇智能科技有限责任公司 一种服务器数据备份与恢复系统及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866389A (zh) * 2014-02-25 2015-08-26 北京奇虎科技有限公司 基于移动操作系统的数据备份及恢复方法、装置及系统
US20150278024A1 (en) * 2014-04-01 2015-10-01 Commvault Systems, Inc. Bandwidth-conscious systems and methods for providing information management system services
CN105138422A (zh) * 2015-08-10 2015-12-09 联想(北京)有限公司 控制方法及电子设备
CN105677517A (zh) * 2016-02-25 2016-06-15 努比亚技术有限公司 数据备份装置、终端及方法
CN106502834A (zh) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 数据的备份方法、装置及系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100703164B1 (ko) * 2005-07-12 2007-04-06 삼성전자주식회사 데이터 처리장치 및 그 제어방법
US20080250083A1 (en) * 2007-04-03 2008-10-09 International Business Machines Corporation Method and system of providing a backup configuration program
CN101764880B (zh) 2009-12-21 2012-05-30 宇龙计算机通信科技(深圳)有限公司 一种信息备份方法及终端
JP2011237950A (ja) 2010-05-07 2011-11-24 Fujitsu Ltd 情報処理装置、バックアップサーバ、バックアッププログラム、バックアップ方法及びバックアップシステム
KR20130136184A (ko) * 2012-06-04 2013-12-12 삼성전자주식회사 컨텐츠 백업을 위한 방법 및 그 전자 장치
CN102750205B (zh) * 2012-06-12 2015-09-30 宇龙计算机通信科技(深圳)有限公司 移动终端的数据备份方法及移动终端
US20140068212A1 (en) * 2012-09-04 2014-03-06 Microsoft Corporation Device backups and updates in view of data usage statistics
CN103401904A (zh) * 2013-07-19 2013-11-20 蓝盾信息安全技术股份有限公司 一种备份移动终端数据的方法
US9898372B2 (en) 2013-09-18 2018-02-20 International Business Machines Corporation Backing up a computer application
CN105868054A (zh) * 2016-03-28 2016-08-17 上海上讯信息技术股份有限公司 一种在双机系统环境下备份数据的方法与设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866389A (zh) * 2014-02-25 2015-08-26 北京奇虎科技有限公司 基于移动操作系统的数据备份及恢复方法、装置及系统
US20150278024A1 (en) * 2014-04-01 2015-10-01 Commvault Systems, Inc. Bandwidth-conscious systems and methods for providing information management system services
CN105138422A (zh) * 2015-08-10 2015-12-09 联想(北京)有限公司 控制方法及电子设备
CN105677517A (zh) * 2016-02-25 2016-06-15 努比亚技术有限公司 数据备份装置、终端及方法
CN106502834A (zh) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 数据的备份方法、装置及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3531290A4

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363735A (zh) * 2020-11-10 2021-02-12 深圳Tcl新技术有限公司 配网软件下载方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN106502834A (zh) 2017-03-15
EP3531290A1 (en) 2019-08-28
US10956280B2 (en) 2021-03-23
CN106502834B (zh) 2019-10-25
US20190317864A1 (en) 2019-10-17
EP3531290B1 (en) 2020-10-07
EP3531290A4 (en) 2019-10-02

Similar Documents

Publication Publication Date Title
WO2018076818A1 (zh) 数据的备份方法、装置、电子设备、存储介质及系统
WO2018076866A1 (zh) 数据处理方法、装置、存储介质、电子设备及服务器
WO2015180013A1 (zh) 一种终端的触摸操作方法及装置
WO2018161578A1 (zh) 动态调节屏幕刷新率的方法、装置、存储介质及电子设备
WO2018076819A1 (zh) 数据的上传方法、装置、存储介质、电子设备及系统
WO2018076864A1 (zh) 一种数据同步方法、装置、存储介质及电子设备
WO2016060514A1 (en) Method for sharing screen between devices and device using the same
WO2018129977A1 (zh) 一种充电控制方法、装置、存储介质和计算机设备
WO2018076830A1 (zh) 数据同步周期的调整方法、装置、电子设备、存储介质及系统
WO2017142293A1 (en) Electronic device and method of application data display therefor
WO2017142373A1 (en) Method of controlling the sharing of videos and electronic device adapted thereto
WO2018090823A1 (zh) 一种系统分区关键数据的保护方法及系统、终端
WO2018129972A1 (zh) 充电处理方法、装置、存储介质及电子设备
WO2018076888A1 (zh) 移动终端数据的同步方法、装置及系统、存储介质及移动终端
WO2018076889A1 (zh) 数据备份的方法、装置、系统、存储介质及服务器
WO2018076812A1 (zh) 数据请求的响应方法、装置、存储介质、服务器及系统
WO2018161602A1 (zh) 电子设备帧率的控制方法、装置、存储介质及电子设备
WO2021025401A1 (en) Electronic device for reducing power consumption and operating method thereof
WO2017071330A1 (zh) 数据的加密和解密方法及加密和解密装置
WO2018166199A1 (zh) 定位精度等级调整方法、装置、存储介质及电子设备
WO2018129973A1 (zh) 供电控制方法、装置、存储介质和电子设备
WO2017071324A1 (zh) 传输文件的加密和解密方法及加密和解密装置
WO2014092389A1 (en) Application execution method and apparatus
WO2020027562A1 (en) Electronic apparatus for controlling display of virtual input interface in environment of a plurality of output screens and operating method thereof
WO2017071326A1 (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: 17865447

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017865447

Country of ref document: EP

Effective date: 20190520