CN109284205A - Snap backup method, device, computer equipment and storage medium - Google Patents

Snap backup method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109284205A
CN109284205A CN201811119959.1A CN201811119959A CN109284205A CN 109284205 A CN109284205 A CN 109284205A CN 201811119959 A CN201811119959 A CN 201811119959A CN 109284205 A CN109284205 A CN 109284205A
Authority
CN
China
Prior art keywords
backup
snapshot
data
storage
disk
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.)
Granted
Application number
CN201811119959.1A
Other languages
Chinese (zh)
Other versions
CN109284205B (en
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 CN201811119959.1A priority Critical patent/CN109284205B/en
Publication of CN109284205A publication Critical patent/CN109284205A/en
Application granted granted Critical
Publication of CN109284205B publication Critical patent/CN109284205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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

This application involves data processing fields, the specially application of data backup, disclose a kind of snap backup method, device, computer equipment and storage medium, wherein method includes: to receive snapshot request, it is requested to generate backup tasks according to the snapshot, the snapshot request includes the corresponding Data Identification of data to be backed up;Preset configuration library, which is inquired, according to the Data Identification obtains source library disk list corresponding with the Data Identification;Storage snapshot is generated according to the source library disk list;By the storage snapshots into backup host, and generate archive index;The backup tasks are executed according to the archive index to complete the backup to the data to be backed up.The snap backup method is realized in the production invisible situation of host and ensuring that backup is gone on smoothly, and then improves backup efficiency, while not influencing production environment.

Description

Snap backup method, device, computer equipment and storage medium
Technical field
This application involves data processing field more particularly to a kind of snap backup method, device, computer equipment and storages Medium.
Background technique
Currently, data play a crucial role the development of enterprise, more and more with the development of big data Enterprise begins to focus on the backup of storage product data.For the safety and high efficiency for improving product data storage backup, and protection The data of enterprise, data snapshot technology (Snapshot) are one of quick backup technologies of wherein comparative maturity.Data snapshot skill Art is a kind of technology for retaining a certain time data image, and the image retained is referred to as snapshot.The real meaning of data snapshot It is: realizes the backup of file system with shortest time and minimum consumption, create " shadow " image of data, it can be as behaviour Make initial data to be equally read out it or be written.Therefore, it is shone using data snapshot technology to data beats, it can be standby in progress While part, downloading data or transfer data, guarantee that application program is unaffected and continues to run.However, at present on the market Commercialization backup product when doing the index and consistency desired result of snapshot to backup source library, can frequently result in depositing for host side The conflict of storage volume and disk link conflict, thus may cause backup failure, will cause produce host in production environment what is more Failure.Therefore, it is necessary to provide a kind of snap backup method to solve the above problems.
Summary of the invention
This application provides a kind of snap backup method, device, computer equipment and storage mediums, it is desirable to provide Yi Zhongti The efficiency of the snapshot of high data.
This application provides a kind of snap backup methods comprising:
Snapshot request is received, is requested to generate backup tasks, the snapshot request packet according to the snapshot Include the corresponding Data Identification of data to be backed up;
Preset configuration library, which is inquired, according to the Data Identification obtains source library disk list corresponding with the Data Identification;
Storage snapshot is generated according to the source library disk list;
By the storage snapshots into backup host, and generate archive index;
The backup tasks are executed according to the archive index to complete the backup to the data to be backed up.
This application provides a kind of snapshot devices comprising:
Request reception unit requests to generate backup tasks, institute according to the snapshot for receiving snapshot request Stating snapshot request includes the corresponding Data Identification of data to be backed up;
Acquiring unit is inquired, it is corresponding with the Data Identification for inquiring the acquisition of preset configuration library according to the Data Identification Source library disk list;
Snapshot generation unit, for generating storage snapshot according to the source library disk list;
Carry generation unit is used for by the storage snapshots into backup host, and generates archive index;
Backup units are executed, for executing the backup tasks according to the archive index to complete to the number to be backed up According to backup.
Present invention also provides a kind of computer equipments comprising memory, processor and is stored on the memory And the computer program that can be run on the processor, the processor realize provided by the present application when executing described program The step of snap backup method described in meaning one.
Present invention also provides a kind of computer storage mediums, wherein the computer storage medium is stored with computer journey Sequence, the computer program executes the processor when being executed by processor fast described in any embodiment provided by the present application The step of according to backup method.
The embodiment of the present application provides snap backup method, device, computer equipment and storage medium, by receiving snapshot Backup request simultaneously requests to generate backup tasks according to the snapshot;It is looked into according to the Data Identification in snapshot request Preset configuration library is ask to obtain source library disk list corresponding with the Data Identification;It is deposited according to source library disk list generation Store up snapshot;By the storage snapshots into backup host, and generate archive index;According to archive index execution Backup tasks are to complete the backup to the data to be backed up.The snap backup method is realized to the production invisible situation of host It descends and ensures that backs up goes on smoothly, and then improve backup efficiency, while not influencing production environment.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the corresponding scene diagram of a kind of snap backup method that one embodiment of the application provides;
Fig. 2 is a kind of schematic flow diagram of the method in setting preset configuration library that one embodiment of the application provides;
Fig. 3 is a kind of schematic flow diagram for snap backup method that one embodiment of the application provides;
Fig. 4 is the sub-step schematic flow diagram of the snap backup method in Fig. 3;
Fig. 5 is a kind of schematic flow diagram for snap backup method that the another embodiment of the application provides;
Fig. 6 is a kind of schematic block diagram for snapshot device that one embodiment of the application provides;
Fig. 7 is a kind of schematic block diagram for snapshot device that another embodiment of the application provides;
Fig. 8 is a kind of schematic block diagram for computer equipment that one embodiment of the application provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
The embodiment of the present application provides a kind of snap backup method, device, computer equipment and storage medium.Wherein this is fast It is applied in cloud service according to backup method, for quickly backing up the creation data progress of user in real time, to ensure user's Data safety, and then improve the experience of user.
In order to make it easy to understand, being first situated between to the application scenarios composition that the snap backup method of the embodiment of the present application is applicable in It continues.As shown in Figure 1, the application scenarios include Server server, backup host, preset configuration library, storage end, production host and Terminal.
Wherein, terminal can be smart phone, tablet computer, laptop, desktop computer, personal digital assistant and wear Wear the electronic equipments such as formula equipment;Server server can be independent server, be also possible to the clothes of multiple server compositions Business device cluster;Backup host can also be server;Storage end is storage equipment.Production host corresponds to production environment and generates to standby Part data, Server server and backup host form backup environment, for executing snap backup method provided in this embodiment The backup of Backup Data is treated in completion.In one embodiment, it is possible to understand that be that Server server and backup host can be same One server.
It please refers to shown in Fig. 2, Fig. 2 is a kind of signal of the method in setting preset configuration library that one embodiment of the application provides Flow chart.The preset configuration library can be the corresponding database of Server server, for storing the corresponding source library of production host Disk list.As shown in Fig. 2, the method comprising the steps of S101~S103.
S101, resource bid request is obtained, the resource bid request includes that the corresponding disk in user's request for data library needs Seek information.
Specifically, if user needs cloud service, such as safety cloud or Ali's cloud, user can be by terminal in cloud data Apply for that corresponding database applies data for storage on library, the user is thus required to fill in corresponding application demand, i.e. phase The disk demand information answered.And resource bid request is generated according to the application demand, and the resource bid is requested to send To Server server, wherein resource bid request includes the corresponding disk demand information in user's request for data library.Thus The resource bid request that the available terminal of Server server is sent.
It S102, is user distribution disk resource according to the disk demand information, and raw according to the disk resource At disk resource information.
Wherein, the disk resource information include Data Identification, source library disk list and the Data Identification with it is described The corresponding relationship of source library disk list.
Specifically, Server server is that the user distributes corresponding disk resource according to the disk demand information, And the disk resource distributed generates disk resource information.The disk resource information may include Data Identification and source library disk column The corresponding relationship of table and the Data Identification and the source library disk list.
Wherein, the Data Identification can be indicated with type of database and Instance Name, and Instance Name can be user's application Title;The source library disk list is the corresponding disk directory of data generated for storing user's application.
Wherein, resource bid request is initiated by corresponding terminal due to having multiple users, it is possible thereby to set in advance Data disk table is set, is stored in the Data Identification of multiple users is corresponding with source library disk list in the data disk table.Simultaneously It receives terminal and sends resource change request, include disk modification information in resource change request, and changed and believed according to the disk Breath updates the data disk table.Further, it is also possible to obtain the corresponding source library disk list of the Data Identification from generating in host; And the data disk table is verified according to the source library disk list got, after data disk table verification passes through The data disk table is saved to the preset configuration library.
S103, by the disk resource information preservation into the preset configuration library.
Specifically, the disk resource information preservation is obtained into the preset configuration library to be inquired according to Data Identification Take its corresponding source library disk list.For example, by Data Identification guarantor corresponding with source library disk list and its corresponding relationship There are the data disk tables, and the data disk table is stored in preset configuration library.
In the present embodiment, by obtaining resource bid request;According to the disk demand letter in resource bid request Breath is that the user distributes disk resource, and generates disk resource information according to the disk resource;And by the disk resource Information preservation completes the setting to preset configuration library into the preset configuration library.This method user apply cloud service when just The setting that can complete the preset configuration library which thereby enhances setting efficiency.
Referring to Fig. 3, Fig. 3 is a kind of schematic flow diagram for snap backup method that one embodiment of the application provides.This is fast It is applied in Server server according to backup method.As shown in figure 3, the snap backup method includes step S201~S205.
S201, snapshot request is received, is requested to generate backup tasks according to the snapshot, the snapshot is asked It asks including the corresponding Data Identification of data to be backed up.
Specifically, the snapshot request that Server server receiving terminal is sent, and requested according to the snapshot Generate backup tasks.User can send snapshot request, the snapshot if necessary to snapshot service by terminal Request includes backup parameter and the Data Identification with Backup Data, and the backup parameter includes: Backup Data retention time, backup Period and backup starting time etc., Backup Data includes creation data and daily record data etc..
Specifically, backup client can be set in the terminal, and it is corresponding standby that user opens client setting in the terminal Part strategy, the backup strategy include backup parameter, and generate snapshot request according to the backup strategy.Wherein, setting is corresponding Backup strategy, such as setting Backup Data retention time be 1 month, backup cycle be arranged Monday, Tuesday, Wednesday, Thursday and 23:00-00:00 is arranged in Friday, backup starting time.
S202, acquisition source corresponding with Data Identification library disk column in preset configuration library are inquired according to the Data Identification Table.
Wherein, the preset configuration library can be the corresponding database of Server server, wherein pre- in the preset configuration library First preserve the corresponding relationship of Data Identification Yu the list of source library disk.The described source library disk list is that user is corresponding for storing The storage resource applied in cloud database of data.The data that the Data Identification is used to that user to be marked to store, specifically use number It is indicated according to library classification and Instance Name, and corresponding with source library disk list.It is possible thereby to according to the Data Identification described Corresponding source library disk list is inquired in preset configuration database.The production ring of the source library disk list and user's application The disk list of production host in border is identical, is the data generated for storing user's application.It is possible thereby to avoid from life It produces and obtains library disk list in source in host.
S203, storage snapshot is generated according to the source library disk list.
Specifically, storage snapshot is created in storage end according to the source library disk list using data snapshot technology, it is described Snapshot is stored in order to realize snapshot.
In one embodiment, step S203 includes the steps that creation storage snapshot, as shown in figure 4, the step specifically includes The following contents: S203a, according to the source library disk list created in storage end storage snapshot required for storage disk; S203b, the mapping relations between production host corresponding production source library and the storage disk are established to complete to deposit described in creation Store up snapshot.
Specifically, magnetic is stored required for creating storage snapshot in the disk of storage end according to the source library disk list Disk, and establish the storage disk and produce the mapping relations in source library.The storage end is the storage equipment for creating snapshot; Production source library is to generate the corresponding database of host.
S204, by the storage snapshots into backup host, and generate archive index.
Specifically, by the storage snapmap to backup host so that the backup host is recognizing the storage Scanning loads the storage snapshot when snapshot.The data parameters of data to be backed up are determined according to the source library disk list simultaneously; Archive index is generated according to the data parameters of the data to be backed up.
Wherein, by the storage snapshots to backup host, the process of mapping, scanning and load is specifically included.By source Library disk list can determine the data corresponding data parameter to be backed up, and thus the archive index includes: backup content, file Name, modification time, file size and storage path etc..Thus so as to according to archive index progress snapshot.
S205, the backup tasks are executed according to the archive index to complete the backup to the data to be backed up.
Specifically, according to the archive index execute the backup tasks start to carry out the data to be backed up snapshot with Thus the data safety for ensuring user has evaded the storage disk of host side since above-mentioned snapshot is invisible for production host The conflict of volume group and disk link conflict, and then host exception or database caused by avoiding are abnormal, improve snapshot effect Rate.
In the present embodiment, the snap backup method is by receiving snapshot request and being requested according to the snapshot Generate backup tasks;According to the Data Identification inquiry preset configuration library in snapshot request to obtain and the data mark Know corresponding source library disk list;Storage snapshot is generated according to the source library disk list;By the storage snapshots to standby In part host, and generate archive index;The backup tasks are executed according to the archive index to complete to the number to be backed up According to backup.The snap backup method is realized to producing in the invisible situation of host and ensuring that backup is gone on smoothly, in turn Backup efficiency is improved, while not influencing production environment.
Referring to Fig. 5, Fig. 5 is a kind of schematic flow diagram for snap backup method that another embodiment of the application provides.It should Snap backup method is applied in Server server.As shown in figure 5, the snap backup method includes step S301~S308.
S301, snapshot request is received, is requested to generate backup tasks according to the snapshot, the snapshot is asked It asks including the corresponding Data Identification of data to be backed up.
Specifically, the snapshot request that server receiving terminal is sent, and it is standby according to snapshot request generation Part task is to execute the backup that the task completes to treat Backup Data.Wherein, the snapshot request includes number to be backed up According to corresponding Data Identification.
S302, acquisition source corresponding with Data Identification library disk column in preset configuration library are inquired according to the Data Identification Table.
Specifically, the Data Identification inquires preset configuration library, obtains and the data mark from the preset configuration library Know corresponding source library disk list.
S303, storage snapshot is generated according to the source library disk list.
Specifically, it is fast to generate storage according to data snapshot technology in storage end for Server server control backup host According to.
S304, the snapped volume source for obtaining production host.
Specifically, library disk list in source is obtained from production host, and according to the source library disk list of the production host Target snapshot is generated, and the target snapshot is mounted on production host, production host identification identifies and loads the target Snapshot, and be stored on temp directory to generate snapped volume source.Thus Server server can obtain life from production environment Produce the snapped volume source of host.
S305, the storage snapshot is verified according to the snapped volume source.
Specifically, judge whether the snapped volume source and storage snapshot are consistent, if the snapped volume source is consistent with storage snapshot, Then determine that the storage snapshot verification passes through, and executes step S306 after storage snapshot verification passes through.
S306, by the storage snapshots into backup host, and generate archive index.
Specifically, by the storage snapmap to backup host so that the backup host is recognizing the storage Scanning loads the storage snapshot when snapshot.The data parameters of data to be backed up are determined according to the source library disk list simultaneously; Archive index is generated according to the data parameters of the data to be backed up.
S307, the backup tasks are executed according to the archive index to complete the backup to the data to be backed up.
Specifically, according to the archive index execute the backup tasks start to carry out the data to be backed up snapshot with Thus the data safety for ensuring user has evaded the storage disk of host side since above-mentioned snapshot is invisible for production host The conflict of volume group and disk link conflict, and then host exception or database caused by avoiding are abnormal, improve snapshot effect Rate.
S308, duplicated record is generated according to the data to be backed up, and the duplicated record is sent to terminal so that institute It states terminal and shows the duplicated record.
Specifically, data backup column can be set in backup client in the terminal, and the duplicated record is recorded In data backup column, when the user clicks when the data backup column, the duplicated record is shown.Wherein include: in the duplicated record Time started, Backup end time, backup size, type of backup and Status of Backups etc. are backed up, to facilitate user to understand backup feelings Condition.
In the present embodiment, the snap backup method is by receiving snapshot request and please be sought survival according to the snapshot At backup tasks;According to the Data Identification inquiry preset configuration library in snapshot request to obtain and the Data Identification Corresponding source library disk list;Storage snapshot is generated according to the source library disk list;And according to the snapped volume in production host Source verifies the storage snapshot;After storage snapshot verification passes through, the storage snapshots are led to backup In machine, and generate archive index;The backup tasks are executed according to the archive index to complete to the data to be backed up Backup.The snap backup method can ensure that going on smoothly for backup, to improve backup efficiency, while not influence production environment.
Fig. 6 is referred to, Fig. 6 is a kind of schematic block diagram of snapshot device provided by the embodiments of the present application.Such as Fig. 6 institute Show, correspond to the above snap backup method, the application also provides a kind of snapshot device.The snapshot device includes being used for The unit of above-mentioned snap backup method is executed, which can be configured in server.
Specifically, as shown in fig. 6, snapshot device 400 include: request unit 401, distribution generation unit 402, Information holding unit 403, request reception unit 404, inquiry acquiring unit 405, snapshot generation unit 406, carry generation unit 407 and execute backup units 408.
Request unit 401, for obtaining resource bid request, the resource bid request includes user's request for data The corresponding disk demand information in library.
Generation unit 402 is distributed, for being user distribution disk resource according to the disk demand information, and according to The disk resource generates disk resource information, and the disk resource information includes Data Identification, source library disk list and institute State the corresponding relationship of Data Identification Yu the source library disk list.
Information holding unit 403 is used for the disk resource information preservation into the preset configuration library.
Request reception unit 404 requests to generate backup times according to the snapshot for receiving snapshot request Business, the snapshot request includes the corresponding Data Identification of data to be backed up.
Acquiring unit 405 is inquired, is obtained and the Data Identification for inquiring preset configuration library according to the Data Identification Corresponding source library disk list.
Snapshot generation unit 406, for generating storage snapshot according to the source library disk list.
Carry generation unit 407 is used for by the storage snapshots into backup host, and generates archive index.
Backup units 408 are executed, for executing the backup tasks according to the archive index to complete to described to standby The backup of part data.
Fig. 7 is referred to, Fig. 7 is a kind of schematic block diagram for snapshot device that another embodiment of the application provides.Such as Shown in Fig. 7, correspond to the above snap backup method, the application also provides a kind of snapshot device.The snapshot device packet The unit for executing above-mentioned snap backup method is included, which can be configured in server.
Specifically, as shown in fig. 7, snapshot device 500 include: request reception unit 501, inquiry acquiring unit 502, Snapshot generation unit 503, snapshot verification unit 505, carry generation unit 506, executes backup units at volume source acquiring unit 504 507 and generate transmission unit 508.
Request reception unit 501 requests to generate backup times according to the snapshot for receiving snapshot request Business, the snapshot request includes the corresponding Data Identification of data to be backed up.
Acquiring unit 502 is inquired, is obtained and the Data Identification for inquiring preset configuration library according to the Data Identification Corresponding source library disk list.
Snapshot generation unit 503, for generating storage snapshot according to the source library disk list.
Volume source acquiring unit 504, for obtaining the snapped volume source of production host.
Snapshot verification unit 505, for being verified according to the snapped volume source to the storage snapshot.
Carry generation unit 506 leads the storage snapshots to backup if passing through for storage snapshot verification In machine, and generate archive index.
Backup units 507 are executed, for executing the backup tasks according to the archive index to complete to described to standby The backup of part data.
Transmission unit 508 is generated, for generating duplicated record according to the data to be backed up, and the duplicated record is sent out It send to terminal so that the terminal shows the duplicated record.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description it is fast According to the specific work process of back-up device and unit, can refer to corresponding processes in the foregoing method embodiment, it is no longer superfluous herein It states.
Above-mentioned apparatus can be implemented as a kind of form of computer program, and computer program can be in meter as shown in Figure 8 It calculates and is run on machine equipment.
Referring to Fig. 8, Fig. 8 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The computer Equipment 700 can be server.
Referring to Fig. 8, which includes processor 720, memory and the net connected by system bus 710 Network interface 750, wherein memory may include non-volatile memory medium 730 and built-in storage 740.
The non-volatile memory medium 730 can storage program area 731 and computer program 732.The computer program 732 It is performed, processor 720 may make to execute any one snap backup method.
The processor 720 supports the operation of entire computer equipment 700 for providing calculating and control ability.
The built-in storage 740 provides environment for the operation of the computer program 732 in non-volatile memory medium 730, should When computer program 732 is executed by processor 720, processor 720 may make to execute any one snap backup method.
The network interface 750 such as sends the task dispatching of distribution for carrying out network communication.Those skilled in the art can manage It solves, structure shown in Fig. 8, only the block diagram of part-structure relevant to application scheme, is not constituted to the application side The restriction for the computer equipment 700 that case is applied thereon, specific computer equipment 700 may include more than as shown in the figure Or less component, perhaps combine certain components or with different component layouts.Wherein, the processor 720 is for transporting Row program code stored in memory, to realize following steps:
Snapshot request is received, is requested to generate backup tasks, the snapshot request packet according to the snapshot Include the corresponding Data Identification of data to be backed up;Preset configuration library is inquired according to the Data Identification to obtain and the Data Identification pair The source library disk list answered;Storage snapshot is generated according to the source library disk list;The storage snapshots are led to backup In machine, and generate archive index;The backup tasks are executed according to the archive index to complete to the data to be backed up Backup.
In one embodiment, the processor 720 connects described in program code realization stored in memory for running Before receiving snapshot request, following steps are also realized:
Resource bid request is obtained, the resource bid request includes the corresponding disk demand letter in user's request for data library Breath;It is that the user distributes disk resource, and generates disk resource according to the disk resource according to the disk demand information Information, the disk resource information include Data Identification, source library disk list and the Data Identification and the source library disk The corresponding relationship of list;By the disk resource information preservation into the preset configuration library.
In one embodiment, the processor 720 realizes described incite somebody to action for running program code stored in memory The storage snapshots are into backup host, and before generating archive index, also realization following steps:
Obtain the snapped volume source of production host;The storage snapshot is verified according to the snapped volume source;If described Storage snapshot verification passes through, execute it is described by the storage snapshots into backup host, and the step of generating archive index.
In one embodiment, the processor 720 realizes described incite somebody to action for running program code stored in memory The storage snapshots are implemented as follows step to backup host:
By on the storage snapmap to backup host so that the backup host is when recognizing the storage snapshot Scanning loads the storage snapshot.
In one embodiment, the processor 720 realizes the life for running program code stored in memory At archive index, it is implemented as follows step:
The data parameters of data to be backed up are determined according to the source library disk list;According to the data of the data to be backed up Parameter generates archive index.
In one embodiment, the processor 720 is realized for running program code stored in memory according to institute It states after archive index executes the backup tasks to complete the backup to the data to be backed up, also realization following steps:
Duplicated record is generated according to the data to be backed up, and the duplicated record is sent to terminal so that the terminal Show the duplicated record.
It should be appreciated that in the embodiment of the present application, processor 720 can be central processing unit (Central Processing Unit, CPU), which can also 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) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or Person's processor is also possible to any conventional processor etc..
It will be understood by those skilled in the art that 700 structure of computer equipment shown in Fig. 8 is not constituted and is set to computer Standby 700 restriction may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, be Relevant hardware can be instructed to complete by computer program, computer program can be stored in a storage medium, this is deposited Storage media is computer readable storage medium.In the embodiment of the present invention, which can be stored in computer system It in storage medium, and is executed by least one processor in the computer system, includes the reality such as above-mentioned each method with realization Apply the process step of example.
The computer readable storage medium can be magnetic disk, CD, USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), the various media that can store program code such as magnetic or disk.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond scope of the present application.
In several embodiments provided herein, it should be understood that disclosed snapshot device and method, it can To realize by another way.For example, snapshot Installation practice described above is only schematical.For example, The division of each unit, only a kind of logical function partition, there may be another division manner in actual implementation.Such as it is multiple Unit or assembly can be combined or can be integrated into another system, or some features can be ignored or not executed.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in the embodiment of the present application device can be combined, divided and deleted according to actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set Standby (can be personal computer, terminal or the network equipment etc.) execute each embodiment the method for the application whole or Part steps.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should all cover within the scope of protection of this application.Therefore, the protection scope of the application should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of snap backup method characterized by comprising
Receive snapshot request, request to generate backup tasks according to the snapshot, snapshot request include to The corresponding Data Identification of Backup Data;
Preset configuration library, which is inquired, according to the Data Identification obtains source library disk list corresponding with the Data Identification;
Storage snapshot is generated according to the source library disk list;
By the storage snapshots into backup host, and generate archive index;
The backup tasks are executed according to the archive index to complete the backup to the data to be backed up.
2. snap backup method according to claim 1, which is characterized in that before the reception snapshot request, also Include:
Resource bid request is obtained, the resource bid request includes the corresponding disk demand information in user's request for data library;
It is that the user distributes disk resource, and generates disk resource according to the disk resource according to the disk demand information Information, the disk resource information include Data Identification, source library disk list and the Data Identification and the source library disk The corresponding relationship of list;
By the disk resource information preservation into the preset configuration library.
3. snap backup method according to claim 1, which is characterized in that described to be generated according to the source library disk list Store snapshot, comprising:
Storage disk required for creating storage snapshot in storage end according to the source library disk list, the storage end are to use In the storage equipment of creation snapshot;
The mapping relations between production host corresponding production source library and the storage disk are established to complete to create the storage Snapshot.
4. snap backup method according to claim 1, which is characterized in that described by the storage snapshots to backup In host, and before generating archive index, further includes:
Obtain the snapped volume source of production host;
The storage snapshot is verified according to the snapped volume source;
If storage snapshot verification passes through, execute it is described by the storage snapshots into backup host, and generate backup The step of index.
5. snap backup method according to claim 1, which is characterized in that described by the storage snapshots to backup Host, comprising:
By on the storage snapmap to backup host, so that backup host scanning when recognizing the storage snapshot Load the storage snapshot.
6. snap backup method according to claim 5, which is characterized in that the generation archive index, comprising:
The data parameters of data to be backed up are determined according to the source library disk list;According to the data parameters of the data to be backed up Generate archive index.
7. snap backup method according to claim 1, which is characterized in that described according to archive index execution After backup tasks are to complete the backup to the data to be backed up, further includes:
Duplicated record is generated according to the data to be backed up, and the duplicated record is sent to terminal so that the terminal is shown The duplicated record.
8. a kind of snapshot device characterized by comprising
Request reception unit requests to generate backup tasks according to the snapshot for receiving snapshot request, described fast It include the corresponding Data Identification of data to be backed up according to backup request;
Acquiring unit is inquired, obtains source corresponding with the Data Identification for inquiring preset configuration library according to the Data Identification Library disk list;
Snapshot generation unit, for generating storage snapshot according to the source library disk list;
Carry generation unit is used for by the storage snapshots into backup host, and generates archive index;
Backup units are executed, for executing the backup tasks according to the archive index to complete to the data to be backed up Backup.
9. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, the processor is realized when executing the computer program as in claim 1 to 7 The step of any one the method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program make the processor execute such as claim 1 to 7 any one the method when being executed by processor The step of.
CN201811119959.1A 2018-09-21 2018-09-21 Snapshot backup method and device, computer equipment and storage medium Active CN109284205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811119959.1A CN109284205B (en) 2018-09-21 2018-09-21 Snapshot backup method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811119959.1A CN109284205B (en) 2018-09-21 2018-09-21 Snapshot backup method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109284205A true CN109284205A (en) 2019-01-29
CN109284205B CN109284205B (en) 2023-04-07

Family

ID=65181473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811119959.1A Active CN109284205B (en) 2018-09-21 2018-09-21 Snapshot backup method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109284205B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831472A (en) * 2019-04-18 2020-10-27 阿里巴巴集团控股有限公司 Snapshot creating method and device and electronic equipment
CN111897676A (en) * 2020-07-15 2020-11-06 北京天顶星智能信息技术有限公司 File backup method and device based on database index
CN112527562A (en) * 2020-12-15 2021-03-19 北京华胜天成科技股份有限公司 Data backup method and device of distributed storage system and computer equipment
WO2021052231A1 (en) * 2019-09-19 2021-03-25 华为技术有限公司 Data detection method and device
CN113505027A (en) * 2021-09-10 2021-10-15 深圳市科力锐科技有限公司 Business system backup method, device, equipment and storage medium
CN113641694A (en) * 2021-07-16 2021-11-12 南京国电南自维美德自动化有限公司 Massive historical data backup method and recovery method for database
CN113656149A (en) * 2021-08-20 2021-11-16 深信服科技股份有限公司 Application processing method and device and related equipment
CN114328029A (en) * 2022-03-02 2022-04-12 苏州浪潮智能科技有限公司 Backup method and device of application resources, electronic equipment and storage medium
CN115935023A (en) * 2022-12-21 2023-04-07 北京远舢智能科技有限公司 Object storage method, device, equipment and medium for Elasticissearch index
WO2024051090A1 (en) * 2022-09-09 2024-03-14 上海爱数信息技术股份有限公司 Data index management method, storage device, and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402471A (en) * 2011-12-23 2012-04-04 创新科软件技术(深圳)有限公司 Method and system for backing up data in real time based on snapshot function of memory array
CN107092538A (en) * 2017-03-14 2017-08-25 平安科技(深圳)有限公司 Virtual-machine data backup method and system
WO2017211099A1 (en) * 2016-06-06 2017-12-14 华为技术有限公司 Data backup method and apparatus
CN107908501A (en) * 2017-10-26 2018-04-13 南京壹进制信息技术股份有限公司 A kind of VMware virtual machine synthesized backup methods based on index

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402471A (en) * 2011-12-23 2012-04-04 创新科软件技术(深圳)有限公司 Method and system for backing up data in real time based on snapshot function of memory array
WO2017211099A1 (en) * 2016-06-06 2017-12-14 华为技术有限公司 Data backup method and apparatus
CN107092538A (en) * 2017-03-14 2017-08-25 平安科技(深圳)有限公司 Virtual-machine data backup method and system
CN107908501A (en) * 2017-10-26 2018-04-13 南京壹进制信息技术股份有限公司 A kind of VMware virtual machine synthesized backup methods based on index

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王军等: "地震前兆Oracle数据库备份策略与应用", 《地震地磁观测与研究》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831472A (en) * 2019-04-18 2020-10-27 阿里巴巴集团控股有限公司 Snapshot creating method and device and electronic equipment
CN111831472B (en) * 2019-04-18 2023-12-22 阿里云计算有限公司 Snapshot creation method and device and electronic equipment
WO2021052231A1 (en) * 2019-09-19 2021-03-25 华为技术有限公司 Data detection method and device
CN111897676A (en) * 2020-07-15 2020-11-06 北京天顶星智能信息技术有限公司 File backup method and device based on database index
CN112527562A (en) * 2020-12-15 2021-03-19 北京华胜天成科技股份有限公司 Data backup method and device of distributed storage system and computer equipment
CN113641694A (en) * 2021-07-16 2021-11-12 南京国电南自维美德自动化有限公司 Massive historical data backup method and recovery method for database
CN113641694B (en) * 2021-07-16 2023-12-22 南京国电南自维美德自动化有限公司 Database massive historical data backup method and database massive historical data recovery method
CN113656149A (en) * 2021-08-20 2021-11-16 深信服科技股份有限公司 Application processing method and device and related equipment
CN113505027A (en) * 2021-09-10 2021-10-15 深圳市科力锐科技有限公司 Business system backup method, device, equipment and storage medium
CN114328029A (en) * 2022-03-02 2022-04-12 苏州浪潮智能科技有限公司 Backup method and device of application resources, electronic equipment and storage medium
WO2024051090A1 (en) * 2022-09-09 2024-03-14 上海爱数信息技术股份有限公司 Data index management method, storage device, and medium
CN115935023A (en) * 2022-12-21 2023-04-07 北京远舢智能科技有限公司 Object storage method, device, equipment and medium for Elasticissearch index
CN115935023B (en) * 2022-12-21 2024-02-02 北京远舢智能科技有限公司 Object storage method, device, equipment and medium of elastic search index

Also Published As

Publication number Publication date
CN109284205B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109284205A (en) Snap backup method, device, computer equipment and storage medium
CN109558215B (en) Backup method, recovery method and device of virtual machine and backup server cluster
US20180239536A1 (en) Optimal storage and workload placement, and high resiliency, in geo-distributed cluster systems
EP3304310B1 (en) System and method for automatic cloud-based full-data backup and restore on mobile devices
US9015164B2 (en) High availability for cloud servers
CN107577420B (en) File processing method and device and server
EP1840744A2 (en) Method and apparatus for delivering managed applications to remote locations
CN110413673B (en) Database data unified acquisition and distribution method and system
CN109376033A (en) Snap backup method, device, computer equipment and storage medium
CA2816380C (en) Techniques for capturing data sets
JP2016511862A (en) Storage network data allocation
US10671376B2 (en) Server program hot upgrading method and device
CN103095687A (en) Method and device of metadata processing
CN111796946A (en) Data processing method, device, equipment and storage medium
CN102419753B (en) Information processing equipment, information processing method and information processing system
CN110099084A (en) A kind of method, system and computer-readable medium guaranteeing storage service availability
US20200389546A1 (en) State replication, allocation and failover in stream processing
US10387262B1 (en) Federated restore of single instance databases and availability group database replicas
US10127270B1 (en) Transaction processing using a key-value store
CN111786930A (en) Virtual reality data sharing system, method, device, terminal and medium
WO2021135326A1 (en) Data backup method, apparatus and device, and medium
JP5670369B2 (en) Information processing apparatus, image file management method, and program
CN110233791B (en) Data deduplication method and device
US11334456B1 (en) Space efficient data protection
CN116841728A (en) Cluster resource scheduling method and device, electronic 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
GR01 Patent grant
GR01 Patent grant