CN110096388A - A kind of method, apparatus and computer storage medium of data backup - Google Patents

A kind of method, apparatus and computer storage medium of data backup Download PDF

Info

Publication number
CN110096388A
CN110096388A CN201910359291.6A CN201910359291A CN110096388A CN 110096388 A CN110096388 A CN 110096388A CN 201910359291 A CN201910359291 A CN 201910359291A CN 110096388 A CN110096388 A CN 110096388A
Authority
CN
China
Prior art keywords
backup
user
data
server
storage system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910359291.6A
Other languages
Chinese (zh)
Inventor
王鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910359291.6A priority Critical patent/CN110096388A/en
Publication of CN110096388A publication Critical patent/CN110096388A/en
Priority to PCT/CN2019/102771 priority patent/WO2020220536A1/en
Pending legal-status Critical Current

Links

Classifications

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

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

The embodiment of the present application discloses the method, apparatus and computer storage medium of a kind of data backup, wherein this method comprises: server obtains the backup request and the first User Identity for the first user that terminal is sent, the backup request of the first user backs up the first user data for requesting;Server determines that backup scenario, backup scenario include: one or more storage system, backup quantity, main storage system, standby storage system and backup delay time of backup according to the identity and backup request of the first user;Server establishes connection according to backup scenario and one or more storage system;Server is by the first user data backup to one or more of storage systems.Using the embodiment of the present application, is automated and backed up according to user demand, effectively improve user data backup efficiency.

Description

A kind of method, apparatus and computer storage medium of data backup
Technical field
This application involves field of computer technology more particularly to the method, apparatus and computer of a kind of data backup to store Medium.
Background technique
Under cloud computing and big data trend, business data storage and virtualization applications demand magnanimity increase.Based on industry 86 server of standard x, using the distributed memory system of full distributed no share framework, by its own highly reliable, high extension, The advantage of low cost, is more and more widely used.Terminal operation data, the first user are effectively saved for greater safety With enterprise when storing Backup Data, operation data can be not only stored in local disk, data can also be backuped to not Same storage shouting pain, such as solid state hard disk (Solid State Disk, SSD), the storages system such as distributed file system (Ceph) System.
However, different storage systems has different storage schemes, if enterprise or the first user need operation data Multiple storage systems are backuped to, then need to carry out operation data into multiple backup.Also, after the completion of data backup memory, if First user carries out additions and deletions to operation data and changes the modifications such as looking into and operating, and needs again repeatedly to backup to modified data different Storage system, this makes data backup process complicated, causes the waste of the first user time.
Summary of the invention
The embodiment of the present application provides the method, apparatus and computer storage medium of a kind of data backup, according to user demand Automation backup, effectively improves user data backup efficiency.
In a first aspect, the embodiment of the present application provides a kind of method of data backup.This method comprises:
Server obtains the backup request and the first User Identity of the first user that terminal is sent, first user Backup request for request the first user data is backed up;
Server determines backup scenario, the backup scenario packet according to the identity and backup request of first user It includes: one or more storage system of backup, backup quantity, main storage system, standby storage system and backup delay time;
Server establishes connection according to the backup scenario and one or more of storage systems;
Server is by first user data backup to one or more of storage systems.
Implement the embodiment of the present invention, server backs user data to one or more according to the backup scenario of user and deposits Storage system avoids user from repeatedly carrying out data backup to different storage systems, reduces the user data backup time, effectively improves User data backup efficiency.
Optionally, if including a standby storage system in backup scenario, server is by the first user data backup described in One or more storage system, comprising:
Server at the first moment by first user data backup to the main storage system, at the second moment by institute The first user data backup is stated to the standby storage system, the time interval at first moment and second moment is described The backup delay time.
Implement the embodiment of the present invention, the user data different time is backuped to preparation storage system according to the backup delay time by server System realizes async backup, effectively reduces the data run amount of server.
Optionally, if in the backup scenario of first user including multiple standby storage systems, server is by the first user Data backup to one or more of storage systems, comprising:
Server is determined according to the backup space and remaining space capacity of first user data occupancy storage system will For first user data backup to the backup sequence of the multiple standby storage system, the storage system includes one or more A backup space;
Server successively backups to the first user data according to the backup sequence and the backup delay time described Multiple standby storage systems.
Optionally, server occupies the backup space and remaining space capacity of storage system according to first user data It determines the backup sequence of first user data backup to the multiple standby storage system, comprising:
The server occupies the memory size and backup sky of the backup space according to first user data Between the ratio sequence from small to large of remaining space amount of capacity the multiple standby storage system is ranked up, after arrangement Sequence is determined as the backup sequence of multiple standby storage systems.
Implement the embodiment of the present invention, server occupies backup space size and the backup space according to the first user data The ratio of remaining space amount of capacity determines the backup sequence of multiple standby storage systems, and the smaller backup rate of ratio is faster, thus Improve user data backup efficiency.
Optionally, after the backup request for the first user that server acquisition terminal is sent and the first User Identity, Further include:
Server obtains modification instruction, and the modification instruction is used to indicate the first user request to first user The partial data or total data of data are modified operation;
Server obtain the first user modify operation after partial data or total data;
Server by it is described modify operation after partial data or total data backup to it is one or more of Storage system.
Implement the embodiment of the present invention, when server real-time monitoring users modification instruction, modified data are backuped to The consistency of user's real data and Backup Data can be effectively ensured in storage system.
Optionally, server by it is described modify operation after partial data or total data backup to it is one or The multiple storage systems of person, comprising:
Server modify according to operation after partial data or total data the terminal logical address Modification data after the operation of modifying are backuped to one or more of storage systems pair by section and the first mapping table The address block answered, first mapping table include logical address section and second mapping table of the modification data in the terminal Corresponding relationship, second mapping table include the modification data corresponding logic in one or more of storage systems The corresponding relationship of address field and physical address, the physical address include physical block address and/or physical block address and make a reservation for inclined The combination of shifting amount.
Implement the embodiment of the present invention, storage system is assigned in the data backup after server modifies user, rather than By modified whole user data backups to storage system, server transportation load is reduced, data backup efficiency is effectively improved.
Optionally, server will be after the first user data backup to one or more of storage systems, further includes:
Server obtains second user and checks instruction for target Backup Data;
Server is according to the backup scenario for checking instruction and the second user of the second user from main storage system The target Backup Data is obtained, and is sent to the terminal.
Specifically, the mark of target Backup Data is sent to storage system by server, storage system is backed up according to target Data Identification searches target Backup Data, and target Backup Data is sent to server.
Second aspect, the embodiment of the present application provide a kind of method of data backup, comprising:
Terminal obtains the backup request and the first User Identity of the first user, and the backup request of first user is used The first user data is backed up in request;
The backup request of first user and the first User Identity are sent to server by terminal.
Implement the embodiment of the present invention to request user ID after terminal receives the backup request identity of the first user Identity, can be with the backup request of the fast notification server user.
Optionally, terminal obtain the first user backup request and the first User Identity after, further includes:
Terminal obtains modification instruction, and the modification instruction is used to indicate the first user request to first number of users According to partial data or total data modify operation;
Modification instruction is sent to server by terminal.
Implement the embodiment of the present invention, when terminal real-time monitoring users modification instruction, modification instruction is sent to server, Modified data are backuped to storage system by server, and it is consistent with Backup Data that user's real data can be effectively ensured Property.
Optionally, terminal obtain the first user backup request and the first User Identity after, further includes:
Terminal obtains the first user and checks instruction for target Backup Data;
First user is checked that instruction is sent to server for target Backup Data by terminal.
Implement the embodiment of the present invention, terminal acquisition will check that instruction is sent to server after checking instruction, server according to It checks that the target Backup Data in storage system is sent to terminal by instruction, quickly can export Backup Data for user.
The third aspect, the embodiment of the present application provide a kind of device of logical data backup, comprising:
First acquisition unit, the backup request and the first User Identity of the first user for obtaining terminal transmission, The backup request of first user backs up the first user data for requesting;
First determination unit, for determining backup scenario according to the identity and backup request of first user, institute State one or more storage systems that backup scenario includes: backup, backup quantity, main storage system, standby storage system and backup Delay time;
Connection unit, for establishing connection according to the backup scenario and one or more of storage systems;
First backup units are used for first user data backup to one or more of storage systems.
Optionally, if including a standby storage system in the backup scenario, first backup units are specifically used for: First moment is standby by first user data at the second moment by first user data backup to the main storage system Part the standby storage system is arrived, the time interval at first moment and second moment is the backup delay time.
Optionally, if in the backup scenario of first user including multiple standby storage systems, first backup units Further include:
Second determination unit, for occupying the backup space and remaining space of storage system according to first user data Capacity determines that, by the backup sequence of first user data backup to the multiple standby storage system, the storage system includes One or more backup space;
Second backup units, for according to backup sequence and the backup delay time by the first user data successively Backup to the multiple standby storage system.
Optionally, the second determination unit is specifically used for occupying the memory of the backup space according to first user data The sequence of the ratio of size and the backup space remaining space amount of capacity from small to large to the multiple standby storage system into Sequence after arrangement is determined as the backup sequence of multiple standby storage systems by row sequence.
Optionally, the device further include:
Second acquisition unit, for obtaining modification instruction, the modification instruction is used to indicate the first user request pair The partial data or total data of first user data are modified operation;
Third acquiring unit, for obtain the first user modify operation after partial data or total data;
Third backup units, for by it is described modify operation after partial data or total data backup to described one A or multiple storage systems.
Optionally, the third backup units are specifically used for modify according to partial data or whole after operating Modification data after the operation of modifying are backuped to institute in the logical address section of the terminal and the first mapping table by data The corresponding address block of one or more storage system is stated, first mapping table includes the modification data in the terminal The corresponding relationship of logical address section and the second mapping table, second mapping table include the modification data one or The corresponding relationship of corresponding logical address section and physical address, the physical address include physical block address in multiple storage systems And/or the combination of physical block address and predetermined offset.
Optionally, described device further include:
4th acquiring unit checks instruction for target Backup Data for obtaining second user;
Transmission unit, for the backup scenario for checking instruction and the second user according to the second user from main memory Storage system obtains the target Backup Data, and target Backup Data is sent to the terminal.
Fourth aspect, the embodiment of the present application provide a kind of device of logical data backup, comprising:
First acquisition unit, for obtaining the backup request and the first User Identity of the first user, described first is used The backup request at family backs up the first user data for requesting;
First transmission unit, for the backup request of first user and the first User Identity to be sent to service Device.
Optionally, described device further include:
Second acquisition unit, for obtaining modification instruction, the modification instruction is used to indicate the first user request pair The partial data or total data of first user data are modified operation;
Second transmission unit, for will modify instruction be sent to server '
Optionally, described device further include:
Third acquiring unit checks instruction for target Backup Data for obtaining the first user;
Third transmission unit, for the first user to be checked that instruction is sent to server for target Backup Data.
5th aspect, the embodiment of the present application provide a kind of server, for executing the backup of first aspect data presented Method.The server can include: processor, communication interface and memory, processor, communication interface and memory mutually interconnect It connects.Wherein, communication interface with other network equipments (such as terminal) for being communicated, and memory is for storing first aspect institute The realization code of the data back up method of offer, processor execute first for executing the program code stored in memory The method of data backup provided by aspect.
6th aspect, the embodiment of the present application provide a kind of terminal, for executing the backup of second aspect data presented Method.The server can include: processor, memory, loader and follower.Wherein, loader is for receiving the first user Input identity, backup request, modification instruct and check instruction, and follower is for showing Backup Data.Memory is for depositing The realization code of data back up method provided by second aspect is stored up, processor is for executing the program generation stored in memory Code, the i.e. method of data backup provided by execution second aspect.
7th aspect, the embodiment of the present application also provides a kind of communication systems, comprising: terminal and server.Wherein, it services The server that device can be the device of third aspect description or the 5th aspect describes, terminal can be the device of fourth aspect description Or the terminal described in terms of the 6th.
Eighth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored on readable storage medium storing program for executing Instruction, when it runs on a processor, so that the method that processor executes the data backup of above-mentioned first aspect description.
9th aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored on readable storage medium storing program for executing Instruction, when it runs on a processor, so that the method that processor executes the data backup of above-mentioned second aspect description.
Tenth aspect, the embodiment of the present application provides a kind of computer program product comprising instruction, when it is in processor When upper operation, so that the method that processor executes the data backup of above-mentioned first aspect description.
Tenth on the one hand, and the embodiment of the present application provides a kind of computer program product comprising instruction, when it is being handled When being run on device, so that the method that processor executes the data backup of above-mentioned second aspect description.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Wherein:
Fig. 1 is one of one embodiment communication system architecture schematic diagram;
Fig. 2 is the structural schematic diagram of one of one embodiment server;
Fig. 3 is the structural schematic diagram of one of one embodiment terminal;
Fig. 4 is one of one embodiment data back up method flow diagram;
Fig. 5 is one of one embodiment data and standby system display interface schematic diagram;
Fig. 6 is one of one embodiment data back up method flow diagram;
Fig. 7 is that one of one embodiment logical address maps schematic diagram;
Fig. 8 is the structural schematic diagram of one of one embodiment data backup device;
Fig. 9 is the structural schematic diagram of one of one embodiment data backup device.
Specific embodiment
The embodiment of the present application provides a kind of method and apparatus of data backup, is automated and is backed up according to user demand, effectively Improve user data backup efficiency.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
The term " includes " and " having " and their any changes occurred in present specification, claims and attached drawing Shape, it is intended that cover and non-exclusive include.Such as contain the process, method of a series of steps or units, system, product or Equipment is not limited to listed step or unit, but optionally further comprising the step of not listing or unit or optional Ground further includes the other step or units intrinsic for these process, methods, product or equipment.In addition, term " first ", " the Two " and " third " etc. are and to be not intended to describe specific sequence for distinguishing different objects.Below in conjunction with of the invention real The attached drawing in example is applied, technical solution in the embodiment of the present invention is described.
First the system architecture of this programme is described below.Refering to fig. 1, Fig. 1 is the data that this programme embodiment provides The system architecture schematic diagram of backup method.As shown in Figure 1, system architecture may include one or more 102 (multiple clothes of server Business device may be constructed a server cluster), one or more storage server 103, and one or more terminals 101 (or Equipment), in which:
Terminal 101 can be installed and run relevant application (or APP).It is corresponding with server using referring to, it is client The program of local service is provided.Here, which may include but be not limited to: to server send information (such as data read Write request) and the information (for example, backing up successfully, backup failure) and the shared information that receive server transmission etc..This programme Terminal in embodiment can include but is not limited to any hand-held electronic product based on intelligent operating system, can be with User carries out human-computer interaction by input equipments such as keyboard, dummy keyboard, touch tablet, touch screen and voice-operated devices, such as Smart phone, tablet computer, PC etc..Wherein, intelligent operating system includes but is not limited to any by mobile device Various mobile applications are provided to enrich the operating system of functions of the equipments, Android Androi, iOS, Windows Phone etc..
Server 102 can include but is not limited to background server, component server, netscape messaging server Netscape etc., service Device can be communicated by internet with multiple terminals, can also be communicated by internet with multiple storage systems.It deposits Storage system includes one or more storage server 103, and the read-write requests that 102 monitor terminal of server is sent use terminal The operation data at family backups to one or more of storage system A, storage system B and storage system C.It needs to transport on server Row has corresponding server to provide corresponding data backup service, such as reading data, and data backup memory, decision are held Row etc..
Fig. 2 is referred to, Fig. 2 shows a kind of server provided by the embodiments of the present application, the servers 200 can include: deposit Reservoir 201, communication interface 202 and one or more processors 203.These components can be connected by bus 204 or other modes It connects, Fig. 2 by bus for being connected.Wherein:
Memory 201 can be coupled with processor 203 by bus 204 or input/output port, and memory 201 can also To be integrated with processor 203.Memory 201 is for storing various software programs and/or multiple groups instruction.Specifically, depositing Reservoir 201 may include the memory of high random access, and may also comprise nonvolatile memory, such as one or more magnetic Disk storage device, flash memory device or other non-volatile solid-state memory devices.Memory 201 can also store network communication journey Sequence, the network communication program can be used for and one or more optional equipments, one or more terminals, one or more network equipments It is communicated.
Processor 203 can be general processor, such as central processing unit (central processing unit, CPU), it can also be digital signal processor (digital signal processing, DSP), specific integrated circuit (application specific integrated circuit, ASIC), or be arranged to implement the embodiment of the present application One or more integrated circuits.Processor 203 can handle the data received by communication interface 202.
Communication interface 202 is communicated for server 200 with other network equipments, such as terminal is communicated.Communication Interface 202 can be transceiver, transmission circuit etc., wherein communication interface is to be referred to as, and may include one or more interfaces, example Such as the interface between terminal and server.Communication interface 202 may include wireline interface and wireless interface, such as standard interface, Ethernet, Multi-Machine Synchronous interface.
Processor 203 can be used for reading and executing computer-readable instruction.It is deposited specifically, processor 203 can be used for calling The data being stored in memory 201.Optionally, when processor 203 sends any message or data, especially by driving or Control communication interface 202 does the transmission.Optionally, when processor 203 receives any message or data, especially by drive Dynamic or control communication interface 202 does the reception.Therefore, processor 203 can be considered to be the control for executing and sending or receiving Center, communication interface 202 are to send and receive the specific actor of operation.
In the embodiment of the present application, communication interface 202 is specifically used for executing the receipts of data involved in following methods embodiment The step of hair, processor 203 are specifically used for the step of implementing the data processing in addition to data transmit-receive.
A kind of terminal provided by the embodiments of the present application, the terminal are shown referring to Fig. 3, Fig. 3 can include: at one or more Manage device 301, memory 302, one or more input equipments 303 and one or more output equipments 304.These components can pass through Bus 305 or other modes connection, Fig. 3 by bus for being connected.Wherein:
Processor 301 can be central processing unit (Central Processing Unit, CPU), which may be used also To be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
Memory 302 may include read-only memory and random access memory, and provide instruction sum number to processor 301 According to.The a part of of memory 302 can also include nonvolatile RAM.For example, memory 302 can also store The information of device type.
Input equipment 303 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information of the first user and referring to The directional information of line), microphone etc., output equipment 304 may include display (LCD etc.), loudspeaker etc..
Server and terminal shown in Fig. 3 as shown in connection with fig. 2, the embodiment of the present application provide a kind of data backup Method, referring to fig. 4, Fig. 4 are a kind of flow diagram of the method for data backup that one embodiment of the application provides.Its In, as shown in figure 4, a kind of data back up method that one embodiment of the application provides may include:
S401, terminal obtain the backup request and the first User Identity of the first user, and the backup of first user is asked It asks for requesting to back up the first user data.
Specifically, user, after terminal completes operation, user is needed to back up by user's logon data standby system, terminal Data, User Identity and backup request are sent to server.It is illustrated below with reference to Fig. 5, data backup system Display interface content can be such as, but not limited to as shown in Figure 5.As shown in figure 5, data backup system interface 500 includes: text Frame 501, the data for needing to back up for showing user;Backup button 502 is used to indicate the backup request of user;Exit button 503, it is used to indicate user and abandons Backup Data.Further, if user selects backup button, terminal is by the backup request of user It is sent to server.
S402, terminal send the backup request and the first User Identity of the first user, and server receives the first user Backup request and the first User Identity.
S403: server determines backup scenario according to the identity and backup request of first user.
Optionally, backup scenario include: one or more storage system of backup, it is backup quantity, main storage system, standby Storage system and backup delay time.
Wherein, storage system includes the storage such as solid state hard disk (solid state disk, SSD), distributed memory system System.Different user has different backup requirements, and server is stored with the corresponding storage scheme of different user identity.Backup Storage system be determined according to user demand, for example, the backup requirements of user 1 are as follows: user data needs are backuped to and deposited Storage system A and storage system B;The backup requirements of user 2 are as follows: user data need to backup to storage system A, storage system B and Storage system C.
Specifically, server is stored with the corresponding backup scenario of different user, it is illustrated below with reference to table 1, data The storage content of standby system can be such as, but not limited to as shown in table 1:
Table 1
Table 1 is it is found that the corresponding backup scenario of user that user identifier is 001 are as follows: user data is backuped to storage respectively System A and storage system B, the quantity of backup are all 1 part respectively, and wherein storage system A is main storage system, and storage system B is Standby storage system is 30s for the backup delay time between storage system;The corresponding backup side of user that user identifier is 002 Case are as follows: user data is backuped to storage system A, storage system B and storage system C respectively, the quantity of backup is all 1 respectively Part, wherein storage system A is main storage system, and storage system B and storage system C are standby storage system, between storage system The backup delay time be 30s.
S404, server establish connection according to the backup scenario and one or more of storage systems.
Specifically, including the storage system that user needs to back up in backup scenario, server needs that backs up to deposit with user Storage system establishes connection, backs user data to corresponding storage system convenient for subsequent.
For example, user's storage scheme that identity is 001 is that user data is backuped to storage system A and storage respectively System B, therefore server and storage system A and storage system B establish connection.
S405, server is by the first user data backup to one or more of storage systems.
Optionally, if in the backup scenario of the first user including a standby storage system, the server is by the first user Data backup to one or more of storage systems, comprising:
Be engaged in device the first moment will first user data backup to the main storage system, the second moment will described in For first user data backup to the standby storage system, the time interval at first moment and second moment is described standby Part delay time.
Optionally, if in the backup scenario of the first user including multiple standby storage systems, the server is by the first user Data backup to one or more of storage systems, comprising:
Server is determined according to the backup space and remaining space capacity of first user data occupancy storage system will For first user data backup to the backup sequence of the multiple standby storage system, the storage system includes one or more A backup space;
Server successively backups to the first user data according to the backup sequence and the backup delay time described Multiple standby storage systems.
Specifically, each storage system includes one or more backup space, each backup space has corresponding remaining empty Between capacity.Server determines that user data backup arrives storage system in the logical address where terminal according to the first user data Logical address, then according to the logical address of storage system determine the first user data in the correspondence backup space of storage system, For example, storage system B and storage system C are standby storage system, and the user data is corresponding in the corresponding backup scenario of user 002 The backup space for backuping to storage system B is backup space 1, and the residual capacity size of backup space 1 is 30G;First number of users It is backup space 1 according to the corresponding backup space for backuping to storage system C, the residual capacity size of backup space 2 is 40G.
Optionally, server according to first user data occupy the backup space memory size and the backup The sequence of the ratio of Spatial Residual spatial content size from small to large is ranked up the multiple standby storage system, after arrangement Sequence be determined as multiple standby storage systems backup sequence.
Specifically, the storage strategy due to storage system is different, identical user data size backups to difference Size after storage system can be identical or not identical.
For example, the user data backup of user 002 occupies the memory size of backup space 1 to storage system B backup space 1 For 0.5G, backuping to storage system C backup space 1 and occupying the memory size of backup space 2 is 0.4G.The number of users of user 002 Ratio according to the 1 remaining space amount of capacity of memory size and backup space for occupying the backup space 1 is 1/6, described in occupancy The ratio of the 2 remaining space amount of capacity of memory size and backup space of backup space 2 is 1/10, so storage system B and depositing The backup of storage system C is storage system B → storage system C.
Implement the embodiment of the present invention, server backs user data to one or more according to the backup scenario of user and deposits Storage system avoids user from repeatedly carrying out data backup to different storage systems, reduces the user data backup time, effectively improves User data backup efficiency.
Referring to Fig. 6, Fig. 6 is a kind of flow diagram for data back up method that one embodiment of the present of invention provides.Clothes Be engaged in device by the first user data backup to storage system when, further include following steps S406-S413.Below to step S406- S413 describes in detail:
S406, terminal obtain modification instruction, and the modification instruction is used to indicate the first user request to the first user data Partial data or total data modify operation;
Specifically, terminal is after the backup request for obtaining user, it is understood that there may be modify to the first user data Operational circumstances.For example, being illustrated so that the first user backs up mass picture as an example.First user asks in transmission backup After asking, which, which can be carried out, for example deletes a certain or more photos, is put into the modifications such as other photo operation.
S407, terminal send modification instruction, and server receives modification instruction.
S408, server instruct partial data or total data after modifying operation to backup to one according to modification Or multiple storage systems.
Specifically, the modified modification data of the first user are backuped to storage system rather than by whole the by server One user data backup is to storage system.
Optionally, server will modify operation after partial data or total data backup to one or more and deposit Storage system, comprising:
Server modify according to operation after partial data or total data the terminal logical address Modification data after the operation of modifying are backuped to one or more of storage systems pair by section and the first mapping table The address block answered, first mapping table include logical address section and second mapping table of the modification data in the terminal Corresponding relationship, second mapping table include the modification data corresponding logic in one or more of storage systems The corresponding relationship of address field and physical address, the physical address include physical block address and/or physical block address and make a reservation for inclined The combination of shifting amount.
Referring to Fig. 7, Fig. 7 is logical address mapping graph provided in an embodiment of the present invention.For example, with end-user listening data with deposit For logical address section mapping relations between storage system A.As shown in fig. 7, user data A, B, C and D terminal logically Location section is respectively logical address section 1, logical address section 2, logical address section 3 and logical address section 4, and user data A, B, C and D exist The corresponding logical field of storage system A is respectively logical address section 1, logical address section 3, logical address section 5 and logical address section It is right on system A that logical address section 1, logical address section 3, logical address section 5 and logical address section 8 on 8, storage system A go out in the spring The physical address answered is respectively physical address 1, physical address 2, physical address 3 and physical address 4, wherein physical address 1 and object There is preset offset in reason address 3.Server is according to the logical address section of end-user listening data and the logical address of storage system Mapping table relationship between section, by the user data storage of terminal to the corresponding physical address of storage system.
When the first user to user data A is modified operation, data A, which modifies, to be operated later as data F, service Device stores data F onto the physical address 1 in storage system A.If the memory that modified data F is occupied than data A is greatly very More, the physical address 1 of storage system A can not back up the partial data of data F, then the partial data of data F is backuped to object In the predetermined offset for managing address 1.
S409, server obtain second user and check instruction for target Backup Data.
Specifically, the data of the backup of second user within the storage system agree be one or more, user passes through terminal Input needs the target Backup Data checked.
S410, terminal transmission check that instruction is checked in instruction, server reception.
S411, server check that the backup scenario of instruction and second user is standby from main storage system acquisition target according to Part data.
Specifically, server is sent to the corresponding main storage system of second user according to by the mark of target Backup Data, Main storage system determines target Backup Data by identifying, and target Backup Data is then sent to server.
Optionally, target Backup Data, clothes are obtained when server can not be sent within a preset time period from main storage system The mark of target Backup Data is sent to standby storage system by business device, obtains target Backup Data from standby storage system.
Optionally, if having multiple standby storage systems in the corresponding backup scenario of second user, according to backup second user The sequence of data obtains target Backup Data from standby storage system.
S412, server send target Backup Data, and terminal receives target Backup Data.
S413, terminal export target Backup Data.
Implement the embodiment of the present invention, server supervises the modification request of user in real time in backup procedure, after then modifying Data backup to storage system, the consistency of the Backup Data in the real data and storage system of user has been effectively ensured.
Show referring to Fig. 8, Fig. 8 and give a kind of structural schematic diagram of data backup device, as shown in figure 8, the maintenance program The device 800 of offer includes: first acquisition unit 801, the first determination unit 802, connection unit 803 and the first backup units 804。
Wherein, first acquisition unit 801, the backup request and first user's body of the first user for obtaining terminal transmission The backup request of part mark, first user backs up the first user data for requesting;First determination unit 802, Determine that backup scenario, the backup scenario include: backup for the identity and backup request according to first user One or more storage systems, backup quantity, main storage system, standby storage system and backup delay time;Connection unit 803, For establishing connection according to the backup scenario and one or more of storage systems;First backup units 804, being used for will First user data backup is to one or more of storage systems.
Optionally, if including a standby storage system in the backup scenario, first backup units are specifically used for: First moment is standby by first user data at the second moment by first user data backup to the main storage system Part the standby storage system is arrived, the time interval at first moment and second moment is the backup delay time.
If in the backup scenario of first user including multiple standby storage systems, first backup units further include:
Second determination unit 805, for occupying the backup space and residue of storage system according to first user data Spatial content is determined the backup sequence of first user data backup to the multiple standby storage system, the storage system Including one or more backup space;
Second backup units 806, for according to backup sequence and the backup delay time by the first user data Successively backup to the multiple standby storage system.
Optionally, the second determination unit is specifically used for occupying the memory of the backup space according to first user data The sequence of the ratio of size and the backup space remaining space amount of capacity from small to large to the multiple standby storage system into Sequence after arrangement is determined as the backup sequence of multiple standby storage systems by row sequence.
Optionally, the device further include:
Second acquisition unit 806, for obtaining modification instruction, the modification instruction is used to indicate the first user request Partial data or total data to first user data are modified operation;
Third acquiring unit 807, for obtain the first user modify operation after partial data or total data;
Third backup units 808, for by it is described modify operation after partial data or total data backup to institute State one or more storage system.
Optionally, the third backup units are specifically used for modify according to partial data or whole after operating Modification data after the operation of modifying are backuped to institute in the logical address section of the terminal and the first mapping table by data The corresponding address block of one or more storage system is stated, first mapping table includes the modification data in the terminal The corresponding relationship of logical address section and the second mapping table, second mapping table include the modification data one or The corresponding relationship of corresponding logical address section and physical address, the physical address include physical block address in multiple storage systems And/or the combination of physical block address and predetermined offset.
Optionally, described device further include:
4th acquiring unit 810 checks instruction for target Backup Data for obtaining second user;
Transmission unit 811, for according to the second user check instruction and the second user backup scenario from Main storage system obtains the target Backup Data, and target Backup Data is sent to the terminal.
Show referring to Fig. 9, Fig. 9 and give a kind of structural schematic diagram of data backup device, as shown in figure 9, the maintenance program The device 900 of offer includes: first acquisition unit 901 and the first transmission unit 902.
Wherein, first acquisition unit 901 is used to obtain the backup request and the first User Identity of the first user, described The backup request of first user backs up the first user data for requesting;First transmission unit 902, for by described the The backup request of one user and the first User Identity are sent to server.
Optionally, described device further include:
Second acquisition unit 903, for obtaining modification instruction, the modification instruction is used to indicate the first user request Partial data or total data to first user data are modified operation;
Second transmission unit 904 is sent to server for that will modify instruction.
Optionally, described device further include:
Third acquiring unit 905 checks instruction for target Backup Data for obtaining the first user;
Third transmission unit 906, for the first user to be checked that instruction is sent to server for target Backup Data.
A kind of computer readable storage medium, the computer-readable storage medium are provided in another embodiment of the application Matter is stored with computer program, and the computer program includes program instruction, realization when described program instruction is executed by processor.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center First user's line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave etc.) mode are to another A web-site, computer, server or data center are transmitted.The computer readable storage medium can be computer Any usable medium that can be accessed either includes the data such as one or more usable mediums integrated server, data center Store equipment.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (such as digital more function Can CD (digital versatile disc, DVD), semiconductor medium (such as solid state hard disk solid state disk, SSD) etc..
Above-described specific embodiment carries out the purpose of the embodiment of the present invention, technical scheme and beneficial effects It is further described, it should be understood that the foregoing is merely the specific embodiments of the embodiment of the present invention, and does not have to In limit the embodiment of the present invention protection scope, it is all on the basis of the technical solution of the embodiment of the present invention, done it is any Modification, equivalent replacement, improvement etc. should all include within the protection scope of the embodiment of the present invention.

Claims (10)

1. a kind of method of data backup characterized by comprising
Server obtains the backup request and the first User Identity for the first user that terminal is sent, and first user's is standby Part request backs up the first user data for requesting;
The server determines backup scenario, the backup scenario packet according to the identity and backup request of first user It includes: one or more storage system of backup, backup quantity, main storage system, standby storage system and backup delay time;
The server establishes connection according to the backup scenario and one or more of storage systems;
The server is by first user data backup to one or more of storage systems.
2. the method according to claim 1, wherein if in the backup scenario including a standby storage system, The server is by the first user data backup to one or more of storage systems, comprising:
The server at the first moment by first user data backup to the main storage system, at the second moment by institute The first user data backup is stated to the standby storage system, the time interval at first moment and second moment is described The backup delay time.
3. the method according to claim 1, wherein if including multiple standby in the backup scenario of first user Storage system, the server is by the first user data backup to one or more of storage systems, comprising:
The server is determined according to the backup space and remaining space capacity of first user data occupancy storage system will For first user data backup to the backup sequence of the multiple standby storage system, the storage system includes one or more A backup space;
The server successively backups to the first user data according to the backup sequence and the backup delay time described Multiple standby storage systems.
4. according to the method described in claim 3, it is characterized in that, the server is deposited according to first user data occupancy The backup space and remaining space capacity of storage system are determined first user data backup to the multiple standby storage system Backup sequence, comprising:
The server occupies the memory size of the backup space according to first user data and the backup space remains The sequence of the ratio of complementary space amount of capacity from small to large is ranked up the multiple standby storage system, by the sequence after arrangement It is determined as the backup sequence of multiple standby storage systems.
5. the method according to claim 1, wherein the server obtains the standby of the first user that terminal is sent After part request and the first User Identity, further includes:
The server obtains modification instruction, and the modification instruction is used to indicate the first user request to first user The partial data or total data of data are modified operation;
The server obtains the first user and modifies partial data or total data after operation;
The server by it is described modify operation after partial data or total data backup to it is one or more of Storage system.
6. according to the method described in claim 5, it is characterized in that, the server by it is described modify operation after part Data or total data backup to one or more of storage systems, comprising:
The server modify according to operation after partial data or total data the terminal logical address Modification data after the operation of modifying are backuped to one or more of storage systems pair by section and the first mapping table The address block answered, first mapping table include logical address section and second mapping table of the modification data in the terminal Corresponding relationship, second mapping table include the modification data corresponding logic in one or more of storage systems The corresponding relationship of address field and physical address, the physical address include physical block address and/or physical block address and make a reservation for inclined The combination of shifting amount.
7. method according to claim 1-6, which is characterized in that the server is by the first user data backup To after one or more of storage systems, further includes:
The server obtains second user and checks instruction for target Backup Data;
The server is according to the backup scenario for checking instruction and the second user of the second user from main storage system The target Backup Data is obtained, and is sent to the terminal.
8. a kind of device of data backup characterized by comprising
First acquisition unit, the backup request and the first User Identity of the first user for obtaining terminal transmission are described The backup request of first user backs up the first user data for requesting;
First determination unit, it is described standby for determining backup scenario according to the identity and backup request of first user Part scheme includes: the one or more storage systems, backup quantity, main storage system, standby storage system and backup delay of backup Time;
Connection unit, for establishing connection according to the backup scenario and one or more of storage systems;
First backup units are used for first user data backup to one or more of storage systems.
9. a kind of server, which is characterized in that including processor, communication interface and memory, the processor, the communication are connect Mouth and the memory are connected with each other, wherein the communication interface with other network equipments for being communicated, the memory For storing computer program, the computer program includes program instruction, and the processor is configured for calling the journey Sequence instruction, executes such as a kind of described in any item methods of data backup of claim 1-7.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that the described in any item methods of 1-7.
CN201910359291.6A 2019-04-28 2019-04-28 A kind of method, apparatus and computer storage medium of data backup Pending CN110096388A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910359291.6A CN110096388A (en) 2019-04-28 2019-04-28 A kind of method, apparatus and computer storage medium of data backup
PCT/CN2019/102771 WO2020220536A1 (en) 2019-04-28 2019-08-27 Data backup method and device, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
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
CN110096388A true CN110096388A (en) 2019-08-06

Family

ID=67446423

Family Applications (1)

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

Country Status (2)

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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221817A (en) * 2019-12-25 2020-06-02 中国平安财产保险股份有限公司 Service information data storage method and device, computer equipment and storage medium
CN111459722A (en) * 2020-04-08 2020-07-28 江西博微新技术有限公司 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
WO2020220536A1 (en) * 2019-04-28 2020-11-05 平安科技(深圳)有限公司 Data backup method and device, and computer readable storage medium
CN111930566A (en) * 2020-07-28 2020-11-13 友谊时光科技股份有限公司 Data backup method and device, electronic equipment and storage medium
CN112839112A (en) * 2021-03-25 2021-05-25 中国工商银行股份有限公司 Hierarchical data storage system and method and backup management server
WO2021135326A1 (en) * 2019-12-30 2021-07-08 华为技术有限公司 Data backup method, apparatus and device, and medium
CN113486985A (en) * 2021-08-02 2021-10-08 汤恩智能科技(上海)有限公司 User identification method, management method, medium, and electronic device for electric device

Citations (7)

* 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
CN101436151A (en) * 2008-12-01 2009-05-20 成都索贝数码科技股份有限公司 Data real time backup method and system based on file system
US20150081958A1 (en) * 2013-09-18 2015-03-19 Huawei Technologies Co., Ltd. Method for backing up data in a case of power failure of storage system, and storage system controller
US20160124814A1 (en) * 2014-10-30 2016-05-05 Netapp. Inc. System and method for implementing a block-based backup restart
US9430330B1 (en) * 2010-12-29 2016-08-30 Netapp, Inc. System and method for managing environment metadata during data backups to a storage system
CN106502837A (en) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 A kind of method of data backup, apparatus and system
CN109117305A (en) * 2018-07-24 2019-01-01 郑州市景安网络科技股份有限公司 A kind of data back up method, device, equipment and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088361B (en) * 2009-12-02 2015-04-15 华为数字技术(成都)有限公司 Data backup equipment, method and system
CN102523290B (en) * 2011-12-19 2015-04-08 华为数字技术(成都)有限公司 Data processing method, device and system
CN110096388A (en) * 2019-04-28 2019-08-06 平安科技(深圳)有限公司 A kind of method, apparatus and computer storage medium of data backup

Patent Citations (7)

* 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
CN101436151A (en) * 2008-12-01 2009-05-20 成都索贝数码科技股份有限公司 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
US20150081958A1 (en) * 2013-09-18 2015-03-19 Huawei Technologies Co., Ltd. Method for backing up data in a case of power failure of storage system, and storage system controller
US20160124814A1 (en) * 2014-10-30 2016-05-05 Netapp. Inc. System and method for implementing a block-based backup restart
CN106502837A (en) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 A kind of method of data backup, apparatus and system
CN109117305A (en) * 2018-07-24 2019-01-01 郑州市景安网络科技股份有限公司 A kind of data back up method, device, equipment and computer readable storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020220536A1 (en) * 2019-04-28 2020-11-05 平安科技(深圳)有限公司 Data backup method and device, and computer readable storage medium
CN111221817A (en) * 2019-12-25 2020-06-02 中国平安财产保险股份有限公司 Service information data storage method and device, computer equipment and storage medium
CN111221817B (en) * 2019-12-25 2023-08-22 中国平安财产保险股份有限公司 Service information data storage method, device, computer equipment and storage medium
WO2021135326A1 (en) * 2019-12-30 2021-07-08 华为技术有限公司 Data backup method, apparatus and device, and medium
CN111459722A (en) * 2020-04-08 2020-07-28 江西博微新技术有限公司 Data processing method, system, readable storage medium and computer equipment
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
CN112839112A (en) * 2021-03-25 2021-05-25 中国工商银行股份有限公司 Hierarchical data storage system and method and backup management server
CN112839112B (en) * 2021-03-25 2023-02-17 中国工商银行股份有限公司 Hierarchical data storage system and method and backup management server
CN113486985A (en) * 2021-08-02 2021-10-08 汤恩智能科技(上海)有限公司 User identification method, management method, medium, and electronic device for electric device

Also Published As

Publication number Publication date
WO2020220536A1 (en) 2020-11-05

Similar Documents

Publication Publication Date Title
CN110096388A (en) A kind of method, apparatus and computer storage medium of data backup
US11561835B2 (en) Unified container orchestration controller
US10789109B2 (en) Information processing method and device and computer storage medium
WO2021088641A1 (en) Data transmission method, data processing method, data reception method and device, and storage medium
CN111800462B (en) Micro service instance processing method, micro service instance processing device, computer equipment and storage medium
CN105468302B (en) A kind of method, apparatus and system of processing data
CN110837417A (en) Recommendation method and device for cloud system resource set and computing device cluster
CN108628685A (en) Distribute the system, apparatus and method of shared resource in NVMe in structure with local BMC
CN107707622A (en) A kind of method, apparatus and desktop cloud controller for accessing desktop cloud virtual machine
CN110245784A (en) A kind of method, apparatus and computer storage medium that meeting room is recommended
CN109495540B (en) Data processing method and device, terminal equipment and storage medium
CN103533087A (en) Cloud service platform middleware and cloud uploading method
CN109873910A (en) Processing method, device and the storage medium of session request
CN111858007A (en) Task scheduling method and device based on message middleware
CN110610376A (en) Behavior data response method and device, computer equipment and storage medium
CN109873714A (en) Cloud computing node configures update method and terminal device
CN110083468A (en) A kind of data transmission method, electronic device and storage medium
CN103561089B (en) Virtual machine desktop log-in, Apparatus and system
CN108540334A (en) A kind of information monitoring method and device
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
CN109710560A (en) A kind of method and apparatus that CPU interacts confirmation with FPGA
CN110286981A (en) The display methods and display system of the use state of virtual cloud desktop server
CN109034759A (en) A kind of data transfering method and relevant device
US8024406B1 (en) System and method for dispensing e-Care
CN111858035A (en) FPGA equipment allocation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination