WO2020220536A1 - Data backup method and device, and computer readable storage medium - Google Patents

Data backup method and device, and computer readable storage medium Download PDF

Info

Publication number
WO2020220536A1
WO2020220536A1 PCT/CN2019/102771 CN2019102771W WO2020220536A1 WO 2020220536 A1 WO2020220536 A1 WO 2020220536A1 CN 2019102771 W CN2019102771 W CN 2019102771W WO 2020220536 A1 WO2020220536 A1 WO 2020220536A1
Authority
WO
WIPO (PCT)
Prior art keywords
backup
data
backed
storage system
user
Prior art date
Application number
PCT/CN2019/102771
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 WO2020220536A1 publication Critical patent/WO2020220536A1/en

Links

Images

Classifications

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

Definitions

  • This application relates to the field of computer technology, and in particular to a method, device and computer-readable storage medium for data backup.
  • the distributed storage system adopts a fully distributed shared nothing architecture. With its own advantages of high reliability, high expansion, and low cost, it has been more and more widely used.
  • users store the backup data of the terminal operation data, they will not only save the operation data on the local disk, but also backup the data to different storage systems, such as solid state drives (Solid State). Disk, SSD), distributed file system (Ceph) and other storage systems.
  • SSD solid state drives
  • Ceph distributed file system
  • the embodiments of the present application provide a data backup method, device, and computer-readable storage medium, which can automatically backup according to user requirements, and effectively improve the efficiency of user data backup.
  • an embodiment of the present application provides a data backup method, which may include:
  • the server obtains the backup request of the first user and the identity of the first user sent by the terminal, where the backup request is used to request the backup of the first data to be backed up of the first user;
  • the server determines a backup plan according to the identity identifier and the backup request, and the backup plan includes one or more of a backup storage system, a backup quantity, a main storage system, and a backup delay time;
  • the server establishes a connection between the main storage system and the corresponding backup storage system in the blockchain network according to the backup plan;
  • the server backs up the first data to be backed up to the corresponding backup storage system.
  • an embodiment of the present application provides a data backup method, including:
  • the terminal obtains the backup request of the first user and the identity of the first user, where the backup request is used to request the backup of the first data to be backed up of the first user;
  • the terminal sends the backup request and the identity identifier to the server.
  • an embodiment of the present application provides a data backup device, which may include:
  • the first obtaining unit is configured to obtain a backup request of the first user and the identity of the first user sent by the terminal, and the backup request is used to request a backup of the first data to be backed up of the first user;
  • a first determining unit configured to determine a backup plan according to the identity identifier and the backup request, the backup plan including one or more of a backup storage system, a backup quantity, a main storage system, and a backup delay time;
  • connection unit is configured to establish a connection between the main storage system and the corresponding backup storage system in the blockchain network according to the backup plan;
  • the first backup unit is configured to back up the first data to be backed up to the corresponding backup storage system.
  • an embodiment of the present application provides a data backup device, which may include:
  • the first interaction unit is configured to obtain a backup request of a first user and the identity of the first user, and the backup request is used to request a backup of the first data to be backed up of the first user;
  • the first sending unit is configured to send the backup request and the identity identifier to the server.
  • an embodiment of the present application provides a server for performing the data backup method provided in the first aspect.
  • the server may include a processor, a communication interface and a memory, and the processor, the communication interface and the memory are connected to each other.
  • the communication interface is used to communicate with other network devices (such as terminals)
  • the memory is used to store the implementation code of the data backup method provided in the first aspect
  • the processor is used to execute the program code stored in the memory, that is, execute the first aspect.
  • the data backup method provided.
  • an embodiment of the present application provides a terminal for performing the data backup method provided in the second aspect.
  • the server may include a processor, a memory, an input device, and an output device.
  • the input device is used to receive the first user's input identification, backup request, modification instruction and viewing instruction
  • the output device is used to display the backup data.
  • the memory is used to store the implementation code of the data backup method provided in the second aspect
  • the processor is used to execute the program code stored in the memory, that is, to execute the data backup method provided in the second aspect.
  • an embodiment of the present application also provides a communication system, including: a terminal and a server.
  • the server may be the device described in the third aspect or the server described in the fifth aspect
  • the terminal may be the device described in the fourth aspect or the terminal described in the sixth aspect.
  • embodiments of the present application provide a computer-readable storage medium with instructions stored on the readable storage medium, which when run on a processor, cause the processor to execute the data backup method described in the first aspect.
  • embodiments of the present application provide a computer-readable storage medium with instructions stored on the readable storage medium, which when run on a processor, cause the processor to execute the data backup method described in the second aspect.
  • an embodiment of the present application provides a computer program containing instructions that, when run on a processor, causes the processor to execute the data backup method described in the first aspect.
  • an embodiment of the present application provides a computer program containing instructions, which when run on a processor, causes the processor to perform the data backup method described in the second aspect.
  • FIG. 1 is a schematic diagram of the system architecture of a data backup method provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a data backup method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another data backup method provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of yet another data backup method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a display interface of a data and backup system provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of yet another data backup method provided by an embodiment of the present application.
  • FIG. 9 is a logical address mapping diagram provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a data backup device provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another data backup device provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another data backup device provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of still another data backup device provided by an embodiment of the present application.
  • the embodiments of the present application provide a data backup method, device, and computer-readable storage medium, which can automatically backup according to user requirements, and effectively improve the efficiency of user data backup.
  • FIG. 1 is a schematic diagram of the system architecture of a data backup method provided by an embodiment of the present application.
  • the system architecture can include one or more servers (multiple servers can form a server cluster.
  • server 102 is taken as an example for illustration)
  • storage server 103 Take an example for description
  • terminal 101 is taken as an example for description in FIG. 1), where:
  • the terminal 101 can install and run related applications (or APPs).
  • Application refers to a program that corresponds to a server and provides local services to customers.
  • the local service may include, but is not limited to: sending information to the server (for example, data read and write requests) and receiving information sent by the server (for example, backup success, backup failure), sharing information, and so on.
  • the terminal in the embodiments of the present application may include, but is not limited to, any handheld electronic product based on a smart operating system, which can interact with the user through input devices such as keyboard, virtual keyboard, touch panel, touch screen, and voice control device. , Such as smart phones, tablets, personal computers, etc.
  • the smart operating system includes, but is not limited to, any operating system that enriches device functions by providing various mobile applications to the mobile device, such as Android, IOS, and Windows Phone.
  • the server 102 may include, but is not limited to, a background server, a component server, an information processing server, etc.
  • the server may communicate with multiple terminals through the Internet, or may communicate with multiple storage systems through the Internet.
  • the storage system includes one or more storage servers, such as storage system A, storage system B, and storage system C.
  • the server 102 monitors the read and write requests sent by the terminal, and backs up the terminal user's operation data to the storage system A, storage system B, and One or more of storage system C.
  • the server needs to run corresponding server-side programs to provide corresponding data backup services, such as data reading, data storage and backup, decision execution, and so on.
  • FIG. 2 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the server 200 may include: a memory 201, a communication interface 202, and one or more processors 203 (in the figure, the processor 203 is used as Example to explain). These components can be connected through the bus 204 or in other ways.
  • FIG. 2 takes the connection through the bus as an example. among them:
  • the memory 201 may be coupled with the processor 203 through a bus 204 or an input/output port, and the memory 201 may also be integrated with the processor 203.
  • the memory 201 is used to store various software programs and/or multiple sets of instructions.
  • the memory 201 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 201 may also store a network communication program, which may be used to communicate with one or more additional devices, one or more terminals, and one or more network devices.
  • the processor 203 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processing (DSP), an application specific integrated circuit (ASIC), or One or more integrated circuits configured to implement the embodiments of the present application.
  • the processor 203 may process data received through the communication interface 202.
  • the communication interface 202 is used for the server 200 to communicate with other network devices, for example, to communicate with a terminal.
  • the communication interface 202 may be a transceiver, a transceiver circuit, etc., where the communication interface is a general term and may include one or more interfaces, such as an interface between a terminal and a server.
  • the communication interface 202 may include a wired interface and a wireless interface, such as a standard interface, Ethernet, and a multi-machine synchronization interface.
  • the processor 203 can be used to read and execute computer-readable instructions. Specifically, the processor 203 may be used to call data stored in the memory 201. Optionally, when the processor 203 sends any message or data, it specifically drives or controls the communication interface 202 to do the sending. Optionally, when the processor 203 receives any message or data, it specifically drives or controls the communication interface 202 to do the reception. Therefore, the processor 203 can be regarded as a control center that performs transmission or reception, and the communication interface 202 is a specific performer of transmission and reception operations.
  • the communication interface 202 is specifically configured to execute the steps of data transceiving involved in the following method embodiments, and the processor 203 is specifically configured to implement data processing steps other than the data transceiving.
  • FIG. 3 is a schematic diagram of a data backup method provided by an embodiment of the present application; this method can be applied to the foregoing
  • the specific steps can be as follows:
  • Step S301 The server obtains the backup request of the first user and the identity of the first user sent by the terminal.
  • the backup request is used to request backup of the first data to be backed up of the first user.
  • Step S302 The server determines a backup scheme according to the identity identifier and the backup request.
  • the backup scheme includes one or more of the backup storage system, the number of backups, the main storage system, and the backup delay time.
  • Step S303 The server establishes a connection between the primary storage system and the corresponding backup storage system in the blockchain network according to the backup scheme.
  • the server confirms the backup scheme to search for a backup storage system matching the main storage system from the blockchain network; the embodiment of the present application does not limit the specific search process.
  • Step S304 The server backs up the first data to be backed up to the corresponding backup storage system.
  • the server can back up data to the backup storage system in the blockchain network through the wireless network.
  • FIG. 4 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal may include: one or more processors (the processor 401 is taken as an example in the figure), a memory 402, and one or more An input device (the input device 404 is taken as an example in the figure) and one or more output devices (the output device 404 is taken as an example in the figure). These components can be connected via a bus 405 or other methods.
  • FIG. 4 uses a bus connection as an example. among them:
  • the processor 401 may be a central processing unit (Central Processing Unit, CPU), the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC) , Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 402 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401.
  • a part of the memory 402 may also include a non-volatile random access memory.
  • the memory 402 may also store device type information.
  • the input device 404 may include a touch panel, a fingerprint sensor (used to collect fingerprint information and fingerprint orientation information of the first user), a microphone, etc., and the output device 404 may include a display (LCD, etc.), a speaker, and the like.
  • a fingerprint sensor used to collect fingerprint information and fingerprint orientation information of the first user
  • a microphone used to collect fingerprint information and fingerprint orientation information of the first user
  • the output device 404 may include a display (LCD, etc.), a speaker, and the like.
  • FIG. 5 is a schematic diagram of another data backup method provided by an embodiment of the present application; the method can be applied to For the aforementioned terminal, the specific steps can be as follows:
  • Step S501 The terminal obtains the backup request of the first user and the identity of the first user.
  • the backup request is used to request backup of the first data to be backed up of the first user.
  • Step S502 The terminal sends the backup request and the identity identifier to the server.
  • the terminal can package the request and the identifier through the wireless network, and send the encrypted request to the server.
  • the embodiment of the present application does not limit the specific manner and details of how the terminal sends to the server.
  • FIG. 6 is a diagram of another data backup method provided by an embodiment of the present application. Schematic. Wherein, as shown in FIG. 6, a data backup method provided by an embodiment of the present application may include:
  • Step S601 The terminal obtains the backup request of the first user and the identity of the first user.
  • the content of the display interface of the data backup system may be, for example, but not limited to, as shown in FIG.
  • Figure 7 is a schematic diagram of a data and backup system display interface provided by an embodiment of the present application.
  • the data backup system interface 700 includes: a text box 701 for displaying the data that the user needs to back up.
  • the backup button 702 is used to indicate the user's backup request;
  • the exit button 703 is used to instruct the user to give up the backup data. Further, if the user selects the backup button, the terminal sends the user's backup request to the server.
  • Step S602 The terminal sends the backup request and the identity identifier to the server.
  • Step S603 The server obtains the backup request and the identity sent by the terminal.
  • Step S604 The server determines a backup scheme according to the identity identifier and the backup request.
  • the backup scheme may include: one or more storage systems to be backed up, the number of backups, the primary storage system, the backup storage system, and the backup delay time.
  • storage systems include storage systems such as Solid State Disks (SSD) and distributed storage systems.
  • SSD Solid State Disks
  • Different users have different backup requirements, and the server stores storage solutions corresponding to different user identities.
  • the backup storage system is determined according to user requirements. For example, user 1’s backup requirements are: user data needs to be backed up to storage system A and storage system B; user 2’s backup requirements are: user data needs to be backed up to storage system A and storage System B and Storage System C.
  • the server stores backup schemes corresponding to different users, which are described below in conjunction with Table 1.
  • the storage content of the data backup system may be, for example, but not limited to, as shown in Table 1:
  • the corresponding backup plan for the user whose user ID is 001 is: backup user data to storage system A and storage system B respectively, and the number of backups is 1 copy respectively, and storage system A is the main storage system, and System B is the backup storage system, and the backup delay time between backup storage systems is 30s;
  • the corresponding backup plan for the user whose user ID is 002 is: backup user data to storage system A, storage system B, and storage system C, respectively The number of each is 1 copy, where storage system A is the primary storage system, storage system B and storage system C are backup storage systems, and the backup delay time between backup storage systems is 30s.
  • Step S605 The server establishes a connection between the primary storage system and the corresponding backup storage system in the blockchain network according to the backup scheme.
  • the backup scheme includes the storage system that the user needs to back up, and the server establishes a connection with the storage system that the user needs to back up, so as to facilitate subsequent backup of user data to the corresponding storage system.
  • the main storage system may be a node in the blockchain network, or the main storage system may not be a node in the blockchain network.
  • the backup storage system is a node in the blockchain network (it can be understood that multiple backup storage systems correspond to multiple nodes in the blockchain network). Based on the characteristics of the blockchain, the backup data is not easily tampered with maliciously.
  • the user storage solution with the identity identifier 001 is to back up user data to storage system A and storage system B, respectively, so the server establishes a connection with storage system A and storage system B.
  • Step S606 The server backs up the first data to be backed up to the corresponding backup storage system.
  • the server backs up the data to be backed up to the corresponding backup storage system according to certain backup rules (including backup sequence, etc.).
  • Both the backup storage system and the primary storage system can be nodes in the blockchain network. Developers can preset that the system corresponding to a certain node is the primary storage system, and then the system corresponding to other nodes in the network is the backup storage system.
  • the embodiment of the present application does not limit the specific object content and form corresponding to the backup storage system and the main storage system.
  • the method further includes: the server performs desensitization processing on the first data to be backed up.
  • Some sensitive information in the backup data is deformed through desensitization rules to achieve reliable protection of sensitive privacy data.
  • desensitization rules to achieve reliable protection of sensitive privacy data.
  • reform the real data and provide test use such as personal information such as ID card number, mobile phone number, card number, customer number, etc. Data desensitization.
  • the method further includes: the server encrypts the first data to be backed up according to a hash algorithm.
  • the encryption system involved in the embodiments of this application is composed of plain text, cipher text, algorithms, and keys.
  • the sender that is, the server
  • the receiver After receiving the ciphertext, the receiver (that is, the storage system, such as the backup storage system) uses the decryption key to decrypt the ciphertext and restore it to plaintext.
  • the transmission process even if the ciphertext is stolenly obtained by illegal elements, what is obtained is only the unidentifiable ciphertext, which plays a role of data confidentiality.
  • the server backing up the first user data to the one or more storage systems includes:
  • the server backs up the first user data to the primary storage system at the first time, and backs up the first user data to the backup storage system at the second time, and the first time and the second time
  • the time interval is the backup delay time
  • the server backing up the first user data to the one or more storage systems includes:
  • the server determines a backup sequence for backing up the first user data to the multiple backup storage systems according to the backup space and remaining space capacity of the storage system occupied by the first user data, and the storage system includes one or more backup spaces ;
  • the server sequentially backs up the first user data to the multiple backup storage systems according to the backup sequence and the backup delay time.
  • each storage system includes one or more backup spaces, and each backup space has a corresponding remaining space capacity.
  • the server determines the logical address where the user data is backed up to the storage system according to the logical address of the first user data at the terminal, and then determines the corresponding backup space of the first user data in the storage system according to the logical address of the storage system, for example, the backup corresponding to user 002
  • storage system B and storage system C are backup storage systems, the backup space corresponding to the user data backed up to storage system B is backup space 1, and the remaining capacity of backup space 1 is 30G; the first user data is correspondingly backed up to storage
  • the backup space of system C is backup space 1, and the remaining capacity of backup space 2 is 40G.
  • the server sorts the multiple backup storage systems in ascending order of the ratio of the memory size of the backup space occupied by the first user data to the remaining space capacity of the backup space, and the The sequence is determined as the backup sequence of multiple standby storage systems.
  • the same user data size after being backed up to different storage systems may be the same or different.
  • the user data of user 002 is backed up to storage system B backup space 1 and the memory size of backup space 1 is 0.5G
  • backed up to storage system C backup space 1 and the memory size of backup space 2 is 0.4G
  • the ratio of the memory size of the backup space 1 occupied by the user data of the user 002 to the remaining space capacity of the backup space 1 is 1/6
  • the ratio of the memory size occupied by the backup space 2 to the remaining space capacity of the backup space 2 is 1. /10, so the backup of storage system B and storage system C is storage system B ⁇ storage system C.
  • the server backs up user data to one or more storage systems according to the user's backup scheme, avoiding multiple backups of user data to different storage systems, reducing user data backup time, and effectively improving user data backup efficiency.
  • FIG. 8 is a schematic diagram of still another data backup method provided by an embodiment of the present application.
  • the server may include step S801-step S817; among them, for step S801-step S806, please refer to the corresponding step S601-step S606 respectively in sequence, which will not be repeated here; the following are the steps S807-Step S817 detailed introduction:
  • Step S801 The terminal obtains the backup request of the first user and the identity of the first user.
  • Step S802 The terminal sends the backup request and the identity identifier to the server.
  • Step S803 The server obtains the backup request and the identity sent by the terminal.
  • Step S804 The server determines a backup scheme according to the identity identifier and the backup request.
  • Step S805 The server establishes a connection between the primary storage system and the corresponding backup storage system in the blockchain network according to the backup scheme.
  • Step S806 The server backs up the first data to be backed up to the corresponding backup storage system.
  • Step S807 The terminal obtains the modification instruction of the first user.
  • the terminal may modify the first user data; the modification instruction is used to instruct the server to modify part or all of the first data to be backed up . For example, take the first user backing up a large number of pictures as an example for description.
  • the user may perform modification operations such as deleting one or more photos and adding other photos.
  • Step S808 The terminal sends the modification instruction to the server.
  • Step S809 The server obtains the modification instruction.
  • Step S810 The server obtains the second data to be backed up.
  • Step S811 The server backs up the second data to be backed up to the corresponding backup storage system.
  • the server backs up the modified data modified by the first user to the storage system but may not back up all the first user data to the storage system.
  • the server backs up part or all of the modified data to one or more storage systems, including:
  • the server backs up the modified data after the modification operation in the logical address segment of the terminal and the first mapping table according to the partial data or all the data after the modification operation to the address corresponding to the one or more storage systems Block, the first mapping table includes the corresponding relationship between the modified data in the logical address segment of the terminal and the second mapping table, and the second mapping table includes the modified data in the one or more storage systems
  • the corresponding logical address segment and the physical address in the corresponding relationship, the physical address includes a physical block address and/or a combination of a physical block address and a predetermined offset.
  • FIG. 9 is a logical address mapping diagram provided by an embodiment of the present application.
  • the logical address segments of user data B, user data C and user data D in the terminal are logical address segment 1, logical address segment 2, and logical address respectively. Segment 3 and logical address segment 4.
  • the logical fields corresponding to user data A, B, C, and D in storage system A are logical address segment 1, logical address segment 3, logical address segment 5 and logical address segment 8, storage system A
  • the physical addresses corresponding to the logical address segment 1, logical address segment 3, logical address segment 5, and logical address segment 8 on the storage system A are physical address 1, physical address 2, physical address 3, and physical address 4, respectively.
  • Address 1 and physical address 3 have preset offsets.
  • the server stores the user data of the terminal to the physical address corresponding to the storage system according to the mapping table relationship between the logical address segment of the terminal user data and the logical address segment of the storage system.
  • the data A after the modification operation becomes data F
  • the server stores the data F in the physical address 1 in the storage system A. If the modified data F occupies a much larger memory than the data A, and the physical address 1 of the storage system A cannot back up part of the data of the data F, part of the data of the data F is backed up to the predetermined offset of the physical address 1.
  • Step S812 The terminal sends a view instruction of the first user to the first data to be backed up and/or the second data to be backed up.
  • the first user may have one or more backup data in the storage system, and the user inputs the target backup data to be viewed through the terminal.
  • Step S813 The server obtains the viewing instruction.
  • Step S814 The server obtains the first data to be backed up and/or the second data to be backed up from the main storage system according to the view instruction and the backup plan of the first user.
  • the server sends the target backup data (that is, the first data to be backed up and/or the second data to be backed up) identification to the primary storage system corresponding to the first user, and the primary storage system determines the target backup through the identification. Data, and then send the target backup data to the server.
  • the target backup data that is, the first data to be backed up and/or the second data to be backed up
  • the server when the server cannot send the target backup data from the main storage system within a preset time period, the server sends the identifier of the target backup data to the backup storage system, and obtains the target backup data from the backup storage system.
  • the target backup data is acquired from the backup storage system in the order of backing up the first user data.
  • Step S815 The server sends the first data to be backed up and/or the second data to be backed up to the terminal.
  • Step S816 The terminal receives the first data to be backed up and/or the second data to be backed up.
  • Step S817 The terminal outputs the first data to be backed up and/or the second data to be backed up.
  • the server monitors the user's modification request in real time during the backup process, and then backs up the modified data to the storage system, which effectively guarantees the consistency of the user's actual data and the backup data in the storage system.
  • Figure 10 is a schematic diagram of a data backup device provided by an embodiment of the application, as shown in Figure 10.
  • the device 100 may include a first obtaining unit 1001, a first determining unit 1002, a connecting unit 1003, and a first backup unit 1004; wherein,
  • the first obtaining unit 1001 is configured to obtain a backup request of a first user and the identity of the first user sent by a terminal, and the backup request is used to request a backup of the first data to be backed up of the first user;
  • the first determining unit 1002 is configured to determine a backup plan according to the identity identifier and the backup request, where the backup plan includes one or more of a backup storage system, a backup quantity, a main storage system, and a backup delay time;
  • the connection unit 1003 is configured to establish a connection between the main storage system and the corresponding backup storage system in the blockchain network according to the backup scheme;
  • the first backup unit 1004 is configured to back up the first data to be backed up to the corresponding backup storage system.
  • the data backup device described in the embodiment of the present application can refer to the related description of the server in the data backup method of the method embodiment described in FIG. 3, FIG. 6 and FIG. 8, which will not be repeated here. It is understandable that the functions of the units involved in the data backup device described in the embodiments of the application are part of the functions of the server, but do not include all the functions of the server; the order of describing the units in the device does not affect the actual device Features.
  • FIG. 11 is a schematic diagram of another data backup device provided by an embodiment of the present application.
  • a data backup device 1100 provided by an embodiment of the present application may include: a first obtaining unit 1101 First determination unit 1102, connection unit 1103, first backup unit 1104, second determination unit 1105, second backup unit 1106, second acquisition unit 1107, third acquisition unit 1108, third backup unit 1109, fourth acquisition unit 1110.
  • the optional unit may also include a second determining unit 1105, a second backup unit 1106, a second acquiring unit 1107, a third acquiring unit 1108, a third backup unit 1109, a fourth acquiring unit 1110, and a data sending unit 1111.
  • the first obtaining unit 1101 is configured to obtain a backup request of a first user and the identity of the first user sent by a terminal, and the backup request is used to request a backup of the first data to be backed up of the first user.
  • the first determining unit 1102 is configured to determine a backup plan according to the identity identifier and the backup request, where the backup plan includes one or more of a backup storage system, a backup quantity, a main storage system, and a backup delay time.
  • the connection unit 1103 is configured to establish a connection between the primary storage system and the corresponding backup storage system in the blockchain network according to the backup scheme.
  • the first backup unit 1104 is configured to back up the first data to be backed up to the corresponding backup storage system.
  • the first backup unit 1104 is specifically configured to:
  • the first data to be backed up is backed up to the main storage system at the first time, and the first data to be backed up is backed up to the corresponding backup storage system at the second time.
  • the time interval at the second moment is the backup delay time.
  • the first backup unit 1104 includes:
  • the second determining unit 1105 is configured to determine to back up the first data to be backed up to the multiple backups according to the backup space of the primary storage system occupied by the first data to be backed up and the remaining space of the backup space The backup sequence of the corresponding backup storage system in the storage system, where the primary storage system includes one or more backup spaces;
  • the second backup unit 1106 is configured to sequentially back up the first data to be backed up to the corresponding backup storage system according to the backup sequence and the backup delay time.
  • the second determining unit 1105 is specifically configured to: according to the ratio of the capacity of the backup space occupied by the first data to be backed up to the capacity of the remaining space, in order to increase Sort the corresponding backup storage systems in the plurality of backup storage systems in sequence; and determine the backup sequence of the corresponding backup storage systems according to the sequence after the arrangement.
  • the apparatus 1100 further includes:
  • the second obtaining unit 1107 is configured to obtain a modification instruction of the first user after obtaining the backup request of the first user and the identity of the first user sent by the terminal, and the modification instruction is used to instruct the partial or Modify all the first data to be backed up;
  • the third obtaining unit 1108 is configured to obtain second data to be backed up, where the second data to be backed up includes part or all of the first data to be backed up after the modification operation is performed;
  • the third backup unit 1109 is configured to back up the second data to be backed up to the corresponding backup storage system.
  • the third backup unit 1109 is specifically configured to:
  • the first mapping table includes the correspondence between the modified data in the logical address segment of the terminal and the second mapping table
  • the second mapping table includes the modified data in the one or more storage systems The corresponding relationship between the logical address segment and the physical address, where the physical address includes a physical block address and/or a combination of a physical block address and a predetermined offset.
  • the apparatus 1100 further includes:
  • the fourth obtaining unit 1110 is configured to obtain, after backing up the first data to be backed up to the corresponding backup storage system, the first user’s response to the first data to be backed up and/or the View instruction of the second data to be backed up;
  • a data acquisition unit 1112 configured to acquire the first data to be backed up and/or the second data to be backed up from the main storage system according to the viewing instruction and the backup plan of the first user;
  • the data sending unit 1111 is configured to send the first data to be backed up and/or the second data to be backed up to the terminal.
  • the device 1100 further includes a data desensitization unit 1113, configured to: before backing up the first data to be backed up to the corresponding backup storage system, The backup data is desensitized.
  • the device 1100 further includes a data encryption unit 1114, configured to: before backing up the first data to be backed up to the corresponding backup storage system, perform a hash algorithm on the The first data to be backed up is encrypted.
  • the data backup device described in the embodiment of the present application can refer to the related description of the server in the data backup method of the method embodiment described in FIG. 3, FIG. 6 and FIG. 8, which will not be repeated here. It is understandable that the functions of the units involved in the data backup device described in the embodiments of the application are part of the functions of the server, but do not include all the functions of the server; the order of describing the units in the device does not affect the actual device Features.
  • FIG. 12 is a schematic diagram of another data backup device provided in an embodiment of the present application.
  • the device 12 may include a first interaction unit 1201. And the first sending unit 1202; where,
  • the first interaction unit 1201 is configured to obtain a backup request of a first user and the identity of the first user, and the backup request is used to request a backup of the first data to be backed up of the first user;
  • the first sending unit 1202 is configured to send the backup request and the identity identifier to the server.
  • the data backup device described in the embodiment of the present application can refer to the related description of the terminal in the data backup method of the method embodiment described in FIG. 5, FIG. 6 and FIG. 8, which will not be repeated here. It is understandable that the functions of each unit involved in the data backup device described in the embodiments of this application are part of the functions of the terminal, but do not include all the functions of the terminal; the order of describing the units in the device does not affect the actual device Features.
  • FIG. 13 is a schematic diagram of another data backup device provided by an embodiment of the present application.
  • the device 1300 provided by an embodiment of the present application may include: a first interaction unit 1301, a first sending unit 1302, a second interaction unit 1303, a second sending unit 1304, a third interaction unit 1305, and a third sending unit 1306.
  • the unit may further include a second interaction unit 1303, a second sending unit 1304, a third interaction unit 1305, and a third sending unit 1306.
  • the first obtaining unit 1301 is configured to obtain a backup request of a first user and the identity of the first user, and the backup request is used to request a backup of the first data to be backed up of the first user;
  • the first sending unit 1302 is configured to send the backup request and the identity identifier to the server.
  • the device 1300 further includes:
  • the second obtaining unit 1303 is configured to obtain a modification instruction, where the modification instruction is used to instruct the server to modify part or all of the first data to be backed up;
  • the second sending unit 1304 is configured to send the modification instruction to the server.
  • the device 1300 further includes:
  • the third obtaining unit 1305 is configured to obtain a view instruction of the first user for the first data to be backed up and/or the second data to be backed up;
  • the third sending unit 1306 is configured to send the viewing instruction to the server.
  • the data backup device described in the embodiment of the present application can refer to the related description of the terminal in the data backup method of the method embodiment described in FIG. 5, FIG. 6 and FIG. 8, which will not be repeated here. It is understandable that the functions of each unit involved in the data backup device described in the embodiments of this application are part of the functions of the terminal, but do not include all the functions of the terminal; the order of describing the units in the device does not affect the actual device Features.
  • the embodiment of the present application also provides a communication system including: a terminal and a server.
  • the server may be the device or server described in the foregoing embodiment
  • the terminal may be the device or terminal described in the foregoing embodiment.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes part or all of the steps of any one of the above method embodiments when executed.
  • the embodiments of the present application also provide a computer program, the computer program including instructions, when the computer program is executed by a computer, the computer can execute part or all of the steps of any data backup method.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium It includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program code .
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the available medium may be a magnetic medium, (for example, a floppy disk, Hard disk, magnetic tape), optical media (such as digital versatile disc (DVD), semiconductor medium (such as solid state disk, SSD), 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

A data backup method and device, and a computer readable storage medium. Said method may comprise: a server acquiring a backup request of a first user sent by a terminal (101) and the identity identifier of the first user (S301), the backup request being used for requesting for a backup of first data to be backed up of the first user; the server (102) determining a backup scheme according to the identity identifier and the backup request (S302), the backup scheme comprising one or more of a backup storage system, the number of backups, a main storage system and a backup delay time; the server establishing, according to the backup scheme, a connection between the main storage system and a corresponding backup storage system in a blockchain network (S303); and the server backing up said first data into the corresponding backup storage system (S304). The solution above can achieve automatic backup according to user requirements, effectively improving the efficiency of user data backup.

Description

一种数据备份的方法、装置及计算机可读存储介质Method, device and computer readable storage medium for data backup
本申请要求于2019年4月28日提交中国专利局、申请号为201910359291.6、申请名称为“一种数据备份的方法、装置及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on April 28, 2019, the application number is 201910359291.6, and the application title is "a method, device and computer storage medium for data backup", the entire content of which is by reference Incorporated in this application.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种数据备份的方法、装置及计算机可读存储介质。This application relates to the field of computer technology, and in particular to a method, device and computer-readable storage medium for data backup.
背景技术Background technique
在云计算和大数据趋势下,企业数据存储和虚拟化应用需求海量增长。基于业界标准X86服务器,采用全分布式无共享架构的分布式存储系统,凭借其自身高可靠、高扩展、低成本的优势,得到了越来越广泛的应用。为了更安全有效地保存终端操作数据,用户在存储终端操作数据的备份数据时,不仅仅会把操作数据保存在本地磁盘中,还会把数据备份到不同的存储系统,例如固态硬盘(Solid State Disk,SSD),分布式文件系统(Ceph)等存储系统。Under the trend of cloud computing and big data, the demand for enterprise data storage and virtualization applications has grown tremendously. Based on the industry standard X86 server, the distributed storage system adopts a fully distributed shared nothing architecture. With its own advantages of high reliability, high expansion, and low cost, it has been more and more widely used. In order to save the terminal operation data more safely and effectively, when users store the backup data of the terminal operation data, they will not only save the operation data on the local disk, but also backup the data to different storage systems, such as solid state drives (Solid State). Disk, SSD), distributed file system (Ceph) and other storage systems.
然而,不同的存储系统有不同的存储方案,如果用户(例如企业)需要将操作数据备份到多个存储系统,则需要将操作数据进行多次的备份。并且,数据存储备份完成后,若用户对操作数据进行增删改等修改操作,需要将修改后的数据再多次备份到不同的存储系统,这使得数据备份流程复杂,导致存储效率低下,造成时间的浪费。However, different storage systems have different storage solutions. If a user (such as an enterprise) needs to back up operating data to multiple storage systems, the operating data needs to be backed up multiple times. Moreover, after the data storage backup is completed, if the user performs modification operations such as additions, deletions, and modifications to the operating data, the modified data needs to be backed up to different storage systems multiple times. This makes the data backup process complicated, resulting in low storage efficiency and time Waste.
因此,如何高效地对目标数据在不同的存储系统中进行多次备份,是本申请亟待解决的问题。Therefore, how to efficiently backup the target data multiple times in different storage systems is a problem to be solved in this application.
发明内容Summary of the invention
本申请实施例提供一种数据备份的方法、装置及计算机可读存储介质,根据用户需求自动化备份,有效提高用户数据备份效率。The embodiments of the present application provide a data backup method, device, and computer-readable storage medium, which can automatically backup according to user requirements, and effectively improve the efficiency of user data backup.
第一方面,本申请实施例提供了一种数据备份的方法,该方法可以包括:In the first aspect, an embodiment of the present application provides a data backup method, which may include:
服务器获取终端发送的第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份;The server obtains the backup request of the first user and the identity of the first user sent by the terminal, where the backup request is used to request the backup of the first data to be backed up of the first user;
所述服务器根据所述身份标识和所述备份请求确定备份方案,所述备份方案包括备份存储系统、备份数量、主存储系统和备份延迟时间中的一个或者多个;The server determines a backup plan according to the identity identifier and the backup request, and the backup plan includes one or more of a backup storage system, a backup quantity, a main storage system, and a backup delay time;
所述服务器根据所述备份方案,将所述主存储系统与区块链网络中对应的备份存储系统建立连接;The server establishes a connection between the main storage system and the corresponding backup storage system in the blockchain network according to the backup plan;
所述服务器将所述第一待备份数据备份到所述对应的备份存储系统。The server backs up the first data to be backed up to the corresponding backup storage system.
第二方面,本申请实施例提供了一种数据备份的方法,包括:In the second aspect, an embodiment of the present application provides a data backup method, including:
终端获取第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份;The terminal obtains the backup request of the first user and the identity of the first user, where the backup request is used to request the backup of the first data to be backed up of the first user;
所述终端将所述备份请求和所述身份标识发送给服务器。The terminal sends the backup request and the identity identifier to the server.
第三方面,本申请实施例提供了一种数据备份的装置,该装置可以包括:In the third aspect, an embodiment of the present application provides a data backup device, which may include:
第一获取单元,用于获取终端发送的第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份;The first obtaining unit is configured to obtain a backup request of the first user and the identity of the first user sent by the terminal, and the backup request is used to request a backup of the first data to be backed up of the first user;
第一确定单元,用于根据所述身份标识和所述备份请求确定备份方案,所述备份方案包括备份存储系统、备份数量、主存储系统和备份延迟时间中的一个或者多个;A first determining unit, configured to determine a backup plan according to the identity identifier and the backup request, the backup plan including one or more of a backup storage system, a backup quantity, a main storage system, and a backup delay time;
连接单元,用于根据所述备份方案,将所述主存储系统与区块链网络中对应的备份存储系统建立连接;The connection unit is configured to establish a connection between the main storage system and the corresponding backup storage system in the blockchain network according to the backup plan;
第一备份单元,用于将所述第一待备份数据备份到所述对应的备份存储系统。The first backup unit is configured to back up the first data to be backed up to the corresponding backup storage system.
第四方面,本申请实施例提供了一种数据备份的装置,可以包括:In a fourth aspect, an embodiment of the present application provides a data backup device, which may include:
第一交互单元,用于获取第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份;The first interaction unit is configured to obtain a backup request of a first user and the identity of the first user, and the backup request is used to request a backup of the first data to be backed up of the first user;
第一发送单元,用于将所述备份请求和所述身份标识发送给服务器。The first sending unit is configured to send the backup request and the identity identifier to the server.
第五方面,本申请实施例提供了一种服务器,用于执行第一方面所提供数据备份的方法。该服务器可包括:处理器、通信接口和存储器,处理器、通信接口和存储器相互连接。其中,通信接口用于与其它网络设备(例如终端)进行通信,存储器用于存储第一方面所提供的数据备份方法的实现代码,处理器用于执行存储器中存储的程序代码,即执行第一方面所提供的数据备份的方法。In the fifth aspect, an embodiment of the present application provides a server for performing the data backup method provided in the first aspect. The server may include a processor, a communication interface and a memory, and the processor, the communication interface and the memory are connected to each other. Among them, the communication interface is used to communicate with other network devices (such as terminals), the memory is used to store the implementation code of the data backup method provided in the first aspect, and the processor is used to execute the program code stored in the memory, that is, execute the first aspect. The data backup method provided.
第六方面,本申请实施例提供了一种终端,用于执行第二方面所提供数据备份的方法。该服务器可包括:处理器、存储器、输入器和输出器。其中,输入器用于接收第一用户输入身份标识、备份请求、修改指令和查看指令,输出器用于显示备份数据。存储器用于存储第二方面所提供的数据备份方法的实现代码,处理器用于执行存储器中存储的程序代码,即执行第二方面所提供的数据备份的方法。In a sixth aspect, an embodiment of the present application provides a terminal for performing the data backup method provided in the second aspect. The server may include a processor, a memory, an input device, and an output device. Among them, the input device is used to receive the first user's input identification, backup request, modification instruction and viewing instruction, and the output device is used to display the backup data. The memory is used to store the implementation code of the data backup method provided in the second aspect, and the processor is used to execute the program code stored in the memory, that is, to execute the data backup method provided in the second aspect.
第七方面,本申请实施例还提供了一种通信系统,包括:终端和服务器。其中,服务器可以是第三方面描述的装置或第五方面描述的服务器,终端可以是第四方面描述的装置或第六方面描述的终端。In a seventh aspect, an embodiment of the present application also provides a communication system, including: a terminal and a server. The server may be the device described in the third aspect or the server described in the fifth aspect, and the terminal may be the device described in the fourth aspect or the terminal described in the sixth aspect.
第八方面,本申请实施例提供一种计算机可读存储介质,可读存储介质上存储有指令,当其在处理器上运行时,使得处理器执行上述第一方面描述的数据备份的方法。In an eighth aspect, embodiments of the present application provide a computer-readable storage medium with instructions stored on the readable storage medium, which when run on a processor, cause the processor to execute the data backup method described in the first aspect.
第九方面,本申请实施例提供一种计算机可读存储介质,可读存储介质上存储有指令,当其在处理器上运行时,使得处理器执行上述第二方面描述的数据备份的方法。In a ninth aspect, embodiments of the present application provide a computer-readable storage medium with instructions stored on the readable storage medium, which when run on a processor, cause the processor to execute the data backup method described in the second aspect.
第十方面,本申请实施例提供了一种包含指令的计算机程序,当其在处理器上运行时,使得处理器执行上述第一方面描述的数据备份的方法。In a tenth aspect, an embodiment of the present application provides a computer program containing instructions that, when run on a processor, causes the processor to execute the data backup method described in the first aspect.
第十一方面,本申请实施例提供了一种包含指令的计算机程序,当其在处理器上运行时,使得处理器执行上述第二方面描述的数据备份的方法。In an eleventh aspect, an embodiment of the present application provides a computer program containing instructions, which when run on a processor, causes the processor to perform the data backup method described in the second aspect.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art.
图1是本申请实施例提供的一种数据备份方法的系统架构示意图;FIG. 1 is a schematic diagram of the system architecture of a data backup method provided by an embodiment of the present application;
图2是本申请实施例提供的一种服务器的结构示意图;FIG. 2 is a schematic structural diagram of a server provided by an embodiment of the present application;
图3是本申请实施例提供的一种数据备份方法的示意图;FIG. 3 is a schematic diagram of a data backup method provided by an embodiment of the present application;
图4是本申请实施例提供的一种终端的结构示意图;FIG. 4 is a schematic structural diagram of a terminal provided by an embodiment of the present application;
图5是本申请实施例提供的另一种数据备份方法的示意图;FIG. 5 is a schematic diagram of another data backup method provided by an embodiment of the present application;
图6是本申请实施例提供的又一种数据备份方法的示意图;Figure 6 is a schematic diagram of yet another data backup method provided by an embodiment of the present application;
图7是本申请实施例提供的一种数据和备份系统显示界面示意图;FIG. 7 is a schematic diagram of a display interface of a data and backup system provided by an embodiment of the present application;
图8是本申请实施例提供的再一种数据备份方法的示意图;FIG. 8 is a schematic diagram of yet another data backup method provided by an embodiment of the present application;
图9是本申请实施例提供的一种逻辑地址映射图;FIG. 9 is a logical address mapping diagram provided by an embodiment of the present application;
图10是本申请实施例提供的一种数据备份装置的示意图;FIG. 10 is a schematic diagram of a data backup device provided by an embodiment of the present application;
图11是本申请实施例提供的另一种数据备份装置的示意图;FIG. 11 is a schematic diagram of another data backup device provided by an embodiment of the present application;
图12是本申请实施例提供的又一种数据备份装置的示意图;FIG. 12 is a schematic diagram of another data backup device provided by an embodiment of the present application;
图13是本申请实施例提供的再一种数据备份装置的示意图。FIG. 13 is a schematic diagram of still another data backup device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供一种数据备份的方法、装置及计算机可读存储介质,根据用户需求自动化备份,有效提高用户数据备份效率。The embodiments of the present application provide a data backup method, device, and computer-readable storage medium, which can automatically backup according to user requirements, and effectively improve the efficiency of user data backup.
下面先对本方案的系统架构进行描述。请参见图1,图1是本申请实施例提供的一种数据备份方法的系统架构示意图。如图1所示,系统架构可以包括一个或多个服务器(多个服务器可以构成一个服务器集群,图1中以服务器102为例进行说明)、一个或多个存储服务器(图中以存储服务器103为例进行说明),以及一个或多个终端或设备(图1中以终端101为例进行说明),其中:The following first describes the system architecture of this solution. Please refer to FIG. 1. FIG. 1 is a schematic diagram of the system architecture of a data backup method provided by an embodiment of the present application. As shown in Figure 1, the system architecture can include one or more servers (multiple servers can form a server cluster. In Figure 1, server 102 is taken as an example for illustration), one or more storage servers (in the figure, storage server 103 Take an example for description), and one or more terminals or devices (terminal 101 is taken as an example for description in FIG. 1), where:
终端101可以安装并运行相关的应用(或APP)。应用是指与服务器相对应,为客户提供本地服务的程序。这里,该本地服务可包括但不限于:向服务器发送信息(例如数据读写请求)和接收服务器发送的信息(例如,备份成功,备份失败)以及共享信息等等。本申请实施例中的终端可以包括但不限于任何一种基于智能操作系统的手持式电子产品,其可与用户通过键盘、虚拟键盘、触摸板、触摸屏以及声控设备等输入设备来进行人机交互,诸如智能手机、平板电脑、个人电脑等。其中,智能操作系统包括但不限于任何通过向移动设备提供各种移动应用来丰富设备功能的操作系统,诸如安卓(Android)、IOS以及Windows Phone等。The terminal 101 can install and run related applications (or APPs). Application refers to a program that corresponds to a server and provides local services to customers. Here, the local service may include, but is not limited to: sending information to the server (for example, data read and write requests) and receiving information sent by the server (for example, backup success, backup failure), sharing information, and so on. The terminal in the embodiments of the present application may include, but is not limited to, any handheld electronic product based on a smart operating system, which can interact with the user through input devices such as keyboard, virtual keyboard, touch panel, touch screen, and voice control device. , Such as smart phones, tablets, personal computers, etc. Among them, the smart operating system includes, but is not limited to, any operating system that enriches device functions by providing various mobile applications to the mobile device, such as Android, IOS, and Windows Phone.
服务器102可以包括但不限于后台服务器、组件服务器、信息处理服务器等,服务器可以通过互联网与多个终端进行通信,也可以通过互联网与多个存储系统进行通信。存储系统包括一个或者多个存储服务器,如存储系统A、存储系统B和存储系统C等,服务器102监听终端发送的读写请求,将终端用户的操作数据备份到存储系统A、存储系统B和存储系统C中的一个或多个。服务器上需要运行有相应的服务器端程序来提供相应的数据备份服务,如数据读取,数据存储备份、决策执行等等。The server 102 may include, but is not limited to, a background server, a component server, an information processing server, etc. The server may communicate with multiple terminals through the Internet, or may communicate with multiple storage systems through the Internet. The storage system includes one or more storage servers, such as storage system A, storage system B, and storage system C. The server 102 monitors the read and write requests sent by the terminal, and backs up the terminal user's operation data to the storage system A, storage system B, and One or more of storage system C. The server needs to run corresponding server-side programs to provide corresponding data backup services, such as data reading, data storage and backup, decision execution, and so on.
请参见图2,图2是本申请实施例提供的一种服务器的结构示意图,该服务器200可包括:存储器201、通信接口202、和一个或多个处理器203(图中以处理器203为例进行说明)。这些部件可通过总线204或者其他方式连接,图2以通过总线连接为例。其中:Please refer to FIG. 2, which is a schematic structural diagram of a server provided by an embodiment of the present application. The server 200 may include: a memory 201, a communication interface 202, and one or more processors 203 (in the figure, the processor 203 is used as Example to explain). These components can be connected through the bus 204 or in other ways. FIG. 2 takes the connection through the bus as an example. among them:
存储器201可以和处理器203通过总线204或者输入输出端口耦合,存储器201也可以与处理器203集成在一起。存储器201用于存储各种软件程序和/或多组指令。具体地,存储器201可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器201还可以存储网络通信程序,该网络通信程序可用于与一个或多个附加设备,一个或多个终端,一个或多个网络设备进行通信。The memory 201 may be coupled with the processor 203 through a bus 204 or an input/output port, and the memory 201 may also be integrated with the processor 203. The memory 201 is used to store various software programs and/or multiple sets of instructions. Specifically, the memory 201 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 201 may also store a network communication program, which may be used to communicate with one or more additional devices, one or more terminals, and one or more network devices.
处理器203可以是通用处理器,例如中央处理器(central processing unit,CPU),还可以是数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路。处理器203可处理通过通信接口202接收到的数据。The processor 203 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processing (DSP), an application specific integrated circuit (ASIC), or One or more integrated circuits configured to implement the embodiments of the present application. The processor 203 may process data received through the communication interface 202.
通信接口202用于服务器200与其他网络设备进行通信,例如与终端进行通信。通信接口202可以是收发器、收发电路等,其中,通信接口是统称,可以包括一个或多个接口,例如终端与服务器之间的接口。通信接口202可以包括有线接口和无线接口,例如标准接口、以太网、多机同步接口。The communication interface 202 is used for the server 200 to communicate with other network devices, for example, to communicate with a terminal. The communication interface 202 may be a transceiver, a transceiver circuit, etc., where the communication interface is a general term and may include one or more interfaces, such as an interface between a terminal and a server. The communication interface 202 may include a wired interface and a wireless interface, such as a standard interface, Ethernet, and a multi-machine synchronization interface.
处理器203可用于读取和执行计算机可读指令。具体地,处理器203可用于调用存储于存储器201中的数据。可选地,当处理器203发送任何消息或数据时,其具体通过驱动或控制通信接口202做所述发送。可选地,当处理器203接收任何消息或数据时,其具体通过驱动或控制通信接口202做所述接收。 因此,处理器203可以被视为是执行发送或接收的控制中心,通信接口202是发送和接收操作的具体执行者。The processor 203 can be used to read and execute computer-readable instructions. Specifically, the processor 203 may be used to call data stored in the memory 201. Optionally, when the processor 203 sends any message or data, it specifically drives or controls the communication interface 202 to do the sending. Optionally, when the processor 203 receives any message or data, it specifically drives or controls the communication interface 202 to do the reception. Therefore, the processor 203 can be regarded as a control center that performs transmission or reception, and the communication interface 202 is a specific performer of transmission and reception operations.
在本申请实施例中,通信接口202具体用于执行下述方法实施例中涉及的数据收发的步骤,处理器203具体用于实施除数据收发之外的数据处理的步骤。In the embodiment of the present application, the communication interface 202 is specifically configured to execute the steps of data transceiving involved in the following method embodiments, and the processor 203 is specifically configured to implement data processing steps other than the data transceiving.
结合上面描述的一种服务器的结构,本申请实施例提供一种数据备份的方法,请参见图3,图3是本申请实施例提供的一种数据备份方法的示意图;该方法可以应用于前述的服务器,具体步骤可以如下:In combination with the structure of a server described above, an embodiment of the present application provides a data backup method, please refer to FIG. 3, which is a schematic diagram of a data backup method provided by an embodiment of the present application; this method can be applied to the foregoing The specific steps can be as follows:
步骤S301:服务器获取终端发送的第一用户的备份请求和所述第一用户的身份标识。Step S301: The server obtains the backup request of the first user and the identity of the first user sent by the terminal.
具体地,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份。Specifically, the backup request is used to request backup of the first data to be backed up of the first user.
步骤S302:所述服务器根据所述身份标识和所述备份请求确定备份方案。Step S302: The server determines a backup scheme according to the identity identifier and the backup request.
具体地,所述备份方案包括备份存储系统、备份数量、主存储系统和备份延迟时间中的一个或者多个。Specifically, the backup scheme includes one or more of the backup storage system, the number of backups, the main storage system, and the backup delay time.
步骤S303:所述服务器根据所述备份方案,将所述主存储系统与区块链网络中对应的备份存储系统建立连接。Step S303: The server establishes a connection between the primary storage system and the corresponding backup storage system in the blockchain network according to the backup scheme.
具体地,服务器确认备份方案中,从区块链网络查找与主存储系统匹配的备份存储系统;本申请实施例对具体查找过程不作限定。Specifically, the server confirms the backup scheme to search for a backup storage system matching the main storage system from the blockchain network; the embodiment of the present application does not limit the specific search process.
步骤S304:所述服务器将所述第一待备份数据备份到所述对应的备份存储系统。Step S304: The server backs up the first data to be backed up to the corresponding backup storage system.
具体地,服务器可以通过无线网络将数据备份到区块链网络中的备份存储系统。Specifically, the server can back up data to the backup storage system in the blockchain network through the wireless network.
请参见图4,图4是本申请实施例提供的一种终端的结构示意图,该终端可包括:一个或多个处理器(图中以处理器401为例)、存储器402、一个或多个输入设备(图中以输入设备404为例)和一个或多个输出设备(图中以输出设备404为例)。这些部件可通过总线405或者其他方式连接,图4以通过总线连接为例。其中:Please refer to FIG. 4, which is a schematic structural diagram of a terminal provided by an embodiment of the present application. The terminal may include: one or more processors (the processor 401 is taken as an example in the figure), a memory 402, and one or more An input device (the input device 404 is taken as an example in the figure) and one or more output devices (the output device 404 is taken as an example in the figure). These components can be connected via a bus 405 or other methods. FIG. 4 uses a bus connection as an example. among them:
处理器401可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 401 may be a central processing unit (Central Processing Unit, CPU), the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC) , Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
存储器402可以包括只读存储器和随机存取存储器,并向处理器401提供指令和数据。存储器402的一部分还可以包括非易失性随机存取存储器。例如,存储器402还可以存储设备类型的信息。The memory 402 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A part of the memory 402 may also include a non-volatile random access memory. For example, the memory 402 may also store device type information.
输入设备404可以包括触控板、指纹采传感器(用于采集第一用户的指纹信息和指纹的方向信息)、麦克风等,输出设备404可以包括显示器(LCD等)、扬声器等。The input device 404 may include a touch panel, a fingerprint sensor (used to collect fingerprint information and fingerprint orientation information of the first user), a microphone, etc., and the output device 404 may include a display (LCD, etc.), a speaker, and the like.
结合上面描述的一种终端的结构,本申请实施例提供一种数据备份的方法,请参见图5,图5是本申请实施例提供的另一种数据备份方法的示意图;该方法可以应用于前述的终端,具体步骤可以如下:Combined with the structure of a terminal described above, an embodiment of the present application provides a data backup method. Please refer to FIG. 5. FIG. 5 is a schematic diagram of another data backup method provided by an embodiment of the present application; the method can be applied to For the aforementioned terminal, the specific steps can be as follows:
步骤S501:终端获取第一用户的备份请求和所述第一用户的身份标识。Step S501: The terminal obtains the backup request of the first user and the identity of the first user.
具体地,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份。Specifically, the backup request is used to request backup of the first data to be backed up of the first user.
步骤S502:所述终端将所述备份请求和所述身份标识发送给服务器。Step S502: The terminal sends the backup request and the identity identifier to the server.
具体地,终端可以通过无线网络将请求以及标识打包,并加密发送给服务器。本申请实施例对如何终端发送给服务器的具体方式和细节不作限定。Specifically, the terminal can package the request and the identifier through the wireless network, and send the encrypted request to the server. The embodiment of the present application does not limit the specific manner and details of how the terminal sends to the server.
结合前述图2所示的服务器以及图4所示的终端,本申请实施例提供了一种数据备份的方法,请参见图6,图6是本申请实施例提供的又一种数据备份方法的示意图。其中,如图6所示,本申请的一个实施例提供的一种数据备份方法,可以包括:In combination with the server shown in FIG. 2 and the terminal shown in FIG. 4, an embodiment of the present application provides a data backup method. Please refer to FIG. 6. FIG. 6 is a diagram of another data backup method provided by an embodiment of the present application. Schematic. Wherein, as shown in FIG. 6, a data backup method provided by an embodiment of the present application may include:
步骤S601:终端获取第一用户的备份请求和所述第一用户的身份标识。Step S601: The terminal obtains the backup request of the first user and the identity of the first user.
具体地,用户在终端完成操作后,用户登录数据备份系统,终端将用户需要备份的数据、用户身份标识和备份请求发送给服务器;所述备份请求用于请求对所述第一用户的第一待备份数据进行备份。下面结合图7来进行说明,数据备份系统的显示界面内容可以例如但不限于如图7所示。如图7所示,图7是本申请实施例提供的一种数据和备份系统显示界面示意图,数据备份系统界面700包括:文本框701,用于显示用户需要备份的数据,图中以“XXXXXXXX”代表需要备份的数据;备份按钮702,用于指示用户的备份请求;退出按钮703,用于指示用户放弃备份数据。进一步的,若用户选择备份按钮,终端将用户的备份请求发送给服务器。Specifically, after the user completes the operation on the terminal, the user logs in to the data backup system, and the terminal sends the data that the user needs to back up, the user identity identifier, and the backup request to the server; the backup request is used to request the first user Back up the data to be backed up. The following description is made with reference to FIG. 7, the content of the display interface of the data backup system may be, for example, but not limited to, as shown in FIG. As shown in Figure 7, Figure 7 is a schematic diagram of a data and backup system display interface provided by an embodiment of the present application. The data backup system interface 700 includes: a text box 701 for displaying the data that the user needs to back up. "Represents the data that needs to be backed up; the backup button 702 is used to indicate the user's backup request; the exit button 703 is used to instruct the user to give up the backup data. Further, if the user selects the backup button, the terminal sends the user's backup request to the server.
步骤S602:所述终端将所述备份请求和所述身份标识发送给服务器。Step S602: The terminal sends the backup request and the identity identifier to the server.
步骤S603:服务器获取所述终端发送的所述备份请求和所述身份标识。Step S603: The server obtains the backup request and the identity sent by the terminal.
步骤S604:所述服务器根据所述身份标识和所述备份请求确定备份方案。Step S604: The server determines a backup scheme according to the identity identifier and the backup request.
可选地,所述备份方案可以包括:备份的一个或者多个存储系统、备份数量、主存储系统、备存储系统和备份延迟时间。Optionally, the backup scheme may include: one or more storage systems to be backed up, the number of backups, the primary storage system, the backup storage system, and the backup delay time.
其中,存储系统包括固态硬盘(Solid State Disk,SSD)、分布式存储系统等存储系统。不同用户有不同的备份需求,服务器存储有不同用户身份标识对应的存储方案。备份的存储系统根据用户需求来进行确定,例如,用户1的备份需求为:用户数据需要备份到存储系统A和存储系统B;用户2的备份需求为:用户数据需要备份到存储系统A、存储系统B和存储系统C。Among them, storage systems include storage systems such as Solid State Disks (SSD) and distributed storage systems. Different users have different backup requirements, and the server stores storage solutions corresponding to different user identities. The backup storage system is determined according to user requirements. For example, user 1’s backup requirements are: user data needs to be backed up to storage system A and storage system B; user 2’s backup requirements are: user data needs to be backed up to storage system A and storage System B and Storage System C.
具体地,服务器存储有不同用户对应的备份方案,下面结合表1来进行说明,数据备份系统的存储内容可以例如但不限于如表1所示:Specifically, the server stores backup schemes corresponding to different users, which are described below in conjunction with Table 1. The storage content of the data backup system may be, for example, but not limited to, as shown in Table 1:
表1Table 1
Figure PCTCN2019102771-appb-000001
Figure PCTCN2019102771-appb-000001
Figure PCTCN2019102771-appb-000002
Figure PCTCN2019102771-appb-000002
由表1可知,用户标识为001的用户对应的备份方案为:将用户数据分别备份到存储系统A和存储系统B,备份的数量分别都为1份,其中存储系统A为主存储系统,存储系统B为备存储系统,备存储系统之间的备份延迟时间为30s;用户标识为002的用户对应的备份方案为:将用户数据分别备份到存储系统A、存储系统B和存储系统C,备份的数量分别都为1份,其中存储系统A为主存储系统,存储系统B和存储系统C为备存储系统,备存储系统之间的备份延迟时间为30s。It can be seen from Table 1 that the corresponding backup plan for the user whose user ID is 001 is: backup user data to storage system A and storage system B respectively, and the number of backups is 1 copy respectively, and storage system A is the main storage system, and System B is the backup storage system, and the backup delay time between backup storage systems is 30s; the corresponding backup plan for the user whose user ID is 002 is: backup user data to storage system A, storage system B, and storage system C, respectively The number of each is 1 copy, where storage system A is the primary storage system, storage system B and storage system C are backup storage systems, and the backup delay time between backup storage systems is 30s.
步骤S605:所述服务器根据所述备份方案,将所述主存储系统与区块链网络中对应的备份存储系统建立连接。Step S605: The server establishes a connection between the primary storage system and the corresponding backup storage system in the blockchain network according to the backup scheme.
具体地,备份方案中包括用户需要备份的存储系统,服务器与用户需要备份的存储系统建立连接,便于后续将用户数据备份到对应的存储系统。可选地,主存储系统可以是区块链网络中的一个节点,或者主存储系统可以不是区块链网络中的一个节点。备份存储系统为区块链网络中的一个节点(可以理解的是,多个备份存储系统对应区块链网络中的多个节点),基于区块链的特性使得备份的数据不易被恶意篡改。Specifically, the backup scheme includes the storage system that the user needs to back up, and the server establishes a connection with the storage system that the user needs to back up, so as to facilitate subsequent backup of user data to the corresponding storage system. Optionally, the main storage system may be a node in the blockchain network, or the main storage system may not be a node in the blockchain network. The backup storage system is a node in the blockchain network (it can be understood that multiple backup storage systems correspond to multiple nodes in the blockchain network). Based on the characteristics of the blockchain, the backup data is not easily tampered with maliciously.
例如,身份标识为001的用户存储方案为将用户数据分别备份到存储系统A和存储系统B,因此服务器与存储系统A和存储系统B建立连接。For example, the user storage solution with the identity identifier 001 is to back up user data to storage system A and storage system B, respectively, so the server establishes a connection with storage system A and storage system B.
步骤S606:所述服务器将所述第一待备份数据备份到所述对应的备份存储系统。Step S606: The server backs up the first data to be backed up to the corresponding backup storage system.
具体地,服务器将待备份数据按照一定的备份规则(包括备份顺序等),备份到对应的备份存储系统中。备份存储系统和主存储系统都可以是区块链网络中的节点,开发人员可以预设某一个节点对应的系统是主存储系统,那么网络中其他节点对应的系统就是备份存储系统。本申请实施例对备份存储系统以及主存储系统对应的具体对象内容和形式不作限定。Specifically, the server backs up the data to be backed up to the corresponding backup storage system according to certain backup rules (including backup sequence, etc.). Both the backup storage system and the primary storage system can be nodes in the blockchain network. Developers can preset that the system corresponding to a certain node is the primary storage system, and then the system corresponding to other nodes in the network is the backup storage system. The embodiment of the present application does not limit the specific object content and form corresponding to the backup storage system and the main storage system.
可选地,所述服务器将所述第一待备份数据备份到所述对应的备份存储系统之前,还包括:所述服务器对所述第一待备份数据进行脱敏处理。对备份数据中的某些敏感信息通过脱敏规则进行数据的变形,实现敏感隐私数据的可靠保护。在涉及安全数据或者一些商业性敏感数据的情况下,在不违反系统规则条件下,对真实数据进行改造并提供测试使用,如身份证号、手机号、卡号、客户号等个人信息都需要进行数据脱敏。Optionally, before the server backs up the first data to be backed up to the corresponding backup storage system, the method further includes: the server performs desensitization processing on the first data to be backed up. Some sensitive information in the backup data is deformed through desensitization rules to achieve reliable protection of sensitive privacy data. In the case of security data or some commercially sensitive data, without violating system rules, reform the real data and provide test use, such as personal information such as ID card number, mobile phone number, card number, customer number, etc. Data desensitization.
可选地,所述服务器将所述第一待备份数据备份到所述对应的备份存储系统之前,还包括:所述服务器根据哈希算法对所述第一待备份数据进行加密处理。本申请实施例涉及的加密系统由明文、密文、算法和密钥组成。发送方(即服务器)通过加密设备或加密算法,用加密密钥将数据加密后发送出去。 接收方(即存储系统,如备份存储系统)在收到密文后,用解密密钥将密文解密,恢复为明文。在传输过程中,即使密文被非法分子偷窃获取,得到的也只是无法识别的密文,从而起到数据保密的作用。Optionally, before the server backs up the first data to be backed up to the corresponding backup storage system, the method further includes: the server encrypts the first data to be backed up according to a hash algorithm. The encryption system involved in the embodiments of this application is composed of plain text, cipher text, algorithms, and keys. The sender (that is, the server) encrypts the data with an encryption key through an encryption device or encryption algorithm and sends it out. After receiving the ciphertext, the receiver (that is, the storage system, such as the backup storage system) uses the decryption key to decrypt the ciphertext and restore it to plaintext. In the transmission process, even if the ciphertext is stolenly obtained by illegal elements, what is obtained is only the unidentifiable ciphertext, which plays a role of data confidentiality.
可选地,若第一用户的备份方案中包括一个备存储系统,所述服务器将第一用户数据备份到所述一个或者多个存储系统,包括:Optionally, if the backup scheme of the first user includes a backup storage system, the server backing up the first user data to the one or more storage systems includes:
服务器在第一时刻将所述第一用户数据备份到所述主存储系统,在第二时刻将所述第一用户数据备份到所述备存储系统,所述第一时刻与所述第二时刻的时间间隔为所述备份延迟时间。The server backs up the first user data to the primary storage system at the first time, and backs up the first user data to the backup storage system at the second time, and the first time and the second time The time interval is the backup delay time.
可选地,若第一用户的备份方案中包括多个备存储系统,所述服务器将第一用户数据备份到所述一个或者多个存储系统,包括:Optionally, if the backup scheme of the first user includes multiple backup storage systems, the server backing up the first user data to the one or more storage systems includes:
服务器根据所述第一用户数据占用存储系统的备份空间和剩余空间容量确定将所述第一用户数据备份到所述多个备存储系统的备份顺序,所述存储系统包括一个或者多个备份空间;The server determines a backup sequence for backing up the first user data to the multiple backup storage systems according to the backup space and remaining space capacity of the storage system occupied by the first user data, and the storage system includes one or more backup spaces ;
服务器根据所述备份顺序和所述备份延迟时间将第一用户数据依次备份到所述多个备存储系统。The server sequentially backs up the first user data to the multiple backup storage systems according to the backup sequence and the backup delay time.
具体地,各存储系统包括一个或者多个备份空间,各个备份空间有对应的剩余空间容量。服务器根据第一用户数据在终端所在的逻辑地址确定用户数据备份到存储系统的逻辑地址,然后根据存储系统的逻辑地址确定第一用户数据在存储系统的对应备份空间,例如,用户002对应的备份方案中,存储系统B和存储系统C为备存储系统,该用户数据对应备份到存储系统B的备份空间为备份空间1,备份空间1的剩余容量大小为30G;第一用户数据对应备份到存储系统C的备份空间为备份空间1,备份空间2的剩余容量大小为40G。Specifically, each storage system includes one or more backup spaces, and each backup space has a corresponding remaining space capacity. The server determines the logical address where the user data is backed up to the storage system according to the logical address of the first user data at the terminal, and then determines the corresponding backup space of the first user data in the storage system according to the logical address of the storage system, for example, the backup corresponding to user 002 In the solution, storage system B and storage system C are backup storage systems, the backup space corresponding to the user data backed up to storage system B is backup space 1, and the remaining capacity of backup space 1 is 30G; the first user data is correspondingly backed up to storage The backup space of system C is backup space 1, and the remaining capacity of backup space 2 is 40G.
可选地,服务器按照所述第一用户数据占用所述备份空间的内存大小和所述备份空间剩余空间容量大小的比值从小到大的顺序对所述多个备存储系统进行排序,将排列后的顺序确定为多个备存储系统的备份顺序。Optionally, the server sorts the multiple backup storage systems in ascending order of the ratio of the memory size of the backup space occupied by the first user data to the remaining space capacity of the backup space, and the The sequence is determined as the backup sequence of multiple standby storage systems.
具体地,由于存储系统的存储策略不一样,因此相同的用户数据大小备份到不同存储系统后的大小可以相同也可以不相同。Specifically, because storage strategies of storage systems are different, the same user data size after being backed up to different storage systems may be the same or different.
例如,用户002的用户数据备份到存储系统B备份空间1占用备份空间1的内存大小为0.5G,备份到存储系统C备份空间1占用备份空间2的内存大小为0.4G。用户002的用户数据占用所述备份空间1的内存大小和备份空间1剩余空间容量大小的比值为1/6,占用所述备份空间2的内存大小和备份空间2剩余空间容量大小的比值为1/10,所以存储系统B和存储系统C的备份为存储系统B→存储系统C。For example, the user data of user 002 is backed up to storage system B backup space 1 and the memory size of backup space 1 is 0.5G, and backed up to storage system C backup space 1 and the memory size of backup space 2 is 0.4G. The ratio of the memory size of the backup space 1 occupied by the user data of the user 002 to the remaining space capacity of the backup space 1 is 1/6, and the ratio of the memory size occupied by the backup space 2 to the remaining space capacity of the backup space 2 is 1. /10, so the backup of storage system B and storage system C is storage system B→storage system C.
实施本申请实施例,服务器根据用户的备份方案将用户数据备份到一个或多个存储系统,避免用户多次向不同的存储系统进行数据备份,减少用户数据备份时间,有效提高用户数据备份效率。In the implementation of the embodiments of the present application, the server backs up user data to one or more storage systems according to the user's backup scheme, avoiding multiple backups of user data to different storage systems, reducing user data backup time, and effectively improving user data backup efficiency.
请参见图8,图8是本申请实施例提供的再一种数据备份方法的示意图。服务器将第一用户数据备份到存储系统时,可以包括步骤S801-步骤S817;其中,步骤S801-步骤S806请分别依次参见前述对应的步骤S601-步骤S606,在此不再赘述;以下是对步骤S807-步骤S817进行的详细介绍:Please refer to FIG. 8. FIG. 8 is a schematic diagram of still another data backup method provided by an embodiment of the present application. When the server backs up the first user data to the storage system, it may include step S801-step S817; among them, for step S801-step S806, please refer to the corresponding step S601-step S606 respectively in sequence, which will not be repeated here; the following are the steps S807-Step S817 detailed introduction:
步骤S801:终端获取第一用户的备份请求和所述第一用户的身份标识。Step S801: The terminal obtains the backup request of the first user and the identity of the first user.
步骤S802:所述终端将所述备份请求和所述身份标识发送给服务器。Step S802: The terminal sends the backup request and the identity identifier to the server.
步骤S803:服务器获取所述终端发送的所述备份请求和所述身份标识。Step S803: The server obtains the backup request and the identity sent by the terminal.
步骤S804:所述服务器根据所述身份标识和所述备份请求确定备份方案。Step S804: The server determines a backup scheme according to the identity identifier and the backup request.
步骤S805:所述服务器根据所述备份方案,将所述主存储系统与区块链网络中对应的备份存储系统建立连接。Step S805: The server establishes a connection between the primary storage system and the corresponding backup storage system in the blockchain network according to the backup scheme.
步骤S806:所述服务器将所述第一待备份数据备份到所述对应的备份存储系统。Step S806: The server backs up the first data to be backed up to the corresponding backup storage system.
步骤S807:所述终端获取所述第一用户的修改指令。Step S807: The terminal obtains the modification instruction of the first user.
具体地,终端在获取用户的备份请求之后,可能存在对第一用户数据进行修改的操作情况;所述修改指令用于指示所述服务器对部分或者全部的所述第一待备份数据进行修改操作。例如,以第一用户对海量图片进行备份为例来进行说明。第一用户在发送备份请求之后,该用户可能进行例如对某一张或多照片进行删除,放入另外的照片等修改操作。Specifically, after obtaining the user's backup request, the terminal may modify the first user data; the modification instruction is used to instruct the server to modify part or all of the first data to be backed up . For example, take the first user backing up a large number of pictures as an example for description. After the first user sends the backup request, the user may perform modification operations such as deleting one or more photos and adding other photos.
步骤S808:所述终端将所述修改指令发送给所述服务器。Step S808: The terminal sends the modification instruction to the server.
步骤S809:所述服务器获取所述修改指令。Step S809: The server obtains the modification instruction.
步骤S810:所述服务器得到第二待备份数据。Step S810: The server obtains the second data to be backed up.
步骤S811:所述服务器将所述第二待备份数据备份到所述对应的备份存储系统。Step S811: The server backs up the second data to be backed up to the corresponding backup storage system.
具体地,服务器将第一用户修改后的修改数据备份到存储系统而可能不是将全部的第一用户数据备份到存储系统。Specifically, the server backs up the modified data modified by the first user to the storage system but may not back up all the first user data to the storage system.
可选地,服务器将进行修改操作后的部分数据或全部数据备份到一个或者多个存储系统,包括:Optionally, the server backs up part or all of the modified data to one or more storage systems, including:
服务器根据所述进行修改操作后的部分数据或全部数据在所述终端的逻辑地址段和第一映射表将所述进行修改操作后的修改数据备份到所述一个或者多个存储系统对应的地址块,所述第一映射表包含所述修改数据在所述终端的逻辑地址段和第二映射表的对应关系,所述第二映射表包括所述修改数据在所述一个或者多个存储系统中对应的逻辑地址段和物理地址的对应关系,所述物理地址包括物理块地址和/或物理块地址与预定偏移量的组合。The server backs up the modified data after the modification operation in the logical address segment of the terminal and the first mapping table according to the partial data or all the data after the modification operation to the address corresponding to the one or more storage systems Block, the first mapping table includes the corresponding relationship between the modified data in the logical address segment of the terminal and the second mapping table, and the second mapping table includes the modified data in the one or more storage systems The corresponding logical address segment and the physical address in the corresponding relationship, the physical address includes a physical block address and/or a combination of a physical block address and a predetermined offset.
请参见图9,图9是本申请实施例提供的一种逻辑地址映射图。如图9所示,以终端用户数据与存储系统A之间的逻辑地址段映射关系为例;用户数据A(即图中所示,有效数据A或称Valid A;下文用户数据B、C和D描述的对象含义可以参考用户数据A的描述,此后不再赘述)、用户数据B、用户数据C和用户数据D在终端的逻辑地址段分别为逻辑地址段1、逻辑地址段2、逻辑地址段3和逻辑地址段4,用户数据A、B、C和D在存储系统A对应的逻辑字段分别为逻辑地址段1、逻辑地址段3、逻辑地址段5和逻辑地址段8,存储系统A上的逻辑地址段1、逻辑地址段3、逻辑地址段5和逻辑地址段8在存储系统A上对应的物理地址分别为物理地址1、物理地址2、物理地址3和物理地址4,其中物理地址1和物理地址3有预设的偏移量。服务器根据终端用户数据的逻辑地址段和存储系统的逻辑地址段之间的映射表关系,将终端的用户数据存储到存储系统对应的物理地址。Please refer to FIG. 9, which is a logical address mapping diagram provided by an embodiment of the present application. As shown in Figure 9, take the logical address segment mapping relationship between terminal user data and storage system A as an example; user data A (that is, valid data A or Valid A as shown in the figure; user data B, C, and The meaning of the object described by D can refer to the description of user data A, which will not be repeated hereafter). The logical address segments of user data B, user data C and user data D in the terminal are logical address segment 1, logical address segment 2, and logical address respectively. Segment 3 and logical address segment 4. The logical fields corresponding to user data A, B, C, and D in storage system A are logical address segment 1, logical address segment 3, logical address segment 5 and logical address segment 8, storage system A The physical addresses corresponding to the logical address segment 1, logical address segment 3, logical address segment 5, and logical address segment 8 on the storage system A are physical address 1, physical address 2, physical address 3, and physical address 4, respectively. Address 1 and physical address 3 have preset offsets. The server stores the user data of the terminal to the physical address corresponding to the storage system according to the mapping table relationship between the logical address segment of the terminal user data and the logical address segment of the storage system.
当第一用户对用户数据A进行了修改操作,数据A进行修改操作之后为数据F,服务器将数据F存储到存储系统A中的物理地址1上。若修改后的数据F比数据A占用的内存大很多,存储系统A的物理地址1无法将数据F的部分数据备份,则将数据F的部分数据备份到物理地址1的预定偏移量中。When the first user performs a modification operation on user data A, the data A after the modification operation becomes data F, and the server stores the data F in the physical address 1 in the storage system A. If the modified data F occupies a much larger memory than the data A, and the physical address 1 of the storage system A cannot back up part of the data of the data F, part of the data of the data F is backed up to the predetermined offset of the physical address 1.
步骤S812:所述终端发送所述第一用户对所述第一待备份数据和/或所述第二待备份数据的查看指令。Step S812: The terminal sends a view instruction of the first user to the first data to be backed up and/or the second data to be backed up.
具体地,第一用户在存储系统中的备份的数据肯能是一个或多个,用户通过终端输入需要查看的目标备份数据。Specifically, the first user may have one or more backup data in the storage system, and the user inputs the target backup data to be viewed through the terminal.
步骤S813:所述服务器获取所述查看指令。Step S813: The server obtains the viewing instruction.
步骤S814:所述服务器根据所述查看指令和所述第一用户的备份方案,从所述主存储系统中获取所述第一待备份数据和/或所述第二待备份数据。Step S814: The server obtains the first data to be backed up and/or the second data to be backed up from the main storage system according to the view instruction and the backup plan of the first user.
具体地,服务器根据将目标备份数据(即所述第一待备份数据和/或所述第二待备份数据)的标识发送给第一用户对应的主存储系统,主存储系统通过标识确定目标备份数据,然后将目标备份数据发送给服务器。Specifically, the server sends the target backup data (that is, the first data to be backed up and/or the second data to be backed up) identification to the primary storage system corresponding to the first user, and the primary storage system determines the target backup through the identification. Data, and then send the target backup data to the server.
可选地,当服务器在预设的时间段内无法送从主存储系统获取目标备份数据,服务器将目标备份数据的标识发送给备存储系统,从备存储系统获取目标备份数据。Optionally, when the server cannot send the target backup data from the main storage system within a preset time period, the server sends the identifier of the target backup data to the backup storage system, and obtains the target backup data from the backup storage system.
可选地,若第一用户对应的备份方案中有多个备存储系统,则按照备份第一用户数据的顺序从备存储系统获取目标备份数据。Optionally, if there are multiple backup storage systems in the backup scheme corresponding to the first user, the target backup data is acquired from the backup storage system in the order of backing up the first user data.
步骤S815:所述服务器向所述终端发送所述第一待备份数据和/或所述第二待备份数据。Step S815: The server sends the first data to be backed up and/or the second data to be backed up to the terminal.
步骤S816:所述终端接收所述第一待备份数据和/或所述第二待备份数据。Step S816: The terminal receives the first data to be backed up and/or the second data to be backed up.
步骤S817:所述终端输出所述第一待备份数据和/或所述第二待备份数据。Step S817: The terminal outputs the first data to be backed up and/or the second data to be backed up.
实施本申请实施例,服务器在备份过程中实时监用户的修改请求,然后将修改后的数据备份到存储系统,有效保证了用户的实际数据和存储系统中的备份数据的一致性。In the implementation of the embodiments of this application, the server monitors the user's modification request in real time during the backup process, and then backs up the modified data to the storage system, which effectively guarantees the consistency of the user's actual data and the backup data in the storage system.
上面的实施例描述了服务器和终端之间的交互情况,下面描述一种数据备份的装置,请参见图10,图10是本申请实施例提供的一种数据备份装置的示意图,如图10所示,该装置100可以包括第一获取单元1001、第一确定单元1002、连接单元1003和第一备份单元1004;其中,The above embodiment describes the interaction between the server and the terminal. The following describes a data backup device. Please refer to Figure 10. Figure 10 is a schematic diagram of a data backup device provided by an embodiment of the application, as shown in Figure 10. As shown, the device 100 may include a first obtaining unit 1001, a first determining unit 1002, a connecting unit 1003, and a first backup unit 1004; wherein,
第一获取单元1001,用于获取终端发送的第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份;The first obtaining unit 1001 is configured to obtain a backup request of a first user and the identity of the first user sent by a terminal, and the backup request is used to request a backup of the first data to be backed up of the first user;
第一确定单元1002,用于根据所述身份标识和所述备份请求确定备份方案,所述备份方案包括备份存储系统、备份数量、主存储系统和备份延迟时间中的一个或者多个;The first determining unit 1002 is configured to determine a backup plan according to the identity identifier and the backup request, where the backup plan includes one or more of a backup storage system, a backup quantity, a main storage system, and a backup delay time;
连接单元1003,用于根据所述备份方案,将所述主存储系统与区块链网络中对应的备份存储系统建立连接;The connection unit 1003 is configured to establish a connection between the main storage system and the corresponding backup storage system in the blockchain network according to the backup scheme;
第一备份单元1004,用于将所述第一待备份数据备份到所述对应的备份存储系统。The first backup unit 1004 is configured to back up the first data to be backed up to the corresponding backup storage system.
需要说明的是,本申请实施例中所描述的数据备份装置可参见上述图3、图6以及图8所述的方法实施例的数据备份方法中服务器的相关描述,此处不再赘述。可以理解的是,本申请实施例中所描述的数据备份装置涉及的各个单元功能为服务器的部分功能,但不包括所述服务器所有的功能;对装置中各单元的描述顺序不影响实际装置的功能。It should be noted that the data backup device described in the embodiment of the present application can refer to the related description of the server in the data backup method of the method embodiment described in FIG. 3, FIG. 6 and FIG. 8, which will not be repeated here. It is understandable that the functions of the units involved in the data backup device described in the embodiments of the application are part of the functions of the server, but do not include all the functions of the server; the order of describing the units in the device does not affect the actual device Features.
请参见图11,图11是本申请实施例提供的另一种数据备份装置的示意图,如图11所示,本申请实施例提供的一种数据备份装置1100可以包括:第一获取单元1101、第一确定单元1102、连接单元1103、第一备份单元1104、第二确定单元1105、第二备份单元1106、第二获取单元1107、第三获取单元1108、第三备份单元1109、第四获取单元1110、数据发送单元1111、数据获取单元1112、数据脱敏单元1113和数据加密单元1114。其中,可选地单元还可以包括第二确定单元1105、第二备份单元1106、第二获取单元1107、第三获取单元1108、第三备份单元1109、第四获取单元1110、数据发送单元1111、数据获取单元1112、数据脱敏单元1113和数据加密单元1114。Please refer to FIG. 11. FIG. 11 is a schematic diagram of another data backup device provided by an embodiment of the present application. As shown in FIG. 11, a data backup device 1100 provided by an embodiment of the present application may include: a first obtaining unit 1101 First determination unit 1102, connection unit 1103, first backup unit 1104, second determination unit 1105, second backup unit 1106, second acquisition unit 1107, third acquisition unit 1108, third backup unit 1109, fourth acquisition unit 1110. The data sending unit 1111, the data obtaining unit 1112, the data desensitization unit 1113, and the data encryption unit 1114. Wherein, the optional unit may also include a second determining unit 1105, a second backup unit 1106, a second acquiring unit 1107, a third acquiring unit 1108, a third backup unit 1109, a fourth acquiring unit 1110, and a data sending unit 1111. The data acquisition unit 1112, the data desensitization unit 1113, and the data encryption unit 1114.
第一获取单元1101,用于获取终端发送的第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份。The first obtaining unit 1101 is configured to obtain a backup request of a first user and the identity of the first user sent by a terminal, and the backup request is used to request a backup of the first data to be backed up of the first user.
第一确定单元1102,用于根据所述身份标识和所述备份请求确定备份方案,所述备份方案包括备份存储系统、备份数量、主存储系统和备份延迟时间中的一个或者多个。The first determining unit 1102 is configured to determine a backup plan according to the identity identifier and the backup request, where the backup plan includes one or more of a backup storage system, a backup quantity, a main storage system, and a backup delay time.
连接单元1103,用于根据所述备份方案,将所述主存储系统与区块链网络中对应的备份存储系统建立连接。The connection unit 1103 is configured to establish a connection between the primary storage system and the corresponding backup storage system in the blockchain network according to the backup scheme.
第一备份单元1104,用于将所述第一待备份数据备份到所述对应的备份存储系统。The first backup unit 1104 is configured to back up the first data to be backed up to the corresponding backup storage system.
在一种可能的实现方式中,若所述备份方案包括一个备份存储系统;所述第一备份单元1104,具体用于:In a possible implementation manner, if the backup solution includes a backup storage system; the first backup unit 1104 is specifically configured to:
在第一时刻将所述第一待备份数据备份到所述主存储系统,在第二时刻将所述第一待备份数据备份到所述对应的备份存储系统,所述第一时刻与所述第二时刻的时间间隔为所述备份延迟时间。The first data to be backed up is backed up to the main storage system at the first time, and the first data to be backed up is backed up to the corresponding backup storage system at the second time. The time interval at the second moment is the backup delay time.
若所述第一用户的备份方案中包括多个备存储系统,所述第一备份单元1104,包括:If the backup plan of the first user includes multiple backup storage systems, the first backup unit 1104 includes:
第二确定单元1105,用于根据所述第一待备份数据占用所述主存储系统的备份空间和所述备份空间的剩余空间,确定将所述第一待备份数据备份到所述多个备份存储系统中对应的备份存储系统的备份顺序,所述主存储系统包括一个或者多个所述备份空间;The second determining unit 1105 is configured to determine to back up the first data to be backed up to the multiple backups according to the backup space of the primary storage system occupied by the first data to be backed up and the remaining space of the backup space The backup sequence of the corresponding backup storage system in the storage system, where the primary storage system includes one or more backup spaces;
第二备份单元1106,用于根据所述备份顺序和所述备份延迟时间将所述第一待备份数据依次备份到所述对应的备份存储系统。The second backup unit 1106 is configured to sequentially back up the first data to be backed up to the corresponding backup storage system according to the backup sequence and the backup delay time.
在一种可能的实现方式中,所述第二确定单元1105,具体用于:根据所述第一待备份数据占用所述备份空间的容量和所述剩余空间容量的比值,以从小到大的顺序对所述多个备份存储系统中对应的备份存储系统进行排序;按照排列后的顺序确定所述对应的备份存储系统的备份顺序。In a possible implementation manner, the second determining unit 1105 is specifically configured to: according to the ratio of the capacity of the backup space occupied by the first data to be backed up to the capacity of the remaining space, in order to increase Sort the corresponding backup storage systems in the plurality of backup storage systems in sequence; and determine the backup sequence of the corresponding backup storage systems according to the sequence after the arrangement.
在一种可能的实现方式中,所述装置1100还包括:In a possible implementation manner, the apparatus 1100 further includes:
第二获取单元1107,用于在获取终端发送的第一用户的备份请求和所述第一用户的身份标识之后,获取所述第一用户的修改指令,所述修改指令用于指示对部分或者全部的所述第一待备份数据进行修改操作;The second obtaining unit 1107 is configured to obtain a modification instruction of the first user after obtaining the backup request of the first user and the identity of the first user sent by the terminal, and the modification instruction is used to instruct the partial or Modify all the first data to be backed up;
第三获取单元1108,用于得到第二待备份数据,所述第二待备份数据包括进行所述修改操作后的部分或全部的所述第一待备份数据;The third obtaining unit 1108 is configured to obtain second data to be backed up, where the second data to be backed up includes part or all of the first data to be backed up after the modification operation is performed;
第三备份单元1109,用于将所述第二待备份数据备份到所述对应的备份存储系统。The third backup unit 1109 is configured to back up the second data to be backed up to the corresponding backup storage system.
在一种可能的实现方式中,所述第三备份单元1109,具体用于:In a possible implementation manner, the third backup unit 1109 is specifically configured to:
根据所述进行修改操作后的部分数据或全部数据在所述终端的逻辑地址段和第一映射表将所述进行修改操作后的修改数据备份到所述一个或者多个存储系统对应的地址块,所述第一映射表包含所述修改数据在所述终端的逻辑地址段和第二映射表的对应关系,所述第二映射表包括所述修改数据在所述一个或者多个存储系统中对应的逻辑地址段和物理地址的对应关系,所述物理地址包括物理块地址和/或物理块地址与预定偏移量的组合。Back up the modified data after the modification operation to the address block corresponding to the one or more storage systems according to the logical address segment of the terminal and the first mapping table of the partial data or all the data after the modification operation The first mapping table includes the correspondence between the modified data in the logical address segment of the terminal and the second mapping table, and the second mapping table includes the modified data in the one or more storage systems The corresponding relationship between the logical address segment and the physical address, where the physical address includes a physical block address and/or a combination of a physical block address and a predetermined offset.
在一种可能的实现方式中,所述装置1100还包括:In a possible implementation manner, the apparatus 1100 further includes:
第四获取单元1110,用于在将所述第一待备份数据备份到所述对应的备份存储系统之后,获取所述终端发送的第一用户对所述第一待备份数据和/或所述第二待备份数据的查看指令;The fourth obtaining unit 1110 is configured to obtain, after backing up the first data to be backed up to the corresponding backup storage system, the first user’s response to the first data to be backed up and/or the View instruction of the second data to be backed up;
数据获取单元1112,用于根据所述查看指令和所述第一用户的备份方案,从所述主存储系统中获取所述第一待备份数据和/或所述第二待备份数据;A data acquisition unit 1112, configured to acquire the first data to be backed up and/or the second data to be backed up from the main storage system according to the viewing instruction and the backup plan of the first user;
数据发送单元1111,用于向所述终端发送所述第一待备份数据和/或所述第二待备份数据。The data sending unit 1111 is configured to send the first data to be backed up and/or the second data to be backed up to the terminal.
在一种可能的实现方式中,所述装置1100还包括数据脱敏单元1113,用于:在将所述第一待备份数据备份到所述对应的备份存储系统之前,对所述第一待备份数据进行脱敏处理。In a possible implementation, the device 1100 further includes a data desensitization unit 1113, configured to: before backing up the first data to be backed up to the corresponding backup storage system, The backup data is desensitized.
在一种可能的实现方式中,所述装置1100还包括数据加密单元1114,用于:在将所述第一待备份数据备份到所述对应的备份存储系统之前,根据哈希算法对所述第一待备份数据进行加密处理。In a possible implementation, the device 1100 further includes a data encryption unit 1114, configured to: before backing up the first data to be backed up to the corresponding backup storage system, perform a hash algorithm on the The first data to be backed up is encrypted.
需要说明的是,本申请实施例中所描述的数据备份装置可参见上述图3、图6以及图8所述的方法实施例的数据备份方法中服务器的相关描述,此处不再赘述。可以理解的是,本申请实施例中所描述的数据备份装置涉及的各个单元功能为服务器的部分功能,但不包括所述服务器所有的功能;对装置中各单元的描述顺序不影响实际装置的功能。It should be noted that the data backup device described in the embodiment of the present application can refer to the related description of the server in the data backup method of the method embodiment described in FIG. 3, FIG. 6 and FIG. 8, which will not be repeated here. It is understandable that the functions of the units involved in the data backup device described in the embodiments of the application are part of the functions of the server, but do not include all the functions of the server; the order of describing the units in the device does not affect the actual device Features.
下面描述了又一种数据备份的装置,请参见图12,图12是本申请实施例提供的又一种数据备份装置的示意图,如图12所示,该装置12可以包括第一交互单元1201和第一发送单元1202;其中,The following describes yet another data backup device. Please refer to FIG. 12. FIG. 12 is a schematic diagram of another data backup device provided in an embodiment of the present application. As shown in FIG. 12, the device 12 may include a first interaction unit 1201. And the first sending unit 1202; where,
第一交互单元1201,用于获取第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份;The first interaction unit 1201 is configured to obtain a backup request of a first user and the identity of the first user, and the backup request is used to request a backup of the first data to be backed up of the first user;
第一发送单元1202,用于将所述备份请求和所述身份标识发送给服务器。The first sending unit 1202 is configured to send the backup request and the identity identifier to the server.
需要说明的是,本申请实施例中所描述的数据备份装置可参见上述图5、图6以及图8所述的方法实施例的数据备份方法中终端的相关描述,此处不再赘述。可以理解的是,本申请实施例中所描述的数据备份装置涉及的各个单元功能为终端的部分功能,但不包括所述终端所有的功能;对装置中各单元的描述顺序不影响实际装置的功能。It should be noted that the data backup device described in the embodiment of the present application can refer to the related description of the terminal in the data backup method of the method embodiment described in FIG. 5, FIG. 6 and FIG. 8, which will not be repeated here. It is understandable that the functions of each unit involved in the data backup device described in the embodiments of this application are part of the functions of the terminal, but do not include all the functions of the terminal; the order of describing the units in the device does not affect the actual device Features.
请参见图13,图13是本申请实施例提供的再一种数据备份装置的示意图,如图13所示,本申请实施例提供的装置1300可以包括:第一交互单元1301、第一发送单元1302、第二交互单元1303、第二发送单元1304、第三交互单元1305和第三发送单元1306。其中,可选地单元还可以包括第二交互单元1303、第二发送单元1304、第三交互单元1305和第三发送单元1306。Please refer to FIG. 13, which is a schematic diagram of another data backup device provided by an embodiment of the present application. As shown in FIG. 13, the device 1300 provided by an embodiment of the present application may include: a first interaction unit 1301, a first sending unit 1302, a second interaction unit 1303, a second sending unit 1304, a third interaction unit 1305, and a third sending unit 1306. Wherein, optionally, the unit may further include a second interaction unit 1303, a second sending unit 1304, a third interaction unit 1305, and a third sending unit 1306.
第一获取单元1301,用于获取第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份;The first obtaining unit 1301 is configured to obtain a backup request of a first user and the identity of the first user, and the backup request is used to request a backup of the first data to be backed up of the first user;
第一发送单元1302,用于将所述备份请求和所述身份标识发送给服务器。The first sending unit 1302 is configured to send the backup request and the identity identifier to the server.
可选地,所述装置1300还包括:Optionally, the device 1300 further includes:
第二获取单元1303,用于获取修改指令,所述修改指令用于指示所述服务器对部分或者全部的所述第一待备份数据进行修改操作;The second obtaining unit 1303 is configured to obtain a modification instruction, where the modification instruction is used to instruct the server to modify part or all of the first data to be backed up;
第二发送单元1304,用于将所述修改指令发送给所述服务器。The second sending unit 1304 is configured to send the modification instruction to the server.
可选地,所述装置1300还包括:Optionally, the device 1300 further includes:
第三获取单元1305,用于获取所述第一用户对所述第一待备份数据和/或所述第二待备份数据的查看指令;The third obtaining unit 1305 is configured to obtain a view instruction of the first user for the first data to be backed up and/or the second data to be backed up;
第三发送单元1306,用于将所述查看指令发送给所述服务器。The third sending unit 1306 is configured to send the viewing instruction to the server.
需要说明的是,本申请实施例中所描述的数据备份装置可参见上述图5、图6以及图8所述的方法实施例的数据备份方法中终端的相关描述,此处不再赘述。可以理解的是,本申请实施例中所描述的数 据备份装置涉及的各个单元功能为终端的部分功能,但不包括所述终端所有的功能;对装置中各单元的描述顺序不影响实际装置的功能。It should be noted that the data backup device described in the embodiment of the present application can refer to the related description of the terminal in the data backup method of the method embodiment described in FIG. 5, FIG. 6 and FIG. 8, which will not be repeated here. It is understandable that the functions of each unit involved in the data backup device described in the embodiments of this application are part of the functions of the terminal, but do not include all the functions of the terminal; the order of describing the units in the device does not affect the actual device Features.
本申请实施例还提供了一种通信系统,包括:终端和服务器。其中,服务器可以是前述实施例中描述的装置或服务器,终端可以是前述实施例描述的装置或终端。The embodiment of the present application also provides a communication system including: a terminal and a server. The server may be the device or server described in the foregoing embodiment, and the terminal may be the device or terminal described in the foregoing embodiment.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任意一种的部分或全部步骤。An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes part or all of the steps of any one of the above method embodiments when executed.
本申请实施例还提供一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行任意一种数据备份方法的部分或全部步骤。The embodiments of the present application also provide a computer program, the computer program including instructions, when the computer program is executed by a computer, the computer can execute part or all of the steps of any data backup method.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可能可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of this application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium It includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program code .
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指 令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字第一用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如数字多功能光盘(digital versatile disc,DVD)、半导体介质(例如固态硬盘solid state disk,SSD)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The available medium may be a magnetic medium, (for example, a floppy disk, Hard disk, magnetic tape), optical media (such as digital versatile disc (DVD), semiconductor medium (such as solid state disk, SSD), etc.
以上所述的具体实施方式,对本申请实施例的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请实施例的具体实施方式而已,并不用于限定本申请实施例的保护范围,凡在本申请实施例的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请实施例的保护范围之内。The specific implementations described above further describe the purpose, technical solutions and beneficial effects of the embodiments of this application in further detail. It should be understood that the above descriptions are only specific implementations of the embodiments of this application and are not intended to To limit the protection scope of the embodiments of the application, any modification, equivalent replacement, improvement, etc. made on the basis of the technical solutions of the embodiments of the application shall be included in the protection scope of the embodiments of the application.

Claims (20)

  1. 一种数据备份的方法,其特征在于,包括:A method for data backup, characterized in that it comprises:
    获取终端发送的第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份;Acquiring a backup request of the first user and the identity of the first user sent by the terminal, where the backup request is used to request backup of the first data to be backed up of the first user;
    根据所述身份标识和所述备份请求确定备份方案,所述备份方案包括备份存储系统、备份数量、主存储系统和备份延迟时间中的一个或者多个;Determining a backup plan according to the identity identifier and the backup request, where the backup plan includes one or more of a backup storage system, a backup quantity, a primary storage system, and a backup delay time;
    根据所述备份方案,将所述主存储系统与区块链网络中对应的备份存储系统建立连接;According to the backup scheme, establish a connection between the main storage system and the corresponding backup storage system in the blockchain network;
    将所述第一待备份数据备份到所述对应的备份存储系统。Backing up the first data to be backed up to the corresponding backup storage system.
  2. 根据权利要求1所述的方法,其特征在于,若所述备份方案包括一个备份存储系统,所述将所述第一待备份数据备份到所述对应的备份存储系统,包括:The method according to claim 1, wherein if the backup scheme includes a backup storage system, the backing up the first data to be backed up to the corresponding backup storage system comprises:
    在第一时刻将所述第一待备份数据备份到所述主存储系统,在第二时刻将所述第一待备份数据备份到所述对应的备份存储系统,所述第一时刻与所述第二时刻的时间间隔为所述备份延迟时间。The first data to be backed up is backed up to the main storage system at the first time, and the first data to be backed up is backed up to the corresponding backup storage system at the second time. The time interval at the second moment is the backup delay time.
  3. 根据权利要求1所述的方法,其特征在于,若所述备份方案包括多个备份存储系统,所述将所述第一待备份数据备份到所述对应的备份存储系统,包括:The method according to claim 1, wherein if the backup scheme includes multiple backup storage systems, the backing up the first data to be backed up to the corresponding backup storage system comprises:
    根据所述第一待备份数据占用所述主存储系统的备份空间和所述备份空间的剩余空间,确定将所述第一待备份数据备份到所述多个备份存储系统中对应的备份存储系统的备份顺序,所述主存储系统包括一个或者多个所述备份空间;According to the backup space of the primary storage system occupied by the first data to be backed up and the remaining space of the backup space, determine to back up the first data to be backed up to the corresponding backup storage system among the multiple backup storage systems The backup sequence of the main storage system includes one or more backup spaces;
    根据所述备份顺序和所述备份延迟时间将所述第一待备份数据依次备份到所述对应的备份存储系统。According to the backup sequence and the backup delay time, the first data to be backed up are sequentially backed up to the corresponding backup storage system.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述第一待备份数据占用所述主存储系统的备份空间和剩余空间容量,确定将所述第一待备份数据备份到所述多个备份存储系统中对应的备份存储系统的备份顺序,包括:The method according to claim 3, wherein the first data to be backed up occupies the backup space and the remaining space capacity of the primary storage system to determine to back up the first data to be backed up to the The backup sequence of the corresponding backup storage system in multiple backup storage systems includes:
    根据所述第一待备份数据占用所述备份空间的容量和所述剩余空间容量的比值,以从小到大的顺序对所述多个备份存储系统中对应的备份存储系统进行排序;Sort the corresponding backup storage systems of the multiple backup storage systems in descending order according to the ratio of the capacity of the backup space occupied by the first data to be backed up and the capacity of the remaining space;
    按照排列后的顺序确定所述对应的备份存储系统的备份顺序。The backup sequence of the corresponding backup storage system is determined according to the sequence after the arrangement.
  5. 根据权利要求1所述的方法,其特征在于,所述获取终端发送的第一用户的备份请求和所述第一用户的身份标识之后,还包括:The method according to claim 1, wherein after said obtaining the backup request of the first user and the identity of the first user sent by the terminal, the method further comprises:
    获取所述第一用户的修改指令,所述修改指令用于指示对部分或者全部的所述第一待备份数据进行修改操作;Acquiring a modification instruction of the first user, where the modification instruction is used to instruct to modify part or all of the first data to be backed up;
    得到第二待备份数据,所述第二待备份数据包括进行所述修改操作后的部分或全部的所述第一待备份数据;Obtaining second data to be backed up, where the second data to be backed up includes part or all of the first data to be backed up after the modification operation is performed;
    将所述第二待备份数据备份到所述对应的备份存储系统。Backing up the second data to be backed up to the corresponding backup storage system.
  6. 根据权利要求5所述的方法,其特征在于,所述将所述第二待备份数据备份到所述对应的备份存储系统,包括:The method according to claim 5, wherein the backing up the second data to be backed up to the corresponding backup storage system comprises:
    根据所述第二待备份数据在所述终端的逻辑地址段和第一映射表,将所述第二待备份数据备份到所述对应的备份存储系统对应的地址块;其中,所述第一映射表包括所述第二待备份数据在所述终端的逻辑地址段和第二映射表的对应关系,所述第二映射表包括所述第二待备份数据在所述对应的备份存储系统中对应的逻辑地址段和物理地址的对应关系,所述物理地址包括物理块地址和/或物理块地址与预定偏移量的组合。According to the logical address segment of the second data to be backed up in the terminal and the first mapping table, the second data to be backed up is backed up to the address block corresponding to the corresponding backup storage system; wherein, the first The mapping table includes the correspondence between the logical address segment of the second data to be backed up in the terminal and the second mapping table, and the second mapping table includes the second data to be backed up in the corresponding backup storage system. The corresponding relationship between the logical address segment and the physical address, where the physical address includes a physical block address and/or a combination of a physical block address and a predetermined offset.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述将所述第一待备份数据备份到所述对应的备份存储系统之后,还包括:The method according to any one of claims 1 to 6, wherein after the backing up the first data to be backed up to the corresponding backup storage system, the method further comprises:
    获取所述终端发送的第一用户对所述第一待备份数据和/或所述第二待备份数据的查看指令;Acquiring a view instruction of the first user to the first data to be backed up and/or the second data to be backed up sent by the terminal;
    根据所述查看指令和所述第一用户的备份方案,从所述主存储系统中获取所述第一待备份数据和/或所述第二待备份数据;Obtaining the first data to be backed up and/or the second data to be backed up from the main storage system according to the viewing instruction and the backup plan of the first user;
    向所述终端发送所述第一待备份数据和/或所述第二待备份数据。Sending the first data to be backed up and/or the second data to be backed up to the terminal.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述将所述第一待备份数据备份到所述对应的备份存储系统之前,还包括:The method according to any one of claims 1-6, wherein before backing up the first data to be backed up to the corresponding backup storage system, the method further comprises:
    对所述第一待备份数据进行脱敏处理。Perform desensitization processing on the first data to be backed up.
  9. 根据权利要求1-6任一项所述的方法,其特征在于,所述将所述第一待备份数据备份到所述对应的备份存储系统之前,还包括:The method according to any one of claims 1-6, wherein before backing up the first data to be backed up to the corresponding backup storage system, the method further comprises:
    根据哈希算法对所述第一待备份数据进行加密处理。Encryption processing is performed on the first data to be backed up according to a hash algorithm.
  10. 一种数据备份的装置,其特征在于,包括:A data backup device, characterized in that it comprises:
    第一获取单元,用于获取终端发送的第一用户的备份请求和所述第一用户的身份标识,所述备份请求用于请求对所述第一用户的第一待备份数据进行备份;The first obtaining unit is configured to obtain a backup request of the first user and the identity of the first user sent by the terminal, and the backup request is used to request a backup of the first data to be backed up of the first user;
    第一确定单元,用于根据所述身份标识和所述备份请求确定备份方案,所述备份方案包括备份存储系统、备份数量、主存储系统和备份延迟时间中的一个或者多个;A first determining unit, configured to determine a backup plan according to the identity identifier and the backup request, the backup plan including one or more of a backup storage system, a backup quantity, a main storage system, and a backup delay time;
    连接单元,用于根据所述备份方案,将所述主存储系统与区块链网络中对应的备份存储系统建立连接;The connection unit is configured to establish a connection between the main storage system and the corresponding backup storage system in the blockchain network according to the backup plan;
    第一备份单元,用于将所述第一待备份数据备份到所述对应的备份存储系统。The first backup unit is configured to back up the first data to be backed up to the corresponding backup storage system.
  11. 根据权利要求10所述的装置,其特征在于,所述备份方案包括一个备份存储系统;所述第一备份单元,具体用于:The device according to claim 10, wherein the backup scheme comprises a backup storage system; and the first backup unit is specifically configured to:
    在第一时刻将所述第一待备份数据备份到所述主存储系统,在第二时刻将所述第一待备份数据备份到所述对应的备份存储系统,所述第一时刻与所述第二时刻的时间间隔为所述备份延迟时间。The first data to be backed up is backed up to the main storage system at the first time, and the first data to be backed up is backed up to the corresponding backup storage system at the second time. The time interval at the second moment is the backup delay time.
  12. 根据权利要求10所述的装置,其特征在于,所述备份方案包括多个备份存储系统,所述第一备份单元,包括:The device according to claim 10, wherein the backup scheme includes multiple backup storage systems, and the first backup unit includes:
    第二确定单元,用于根据所述第一待备份数据占用所述主存储系统的备份空间和所述备份空间的剩余空间,确定将所述第一待备份数据备份到所述多个备份存储系统中对应的备份存储系统的备份顺序,所述主存储系统包括一个或者多个所述备份空间;The second determining unit is configured to determine to back up the first data to be backed up to the multiple backup storages according to the backup space of the primary storage system occupied by the first data to be backed up and the remaining space of the backup space The backup sequence of the corresponding backup storage system in the system, where the primary storage system includes one or more backup spaces;
    第二备份单元,用于根据所述备份顺序和所述备份延迟时间将所述第一待备份数据依次备份到所述对应的备份存储系统。The second backup unit is configured to sequentially back up the first data to be backed up to the corresponding backup storage system according to the backup sequence and the backup delay time.
  13. 根据权利要求12所述的装置,其特征在于,所述第二确定单元,具体用于:The device according to claim 12, wherein the second determining unit is specifically configured to:
    根据所述第一待备份数据占用所述备份空间的容量和所述剩余空间容量的比值,以从小到大的顺序对所述多个备份存储系统中对应的备份存储系统进行排序;Sort the corresponding backup storage systems of the multiple backup storage systems in descending order according to the ratio of the capacity of the backup space occupied by the first data to be backed up and the capacity of the remaining space;
    按照排列后的顺序确定所述对应的备份存储系统的备份顺序。The backup sequence of the corresponding backup storage system is determined according to the sequence after the arrangement.
  14. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    第二获取单元,用于在获取终端发送的第一用户的备份请求和所述第一用户的身份标识之后,获取所述第一用户的修改指令,所述修改指令用于指示对部分或者全部的所述第一待备份数据进行修改操作;The second acquiring unit is configured to acquire a modification instruction of the first user after acquiring the backup request of the first user and the identity of the first user sent by the terminal, and the modification instruction is used to instruct to modify some or all of the To modify the first data to be backed up;
    第三获取单元,用于得到第二待备份数据,所述第二待备份数据包括进行所述修改操作后的部分或全部的所述第一待备份数据;A third obtaining unit, configured to obtain second data to be backed up, where the second data to be backed up includes part or all of the first data to be backed up after the modification operation is performed;
    第三备份单元,用于将所述第二待备份数据备份到所述对应的备份存储系统。The third backup unit is configured to back up the second data to be backed up to the corresponding backup storage system.
  15. 根据权利要求14所述的装置,其特征在于,所述第三备份单元,具体用于:The device according to claim 14, wherein the third backup unit is specifically configured to:
    根据所述第二待备份数据在所述终端的逻辑地址段和第一映射表,将所述第二待备份数据备份到所述对应的备份存储系统对应的地址块;其中,所述第一映射表包括所述第二待备份数据在所述终端的逻辑地址段和第二映射表的对应关系,所述第二映射表包括所述第二待备份数据在所述对应的备份存储系统中对应的逻辑地址段和物理地址的对应关系,所述物理地址包括物理块地址和/或物理块地址与预定偏移量的组合。According to the logical address segment of the second data to be backed up in the terminal and the first mapping table, the second data to be backed up is backed up to the address block corresponding to the corresponding backup storage system; wherein, the first The mapping table includes the correspondence between the logical address segment of the second data to be backed up in the terminal and the second mapping table, and the second mapping table includes the second data to be backed up in the corresponding backup storage system. The corresponding relationship between the logical address segment and the physical address, where the physical address includes a physical block address and/or a combination of a physical block address and a predetermined offset.
  16. 根据权利要求10-15任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 10-15, wherein the device further comprises:
    第四获取单元,用于在将所述第一待备份数据备份到所述对应的备份存储系统之后,获取所述终端发送的第一用户对所述第一待备份数据和/或所述第二待备份数据的查看指令;The fourth acquiring unit is configured to, after backing up the first data to be backed up to the corresponding backup storage system, acquire the first user’s response to the first data to be backed up and/or the first data sent by the terminal 2. View instructions for data to be backed up;
    数据获取单元,用于根据所述查看指令和所述第一用户的备份方案,从所述主存储系统中获取所述第一待备份数据和/或所述第二待备份数据;A data acquisition unit, configured to acquire the first data to be backed up and/or the second data to be backed up from the main storage system according to the viewing instruction and the backup plan of the first user;
    发送单元,用于向所述终端发送所述第一待备份数据和/或所述第二待备份数据。The sending unit is configured to send the first data to be backed up and/or the second data to be backed up to the terminal.
  17. 根据权利要求10-15任一项所述的装置,其特征在于,所述装置还包括数据脱敏单元,用于:在将所述第一待备份数据备份到所述对应的备份存储系统之前,对所述第一待备份数据进行脱敏处理。The device according to any one of claims 10-15, wherein the device further comprises a data desensitization unit, configured to: before backing up the first data to be backed up to the corresponding backup storage system , Perform desensitization processing on the first data to be backed up.
  18. 根据权利要求10-15任一项所述的装置,其特征在于,所述装置还包括数据加密单元,用于:在将所述第一待备份数据备份到所述对应的备份存储系统之前,根据哈希算法对所述第一待备份数据进行加密处理。The device according to any one of claims 10-15, wherein the device further comprises a data encryption unit, configured to: before backing up the first data to be backed up to the corresponding backup storage system, Encryption processing is performed on the first data to be backed up according to a hash algorithm.
  19. 一种服务器,其特征在于,包括处理器、通信接口和存储器,所述处理器、所述通信接口和所述存储器相互连接,其中,所述通信接口用于与其它网络设备进行通信,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-9任一项所述的一种数据备份的方法。A server, characterized by comprising a processor, a communication interface, and a memory, the processor, the communication interface, and the memory are connected to each other, wherein the communication interface is used to communicate with other network devices, the The memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute a data backup method according to any one of claims 1-9.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-9任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to execute The method described in any one of 1-9 is required.
PCT/CN2019/102771 2019-04-28 2019-08-27 Data backup method and device, and computer readable storage medium WO2020220536A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910359291.6 2019-04-28
CN201910359291.6A CN110096388A (en) 2019-04-28 2019-04-28 A kind of method, apparatus and computer storage medium of data backup

Publications (1)

Publication Number Publication Date
WO2020220536A1 true WO2020220536A1 (en) 2020-11-05

Family

ID=67446423

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/102771 WO2020220536A1 (en) 2019-04-28 2019-08-27 Data backup method and device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN110096388A (en)
WO (1) WO2020220536A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096388A (en) * 2019-04-28 2019-08-06 平安科技(深圳)有限公司 A kind of method, apparatus and computer storage medium of data backup
CN111221817B (en) * 2019-12-25 2023-08-22 中国平安财产保险股份有限公司 Service information data storage method, device, computer equipment and storage medium
CN113127258A (en) * 2019-12-30 2021-07-16 华为技术有限公司 Data backup method, device, equipment and medium
CN111459722B (en) * 2020-04-08 2023-04-14 江西博微新技术有限公司 Data processing method, system, readable storage medium and computer equipment
CN111858154A (en) * 2020-06-06 2020-10-30 高榕科技(深圳)有限公司 File backup method based on network system and network system for realizing method
CN111930566A (en) * 2020-07-28 2020-11-13 友谊时光科技股份有限公司 Data backup method and device, electronic equipment and storage medium
CN112839112B (en) * 2021-03-25 2023-02-17 中国工商银行股份有限公司 Hierarchical data storage system and method and backup management server
CN113486985B (en) * 2021-08-02 2023-04-18 汤恩智能科技(上海)有限公司 User identification method, management method, medium and electronic device for electric device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088361A (en) * 2009-12-02 2011-06-08 成都市华为赛门铁克科技有限公司 Data backup equipment, method and system
CN102523290A (en) * 2011-12-19 2012-06-27 成都市华为赛门铁克科技有限公司 Data processing method, device and system
CN109117305A (en) * 2018-07-24 2019-01-01 郑州市景安网络科技股份有限公司 A kind of data back up method, device, equipment and computer readable storage medium
CN110096388A (en) * 2019-04-28 2019-08-06 平安科技(深圳)有限公司 A kind of method, apparatus and computer storage medium of data backup

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6804690B1 (en) * 2000-12-27 2004-10-12 Emc Corporation Method for physical backup in data logical order
CN101436151B (en) * 2008-12-01 2012-01-11 成都索贝数码科技股份有限公司 Data real time backup method and system based on file system
US9430330B1 (en) * 2010-12-29 2016-08-30 Netapp, Inc. System and method for managing environment metadata during data backups to a storage system
US9465426B2 (en) * 2013-09-18 2016-10-11 Huawei Technologies Co., Ltd. Method for backing up data in a case of power failure of storage system, and storage system controller
US9507668B2 (en) * 2014-10-30 2016-11-29 Netapp, Inc. System and method for implementing a block-based backup restart
CN106502837B (en) * 2016-10-25 2019-06-14 Oppo广东移动通信有限公司 A kind of method, apparatus and system of data backup

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088361A (en) * 2009-12-02 2011-06-08 成都市华为赛门铁克科技有限公司 Data backup equipment, method and system
CN102523290A (en) * 2011-12-19 2012-06-27 成都市华为赛门铁克科技有限公司 Data processing method, device and system
CN109117305A (en) * 2018-07-24 2019-01-01 郑州市景安网络科技股份有限公司 A kind of data back up method, device, equipment and computer readable storage medium
CN110096388A (en) * 2019-04-28 2019-08-06 平安科技(深圳)有限公司 A kind of method, apparatus and computer storage medium of data backup

Also Published As

Publication number Publication date
CN110096388A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
WO2020220536A1 (en) Data backup method and device, and computer readable storage medium
US10903976B2 (en) End-to-end secure operations using a query matrix
US9626497B2 (en) Sharing USB key by multiple virtual machines located at different hosts
US10116645B1 (en) Controlling use of encryption keys
US10608811B2 (en) Private set intersection encryption techniques
US20180212753A1 (en) End-To-End Secure Operations Using a Query Vector
CN109214201B (en) Data sharing method, terminal equipment and computer readable storage medium
US10623186B1 (en) Authenticated encryption with multiple contexts
WO2022142616A1 (en) Data storage method and apparatus based on redis, and device and storage medium
US20230058013A1 (en) Providing access to encrypted insights using anonymous insight records
CN113806777A (en) File access realization method and device, storage medium and electronic equipment
WO2022161182A1 (en) Trusted computing method and apparatus based on data stream
US10958744B2 (en) Identifying and managing redundant digital content transfers
KR20200085095A (en) Electronic apparatus and method for managing data based on block chain
US9306937B2 (en) Using a PKCS module for opening multiple databases
CN111478974B (en) Network connection method and device, electronic equipment and readable storage medium
WO2020253380A1 (en) Data encryption method and apparatus, and terminal device
CN110046000B (en) Applet running method and device
CN110545542B (en) Main control key downloading method and device based on asymmetric encryption algorithm and computer equipment
US11042583B2 (en) Systems and methods for real-time multi-party recommendation in a peer to peer communication
CN113434906B (en) Data query method, device, computer equipment and storage medium
US9948632B2 (en) Sharing data between sandboxed applications with certificates
JP2020048107A (en) Data management method, data management device, and data management program
US11546171B2 (en) Systems and methods for synchronizing anonymized linked data across multiple queues for secure multiparty computation
CN113656817A (en) Data encryption method

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

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

Country of ref document: EP

Kind code of ref document: A1