WO2018076889A1 - Data backup method, device, system, storage medium and server - Google Patents

Data backup method, device, system, storage medium and server Download PDF

Info

Publication number
WO2018076889A1
WO2018076889A1 PCT/CN2017/096306 CN2017096306W WO2018076889A1 WO 2018076889 A1 WO2018076889 A1 WO 2018076889A1 CN 2017096306 W CN2017096306 W CN 2017096306W WO 2018076889 A1 WO2018076889 A1 WO 2018076889A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
backed
backup
terminal
determining
Prior art date
Application number
PCT/CN2017/096306
Other languages
French (fr)
Chinese (zh)
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 WO2018076889A1 publication Critical patent/WO2018076889A1/en

Links

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
    • G06F11/1448Management of the data involved in backup or backup restore
    • 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
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

Definitions

  • the present invention relates to the field of communications, and in particular, to a data backup method, apparatus, system, storage medium, and server.
  • Cloud backup is an emerging cloud computing service.
  • Cloud backup service providers bring together massive and heterogeneous storage devices in the network through virtualization, distributed processing and broadband networks to provide data storage backups. service. Users can centrally store and secure large numbers and scattered files or folders on the terminal through mobile Internet and broadband Internet access.
  • the cloud backup uploads the data in a terminal to the cloud server to back up the data to the cloud server.
  • the embodiment of the invention provides a method, a device, a system, a storage medium and a server for data backup, which can improve the efficiency of uploading and backuping.
  • an embodiment of the present invention provides a data backup method, including:
  • the embodiment of the present invention further provides an apparatus for backing up data, including:
  • An acquiring unit configured to acquire a transmission parameter of a current environment when receiving a data backup request, where the data backup request carries multiple data to be backed up;
  • a first determining unit configured to determine, according to the data backup request, a data volume size of each data to be backed up
  • a second determining unit configured to determine a backup order of each data to be backed up based on the transmission parameter and a data volume size of each data to be backed up;
  • a backup unit configured to perform backup operations on the plurality of data to be backed up according to the backup order.
  • the embodiment of the present invention further provides a system for data backup, including a cloud server and a terminal, where the cloud server includes a device for data backup;
  • the terminal is configured to send a data backup request to the cloud server
  • the device for backing up the data includes:
  • An acquiring unit configured to acquire a transmission parameter of a current environment when the data backup request is received, where the data backup request carries multiple data to be backed up;
  • a first determining unit configured to determine, according to the data backup request, a data volume size of each data to be backed up
  • a second determining unit configured to determine a backup order of each data to be backed up based on the transmission parameter and a data volume size of each data to be backed up;
  • a backup unit configured to perform backup operations on the plurality of data to be backed up according to the backup order.
  • an embodiment of the present invention further provides a storage medium having a plurality of instructions stored therein, the instructions being adapted to be loaded by a processor to perform the steps of the method of data backup as described above.
  • an embodiment of the present invention further provides a server, including a processor and a memory, where the memory is used to store instructions and data, and the processor is configured to perform the following steps:
  • the embodiment of the invention provides a method, a device, a system, a storage medium and a server for data backup, which can improve the efficiency of uploading and backuping.
  • FIG. 1 is a schematic flowchart of a method for backing up data provided by an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a scenario of a system for data backup provided by an embodiment of the present invention.
  • FIG. 3 is another schematic flowchart of a method for backing up data according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for data backup according to an embodiment of the present invention.
  • FIG. 5 is another schematic structural diagram of an apparatus for data backup according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the principles of the present invention operate using many other general purpose or special purpose computing, communication environments, or configurations.
  • Examples of well-known computing systems, environments, and configurations suitable for use with the present invention may include, but are not limited to, hand-held phones, personal computers, servers, multi-processor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment, including any of the above systems or devices.
  • the terminal needs to upload data to the cloud server, if the current environment of the terminal is not stable (such as the slow rate of the network used), it is easy to cause the terminal to upload the backup inefficiently.
  • the embodiments of the present invention can be overcome by the following implementation manners.
  • a method of data backup comprising the following steps:
  • the transmission parameter includes a current power value of the terminal
  • a backup sequence of each data to be backed up including:
  • the backup order of each data to be backed up is determined in combination with the range of the receivable data amount and the amount of data of each data to be backed up.
  • the determining the backup order of the data to be backed up includes:
  • the method further includes:
  • Determining, according to the current power value of the terminal, the range of the receivable data amount corresponding to the terminal including: when acquiring the current power value of the terminal, calling the correspondence relationship table to read the currently receivable data amount range of the terminal.
  • the transmission parameter includes a network rate of a current network
  • a backup sequence of each data to be backed up including:
  • the backup order of the data to be backed up is determined according to the data size of each data to be backed up.
  • the determining the backup order of each data to be backed up according to the amount of data of each data to be backed up includes:
  • the backup order of each data to be backed up is determined according to the order of the amount of data to be backed up from small to large.
  • the data backup request carries a data size of each data to be backed up.
  • the cloud server When the cloud server performs the data backup request, the cloud server first acquires the transmission parameters of the current environment, and determines the data size of each data to be backed up according to the data backup request, and then based on the transmission parameters and the data to be backed up.
  • the amount of data is determined by the backup order of the data to be backed up, and the backup data is backed up according to the backup order. That is, according to the transmission parameters of the current environment and the amount of data of each data to be backed up, the processing priority of the data to be backed up is set to prevent the cloud server from processing a large number of data backup requests when the environment is unstable, reducing the load on the cloud server, and effectively improving the terminal.
  • the response speed of the data improves the efficiency of the terminal uploading backup.
  • the device for backing up the data may be integrated into a network device such as a server or a gateway, such as a cloud server or the like.
  • FIG. 1 is a schematic flowchart diagram of a data backup method according to an embodiment of the present invention. The method includes:
  • step S101 when a data backup request is received, the transmission parameter of the current environment is acquired, and the data backup request carries multiple data to be backed up.
  • a terminal such as a mobile phone
  • an input interface such as a terminal application APP (Application) or an input control for data backup
  • the user may trigger the input interface by clicking, touching, sliding, etc. to input data to the terminal.
  • the request is backed up, and the data backup request is sent by the terminal to the cloud server.
  • the data to be backed up may be sent by the multiple terminals to the cloud server, or may be sent by the terminal to the cloud server, which is not specifically limited herein.
  • the data to be backed up in this embodiment may specifically include terminal data such as short message data, chat record data, call record data, and image data, which are not specifically limited herein.
  • step S102 according to the data backup request, the data size of each data to be backed up is determined.
  • the data backup request sent by the terminal to the cloud server carries the amount of data of each data to be backed up, so that when the cloud server reads the data backup request, the amount of data of each data to be backed up can be determined, such as “ Data to be backed up A, 300b (bytes), "data to be backed up B, 300 Mb (megabytes)", and so on.
  • step S103 based on the transmission parameters and the amount of data of each data to be backed up, the backup order of each data to be backed up is determined.
  • the transmission parameter in this embodiment refers to a parameter that affects data transmission in the current environment, such as the current power value of the terminal. Because the current power value of the terminal is low, and the data to be backed up is large, the data is easily caused. The transmission is interrupted and the data backup fails, so the current power value of the terminal can be considered as the transmission parameter.
  • the network rate of the current network may be considered as a transmission parameter because the network transmission rate is long or the transmission is unsuccessful when the network rate is low.
  • the transmission parameter may include the current power value of the terminal, and “determining the backup order of the data to be backed up based on the transmission parameter and the data volume of each data to be backed up”, which may specifically include:
  • the cloud server can store the correspondence between the terminal power value and the range of data receivable by the terminal in advance.
  • the corresponding relationship table can be called to read the current correspondence of the terminal.
  • the range of receivable data can be combined to determine the backup order of each data to be backed up in combination with the range of receivable data and the amount of data of each data to be backed up.
  • determining the backup order of each data to be backed up may include:
  • the data to be backed whose data size matches the data is selected from the data to be backed up.
  • the data to be backed up is selected from the plurality of data to be backed up, and the data to be backed up is matched with the data to be backed up according to the data size, and the priority is determined according to the principle that the data to be backed up is matched.
  • the backup order of each data to be backed up is selected from the plurality of data to be backed up, and the data to be backed up is matched with the data to be backed up according to the data size, and the priority is determined according to the principle that the data to be backed up is matched.
  • the data to be backed up within a certain range or closest to the range of the receivable data amount is selected, for example, the data to be backed up with the data volume of 450-550 Mb is It can be considered as the data to be backed up that matches the range of the receivable data amount, and the part of the data to be backed up is preferentially processed.
  • the transmission parameter may include a network rate of the current network, and “determining a backup order of the data to be backed up based on the transmission parameter and the data volume size of each data to be backed up”, which may specifically include:
  • the backup order of the data to be backed up is determined according to the data size of each data to be backed up.
  • the determining the backup order of the data to be backed up according to the size of the data to be backed up may include: determining the data to be backed up according to the size of the data to be backed up from small to large. Backup order.
  • the terminal can first upload the data to be backed up with a small amount of data for backup, and then upload the data to be backed up with a large amount of data for backup.
  • the embodiment of the present invention is described by taking the current power value of the terminal and the network rate of the current network as an example.
  • the transmission parameter may also include, for example, terminal capacity size, terminal performance, and the like. The examples herein are not intended to limit the invention.
  • step S104 a plurality of backup data to be backed up is performed in accordance with the backup order.
  • the backup data may be backed up according to the backup order of the data to be backed up, and the data to be backed up may be backed up according to the data to be backed up, and the data volume is large.
  • the data backup method when the cloud server performs the data backup request, first acquires the transmission parameter of the current environment, and determines the data size of each data to be backed up according to the data backup request, and then The backup order of the data to be backed up is determined based on the transmission parameters and the amount of data of each data to be backed up, and the backup data is backed up according to the backup order. That is, according to the transmission parameters of the current environment and the amount of data of each data to be backed up, the processing priority of the data to be backed up is set to prevent the cloud server from processing a large number of data backup requests when the environment is unstable, reducing the load on the cloud server, and effectively improving the terminal. The response speed of the data improves the efficiency of the terminal uploading backup.
  • the system for backing up the data mainly includes a device for backing up data and a terminal, wherein the device for backing up the data may be integrated into a network such as a server or a gateway.
  • the terminal may be specifically a terminal such as a desktop computer, a tablet computer, or a mobile phone, and the cloud server and the terminal may be connected through a wireless network.
  • FIG. 2 is a schematic diagram of a system for backing up a data according to an embodiment of the present invention.
  • the device for backing up data is specifically integrated in a cloud server, and is mainly used when receiving a data backup request sent by the terminal.
  • the cloud server can also feed back the backup order and the backup operation result to the terminal for the user to consult.
  • the data backup system may further include a terminal, such as a mobile phone, where the terminal is configured to receive a data backup request input by the user by clicking, touching, sliding, etc., and send the data backup request to the cloud server.
  • the data backup should carry multiple data to be backed up, such as multiple data to be backed up that can be sent by multiple terminals, or multiple data to be backed up by one terminal, etc.; or, receive the waiting for the cloud server to return. Backup order of backup data and backup operation results, and so on.
  • FIG. 3 is a schematic flowchart diagram of a method for backing up data according to an embodiment of the present invention. The method includes:
  • step S201 the terminal sends a data backup request to the cloud server.
  • the data backup request carries multiple data to be backed up and data size of each data to be backed up, and multiple data to be backed up are determined by the user, and may include address book data, short message data, audio data, video data, and the like. Wait.
  • the cloud server After receiving the data backup request, the cloud server obtains the transmission parameters of the current environment, and manages the data backup process according to the transmission parameter to complete the backup operation.
  • the transmission parameter in this embodiment refers to a parameter that the current environment has an influence on data transmission.
  • the transmission parameter is a network rate of the current network
  • the step of the cloud server performing the synchronization operation according to the network rate of the current network may be specifically as follows:
  • step S202 the cloud server acquires the network rate of the current network.
  • step S203 when the cloud server determines that the network rate is lower than the preset threshold, the backup order of the data to be backed up is determined according to the order of the data size of each data to be backed up.
  • step S204 the cloud server backs up the data to be backed up according to the data to be backed up, backs up the backup data after the data to be backed up, and performs backup operations on the plurality of data to be backed up.
  • the terminal can first upload the data to be backed up with a small amount of data, and then upload the data to be backed up with a large amount of data.
  • the cloud server can back up the data to be backed up according to the smaller amount of data, and back up the data to be backed up with a larger amount of data. Backup order, backup operations on multiple data to be backed up.
  • data to be backed up there are three copies of data to be backed up, such as “data to be backed up A, 300b (bytes)", “data to be backed up B, 300Mb (megabytes)", “data to be backed up C, 300Kb (kilobytes)", current
  • the cloud server first backs up the backup data A, and then backs up the backup data C, and finally backs up the backup data B.
  • the transmission parameter is a current power value of the terminal
  • the step of the cloud server performing the synchronization operation according to the current power value of the terminal may be specifically as follows:
  • step S205 the cloud server acquires a current range of receivable data amount of the terminal.
  • step S206 the cloud server selects data to be backed up that matches the data size according to the current range of receivable data of the terminal.
  • step S207 the cloud server performs a backup operation on the plurality of data to be backed up according to the backup order in which the data to be backed is matched in priority.
  • the terminal obtains the current power value of the terminal, and then determines the current range of data receivable by the terminal according to the current power value of the terminal, that is, the maximum amount of data that can be received before the terminal is automatically shut down, and sends the data.
  • the cloud server determines the current range of data receivable by the terminal according to the current power value of the terminal, that is, the maximum amount of data that can be received before the terminal is automatically shut down, and sends the data.
  • the cloud server may store the correspondence between the terminal power value and the range of data receivable by the terminal in advance.
  • the corresponding relationship table may be invoked to read the current corresponding receivable of the terminal. The amount of data.
  • the data to be backed up is selected from the plurality of data to be backed up, and the data size is matched with the current data receivable range of the terminal, and the priority is processed according to the data to be backed up.
  • the backup order of each data to be backed up is selected from the plurality of data to be backed up, and the data size is matched with the current data receivable range of the terminal, and the priority is processed according to the data to be backed up.
  • the data to be backed up there are three data to be backed up, such as “data to be backed up A, 300b (bytes)", “data to be backed up B, 300Mb (megabytes)", “data to be backed up C, 300Kb (kilobytes)”;
  • the data to be backed up within a certain range or closest to the range of the receivable data is selected, for example, the data to be backed up with a data size of 300 Mb can be considered as
  • the data to be backed up is matched with the range of the receivable data amount, and the backup data B is preferentially processed, and then the backup data C is backed up, and finally the backup data A is backed up.
  • the transmission parameter may also be a combination of one or more of a terminal capacity size, a terminal performance, a current power value of the terminal, or a network rate of the current network, and the like.
  • the embodiment of the present invention is described by taking the transmission parameter as the current power value of the terminal or the network rate of the current network as an example. The example herein does not constitute a limitation of the present invention.
  • the cloud server when the cloud server performs the data backup request, first acquires the transmission parameter of the current environment, and determines the data size of each data to be backed up according to the data backup request, and then Determining the backup order of each data to be backed up based on the transmission parameters (such as the current power value of the terminal or the network rate of the current network) and the amount of data of each data to be backed up, and performing backup operations on the plurality of data to be backed up according to the backup order.
  • the transmission parameters such as the current power value of the terminal or the network rate of the current network
  • the processing priority of the data to be backed up is set to prevent the cloud server from processing a large amount of time when the environment is unstable, such as when the terminal power value is low and the network speed is low.
  • the data backup request reduces the load on the cloud server, effectively improves the response speed to the terminal data, and improves the efficiency of the terminal uploading and backup.
  • FIG. 4 is a schematic structural diagram of an apparatus for backing up data according to an embodiment of the present invention.
  • the apparatus 300 for backing up data may include an obtaining unit 301, a first determining unit 302, a second determining unit 303, and a backup unit 304.
  • the obtaining unit 301 is configured to acquire a transmission parameter of the current environment when receiving the data backup request, where the data backup request carries multiple data to be backed up.
  • the terminal (such as a mobile phone) may be preset with an input interface, such as a terminal application APP or an input control for data backup, and the user may trigger the input interface by clicking, touching, sliding, etc., to input a data backup request to the terminal. And the terminal sends the data backup request to the cloud server.
  • an input interface such as a terminal application APP or an input control for data backup
  • the user may trigger the input interface by clicking, touching, sliding, etc., to input a data backup request to the terminal.
  • the terminal sends the data backup request to the cloud server.
  • the data to be backed up may be sent by the multiple terminals to the cloud server, or may be sent by the terminal to the cloud server, which is not specifically limited herein.
  • the data to be backed up in this embodiment may specifically include terminal data such as short message data, chat record data, call record data, and image data, which are not specifically limited herein.
  • the first determining unit 302 is configured to determine, according to the data backup request, a data size of each data to be backed up.
  • the data backup request sent by the terminal to the cloud server carries the data size of each data to be backed up, so that when the cloud server reads the data backup request, it can determine the data size of each data to be backed up, such as "Data to be backed up A, 300b (bytes)", “data to be backed up B, 300 Mb (megabytes)", and so on.
  • the second determining unit 303 is configured to determine a backup order of each data to be backed up based on the transmission parameter and a data volume size of each data to be backed up.
  • the transmission parameter in this embodiment refers to a parameter that affects data transmission in the current environment, such as the current power value of the terminal. Because the current power value of the terminal is low, and the data to be backed up is large, the data is easily caused. The transmission is interrupted and the data backup fails, so the current power value of the terminal can be considered as the transmission parameter.
  • the network rate of the current network may be considered as a transmission parameter because the network transmission rate is long or the transmission is unsuccessful when the network rate is low.
  • the backup unit 304 is configured to perform backup operations on the plurality of data to be backed up according to the backup order.
  • FIG. 5 is another schematic structural diagram of an apparatus for backing up data according to an embodiment of the present invention.
  • the transmission parameter includes the current power value of the terminal
  • the second determining unit 303 in the data backup device 400 may specifically include:
  • the first determining subunit 3031 is configured to determine, according to the current power value of the terminal, a range of receivable data amounts corresponding to the terminal.
  • the second determining subunit 3032 is configured to determine a backup order of each data to be backed up in combination with the range of the receivable data amount and the data volume size of each data to be backed up.
  • the cloud server can store the correspondence between the terminal power value and the range of data receivable by the terminal in advance.
  • the corresponding relationship table can be called to read the current correspondence of the terminal.
  • the range of receivable data can be combined to determine the backup order of each data to be backed up in combination with the range of receivable data and the amount of data of each data to be backed up.
  • the second determining subunit 3032 can be specifically configured to:
  • data to be backed up matching the data volume size is selected from the data to be backed up; and the data to be backed up matching the selected data volume size is preferentially processed to determine each data to be backed up. Backup order.
  • the data to be backed up is selected from the plurality of data to be backed up, and the data size is matched with the current data receivable range of the terminal, and the priority is determined according to the principle that the data to be backed up is matched.
  • the backup order of each data to be backed up is selected from the plurality of data to be backed up, and the data size is matched with the current data receivable range of the terminal, and the priority is determined according to the principle that the data to be backed up is matched.
  • the data to be backed up within a certain range is selected.
  • the data to be backed up with a data size of 450-550 Mb can be considered as the range of the receivable data.
  • the transmission parameter may include a network rate of the current network
  • the second determining unit 303 may specifically include:
  • the determining sub-unit 3033 is configured to determine whether the network rate of the current network is lower than a preset threshold.
  • the third determining sub-unit 3034 is configured to determine, according to the data size of each data to be backed up, a backup order of the data to be backed up, if it is determined that the network rate of the current network is lower than a preset threshold.
  • the terminal can first upload the data to be backed up with a small amount of data for backup, and then upload the data to be backed up with a large amount of data for backup.
  • the embodiment of the present invention is described by taking the current power value of the terminal and the network rate of the current network as an example.
  • the transmission parameter may also include, for example, terminal capacity size, terminal performance, and the like. The examples herein are not intended to limit the invention.
  • the backup unit 304 may perform backup operations on multiple data to be backed up according to the backup order in which the data to be backed up is matched, and may back up the data to be backed up according to the data amount.
  • the foregoing units 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 method embodiments and details are not described herein.
  • the device for backing up the data may be integrated into a network device such as a server or a gateway, such as a cloud server.
  • the data backup device first acquires the transmission parameters of the current environment when the cloud server performs the data backup request, and determines the data size of each data to be backed up according to the data backup request, and then The backup order of the data to be backed up is determined based on the transmission parameters and the amount of data of each data to be backed up, and the backup data is backed up according to the backup order. That is, according to the transmission parameters of the current environment and the amount of data of each data to be backed up, the processing priority of the data to be backed up is set to prevent the cloud server from processing a large number of data backup requests when the environment is unstable, reducing the load on the cloud server, and effectively improving the terminal. The response speed of the data improves the efficiency of the terminal uploading backup.
  • the embodiment of the present invention further provides a data backup system, which can refer to the data backup system shown in FIG. 2, including a cloud server and a terminal, wherein the cloud server can include any data backup device provided by the above embodiments. .
  • the cloud server is configured to obtain a transmission parameter of the current environment when receiving a data backup request sent by the terminal, where the data backup request carries multiple data to be backed up, where the current environment transmission parameter includes the current power value of the terminal. Or the network rate of the current network, and the like; and, according to the data backup request, determining the amount of data of each data to be backed up; and determining the data to be backed up based on the transmission parameter and the amount of data of each data to be backed up
  • the backup sequence in the end, performs backup operations on the plurality of data to be backed up according to the backup order; in addition, the cloud server can also feed back the backup order and the backup operation result to the terminal for the user to consult.
  • the transmission parameter may include a current power value of the terminal
  • the cloud server may determine, according to the current power value of the terminal, a range of receivable data corresponding to the terminal; combining the receivable data volume range and each to be backed up. The amount of data in the data determines the backup order of each data to be backed up.
  • the cloud server may select data to be backed up from the data to be backed up according to the range of receivable data, and control the data to be backed up with the matching data size to be prioritized. Determine the backup order of each data to be backed up.
  • the transmission parameter may include a network rate of the current network
  • the cloud server may determine whether the network rate of the current network is lower than a preset threshold; if it is determined that the network rate of the current network is lower than a preset threshold, The amount of data of each data to be backed up determines the backup order of each data to be backed up.
  • the cloud server can determine the backup order of each data to be backed up according to the order of the data size of each data to be backed up.
  • the data backup system may further include a terminal, such as a mobile phone, where the terminal is configured to receive a data backup request input by the user by clicking, touching, sliding, etc., and send the data backup request to the cloud server.
  • the data backup should carry multiple data to be backed up, such as multiple data to be backed up that can be sent by multiple terminals, or multiple data to be backed up by one terminal, etc.; or, receive the waiting for the cloud server to return. Backup order of backup data and backup operation results, and so on.
  • the embodiment of the invention further provides a storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by the processor to perform the steps in the data backup method described in any of the above embodiments.
  • the embodiment of the present invention further provides a server 600, wherein any of the data backup devices provided in the above embodiments may be integrated.
  • a server 600 Referring to FIG. 6, a schematic structural diagram of a server 600 according to an embodiment of the present invention is shown. speak:
  • the server 600 can include one or more processor 601 processing cores, a memory 602 of one or more computer readable storage media, a communication unit 603, a power source 604, an input unit 605, and a display unit 606. It will be understood by those skilled in the art that the server structure illustrated in FIG. 6 does not constitute a limitation to the server, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
  • Processor 601 is the control center of the server, connecting various portions of the server with various interfaces and lines, by running or executing software programs and/or modules stored in memory 602, and recalling data stored in memory 602, Execute the server's various functions and process data to monitor the server as a whole.
  • the processor 601 may include one or more processing cores; in one embodiment, the processor 601 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 601.
  • the memory 602 can be used to store software programs and modules, and the processor 601 executes various functional applications and data processing by running software programs and modules stored in the memory 602.
  • the communication unit 603 can be used for receiving and transmitting signals during the transmission and reception of information.
  • the communication unit 603 receives the signal transmitted by the terminal and passes the signal to one or more processors 601 for processing; meanwhile, the communication unit 603 processes the processor.
  • the feedback signal sent by 601 is sent to the terminal.
  • the server also includes a power source 604 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 601 through a power management system to manage charging, discharging, and power management through the power management system.
  • the power supply 604 can 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 server can also include an input unit 605 that can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • an input unit 605 can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • the server can also include a display unit 606 that can be used to display information entered by the user or information provided to the user and various graphical user interfaces of the server, which can be represented by graphics, text, icons, video, and It is composed of any combination.
  • the display unit 606 can include a display panel, and optionally, a liquid crystal display can be used. (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting) Diode) and other forms to configure the display panel.
  • LCD Liquid Crystal Display
  • OLED Organic Light Emitting Diode
  • the processor 601 in the server loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and is executed by the processor 601 to be stored in the memory.
  • the application in 602 thus implementing various functions, as follows:
  • the data backup request carries a plurality of data to be backed up; determining, according to the data backup request, a data size of each data to be backed up; based on the transmission parameter and The data size of each data to be backed up determines the backup order of the data to be backed up; and performs backup operations on the plurality of data to be backed up according to the backup order.
  • the transmission parameter includes a current power value of the terminal
  • the processor 601 further runs an application stored in the memory 602, as follows: determining, according to the current power value of the terminal, a range of receivable data corresponding to the terminal; The range of received data and the amount of data of each data to be backed up are determined, and the backup order of each data to be backed up is determined.
  • the processor 601 further runs an application stored in the memory 602, as follows: according to the range of the receivable data amount, selecting data to be backed up that matches the data size from the data to be backed up; Controlling the data to be backed up matching the selected data volume to be prioritized to determine the backup order of each data to be backed up.
  • the transmission parameter includes a network rate of the current network
  • the processor 601 further runs an application stored in the memory 602, as follows: determining whether the network rate of the current network is lower than a preset threshold; and determining the network of the current network. If the rate is lower than the preset threshold, the backup order of the data to be backed up is determined according to the data size of each data to be backed up.
  • the processor 601 also runs an application stored in the memory 602, as follows: The backup order of each data to be backed up is determined in descending order of the amount of data of each data to be backed up.
  • the device for backing up the data provided by the embodiment of the present invention, such as a computer, a tablet computer, a mobile phone with a touch function, etc., the device for backing up the data belongs to the same concept as the method for backing up the data in the above embodiment, The method for backing up the data may be performed on the device for backing up the data.
  • the method for backing up the data may be performed on the device for backing up the data.
  • the specific implementation process refer to the method embodiment of the data backup, which is not described here.
  • the computer program can be stored in a computer readable storage medium, such as in a memory of the terminal, and executed by at least one processor in the terminal, and can include, for example, the data backup during execution.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read) Only Memory), random access memory (RAM, Random Access Memory), etc.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Landscapes

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

Abstract

Provided are a data backup method, a device, a system, a storage medium and a server. The method comprises: when a data backup request is received, acquiring a transmission parameter of current environment, the data backup request carrying a plurality of to-be-backed-up data (S101); according to the data backup request, determining a data size of each to-be-backed-up data (S102); on the basis of the transmission parameter and the size of each to-be-backed-up data, determining a backup order of each to-be-backed-up data (S103); and processing a backup operation on the plurality of to-be-backed-up data according to the backup order (S104). Therefore, it is possible to improve the efficiency of backup uploading of a terminal.

Description

数据备份的方法、装置、系统、存储介质及服务器 Data backup method, device, system, storage medium and server
本申请要求于2016年10月25日提交中国专利局、申请号为201610949116.9、发明名称为“一种数据备份的方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610949116.9, entitled "A Method, Apparatus and System for Data Backup", which is filed on October 25, 2016, the entire contents of which is incorporated by reference. In this application.
技术领域Technical field
本发明涉及通信领域,特别是涉及一种数据备份的方法、装置、系统、存储介质及服务器。The present invention relates to the field of communications, and in particular, to a data backup method, apparatus, system, storage medium, and server.
背景技术Background technique
云备份是一种新兴的云计算业务,云备份服务提供商通过虚拟化、分布式处理和宽带网络等技术,将网络中海量、异构的存储设备集合起来协同工作,共同对外提供数据存储备份服务。用户可以通过移动互联网和宽带互联网接入,实现对终端上大量和分散的文件或文件夹的集中存储、安全保管。其中,云备份是将某个终端中的数据上传至云端服务器,以将数据备份至云端服务器。Cloud backup is an emerging cloud computing service. Cloud backup service providers bring together massive and heterogeneous storage devices in the network through virtualization, distributed processing and broadband networks to provide data storage backups. service. Users can centrally store and secure large numbers and scattered files or folders on the terminal through mobile Internet and broadband Internet access. The cloud backup uploads the data in a terminal to the cloud server to back up the data to the cloud server.
技术问题technical problem
本发明实施例提供一种数据备份的方法、装置、系统、存储介质及服务器,可以提高上传备份的效率。The embodiment of the invention provides a method, a device, a system, a storage medium and a server for data backup, which can improve the efficiency of uploading and backuping.
技术解决方案Technical solution
本发明实施例提供以下技术方案:The embodiments of the present invention provide the following technical solutions:
第一方面,本发明实施例提供了一种数据备份的方法,其中包括:In a first aspect, an embodiment of the present invention provides a data backup method, including:
当接收到数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;Obtaining a transmission parameter of the current environment when the data backup request is received, where the data backup request carries multiple data to be backed up;
根据所述数据备份请求,确定各待备份数据的数据量大小;Determining, according to the data backup request, a data volume size of each data to be backed up;
基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;Determining a backup order of each data to be backed up based on the transmission parameter and the amount of data of each data to be backed up;
按照所述备份次序对多个待备份数据进行备份操作。Performing backup operations on a plurality of data to be backed up according to the backup order.
第二方面,本发明实施例还提供了一种数据备份的装置,其中包括:In a second aspect, the embodiment of the present invention further provides an apparatus for backing up data, including:
获取单元,用于当接收到数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;An acquiring unit, configured to acquire a transmission parameter of a current environment when receiving a data backup request, where the data backup request carries multiple data to be backed up;
第一确定单元,用于根据所述数据备份请求,确定各待备份数据的数据量大小;a first determining unit, configured to determine, according to the data backup request, a data volume size of each data to be backed up;
第二确定单元,用于基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;a second determining unit, configured to determine a backup order of each data to be backed up based on the transmission parameter and a data volume size of each data to be backed up;
备份单元,用于按照所述备份次序对多个待备份数据进行备份操作。And a backup unit, configured to perform backup operations on the plurality of data to be backed up according to the backup order.
第三方面,本发明实施例还提供了一种数据备份的系统,包括云端服务器以及终端,其中所述云端服务器包括数据备份的装置;In a third aspect, the embodiment of the present invention further provides a system for data backup, including a cloud server and a terminal, where the cloud server includes a device for data backup;
所述终端用于,向所述云端服务器发送数据备份请求;The terminal is configured to send a data backup request to the cloud server;
所述数据备份的装置包括:The device for backing up the data includes:
获取单元,用于当接收到所述数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;An acquiring unit, configured to acquire a transmission parameter of a current environment when the data backup request is received, where the data backup request carries multiple data to be backed up;
第一确定单元,用于根据所述数据备份请求,确定各待备份数据的数据量大小;a first determining unit, configured to determine, according to the data backup request, a data volume size of each data to be backed up;
第二确定单元,用于基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;a second determining unit, configured to determine a backup order of each data to be backed up based on the transmission parameter and a data volume size of each data to be backed up;
备份单元,用于按照所述备份次序对多个待备份数据进行备份操作。And a backup unit, configured to perform backup operations on the plurality of data to be backed up according to the backup order.
第四方面,本发明实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如上面所述的数据备份的方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a storage medium having a plurality of instructions stored therein, the instructions being adapted to be loaded by a processor to perform the steps of the method of data backup as described above.
第五方面,本发明实施例还提供了一种服务器,包括处理器和存储器,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:In a fifth aspect, an embodiment of the present invention further provides a server, including a processor and a memory, where the memory is used to store instructions and data, and the processor is configured to perform the following steps:
当接收到数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;Obtaining a transmission parameter of the current environment when the data backup request is received, where the data backup request carries multiple data to be backed up;
根据所述数据备份请求,确定各待备份数据的数据量大小;Determining, according to the data backup request, a data volume size of each data to be backed up;
基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;Determining a backup order of each data to be backed up based on the transmission parameter and the amount of data of each data to be backed up;
按照所述备份次序对多个待备份数据进行备份操作。Performing backup operations on a plurality of data to be backed up according to the backup order.
有益效果 Beneficial effect
本发明实施例提供一种数据备份的方法、装置、系统、存储介质及服务器,可以提高上传备份的效率。The embodiment of the invention provides a method, a device, a system, a storage medium and a server for data backup, which can improve the efficiency of uploading and backuping.
附图说明DRAWINGS
下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。The technical solutions and other advantageous effects of the present invention will be apparent from the following detailed description of embodiments of the invention.
图1是本发明实施例提供的数据备份的方法的流程示意图。1 is a schematic flowchart of a method for backing up data provided by an embodiment of the present invention.
图2是本发明实施例提供的数据备份的系统的场景示意图。FIG. 2 is a schematic diagram of a scenario of a system for data backup provided by an embodiment of the present invention.
图3为本发明实施例提供的数据备份的方法的另一流程示意图。FIG. 3 is another schematic flowchart of a method for backing up data according to an embodiment of the present invention.
图4为本发明实施例提供的数据备份的装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for data backup according to an embodiment of the present invention.
图5为本发明实施例提供的数据备份的装置的另一结构示意图。FIG. 5 is another schematic structural diagram of an apparatus for data backup according to an embodiment of the present invention.
图6为本发明实施例提供的服务器的结构示意图。FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals refer to the same components, the principles of the invention are illustrated in the context of a suitable computing environment. The following description is based on the specific embodiments of the invention, which are not to be construed as limiting the invention.
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present invention will be described with reference to the steps and symbols that are executed by one or more computers, unless otherwise stated. Thus, these steps and operations will be referred to several times by a computer, and the computer execution referred to herein includes the operation of a computer processing unit that represents an electronic signal in data in a structured version. This operation converts the data or maintains it at a location in the computer's memory system, which can be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the present invention are described in the above text, which is not intended to be a limitation, and those skilled in the art will appreciate that the various steps and operations described below can also be implemented in hardware.
本发明的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本发明的运算系统、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器系统、微电脑为主的系统、主架构型计算机、及分布式运算环境,其中包括了任何的上述系统或装置。The principles of the present invention operate using many other general purpose or special purpose computing, communication environments, or configurations. Examples of well-known computing systems, environments, and configurations suitable for use with the present invention may include, but are not limited to, hand-held phones, personal computers, servers, multi-processor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment, including any of the above systems or devices.
一般地,当终端需要将数据上传到云端服务器上时,如果终端当前环境不大稳定(如所使用的网络的速率较慢等),那么容易导致终端上传备份的效率低下。本发明实施例可以采用如下的实现方式来克服。Generally, when the terminal needs to upload data to the cloud server, if the current environment of the terminal is not stable (such as the slow rate of the network used), it is easy to cause the terminal to upload the backup inefficiently. The embodiments of the present invention can be overcome by the following implementation manners.
一种数据备份的方法,包括以下步骤:A method of data backup, comprising the following steps:
当接收到数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;Obtaining a transmission parameter of the current environment when the data backup request is received, where the data backup request carries multiple data to be backed up;
根据所述数据备份请求,确定各待备份数据的数据量大小;Determining, according to the data backup request, a data volume size of each data to be backed up;
基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;Determining a backup order of each data to be backed up based on the transmission parameter and the amount of data of each data to be backed up;
按照所述备份次序对多个待备份数据进行备份操作。Performing backup operations on a plurality of data to be backed up according to the backup order.
在一些实施例中,所述传输参数包括终端当前的电量值;In some embodiments, the transmission parameter includes a current power value of the terminal;
所述基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:Determining, according to the transmission parameter and the amount of data of each data to be backed up, a backup sequence of each data to be backed up, including:
根据终端当前的电量值,确定终端对应的可接收数据量范围;Determining, according to the current power value of the terminal, a range of receivable data corresponding to the terminal;
结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。The backup order of each data to be backed up is determined in combination with the range of the receivable data amount and the amount of data of each data to be backed up.
在一些实施例中,所述结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:In some embodiments, the determining the backup order of the data to be backed up, including the range of the receivable data amount and the amount of data of each data to be backed up, includes:
根据所述可接收数据量范围,从所述待备份数据中选取数据量大小相匹配的待备份数据;And selecting, according to the range of the receivable data amount, data to be backed up that matches the data size from the data to be backed up;
控制对选取的数据量大小相匹配的待备份数据进行优先处理,以确定各待备份数据的备份次序。Controlling the data to be backed up matching the selected data volume to be prioritized to determine the backup order of each data to be backed up.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
预先将终端电量值与终端可接收数据量范围的对应关系表进行存储;Pre-storing the correspondence between the terminal power value and the range of data receivable by the terminal;
所述根据终端当前的电量值,确定终端对应的可接收数据量范围,包括:获取到终端当前的电量值时,调用所述对应关系表以读取终端当前对应的可接收数据量范围。Determining, according to the current power value of the terminal, the range of the receivable data amount corresponding to the terminal, including: when acquiring the current power value of the terminal, calling the correspondence relationship table to read the currently receivable data amount range of the terminal.
在一些实施例中,所述传输参数包括当前网络的网络速率;In some embodiments, the transmission parameter includes a network rate of a current network;
所述基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:Determining, according to the transmission parameter and the amount of data of each data to be backed up, a backup sequence of each data to be backed up, including:
判断当前网络的网络速率是否低于预设阈值;Determining whether the network rate of the current network is lower than a preset threshold;
若判断出当前网络的网络速率低于预设阈值,则根据各待备份数据的数据量大小,确定各待备份数据的备份次序。If it is determined that the network rate of the current network is lower than a preset threshold, the backup order of the data to be backed up is determined according to the data size of each data to be backed up.
在一些实施例中,所述根据各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:In some embodiments, the determining the backup order of each data to be backed up according to the amount of data of each data to be backed up includes:
按照各待备份数据的数据量大小从小到大的顺序,确定各待备份数据的备份次序。The backup order of each data to be backed up is determined according to the order of the amount of data to be backed up from small to large.
在一些实施例中,所述数据备份请求中携带有各待备份数据的数据量大小。In some embodiments, the data backup request carries a data size of each data to be backed up.
本发明的实施例,当云端服务器进行数据备份请求时,首先获取当前环境的传输参数,并且,根据该数据备份请求,确定各待备份数据的数据量大小,然后基于传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序,并按照备份次序对多个待备份数据进行备份操作。即根据当前环境的传输参数以及各待备份数据的数据量大小,对待备份数据设置处理优先级,避免云端服务器在环境不稳定的时候处理大量的数据备份请求,降低云端服务器负荷,有效提高对终端数据的响应速度,提升了终端上传备份的效率。When the cloud server performs the data backup request, the cloud server first acquires the transmission parameters of the current environment, and determines the data size of each data to be backed up according to the data backup request, and then based on the transmission parameters and the data to be backed up. The amount of data is determined by the backup order of the data to be backed up, and the backup data is backed up according to the backup order. That is, according to the transmission parameters of the current environment and the amount of data of each data to be backed up, the processing priority of the data to be backed up is set to prevent the cloud server from processing a large number of data backup requests when the environment is unstable, reducing the load on the cloud server, and effectively improving the terminal. The response speed of the data improves the efficiency of the terminal uploading backup.
以下将分别进行详细说明。The details will be described separately below.
在本实施例中,将从数据备份的装置的角度进行描述,该数据备份的装置具体可以集成在服务器或网关等网络设备中,如云端服务器等等。In this embodiment, it will be described from the perspective of a device for backing up data, and the device for backing up the data may be integrated into a network device such as a server or a gateway, such as a cloud server or the like.
请参阅图1,图1是本发明实施例提供的数据备份的方法的流程示意图。所述方法包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart diagram of a data backup method according to an embodiment of the present invention. The method includes:
在步骤S101中,当接收到数据备份请求时,获取当前环境的传输参数,该数据备份请求携带多个待备份数据。In step S101, when a data backup request is received, the transmission parameter of the current environment is acquired, and the data backup request carries multiple data to be backed up.
比如,终端(如手机)可预先设置有输入接口,如用于数据备份的终端应用APP(Application)或者输入控件,用户可通过点击、触摸、滑动等方式触发该输入接口,以向终端输入数据备份请求,且由终端将该数据备份请求发送至云端服务器。For example, a terminal (such as a mobile phone) may be preset with an input interface, such as a terminal application APP (Application) or an input control for data backup, and the user may trigger the input interface by clicking, touching, sliding, etc. to input data to the terminal. The request is backed up, and the data backup request is sent by the terminal to the cloud server.
可以理解的是,该多个待备份数据可以是由多个终端向云端服务器发送的,也可以由一个终端向云端服务器发送,此处不作具体限定。It can be understood that the data to be backed up may be sent by the multiple terminals to the cloud server, or may be sent by the terminal to the cloud server, which is not specifically limited herein.
其中,本实施例中待备份数据可以具体包括短信数据、聊天记录数据、通话记录数据、图像数据等终端数据,此处不作具体限定。The data to be backed up in this embodiment may specifically include terminal data such as short message data, chat record data, call record data, and image data, which are not specifically limited herein.
在步骤S102中,根据该数据备份请求,确定各待备份数据的数据量大小。In step S102, according to the data backup request, the data size of each data to be backed up is determined.
比如,终端向云端服务器发送的数据备份请求中,携带有各待备份数据的数据量大小,从而云端服务器读取该数据备份请求时,即可确定出各待备份数据的数据量大小,如“待备份数据A,300b(字节)”、“待备份数据B,300Mb(兆)”,等等。For example, the data backup request sent by the terminal to the cloud server carries the amount of data of each data to be backed up, so that when the cloud server reads the data backup request, the amount of data of each data to be backed up can be determined, such as “ Data to be backed up A, 300b (bytes), "data to be backed up B, 300 Mb (megabytes)", and so on.
在步骤S103中,基于传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序。In step S103, based on the transmission parameters and the amount of data of each data to be backed up, the backup order of each data to be backed up is determined.
其中,本实施例中传输参数是指当前环境对数据传输有影响的参数,如终端当前的电量值,由于当在终端当前的电量值较低,且需要备份的数据较大时,容易造成数据传输中断,数据备份失败,因此终端当前的电量值可认为是传输参数。The transmission parameter in this embodiment refers to a parameter that affects data transmission in the current environment, such as the current power value of the terminal. Because the current power value of the terminal is low, and the data to be backed up is large, the data is easily caused. The transmission is interrupted and the data backup fails, so the current power value of the terminal can be considered as the transmission parameter.
又比如,当前网络的网络速率,由于在网络速率较低时,容易造成数据传输时间长或者传输不成功等等,因此当前网络的网络速率也可认为是传输参数。For example, the network rate of the current network may be considered as a transmission parameter because the network transmission rate is long or the transmission is unsuccessful when the network rate is low.
可具体的,如该传输参数可以包括终端当前的电量值,“基于传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序”,可以具体包括:Specifically, the transmission parameter may include the current power value of the terminal, and “determining the backup order of the data to be backed up based on the transmission parameter and the data volume of each data to be backed up”, which may specifically include:
(11)根据终端当前的电量值,确定终端对应的可接收数据量范围。(11) determining a range of receivable data amounts corresponding to the terminal according to the current power value of the terminal.
(12)结合可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。(12) Combining the range of receivable data amount and the amount of data of each data to be backed up, determining the backup order of each data to be backed up.
可以理解的是,云端服务器可以预先将终端电量值与终端可接收数据量范围的对应关系表进行存储,在获取到终端当前的电量值时,调用该对应关系表即可读取到终端当前对应的可接收数据量范围,从而结合可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。It can be understood that the cloud server can store the correspondence between the terminal power value and the range of data receivable by the terminal in advance. When the current power value of the terminal is obtained, the corresponding relationship table can be called to read the current correspondence of the terminal. The range of receivable data can be combined to determine the backup order of each data to be backed up in combination with the range of receivable data and the amount of data of each data to be backed up.
进一步的,“结合可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序”(步骤(12)),可以包括:Further, "in combination with the range of receivable data amount and the amount of data of each data to be backed up, determining the backup order of each data to be backed up" (step (12)) may include:
(121)根据可接收数据量范围,从待备份数据中选取数据量大小相匹配的待备份数据。(121) According to the range of the receivable data amount, the data to be backed whose data size matches the data is selected from the data to be backed up.
(122)控制对选取的数据量大小相匹配的待备份数据进行优先处理,以确定各待备份数据的备份次序。(122) Controlling the data to be backed up matching the selected data volume to be prioritized to determine the backup order of the data to be backed up.
也就是说,从多个待备份数据中选取出数据量大小与终端当前可接收数据量范围相匹配的待备份数据,并且根据数据量大小相匹配的待备份数据进行优先处理的原则,确定出各待备份数据的备份次序。In other words, the data to be backed up is selected from the plurality of data to be backed up, and the data to be backed up is matched with the data to be backed up according to the data size, and the priority is determined according to the principle that the data to be backed up is matched. The backup order of each data to be backed up.
比如,若可接收数据量范围为500Mb,则将数据量大小满足一定范围内的或者最接近该可接收数据量范围的待备份数据进行选取,如数据量大小为450-550Mb的待备份数据均可认为是与该可接收数据量范围相匹配的待备份数据,并对该部分待备份数据进行优先处理。For example, if the amount of data that can be received is 500 Mb, the data to be backed up within a certain range or closest to the range of the receivable data amount is selected, for example, the data to be backed up with the data volume of 450-550 Mb is It can be considered as the data to be backed up that matches the range of the receivable data amount, and the part of the data to be backed up is preferentially processed.
在某些实施方式中,该传输参数可以包括当前网络的网络速率,“基于传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序”,可以具体包括:In some embodiments, the transmission parameter may include a network rate of the current network, and “determining a backup order of the data to be backed up based on the transmission parameter and the data volume size of each data to be backed up”, which may specifically include:
(21)判断当前网络的网络速率是否低于预设阈值。(21) Determine whether the network rate of the current network is lower than a preset threshold.
(22)若判断出当前网络的网络速率低于预设阈值,则根据各待备份数据的数据量大小,确定各待备份数据的备份次序。(22) If it is determined that the network rate of the current network is lower than a preset threshold, the backup order of the data to be backed up is determined according to the data size of each data to be backed up.
其中, “根据各待备份数据的数据量大小,确定各待备份数据的备份次序”(步骤(22)),可以包括:按照各待备份数据的数据量大小从小到大的顺序,确定各待备份数据的备份次序。among them, The determining the backup order of the data to be backed up according to the size of the data to be backed up (step (22)) may include: determining the data to be backed up according to the size of the data to be backed up from small to large. Backup order.
即终端可以先上传数据量较小的待备份数据进行备份,再上传数据量较大的待备份数据进行备份。That is, the terminal can first upload the data to be backed up with a small amount of data for backup, and then upload the data to be backed up with a large amount of data for backup.
可以理解的是,本发明实施例仅以终端当前的电量值,以及当前网络的网络速率为例进行描述,在某些实施方式中,传输参数还可以包括如终端容量大小、终端性能等等,此处举例不构成对本发明的限定。It is to be understood that the embodiment of the present invention is described by taking the current power value of the terminal and the network rate of the current network as an example. In some embodiments, the transmission parameter may also include, for example, terminal capacity size, terminal performance, and the like. The examples herein are not intended to limit the invention.
在步骤S104中,按照该备份次序对多个待备份数据进行备份操作。In step S104, a plurality of backup data to be backed up is performed in accordance with the backup order.
比如,可以按照数据量大小相匹配的待备份数据进行优先处理的备份次序,对多个待备份数据进行备份操作;或者,可以按照数据量较小的待备份数据先备份,数据量较大的待备份数据后备份的备份次序,对多个待备份数据进行备份操作,等等。For example, the backup data may be backed up according to the backup order of the data to be backed up, and the data to be backed up may be backed up according to the data to be backed up, and the data volume is large. The backup order of backups after data is backed up, the backup operations of multiple data to be backed up, and so on.
由上述可知,本实施例提供的数据备份的方法,当云端服务器进行数据备份请求时,首先获取当前环境的传输参数,并且,根据该数据备份请求,确定各待备份数据的数据量大小,然后基于传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序,并按照备份次序对多个待备份数据进行备份操作。即根据当前环境的传输参数以及各待备份数据的数据量大小,对待备份数据设置处理优先级,避免云端服务器在环境不稳定的时候处理大量的数据备份请求,降低云端服务器负荷,有效提高对终端数据的响应速度,提升了终端上传备份的效率。It can be seen from the above that the data backup method provided by the embodiment, when the cloud server performs the data backup request, first acquires the transmission parameter of the current environment, and determines the data size of each data to be backed up according to the data backup request, and then The backup order of the data to be backed up is determined based on the transmission parameters and the amount of data of each data to be backed up, and the backup data is backed up according to the backup order. That is, according to the transmission parameters of the current environment and the amount of data of each data to be backed up, the processing priority of the data to be backed up is set to prevent the cloud server from processing a large number of data backup requests when the environment is unstable, reducing the load on the cloud server, and effectively improving the terminal. The response speed of the data improves the efficiency of the terminal uploading backup.
本发明实施例中以数据备份的系统的应用场景为例进行分析,其中,该数据备份的系统主要包括数据备份的装置以及终端,其中,该数据备份的装置具体可以集成在服务器或网关等网络设备中,如云端服务器等等,该终端可以具体为如台式电脑、平板电脑,手机等终端,该云端服务器与终端可通过无线网络进行连接。In the embodiment of the present invention, the application scenario of the system for data backup is taken as an example. The system for backing up the data mainly includes a device for backing up data and a terminal, wherein the device for backing up the data may be integrated into a network such as a server or a gateway. In the device, such as a cloud server, the terminal may be specifically a terminal such as a desktop computer, a tablet computer, or a mobile phone, and the cloud server and the terminal may be connected through a wireless network.
比如,请参考图2,图2为本发明实施例提供的数据备份的系统的场景示意图,该数据备份的装置具体集成在云端服务器中,主要用于当接收到终端发送的数据备份请求时,获取当前环境的传输参数,该数据备份请求携带多个待备份数据,其中当前环境的传输参数包括有终端当前的电量值、或者当前网络的网络速率,等等;然后,根据该数据备份请求,确定各待备份数据的数据量大小;并且,基于传输参数以及各待备份数据的数据量大小,确定出各待备份数据的备份次序,最后,按照该备份次序对多个待备份数据进行备份操作;此外,该云端服务器还可以向终端反馈备份次序以及备份操作结果等,以便用户查阅。For example, please refer to FIG. 2. FIG. 2 is a schematic diagram of a system for backing up a data according to an embodiment of the present invention. The device for backing up data is specifically integrated in a cloud server, and is mainly used when receiving a data backup request sent by the terminal. Obtaining a transmission parameter of the current environment, where the data backup request carries multiple data to be backed up, wherein the transmission parameter of the current environment includes a current power value of the terminal, or a network rate of the current network, and the like; and then, according to the data backup request, Determining the data size of each data to be backed up; and determining the backup order of the data to be backed up based on the transmission parameters and the amount of data to be backed up, and finally, performing backup operations on the plurality of data to be backed up according to the backup order In addition, the cloud server can also feed back the backup order and the backup operation result to the terminal for the user to consult.
如图2所示,该数据备份系统还可以包括终端,如手机;其中该终端用于接收用户通过点击、触摸、滑动等方式输入的数据备份请求,并将该数据备份请求发送至云端服务器,该数据备份请携带多个待备份数据,如可以由多个终端发送的多个待备份数据,也可以由一个终端发送的多个待备份数据,等等;或者,接收云端服务器返回的各待备份数据的备份次序以及备份操作结果,等等。As shown in FIG. 2, the data backup system may further include a terminal, such as a mobile phone, where the terminal is configured to receive a data backup request input by the user by clicking, touching, sliding, etc., and send the data backup request to the cloud server. The data backup should carry multiple data to be backed up, such as multiple data to be backed up that can be sent by multiple terminals, or multiple data to be backed up by one terminal, etc.; or, receive the waiting for the cloud server to return. Backup order of backup data and backup operation results, and so on.
请参阅图3,图3为本发明实施例提供的数据备份的方法的流程示意图。所述方法包括:Please refer to FIG. 3. FIG. 3 is a schematic flowchart diagram of a method for backing up data according to an embodiment of the present invention. The method includes:
在步骤S201中,终端向云端服务器发送数据备份请求。In step S201, the terminal sends a data backup request to the cloud server.
本实施例中,该数据备份请求携带多个待备份数据以及各待备份数据的数据量大小,多个待备份数据由用户选择确定,可以包括通讯录数据、短信数据、音频数据、视频数据等等。In this embodiment, the data backup request carries multiple data to be backed up and data size of each data to be backed up, and multiple data to be backed up are determined by the user, and may include address book data, short message data, audio data, video data, and the like. Wait.
其中,在云端服务器接收到该数据备份请求后,会获取当前环境的传输参数,以根据该传输参数来管理数据备份的流程,完成备份操作。本实施例中传输参数是指当前环境对数据传输有影响的参数。After receiving the data backup request, the cloud server obtains the transmission parameters of the current environment, and manages the data backup process according to the transmission parameter to complete the backup operation. The transmission parameter in this embodiment refers to a parameter that the current environment has an influence on data transmission.
在一种实施方式中,该传输参数为当前网络的网络速率,云端服务器执行根据当前网络的网络速率执行同步操作的步骤可具体如下:In an implementation manner, the transmission parameter is a network rate of the current network, and the step of the cloud server performing the synchronization operation according to the network rate of the current network may be specifically as follows:
在步骤S202中,云端服务器获取当前网络的网络速率。In step S202, the cloud server acquires the network rate of the current network.
在步骤S203中,云端服务器确定网络速率低于预设阈值时,按照各待备份数据的数据量大小从小到大的顺序,确定各待备份数据的备份次序。In step S203, when the cloud server determines that the network rate is lower than the preset threshold, the backup order of the data to be backed up is determined according to the order of the data size of each data to be backed up.
在步骤S204中,云端服务器按照数据量较小的待备份数据先备份,数据量较大的待备份数据后备份的备份次序,对多个待备份数据进行备份操作。In step S204, the cloud server backs up the data to be backed up according to the data to be backed up, backs up the backup data after the data to be backed up, and performs backup operations on the plurality of data to be backed up.
即终端可以先上传数据量较小的待备份数据,再上传数据量较大的待备份数据,云端服务器可以按照数据量较小的待备份数据先备份,数据量较大的待备份数据后备份的备份次序,对多个待备份数据进行备份操作。That is, the terminal can first upload the data to be backed up with a small amount of data, and then upload the data to be backed up with a large amount of data. The cloud server can back up the data to be backed up according to the smaller amount of data, and back up the data to be backed up with a larger amount of data. Backup order, backup operations on multiple data to be backed up.
比如,当前待备份数据有三份,如“待备份数据A,300b(字节)”、“待备份数据B,300Mb(兆)”、“待备份数据C,300Kb(千字节)”,当前网络的网络速率预设阈值时,云端服务器先对待备份数据A进行备份,再对待备份数据C进行备份,最后对待备份数据B进行备份。For example, there are three copies of data to be backed up, such as "data to be backed up A, 300b (bytes)", "data to be backed up B, 300Mb (megabytes)", "data to be backed up C, 300Kb (kilobytes)", current When the network rate of the network is preset to a threshold, the cloud server first backs up the backup data A, and then backs up the backup data C, and finally backs up the backup data B.
在另一种实施方式中,该传输参数为终端当前的电量值,云端服务器执行根据终端当前的电量值执行同步操作的步骤可具体如下:In another implementation manner, the transmission parameter is a current power value of the terminal, and the step of the cloud server performing the synchronization operation according to the current power value of the terminal may be specifically as follows:
在步骤S205中,云端服务器获取终端当前的可接收数据量范围。In step S205, the cloud server acquires a current range of receivable data amount of the terminal.
在步骤S206中,云端服务器根据终端当前的可接收数据量范围,选取数据量大小相匹配的待备份数据。In step S206, the cloud server selects data to be backed up that matches the data size according to the current range of receivable data of the terminal.
在步骤S207中,云端服务器按照数据量大小相匹配的待备份数据进行优先处理的备份次序,对多个待备份数据进行备份操作。In step S207, the cloud server performs a backup operation on the plurality of data to be backed up according to the backup order in which the data to be backed is matched in priority.
首先,终端获取终端当前的电量值,然后根据终端当前的电量值自行确定出终端当前的可接收数据量范围,即在终端未自动关机前最多能接收到的数据量大小范围,并将其发送至云端服务器。First, the terminal obtains the current power value of the terminal, and then determines the current range of data receivable by the terminal according to the current power value of the terminal, that is, the maximum amount of data that can be received before the terminal is automatically shut down, and sends the data. To the cloud server.
此外,云端服务器可以预先将终端电量值与终端可接收数据量范围的对应关系表进行存储,在获取到终端当前的电量值时,调用该对应关系表即可读取到终端当前对应的可接收数据量范围。In addition, the cloud server may store the correspondence between the terminal power value and the range of data receivable by the terminal in advance. When the current power value of the terminal is obtained, the corresponding relationship table may be invoked to read the current corresponding receivable of the terminal. The amount of data.
进一步的,从多个待备份数据中选取出,数据量大小与终端当前可接收数据量范围相匹配的待备份数据,并且根据数据量大小相匹配的待备份数据进行优先处理的原则,确定出各待备份数据的备份次序。Further, the data to be backed up is selected from the plurality of data to be backed up, and the data size is matched with the current data receivable range of the terminal, and the priority is processed according to the data to be backed up. The backup order of each data to be backed up.
比如,当前待备份数据有三份,如“待备份数据A,300b(字节)”、“待备份数据B,300Mb(兆)”、“待备份数据C,300Kb(千字节)”;若确定出可接收数据量范围为500Mb,则将数据量大小满足一定范围内的或者最接近该可接收数据量范围的待备份数据进行选取,如数据量大小为300Mb的待备份数据B可认为是与该可接收数据量范围相匹配的待备份数据,并对待备份数据B进行优先处理,然后再对待备份数据C进行备份,最后对待备份数据A进行备份。For example, there are three data to be backed up, such as "data to be backed up A, 300b (bytes)", "data to be backed up B, 300Mb (megabytes)", "data to be backed up C, 300Kb (kilobytes)"; After determining that the amount of receivable data is in the range of 500 Mb, the data to be backed up within a certain range or closest to the range of the receivable data is selected, for example, the data to be backed up with a data size of 300 Mb can be considered as The data to be backed up is matched with the range of the receivable data amount, and the backup data B is preferentially processed, and then the backup data C is backed up, and finally the backup data A is backed up.
可以理解的是,在某些更为精确的实施方式中,传输参数还可以为如终端容量大小、终端性能、终端当前的电量值或者当前网络的网络速率等中的一个或多个的组合,本发明实施例仅以传输参数为终端当前的电量值或者当前网络的网络速率为例进行描述,此处举例不构成对本发明的限定。It can be understood that, in some more precise implementations, the transmission parameter may also be a combination of one or more of a terminal capacity size, a terminal performance, a current power value of the terminal, or a network rate of the current network, and the like. The embodiment of the present invention is described by taking the transmission parameter as the current power value of the terminal or the network rate of the current network as an example. The example herein does not constitute a limitation of the present invention.
由上述可知,本实施例提供的数据备份的方法,当云端服务器进行数据备份请求时,首先获取当前环境的传输参数,并且,根据该数据备份请求,确定各待备份数据的数据量大小,然后基于传输参数(如终端当前的电量值或者当前网络的网络速率等)以及各待备份数据的数据量大小,确定各待备份数据的备份次序,并按照备份次序对多个待备份数据进行备份操作。即根据当前环境的传输参数以及各待备份数据的数据量大小,对待备份数据设置处理优先级,避免云端服务器在环境不稳定的时候,如终端电量值低、网络速率较低时,处理大量的数据备份请求,降低云端服务器负荷,有效提高对终端数据的响应速度,提升了终端上传备份的效率。It can be seen from the above that the data backup method provided by the embodiment, when the cloud server performs the data backup request, first acquires the transmission parameter of the current environment, and determines the data size of each data to be backed up according to the data backup request, and then Determining the backup order of each data to be backed up based on the transmission parameters (such as the current power value of the terminal or the network rate of the current network) and the amount of data of each data to be backed up, and performing backup operations on the plurality of data to be backed up according to the backup order. . That is, according to the transmission parameters of the current environment and the amount of data of each data to be backed up, the processing priority of the data to be backed up is set to prevent the cloud server from processing a large amount of time when the environment is unstable, such as when the terminal power value is low and the network speed is low. The data backup request reduces the load on the cloud server, effectively improves the response speed to the terminal data, and improves the efficiency of the terminal uploading and backup.
请参阅图4,图4为本发明实施例提供的数据备份的装置的结构示意图,该数据备份的装置300可以包括获取单元301、第一确定单元302、第二确定单元303以及备份单元304。Referring to FIG. 4, FIG. 4 is a schematic structural diagram of an apparatus for backing up data according to an embodiment of the present invention. The apparatus 300 for backing up data may include an obtaining unit 301, a first determining unit 302, a second determining unit 303, and a backup unit 304.
其中获取单元301,用于当接收到数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据。The obtaining unit 301 is configured to acquire a transmission parameter of the current environment when receiving the data backup request, where the data backup request carries multiple data to be backed up.
比如,终端(如手机)可预先设置有输入接口,如用于数据备份的终端应用APP或者输入控件,用户可通过点击、触摸、滑动等方式触发该输入接口,以向终端输入数据备份请求,且由终端将该数据备份请求发送至云端服务器。For example, the terminal (such as a mobile phone) may be preset with an input interface, such as a terminal application APP or an input control for data backup, and the user may trigger the input interface by clicking, touching, sliding, etc., to input a data backup request to the terminal. And the terminal sends the data backup request to the cloud server.
可以理解的是,该多个待备份数据可以是由多个终端向云端服务器发送的,也可以由一个终端向云端服务器发送,此处不作具体限定。It can be understood that the data to be backed up may be sent by the multiple terminals to the cloud server, or may be sent by the terminal to the cloud server, which is not specifically limited herein.
其中,本实施例中待备份数据可以具体包括短信数据、聊天记录数据、通话记录数据、图像数据等终端数据,此处不作具体限定。The data to be backed up in this embodiment may specifically include terminal data such as short message data, chat record data, call record data, and image data, which are not specifically limited herein.
第一确定单元302,用于根据所述数据备份请求,确定各待备份数据的数据量大小。The first determining unit 302 is configured to determine, according to the data backup request, a data size of each data to be backed up.
比如,终端向云端服务器发送的数据备份请求中,携带有各待备份数据的数据量大小,从而云端服务器读取该数据备份请求时,即可确定出确定各待备份数据的数据量大小,如“待备份数据A,300b(字节)”、“待备份数据B,300Mb(兆)”,等等。For example, the data backup request sent by the terminal to the cloud server carries the data size of each data to be backed up, so that when the cloud server reads the data backup request, it can determine the data size of each data to be backed up, such as "Data to be backed up A, 300b (bytes)", "data to be backed up B, 300 Mb (megabytes)", and so on.
第二确定单元303,用于基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序。The second determining unit 303 is configured to determine a backup order of each data to be backed up based on the transmission parameter and a data volume size of each data to be backed up.
其中,本实施例中传输参数是指当前环境对数据传输有影响的参数,如终端当前的电量值,由于当在终端当前的电量值较低,且需要备份的数据较大时,容易造成数据传输中断,数据备份失败,因此终端当前的电量值可认为是传输参数。The transmission parameter in this embodiment refers to a parameter that affects data transmission in the current environment, such as the current power value of the terminal. Because the current power value of the terminal is low, and the data to be backed up is large, the data is easily caused. The transmission is interrupted and the data backup fails, so the current power value of the terminal can be considered as the transmission parameter.
又比如,当前网络的网络速率,由于在网络速率较低时,容易造成数据传输时间长或者传输不成功等等,因此当前网络的网络速率也可认为是传输参数。For example, the network rate of the current network may be considered as a transmission parameter because the network transmission rate is long or the transmission is unsuccessful when the network rate is low.
备份单元304,用于按照所述备份次序对多个待备份数据进行备份操作。The backup unit 304 is configured to perform backup operations on the plurality of data to be backed up according to the backup order.
请一并参阅图5,图5为本发明实施例提供的数据备份的装置的另一结构示意图。在某些实施方式中,该传输参数包括终端当前的电量值,则该数据备份的装置400中第二确定单元303可以具体包括:Referring to FIG. 5, FIG. 5 is another schematic structural diagram of an apparatus for backing up data according to an embodiment of the present invention. In some embodiments, the transmission parameter includes the current power value of the terminal, and the second determining unit 303 in the data backup device 400 may specifically include:
第一确定子单元3031,用于根据终端当前的电量值,确定终端对应的可接收数据量范围。The first determining subunit 3031 is configured to determine, according to the current power value of the terminal, a range of receivable data amounts corresponding to the terminal.
第二确定子单元3032,用于结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。The second determining subunit 3032 is configured to determine a backup order of each data to be backed up in combination with the range of the receivable data amount and the data volume size of each data to be backed up.
可以理解的是,云端服务器可以预先将终端电量值与终端可接收数据量范围的对应关系表进行存储,在获取到终端当前的电量值时,调用该对应关系表即可读取到终端当前对应的可接收数据量范围,从而结合可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。It can be understood that the cloud server can store the correspondence between the terminal power value and the range of data receivable by the terminal in advance. When the current power value of the terminal is obtained, the corresponding relationship table can be called to read the current correspondence of the terminal. The range of receivable data can be combined to determine the backup order of each data to be backed up in combination with the range of receivable data and the amount of data of each data to be backed up.
基于此,该第二确定子单元3032可以具体用于:Based on this, the second determining subunit 3032 can be specifically configured to:
根据所述可接收数据量范围,从所述待备份数据中选取数据量大小相匹配的待备份数据;控制对选取的数据量大小相匹配的待备份数据进行优先处理,以确定各待备份数据的备份次序。According to the range of the receivable data amount, data to be backed up matching the data volume size is selected from the data to be backed up; and the data to be backed up matching the selected data volume size is preferentially processed to determine each data to be backed up. Backup order.
也就是说,从多个待备份数据中选取出,数据量大小与终端当前可接收数据量范围相匹配的待备份数据,并且根据数据量大小相匹配的待备份数据进行优先处理的原则,确定出各待备份数据的备份次序。In other words, the data to be backed up is selected from the plurality of data to be backed up, and the data size is matched with the current data receivable range of the terminal, and the priority is determined according to the principle that the data to be backed up is matched. The backup order of each data to be backed up.
比如,若可接收数据量范围为500Mb,则将数据量大小满足一定范围内的待备份数据进行选取,如数据量大小为450-550Mb的待备份数据均可认为是与该可接收数据量范围相匹配的待备份数据,并对该部分待备份数据进行优先处理。For example, if the amount of data that can be received is 500 Mb, the data to be backed up within a certain range is selected. For example, the data to be backed up with a data size of 450-550 Mb can be considered as the range of the receivable data. Match the data to be backed up, and prioritize the data to be backed up.
在某些实施方式中,该传输参数可以包括当前网络的网络速率,该第二确定单元303可以具体包括:In some embodiments, the transmission parameter may include a network rate of the current network, and the second determining unit 303 may specifically include:
判断子单元3033,用于判断当前网络的网络速率是否低于预设阈值。The determining sub-unit 3033 is configured to determine whether the network rate of the current network is lower than a preset threshold.
第三确定子单元3034,用于若判断出当前网络的网络速率低于预设阈值,则按照各待备份数据的数据量大小从小到大的顺序,确定各待备份数据的备份次序。The third determining sub-unit 3034 is configured to determine, according to the data size of each data to be backed up, a backup order of the data to be backed up, if it is determined that the network rate of the current network is lower than a preset threshold.
即终端可以先上传数据量较小的待备份数据进行备份,再上传数据量较大的待备份数据进行备份。That is, the terminal can first upload the data to be backed up with a small amount of data for backup, and then upload the data to be backed up with a large amount of data for backup.
可以理解的是,本发明实施例仅以终端当前的电量值,以及当前网络的网络速率为例进行描述,在某些实施方式中,传输参数还可以包括如终端容量大小、终端性能等等,此处举例不构成对本发明的限定。It is to be understood that the embodiment of the present invention is described by taking the current power value of the terminal and the network rate of the current network as an example. In some embodiments, the transmission parameter may also include, for example, terminal capacity size, terminal performance, and the like. The examples herein are not intended to limit the invention.
比如,备份单元304可以按照数据量大小相匹配的待备份数据进行优先处理的备份次序,对多个待备份数据进行备份操作;或者,可以按照数据量较小的待备份数据先备份,数据量较大的待备份数据后备份的备份次序,对多个待备份数据进行备份操作,等等。For example, the backup unit 304 may perform backup operations on multiple data to be backed up according to the backup order in which the data to be backed up is matched, and may back up the data to be backed up according to the data amount. The backup order of backups after large data to be backed up, the backup operation of multiple data to be backed up, and so on.
具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。In the specific implementation, the foregoing units 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. For the specific implementation of the foregoing, refer to the foregoing method embodiments, and details are not described herein.
该数据备份的装置具体可以集成在服务器或网关等网络设备中,如云端服务器等等。The device for backing up the data may be integrated into a network device such as a server or a gateway, such as a cloud server.
由上述可知,本实施例提供的数据备份的装置,当云端服务器进行数据备份请求时,首先获取当前环境的传输参数,并且,根据该数据备份请求,确定各待备份数据的数据量大小,然后基于传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序,并按照备份次序对多个待备份数据进行备份操作。即根据当前环境的传输参数以及各待备份数据的数据量大小,对待备份数据设置处理优先级,避免云端服务器在环境不稳定的时候处理大量的数据备份请求,降低云端服务器负荷,有效提高对终端数据的响应速度,提升了终端上传备份的效率。As described above, the data backup device provided in this embodiment first acquires the transmission parameters of the current environment when the cloud server performs the data backup request, and determines the data size of each data to be backed up according to the data backup request, and then The backup order of the data to be backed up is determined based on the transmission parameters and the amount of data of each data to be backed up, and the backup data is backed up according to the backup order. That is, according to the transmission parameters of the current environment and the amount of data of each data to be backed up, the processing priority of the data to be backed up is set to prevent the cloud server from processing a large number of data backup requests when the environment is unstable, reducing the load on the cloud server, and effectively improving the terminal. The response speed of the data improves the efficiency of the terminal uploading backup.
本发明实施例还提供一种数据备份的系统,可参考如图2所示的数据备份的系统,包括云端服务器以及终端,其中该云端服务器可以包括如上实施例所提供的任一数据备份的装置。The embodiment of the present invention further provides a data backup system, which can refer to the data backup system shown in FIG. 2, including a cloud server and a terminal, wherein the cloud server can include any data backup device provided by the above embodiments. .
比如,该云端服务器主要用于当接收到终端发送的数据备份请求时,获取当前环境的传输参数,该数据备份请求携带多个待备份数据,其中当前环境的传输参数包括有终端当前的电量值、或者当前网络的网络速率,等等;然后,根据该数据备份请求,确定各待备份数据的数据量大小;并且,基于传输参数以及各待备份数据的数据量大小,确定出各待备份数据的备份次序,最后,按照该备份次序对多个待备份数据进行备份操作;此外,该云端服务器还可以向终端反馈备份次序以及备份操作结果等,以便用户查阅。For example, the cloud server is configured to obtain a transmission parameter of the current environment when receiving a data backup request sent by the terminal, where the data backup request carries multiple data to be backed up, where the current environment transmission parameter includes the current power value of the terminal. Or the network rate of the current network, and the like; and, according to the data backup request, determining the amount of data of each data to be backed up; and determining the data to be backed up based on the transmission parameter and the amount of data of each data to be backed up The backup sequence, in the end, performs backup operations on the plurality of data to be backed up according to the backup order; in addition, the cloud server can also feed back the backup order and the backup operation result to the terminal for the user to consult.
在某些实施方式中,该传输参数可以包括终端当前的电量值,云端服务器可以根据终端当前的电量值,确定终端对应的可接收数据量范围;结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。In some embodiments, the transmission parameter may include a current power value of the terminal, and the cloud server may determine, according to the current power value of the terminal, a range of receivable data corresponding to the terminal; combining the receivable data volume range and each to be backed up. The amount of data in the data determines the backup order of each data to be backed up.
基于此,云端服务器可以根据所述可接收数据量范围,从所述待备份数据中选取数据量大小相匹配的待备份数据;控制对选取的数据量大小相匹配的待备份数据进行优先处理,以确定各待备份数据的备份次序。Based on the data, the cloud server may select data to be backed up from the data to be backed up according to the range of receivable data, and control the data to be backed up with the matching data size to be prioritized. Determine the backup order of each data to be backed up.
在某些实施方式中,该传输参数可以包括当前网络的网络速率,云端服务器可以判断当前网络的网络速率是否低于预设阈值;若判断出当前网络的网络速率低于预设阈值,则根据各待备份数据的数据量大小,确定各待备份数据的备份次序。In some embodiments, the transmission parameter may include a network rate of the current network, and the cloud server may determine whether the network rate of the current network is lower than a preset threshold; if it is determined that the network rate of the current network is lower than a preset threshold, The amount of data of each data to be backed up determines the backup order of each data to be backed up.
基于此,云端服务器可以按照各待备份数据的数据量大小从小到大的顺序,确定各待备份数据的备份次序。Based on this, the cloud server can determine the backup order of each data to be backed up according to the order of the data size of each data to be backed up.
如图2所示,该数据备份系统还可以包括终端,如手机;其中该终端用于接收用户通过点击、触摸、滑动等方式输入的数据备份请求,并将该数据备份请求发送至云端服务器,该数据备份请携带多个待备份数据,如可以由多个终端发送的多个待备份数据,也可以由一个终端发送的多个待备份数据,等等;或者,接收云端服务器返回的各待备份数据的备份次序以及备份操作结果,等等。As shown in FIG. 2, the data backup system may further include a terminal, such as a mobile phone, where the terminal is configured to receive a data backup request input by the user by clicking, touching, sliding, etc., and send the data backup request to the cloud server. The data backup should carry multiple data to be backed up, such as multiple data to be backed up that can be sent by multiple terminals, or multiple data to be backed up by one terminal, etc.; or, receive the waiting for the cloud server to return. Backup order of backup data and backup operation results, and so on.
可以理解的是,该数据备份的装置的结构以及功能实现可以参见上文针对数据备份的装置的详细描述,此处不再赘述。It can be understood that the structure and function implementation of the device for backing up the data can be referred to the above detailed description of the device for data backup, and details are not described herein again.
本发明实施例还提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述任一实施例所述的数据备份的方法中的步骤。The embodiment of the invention further provides a storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by the processor to perform the steps in the data backup method described in any of the above embodiments.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium and stored. Media can include: read only memory (ROM, Read Only Memory), Random Access Memory (RAM), disk or optical disk.
本发明实施例还提供了一种服务器600,其中可以集成如上实施例所提供的任一数据备份装置,参考图6,其示出了本发明实施例所涉及的服务器600的结构示意图,具体来讲:The embodiment of the present invention further provides a server 600, wherein any of the data backup devices provided in the above embodiments may be integrated. Referring to FIG. 6, a schematic structural diagram of a server 600 according to an embodiment of the present invention is shown. speak:
该服务器600可以包括一个或者一个以上处理核心的处理器601、一个或一个以上计算机可读存储介质的存储器602、通讯单元603、电源604、输入单元605、以及显示单元606等部件。本领域技术人员可以理解,图6中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The server 600 can include one or more processor 601 processing cores, a memory 602 of one or more computer readable storage media, a communication unit 603, a power source 604, an input unit 605, and a display unit 606. It will be understood by those skilled in the art that the server structure illustrated in FIG. 6 does not constitute a limitation to the server, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
处理器601是该服务器的控制中心,利用各种接口和线路连接整个服务器的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行服务器的各种功能和处理数据,从而对服务器进行整体监控。可选的,处理器601可包括一个或多个处理核心;在一个实施例中,处理器601可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器601中。Processor 601 is the control center of the server, connecting various portions of the server with various interfaces and lines, by running or executing software programs and/or modules stored in memory 602, and recalling data stored in memory 602, Execute the server's various functions and process data to monitor the server as a whole. Optionally, the processor 601 may include one or more processing cores; in one embodiment, the processor 601 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 601.
存储器602可用于存储软件程序以及模块,处理器601通过运行存储在存储器602的软件程序以及模块,从而执行各种功能应用以及数据处理。The memory 602 can be used to store software programs and modules, and the processor 601 executes various functional applications and data processing by running software programs and modules stored in the memory 602.
通讯单元603可用于收发信息过程中,信号的接收和发送,特别地,通讯单元603接收终端发送的信号,并将信号交由一个或者一个以上处理器601处理;同时,通讯单元603将处理器601发出的反馈信号发送给终端。The communication unit 603 can be used for receiving and transmitting signals during the transmission and reception of information. In particular, the communication unit 603 receives the signal transmitted by the terminal and passes the signal to one or more processors 601 for processing; meanwhile, the communication unit 603 processes the processor. The feedback signal sent by 601 is sent to the terminal.
服务器还包括给各个部件供电的电源604(比如电池),在一个实施例中,电源可以通过电源管理系统与处理器601逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源604还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The server also includes a power source 604 (such as a battery) that supplies power to the various components. In one embodiment, the power source can be logically coupled to the processor 601 through a power management system to manage charging, discharging, and power management through the power management system. Features. The power supply 604 can 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.
该服务器还可包括输入单元605,该输入单元605可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。 The server can also include an input unit 605 that can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
该服务器还可包括显示单元606,该显示单元606可用于显示由用户输入的信息或提供给用户的信息以及服务器的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元606可包括显示面板,可选的,可以采用液晶显示器 (LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。The server can also include a display unit 606 that can be used to display information entered by the user or information provided to the user and various graphical user interfaces of the server, which can be represented by graphics, text, icons, video, and It is composed of any combination. The display unit 606 can include a display panel, and optionally, a liquid crystal display can be used. (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting) Diode) and other forms to configure the display panel.
具体在本实施例中,服务器中的处理器601会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器602中,并由处理器601来运行存储在存储器602中的应用程序,从而实现各种功能,如下:Specifically, in this embodiment, the processor 601 in the server loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and is executed by the processor 601 to be stored in the memory. The application in 602, thus implementing various functions, as follows:
当接收到数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;根据所述数据备份请求,确定各待备份数据的数据量大小;基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;按照所述备份次序对多个待备份数据进行备份操作。Obtaining a transmission parameter of the current environment, where the data backup request carries a plurality of data to be backed up; determining, according to the data backup request, a data size of each data to be backed up; based on the transmission parameter and The data size of each data to be backed up determines the backup order of the data to be backed up; and performs backup operations on the plurality of data to be backed up according to the backup order.
其中,所述传输参数包括终端当前的电量值,处理器601还运行存储在存储器602中的应用程序,如下:根据终端当前的电量值,确定终端对应的可接收数据量范围;结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。The transmission parameter includes a current power value of the terminal, and the processor 601 further runs an application stored in the memory 602, as follows: determining, according to the current power value of the terminal, a range of receivable data corresponding to the terminal; The range of received data and the amount of data of each data to be backed up are determined, and the backup order of each data to be backed up is determined.
在某些实施方式中,处理器601还运行存储在存储器602中的应用程序,如下:根据所述可接收数据量范围,从所述待备份数据中选取数据量大小相匹配的待备份数据;控制对选取的数据量大小相匹配的待备份数据进行优先处理,以确定各待备份数据的备份次序。In some embodiments, the processor 601 further runs an application stored in the memory 602, as follows: according to the range of the receivable data amount, selecting data to be backed up that matches the data size from the data to be backed up; Controlling the data to be backed up matching the selected data volume to be prioritized to determine the backup order of each data to be backed up.
进一步的,所述传输参数包括当前网络的网络速率,处理器601还运行存储在存储器602中的应用程序,如下:判断当前网络的网络速率是否低于预设阈值;若判断出当前网络的网络速率低于预设阈值,则根据各待备份数据的数据量大小,确定各待备份数据的备份次序。Further, the transmission parameter includes a network rate of the current network, and the processor 601 further runs an application stored in the memory 602, as follows: determining whether the network rate of the current network is lower than a preset threshold; and determining the network of the current network. If the rate is lower than the preset threshold, the backup order of the data to be backed up is determined according to the data size of each data to be backed up.
在某些实施方式中,处理器601还运行存储在存储器602中的应用程序,如下:按照各待备份数据的数据量大小从小到大的顺序,确定各待备份数据的备份次序。In some embodiments, the processor 601 also runs an application stored in the memory 602, as follows: The backup order of each data to be backed up is determined in descending order of the amount of data of each data to be backed up.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对数据备份的方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the descriptions of the various embodiments are different. For details that are not detailed in an embodiment, refer to the foregoing detailed description of the method for data backup, and details are not described herein again.
本发明实施例提供的所述数据备份的装置,譬如为计算机、平板电脑、具有触摸功能的手机等等,所述数据备份的装置与上文实施例中的数据备份的方法属于同一构思,在所述数据备份的装置上可以运行所述数据备份的方法实施例中提供的任一方法,其具体实现过程详见所述数据备份的方法实施例,此处不再赘述。The device for backing up the data provided by the embodiment of the present invention, such as a computer, a tablet computer, a mobile phone with a touch function, etc., the device for backing up the data belongs to the same concept as the method for backing up the data in the above embodiment, The method for backing up the data may be performed on the device for backing up the data. For the specific implementation process, refer to the method embodiment of the data backup, which is not described here.
需要说明的是,对本发明所述数据备份的方法而言,本领域普通测试人员可以理解实现本发明实施例所述数据备份的方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如所述数据备份的方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, in the method for backing up data according to the present invention, a common tester in the art can understand all or part of the process of implementing the data backup method in the embodiment of the present invention, and the related hardware can be controlled by a computer program. To complete, the computer program can be stored in a computer readable storage medium, such as in a memory of the terminal, and executed by at least one processor in the terminal, and can include, for example, the data backup during execution. The flow of an embodiment of the method. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read) Only Memory), random access memory (RAM, Random Access Memory), etc.
对本发明实施例的所述数据备份的装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the data backup device of the embodiment of the present invention, each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated module, if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .
以上对本发明实施例所提供的一种数据备份的方法、装置、系统、存储介质及服务器进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method, device, system, storage medium and server for data backup provided by the embodiments of the present invention are described in detail. The principles and embodiments of the present invention are described in the following examples. The description is only for helping to understand the method of the present invention and its core ideas; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scopes. The contents of this specification are not to be construed as limiting the invention.

Claims (20)

  1. 一种数据备份的方法,其中,包括:A method of data backup, including:
    当接收到数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;Obtaining a transmission parameter of the current environment when the data backup request is received, where the data backup request carries multiple data to be backed up;
    根据所述数据备份请求,确定各待备份数据的数据量大小;Determining, according to the data backup request, a data volume size of each data to be backed up;
    基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;Determining a backup order of each data to be backed up based on the transmission parameter and the amount of data of each data to be backed up;
    按照所述备份次序对多个待备份数据进行备份操作。Performing backup operations on a plurality of data to be backed up according to the backup order.
  2. 根据权利要求1所述的数据备份的方法,其中,所述传输参数包括终端当前的电量值;The method of data backup according to claim 1, wherein the transmission parameter comprises a current power value of the terminal;
    所述基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:Determining, according to the transmission parameter and the amount of data of each data to be backed up, a backup sequence of each data to be backed up, including:
    根据终端当前的电量值,确定终端对应的可接收数据量范围;Determining, according to the current power value of the terminal, a range of receivable data corresponding to the terminal;
    结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。The backup order of each data to be backed up is determined in combination with the range of the receivable data amount and the amount of data of each data to be backed up.
  3. 根据权利要求2所述的数据备份的方法,其中,所述结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:The method of data backup according to claim 2, wherein the determining the backup order of the data to be backed up, including the range of the receivable data amount and the amount of data of each data to be backed up, includes:
    根据所述可接收数据量范围,从所述待备份数据中选取数据量大小相匹配的待备份数据;And selecting, according to the range of the receivable data amount, data to be backed up that matches the data size from the data to be backed up;
    控制对选取的数据量大小相匹配的待备份数据进行优先处理,以确定各待备份数据的备份次序。Controlling the data to be backed up matching the selected data volume to be prioritized to determine the backup order of each data to be backed up.
  4. 根据权利要求2所述的数据备份的方法,其中,所述方法还包括:The method of data backup according to claim 2, wherein the method further comprises:
    预先将终端电量值与终端可接收数据量范围的对应关系表进行存储;Pre-storing the correspondence between the terminal power value and the range of data receivable by the terminal;
    所述根据终端当前的电量值,确定终端对应的可接收数据量范围,包括:获取到终端当前的电量值时,调用所述对应关系表以读取终端当前对应的可接收数据量范围。Determining, according to the current power value of the terminal, the range of the receivable data amount corresponding to the terminal, including: when acquiring the current power value of the terminal, calling the correspondence relationship table to read the currently receivable data amount range of the terminal.
  5. 根据权利要求1所述的数据备份的方法,其中,所述传输参数包括当前网络的网络速率;The method of data backup according to claim 1, wherein the transmission parameter comprises a network rate of a current network;
    所述基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:Determining, according to the transmission parameter and the amount of data of each data to be backed up, a backup sequence of each data to be backed up, including:
    判断当前网络的网络速率是否低于预设阈值;Determining whether the network rate of the current network is lower than a preset threshold;
    若判断出当前网络的网络速率低于预设阈值,则根据各待备份数据的数据量大小,确定各待备份数据的备份次序。If it is determined that the network rate of the current network is lower than a preset threshold, the backup order of the data to be backed up is determined according to the data size of each data to be backed up.
  6. 根据权利要求5所述的数据备份的方法,其中,所述根据各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:The method of data backup according to claim 5, wherein the determining the backup order of each data to be backed up according to the data size of each data to be backed up includes:
    按照各待备份数据的数据量大小从小到大的顺序,确定各待备份数据的备份次序。The backup order of each data to be backed up is determined according to the order of the amount of data to be backed up from small to large.
  7. 根据权利要求1所述的数据备份的方法,其中,所述数据备份请求中携带有各待备份数据的数据量大小。The data backup method according to claim 1, wherein the data backup request carries a data amount size of each data to be backed up.
  8. 一种数据备份的装置,其中,包括:A device for backing up data, including:
    获取单元,用于当接收到数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;An acquiring unit, configured to acquire a transmission parameter of a current environment when receiving a data backup request, where the data backup request carries multiple data to be backed up;
    第一确定单元,用于根据所述数据备份请求,确定各待备份数据的数据量大小;a first determining unit, configured to determine, according to the data backup request, a data volume size of each data to be backed up;
    第二确定单元,用于基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;a second determining unit, configured to determine a backup order of each data to be backed up based on the transmission parameter and a data volume size of each data to be backed up;
    备份单元,用于按照所述备份次序对多个待备份数据进行备份操作。And a backup unit, configured to perform backup operations on the plurality of data to be backed up according to the backup order.
  9. 根据权利要求8所述的数据备份的装置,其中,所述传输参数包括终端当前的电量值;The apparatus for data backup according to claim 8, wherein the transmission parameter comprises a current power value of the terminal;
    所述第二确定单元包括:The second determining unit includes:
    第一确定子单元,用于根据终端当前的电量值,确定终端对应的可接收数据量范围;a first determining subunit, configured to determine, according to a current power value of the terminal, a range of receivable data amounts corresponding to the terminal;
    第二确定子单元,用于结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。a second determining subunit, configured to determine a backup order of each data to be backed up in combination with the range of the receivable data amount and the amount of data of each data to be backed up.
  10. 根据权利要求9所述的数据备份的装置,其中,所述第二确定子单元用于:The apparatus for backing up data according to claim 9, wherein said second determining subunit is for:
    根据所述可接收数据量范围,从所述待备份数据中选取数据量大小相匹配的待备份数据;控制对选取的数据量大小相匹配的待备份数据进行优先处理,以确定各待备份数据的备份次序。According to the range of the receivable data amount, data to be backed up matching the data volume size is selected from the data to be backed up; and the data to be backed up matching the selected data volume size is preferentially processed to determine each data to be backed up. Backup order.
  11. 根据权利要求8所述的数据备份的装置,其中,所述传输参数包括当前网络的网络速率;The apparatus for data backup according to claim 8, wherein said transmission parameter comprises a network rate of a current network;
    所述第二确定单元包括:The second determining unit includes:
    判断子单元,用于判断当前网络的网络速率是否低于预设阈值;a determining subunit, configured to determine whether a network rate of the current network is lower than a preset threshold;
    第三确定子单元,用于若判断出当前网络的网络速率低于预设阈值,则按照各待备份数据的数据量大小从小到大的顺序,确定各待备份数据的备份次序。And a third determining subunit, configured to determine a backup order of the data to be backed up according to the order of the data size of each data to be backed up, if the network rate of the current network is lower than a preset threshold.
  12. 一种数据备份的系统,包括云端服务器以及终端,其中,所述云端服务器包括数据备份的装置;A data backup system includes a cloud server and a terminal, wherein the cloud server includes a device for backing up data;
    所述终端用于向所述云端服务器发送数据备份请求;The terminal is configured to send a data backup request to the cloud server;
    所述数据备份的装置包括:The device for backing up the data includes:
    获取单元,用于当接收到所述数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;An acquiring unit, configured to acquire a transmission parameter of a current environment when the data backup request is received, where the data backup request carries multiple data to be backed up;
    第一确定单元,用于根据所述数据备份请求,确定各待备份数据的数据量大小;a first determining unit, configured to determine, according to the data backup request, a data volume size of each data to be backed up;
    第二确定单元,用于基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;a second determining unit, configured to determine a backup order of each data to be backed up based on the transmission parameter and a data volume size of each data to be backed up;
    备份单元,用于按照所述备份次序对多个待备份数据进行备份操作。And a backup unit, configured to perform backup operations on the plurality of data to be backed up according to the backup order.
  13. 根据权利要求12所述的数据备份的系统,其中,所述传输参数包括终端当前的电量值;The system for data backup according to claim 12, wherein said transmission parameter comprises a current power value of the terminal;
    所述第二确定单元包括:The second determining unit includes:
    第一确定子单元,用于根据终端当前的电量值,确定终端对应的可接收数据量范围;a first determining subunit, configured to determine, according to a current power value of the terminal, a range of receivable data amounts corresponding to the terminal;
    第二确定子单元,用于结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。a second determining subunit, configured to determine a backup order of each data to be backed up in combination with the range of the receivable data amount and the amount of data of each data to be backed up.
  14. 根据权利要求13所述的数据备份的系统,其中,所述第二确定子单元用于:The data backup system of claim 13 wherein said second determining subunit is for:
    根据所述可接收数据量范围,从所述待备份数据中选取数据量大小相匹配的待备份数据;控制对选取的数据量大小相匹配的待备份数据进行优先处理,以确定各待备份数据的备份次序。According to the range of the receivable data amount, data to be backed up matching the data volume size is selected from the data to be backed up; and the data to be backed up matching the selected data volume size is preferentially processed to determine each data to be backed up. Backup order.
  15. 根据权利要求12所述的数据备份的系统,其中,所述传输参数包括当前网络的网络速率;The system for data backup according to claim 12, wherein said transmission parameter comprises a network rate of a current network;
    所述第二确定单元包括:The second determining unit includes:
    判断子单元,用于判断当前网络的网络速率是否低于预设阈值;a determining subunit, configured to determine whether a network rate of the current network is lower than a preset threshold;
    第三确定子单元,用于若判断出当前网络的网络速率低于预设阈值,则按照各待备份数据的数据量大小从小到大的顺序,确定各待备份数据的备份次序。And a third determining subunit, configured to determine a backup order of the data to be backed up according to the order of the data size of each data to be backed up, if the network rate of the current network is lower than a preset threshold.
  16. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述权利要求1至7任一项所述数据备份的方法A storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the data backup according to any one of claims 1 to 7
  17. 一种服务器,其中,包括处理器和存储器,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:A server, comprising a processor and a memory, the memory for storing instructions and data, the processor for performing the following steps:
    当接收到数据备份请求时,获取当前环境的传输参数,所述数据备份请求携带多个待备份数据;Obtaining a transmission parameter of the current environment when the data backup request is received, where the data backup request carries multiple data to be backed up;
    根据所述数据备份请求,确定各待备份数据的数据量大小;Determining, according to the data backup request, a data volume size of each data to be backed up;
    基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序;Determining a backup order of each data to be backed up based on the transmission parameter and the amount of data of each data to be backed up;
    按照所述备份次序对多个待备份数据进行备份操作。Performing backup operations on a plurality of data to be backed up according to the backup order.
  18. 根据权利要求17所述的服务器,其中,所述传输参数包括终端当前的电量值;The server according to claim 17, wherein said transmission parameter comprises a current power value of the terminal;
    所述基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:Determining, according to the transmission parameter and the amount of data of each data to be backed up, a backup sequence of each data to be backed up, including:
    根据终端当前的电量值,确定终端对应的可接收数据量范围;Determining, according to the current power value of the terminal, a range of receivable data corresponding to the terminal;
    结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序。The backup order of each data to be backed up is determined in combination with the range of the receivable data amount and the amount of data of each data to be backed up.
  19. 根据权利要求18所述的服务器,其中,所述结合所述可接收数据量范围以及各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:The server according to claim 18, wherein the determining the backup order of the data to be backed up, including the range of the receivable data amount and the amount of data of each data to be backed up, includes:
    根据所述可接收数据量范围,从所述待备份数据中选取数据量大小相匹配的待备份数据;And selecting, according to the range of the receivable data amount, data to be backed up that matches the data size from the data to be backed up;
    控制对选取的数据量大小相匹配的待备份数据进行优先处理,以确定各待备份数据的备份次序。Controlling the data to be backed up matching the selected data volume to be prioritized to determine the backup order of each data to be backed up.
  20. 根据权利要求17所述的服务器,其中,所述传输参数包括当前网络的网络速率;The server according to claim 17, wherein said transmission parameter comprises a network rate of a current network;
    所述基于所述传输参数以及各待备份数据的数据量大小,确定各待备份数据的备份次序,包括:Determining, according to the transmission parameter and the amount of data of each data to be backed up, a backup sequence of each data to be backed up, including:
    判断当前网络的网络速率是否低于预设阈值;Determining whether the network rate of the current network is lower than a preset threshold;
    若判断出当前网络的网络速率低于预设阈值,则根据各待备份数据的数据量大小,确定各待备份数据的备份次序。If it is determined that the network rate of the current network is lower than a preset threshold, the backup order of the data to be backed up is determined according to the data size of each data to be backed up.
PCT/CN2017/096306 2016-10-25 2017-08-07 Data backup method, device, system, storage medium and server WO2018076889A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610949116.9 2016-10-25
CN201610949116.9A CN106502837B (en) 2016-10-25 2016-10-25 A kind of method, apparatus and system of data backup

Publications (1)

Publication Number Publication Date
WO2018076889A1 true WO2018076889A1 (en) 2018-05-03

Family

ID=58323047

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/096306 WO2018076889A1 (en) 2016-10-25 2017-08-07 Data backup method, device, system, storage medium and server

Country Status (2)

Country Link
CN (1) CN106502837B (en)
WO (1) WO2018076889A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817792A (en) * 2021-01-22 2021-05-18 浪潮电子信息产业股份有限公司 Data backup method, device and system of IaaS system and storage medium
WO2024041119A1 (en) * 2022-08-23 2024-02-29 华为技术有限公司 Data backup method and apparatus

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502837B (en) * 2016-10-25 2019-06-14 Oppo广东移动通信有限公司 A kind of method, apparatus and system of data backup
CN108735271A (en) * 2017-04-17 2018-11-02 中国科学院微电子研究所 A kind of ECG detecting data management system
CN107145386B (en) * 2017-04-28 2020-06-26 Oppo广东移动通信有限公司 Data migration method, terminal device and computer readable storage medium
CN107465737A (en) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 Method of data synchronization, device, storage medium and electronic equipment
CN107302591A (en) * 2017-07-31 2017-10-27 广东欧珀移动通信有限公司 Method of data synchronization, device, storage medium and electronic equipment
CN107241450A (en) * 2017-08-04 2017-10-10 广东欧珀移动通信有限公司 Method of data synchronization, device, storage medium and electronic equipment
CN109302698A (en) * 2018-08-27 2019-02-01 优视科技新加坡有限公司 Near-field Data moving method and its device
CN111338843B (en) * 2018-12-19 2023-08-15 中国移动通信集团云南有限公司 Data backup method and device for production system
CN110096388A (en) * 2019-04-28 2019-08-06 平安科技(深圳)有限公司 A kind of method, apparatus and computer storage medium of data backup
CN110968459B (en) 2019-11-29 2020-12-11 成都星时代宇航科技有限公司 Satellite data processing method and device and satellite backup subsystem
CN111880965A (en) * 2020-06-17 2020-11-03 深圳酷派技术有限公司 Data backup method and device, storage medium and electronic equipment
CN112527559B (en) * 2020-12-09 2021-10-08 广州技象科技有限公司 Internet of things data backup method and device
CN113806070B (en) * 2021-08-10 2022-10-21 中标慧安信息技术股份有限公司 Data management method and device for edge computing and cloud computing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060015698A1 (en) * 2004-05-11 2006-01-19 Samsung Electronics Co., Ltd. Method and apparatus for data backup
CN102750205A (en) * 2012-06-12 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Data backup method of mobile terminals and mobile terminal
CN103401904A (en) * 2013-07-19 2013-11-20 蓝盾信息安全技术股份有限公司 Method for backing up mobile terminal data
CN103947124A (en) * 2012-10-01 2014-07-23 华为技术有限公司 Controlling data synchronization and backup services
CN104580306A (en) * 2013-10-21 2015-04-29 北京计算机技术及应用研究所 Multi-terminal backup service system and task scheduling method thereof
CN106502837A (en) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 A kind of method of data backup, apparatus and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005047342A (en) * 2003-07-31 2005-02-24 Fujitsu Ten Ltd Vehicle control device and vehicle control system
CN101764880B (en) * 2009-12-21 2012-05-30 宇龙计算机通信科技(深圳)有限公司 Information backup method and terminal
CN103024729B (en) * 2012-12-03 2015-08-12 东莞宇龙通信科技有限公司 The method of data backup, Apparatus and system
CN105511985A (en) * 2015-12-01 2016-04-20 魅族科技(中国)有限公司 Data backup method and terminal
CN105808376B (en) * 2016-02-24 2019-06-14 北京金山安全软件有限公司 Data backup method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060015698A1 (en) * 2004-05-11 2006-01-19 Samsung Electronics Co., Ltd. Method and apparatus for data backup
CN102750205A (en) * 2012-06-12 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Data backup method of mobile terminals and mobile terminal
CN103947124A (en) * 2012-10-01 2014-07-23 华为技术有限公司 Controlling data synchronization and backup services
CN103401904A (en) * 2013-07-19 2013-11-20 蓝盾信息安全技术股份有限公司 Method for backing up mobile terminal data
CN104580306A (en) * 2013-10-21 2015-04-29 北京计算机技术及应用研究所 Multi-terminal backup service system and task scheduling method thereof
CN106502837A (en) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 A kind of method of data backup, apparatus and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817792A (en) * 2021-01-22 2021-05-18 浪潮电子信息产业股份有限公司 Data backup method, device and system of IaaS system and storage medium
WO2024041119A1 (en) * 2022-08-23 2024-02-29 华为技术有限公司 Data backup method and apparatus

Also Published As

Publication number Publication date
CN106502837B (en) 2019-06-14
CN106502837A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
WO2018076889A1 (en) Data backup method, device, system, storage medium and server
WO2018076861A1 (en) Data transmission control method, apparatus, storage medium, server and system
WO2018076841A1 (en) Data sharing method, apparatus, storage medium and server
WO2018076867A1 (en) Data backup deleting method, device and system, storage medium and server
WO2018076812A1 (en) Data request response method and device, storage medium, server and system
WO2018076819A1 (en) Data upload method, apparatus, storage medium, electronic device and system
WO2018076866A1 (en) Data processing method, device, storage medium, electronic device and server
WO2018076868A1 (en) Data synchronization method, device and system, storage medium and server
WO2018076818A1 (en) Data backup method, apparatus, electronic device, storage medium, and system
WO2018076829A1 (en) Terminal data processing method, apparatus, system, storage medium and server
WO2018076864A1 (en) Data synchronization method, apparatus, storage medium and electronic device
WO2018129977A1 (en) Charging control method and apparatus, storage medium, and computer device
WO2018076840A1 (en) Data sharing method, device, storage medium and server
WO2018090823A1 (en) Method and system for protecting system partition key data, and terminal
WO2020246822A1 (en) Electronic device and method for switching electronic device between dual standby mode and single standby mode
WO2018076890A1 (en) Data backup method, device, storage medium, server and system
WO2018021678A1 (en) Electronic device and method for operating the same
WO2017206883A1 (en) Application processing method and apparatus, storage medium, and electronic device
WO2018028128A1 (en) Method for feeding back information of uplink data and related apparatus
WO2018076811A1 (en) Data sharing method, device, system, storage medium and electronic device
WO2012124985A2 (en) Method and apparatus for synchronizing personal inforamtion
WO2018076888A1 (en) Method, device and system for synchronizing data of mobile terminal, storage medium and mobile terminal
WO2018076869A1 (en) Data backup method, apparatus, storage medium and electronic device
WO2016188285A1 (en) Process management method and device of terminal application
WO2017071324A1 (en) File-transmission encryption and decryption method and encryption and decryption device

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: 17864508

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: 17864508

Country of ref document: EP

Kind code of ref document: A1