CN110515769A - A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing - Google Patents

A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110515769A
CN110515769A CN201910754738.XA CN201910754738A CN110515769A CN 110515769 A CN110515769 A CN 110515769A CN 201910754738 A CN201910754738 A CN 201910754738A CN 110515769 A CN110515769 A CN 110515769A
Authority
CN
China
Prior art keywords
snapshot
data
source book
copy
area
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
CN201910754738.XA
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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910754738.XA priority Critical patent/CN110515769A/en
Publication of CN110515769A publication Critical patent/CN110515769A/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/1448Management of the data involved in backup or backup restore

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)
  • Retry When Errors Occur (AREA)

Abstract

This application discloses a kind of backup processing methods, comprising: receives write request operation;It corresponding with write request operation will write data write-in source book;When receiving the instruction of default snapshot, the target data in source book is copied to snapshot area, and the record copies time.It can be seen that, the application passes through when receiving write request operation, data write-in source book will only be write, when receiving the instruction of default snapshot, the target data in source book is copied to snapshot area, has changed the time of the data write-in in snapshot area, as long as avoiding in the related technology there are the data of writing updated to store to source book, the data of writing of update are stored into the problem low to write performance caused by snapshot area, while the realization snapshot technology of convenient and efficient simultaneously, improve the overall performance of system.The application additionally provides a kind of back-up processing device, a kind of electronic equipment and computer readable storage medium simultaneously, all has above-mentioned beneficial effect.

Description

A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing
Technical field
This application involves redundancy technique field, in particular to a kind of backup processing method, back-up processing device, electronic equipment And computer readable storage medium.
Background technique
With enterprise development, data volume can be increasing, and wherein data safety is particularly important.And solve data safety One of most efficient method is snapshot technology.Conventional snapshot technology has full copy snapshot, copy-on-write snapshot, And in two kinds of conventional snapshot technologies, although copy snapshot snapshot generates and restores all convenient entirely, data isolation is fine, It is when writing data while to write two parts, write performance is influenced bigger.Copy-on-write snapshot creation is very fast, once original volume number It is updated for the first time according to block generation, then original volume data block is first read and be written snapped volume, then used new data, original volume can be reduced Write performance.
Therefore, how to provide a kind of scheme of solution above-mentioned technical problem is that those skilled in the art need to solve at present Problem.
Summary of the invention
The purpose of the application is to provide a kind of backup processing method, back-up processing device, electronic equipment and computer-readable Storage medium can be improved write performance, realize the high efficiency of snapshot processing.Its concrete scheme is as follows:
This application discloses a kind of backup processing methods, comprising:
Receive write request operation;
It corresponding with write request operation will write data write-in source book;
When receiving default snapshot instruction, target data in the source book is copied to snapshot area, and remember Record copy time.
Optionally, described when receiving default snapshot instruction, copy target data in the source book extremely Snapshot area, comprising:
When receiving default snapshot instruction, the operation result of current system is detected;
According to the operation result, target data in the source book is copied to the snapshot area.
Optionally, the target data in the copy source book is to the snapshot area, comprising:
The first object data in the source book are copied to the snapshot area, the first object data are differential datas;
Or,
Judge the snapshot area with the presence or absence of snapshot data;
The snapshot data if it exists then deletes the snapshot data, obtains the corresponding preceding copy time of snapshot data, copies The second target data in source book described in shellfish records the preceding copy time to the snapshot area, wherein second target Data are full dose data.
Optionally, described according to the operation result, the target data in the source book is copied to the snapshot area, is wrapped It includes:
When the operation result is that I/O utilization reaches default utilization rate, copied in the source book after the preset time that is delayed Target data to the snapshot area.
Optionally, described according to the operation result, the target data in the source book is copied to the snapshot area, is wrapped It includes:
When it is more than that CPU presets utilization rate that the operation result, which is CPU usage, the source is copied after the preset time that is delayed Target data in volume is to the snapshot area.
Optionally, described according to the operation result, the target data in the source book is copied to the snapshot area, is wrapped It includes:
When it is more than that memory presets utilization rate that the operation result, which is memory usage, residual quantity copies the mesh in the source book Data are marked to the snapshot area;
When the operation result is that memory usage presets utilization rate less than memory, snapshot data is judged whether there is, The snapshot data if it exists, then delete the snapshot data, and full dose copies the target data in the source book to the snapshot Area.
Optionally, target data in the source book is copied to snapshot area, and after the record copies time, further includes:
Read snapshot rollback request, wherein the snapshot rollback request includes the target copy time of rollback;
It is rolled back to the target copy time, to restore the data in the target copy time corresponding snapshot area.
The application discloses a kind of back-up processing device, comprising:
Receiving module, for receiving write request operation;
Writing module, for data write-in source book corresponding with write request operation will to be write;
Module is copied, for copying the target data in the source book when receiving default snapshot instruction To snapshot area, and the record copies time.
Optionally, the copy module, comprising:
Detection unit, for detecting the operation result of current system when receiving default snapshot instruction;
Copy cell, for according to the operation result, copying the target data in the source book to the snapshot area.
Optionally, the copy cell, comprising:
First copy subelement, for copying the first object data in the source book to the snapshot area, described first Target data is differential data;
Judgment sub-unit, for judging the snapshot area with the presence or absence of snapshot data;
Second subelement then deletes the snapshot data for the snapshot data if it exists, and it is corresponding to obtain snapshot data Preceding copy time, copy the second target data in the source book to the snapshot area, and record the preceding copy time, In, second target data is full dose data.
Optionally, the copy module, comprising:
Copy cell, for when the operation result is that I/O utilization reaches default utilization rate, after the preset time that is delayed Target data in the source book is copied to the snapshot area.
Optionally, the copy module, comprising:
Copy cell, when being preset for being delayed when it is more than that CPU presets utilization rate that the operation result, which is CPU usage, Between after target data in the copy source book to the snapshot area.
Optionally, the copy module, comprising:
First copy cell, for copying when it is more than that memory presets utilization rate that the operation result, which is memory usage, Differential data in the source book is to the snapshot area;
Second copy cell, for judging when the operation result is that memory usage presets utilization rate less than memory With the presence or absence of snapshot data, the snapshot data, then delete the snapshot data if it exists, copies the full dose number in the source book According to the extremely snapshot area.
Optionally, further includes:
Read module is requested, for reading snapshot rollback request, wherein the snapshot rollback request includes the target of rollback Copy time;
Roll-back module, for being rolled back to the target copy time, to restore corresponding to the target copy time The data in snapshot area.
The application discloses a kind of electronic equipment, comprising:
Memory, for storing computer program;
Processor is realized when for executing the computer program such as the step of above-mentioned backup processing method.
The application discloses a kind of computer readable storage medium, is stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor such as the step of above-mentioned backup processing method.
This application provides a kind of backup processing methods, comprising: receives write request operation;It will be corresponding with write request operation Write data write-in source book;When receiving the instruction of default snapshot, the target data in source book is copied to snapshot area, and remember Record copy time.
As it can be seen that the application will be by when receiving write request operation, will only write data write-in source book, it is default fast when receiving When according to backup instruction, the target data in source book is copied to snapshot area, the time of the data write-in in snapshot area is had changed, avoids As long as in the related technology there are the data of writing updated to store to source book, while the data of writing of update being stored to caused by snapshot area The low problem of write performance, while the realization snapshot technology of convenient and efficient, improve the overall performance of system.The application is simultaneously A kind of back-up processing device, a kind of electronic equipment and computer readable storage medium are additionally provided, above-mentioned beneficial effect is all had, Details are not described herein.
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 The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of backup processing method provided by the embodiment of the present application;
Fig. 2 is the flow chart of another kind backup processing method provided by the embodiment of the present application;
Fig. 3-4 is the flow chart of another kind backup processing method provided by the embodiment of the present application;
Fig. 5 is the flow chart of another kind backup processing method provided by the embodiment of the present application;
Fig. 6 is a kind of rollback schematic diagram provided by the embodiments of the present application;
Fig. 7 is a kind of flow diagram of specific backup processing method provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of back-up processing device provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Conventional snapshot technology has copies snapshot, copy-on-write snapshot entirely, and two kinds of conventional snapshot technologies In, although copy snapshot snapshot generates and restores all convenient entirely, data isolation is fine, when writing data while writing two parts, right Write performance influences bigger.Copy-on-write snapshot creation is very fast, once the generation of original volume data block updates for the first time, then first will Original volume data block reads and is written snapped volume, then uses new data, can reduce the write performance of original volume.It is asked based on above-mentioned technology Topic, the present embodiment provides a kind of backup processing methods, by when receiving write request operation, will only write data write-in source book, When receiving the instruction of default snapshot, the target data in source book is copied to snapshot area, as long as avoiding in the related technology Data of writing with update are stored to source book, while the data of writing of update are stored to write performance caused by snapshot area is low and asked Topic, while realizing the high efficiency of snapshot processing is specific referring to FIG. 1, Fig. 1 is at a kind of backup provided by the embodiment of the present application The flow chart of reason method, specifically includes:
S101, write request operation is received.
The purpose of this step is to receive write request instruction, to be operated according to write request instruction.The present embodiment is not Received mode is defined, user can be configured according to actual needs, as long as can satisfy the purpose of the present embodiment i.e. It can.The present embodiment does not instruct corresponding size of data of writing to be defined write request, and user can be arranged according to actual needs.
S102, data write-in source book will corresponding with write request operation be write.
After receiving write request operation, client corresponding with write request will write data write-in source book.Write the size of data The present embodiment is no longer defined, and the present embodiment is not defined the position of write-in source book, can be according to the class for writing data The target position that type will be write data classification and be stored in source book, can be will write data and be stored according to the book time of writing for writing data Target position in source book, user can customize setting, as long as meeting the purpose of the present embodiment.The present embodiment is not asked to writing It asks the type of writing of the write-in source book of operation to be defined, can be random write and be also possible to sequential write.Wherein, client can be Mirror-image system, source book and snapshot area may each be disk array, Logical Volume Manager, storage network in any one.
S103, when receiving the instruction of default snapshot, copy the target data in source book to snapshot area, and record and copy The shellfish time.
When being not received by the instruction of default snapshot, write operation only is carried out to source book.When receiving, default snapshot is standby When part instruction, the target data in source book is copied to snapshot area, specifically, target data can be full dose data, full dose data It refers to all data in source book, is also possible to differential data, differential data refers to all data in current source book The residual quantity of data corresponding with a upper BACKUP TIME, it is notable that, can be with before the data in full dose copy source book The snapshot data stored before deleting in snapshot area.
Wherein, after writing data write-in source book each time, the backup of data is not carried out in snapshot area simultaneously, only works as reception When being instructed to default snapshot, the just target data in copy source book to snapshot area, and record copies time.Wherein, it presets Snapshot instruction, which can be, is receiving the snapshot instruction that user issues, and is also possible to after reaching preset time just The backup instruction of the target data in source book to snapshot area can be copied, user can customize setting.
Based on the above-mentioned technical proposal, the present embodiment by receive write request operation when, will only write data write-in source book, When receiving the instruction of default snapshot, the target data in source book is copied to snapshot area, the data for having changed snapshot area are write The time entered as long as avoiding in the related technology there are the data of writing updated to store to source book, while the data of writing of update being deposited The problem low to write performance caused by snapshot area, while the realization snapshot technology of convenient and efficient are stored up, the whole of system is improved Body performance.
Based on the above embodiment, the present embodiment provides a kind of backup processing methods, specific referring to FIG. 2, Fig. 2 is the application The flow chart of another kind backup processing method provided by embodiment, comprising:
S201, write request operation is received.
S202, data write-in source book will corresponding with write request operation be write.
S203, when receive default snapshot instruction when, detect the operation result of current system.
When receiving the instruction of default snapshot, the operation result of current system is detected, wherein operation result includes IO Utilization rate, CPU usage, memory usage, it is of course also possible to include other operation results, it is to be understood that work as operation When being as a result more than preset threshold, running efficiency of system is low, and load is larger.
S204, according to operation result, copy target data in source book to snapshot area, and the record copies time.
Optionally, according to operation result, target data in source book is copied to snapshot area, comprising: when operation result is IO The target data in source book is copied when utilization rate reaches default utilization rate, after the preset time that is delayed to snapshot area.
When operation result is I/O utilization not up to default utilization rate, target data in source book is copied to snapshot area. Wherein, the present embodiment is not defined default utilization rate, as long as being that by the purpose of the present embodiment, can be 60%, 70%, 80% or other numerical value.In the present embodiment, preset time can be the customized setting of user.When IO is utilized When rate reaches default utilization rate, showing that IO load is larger, Caton situation has occurred for system operation, therefore, after the preset time that is delayed, The operation for executing target data to snapshot area in copy source book again can reduce system operating load,
Optionally, according to operation result, target data in source book is copied to snapshot area, comprising: when operation result is CPU When utilization rate is more than that CPU presets utilization rate, the target data in source book is copied after the preset time that is delayed to snapshot area.
When operation result is that CPU usage is less than CPU and presets utilization rate, the target data in source book is copied to snapshot Area.
Wherein, the present embodiment is not preset utilization rate to CPU and is defined, and can be 75%, 80%, 85% or other numbers Value.Preset time can be the customized setting of user.It is understood that when CPU usage is more than that CPU presets utilization rate, Prove that the operation program of current system reaches preset quantity, at this point, executing the behaviour of the target data in copy source book to snapshot area Work obtains delay accordingly, and therefore, treatment effeciency has delay, and will cause the operating condition of other operation programs, therefore, delay After preset time, then copy function is executed, program operation burden can be reduced.
Optionally, according to operation result, target data in source book is copied to snapshot area, comprising: when operation result is interior When depositing utilization rate and presetting utilization rate more than memory, the differential data in source book is copied to snapshot area;When operation result is that memory makes When presetting utilization rate less than memory with rate, snapshot data is judged whether there is, if it exists snapshot data, then deletes snapshot data, The full dose data in source book are copied to snapshot area.
When memory usage, which reaches memory, presets utilization rate, residual quantity copies the target data in source book to snapshot area, keeps away Exempt to copy the low problem of bring write performance due to full dose.
When memory usage presets utilization rate less than memory, snapshot data is judged whether there is, if it exists snapshot data, then Snapshot data is deleted, full dose copies the target data in source book to snapshot area, the data in source book are stored to snapshot area, data It is more complete.
Based on the above-mentioned technical proposal, the present embodiment by carrying out the target data in copy source book according to operation result extremely again The operation in snapshot area improves the efficiency of snapshot data backup.
Based on the above embodiment, the present embodiment provides a kind of backup processing method, Fig. 3 and Fig. 4, Fig. 3-4 are specifically please referred to For the flow chart of another kind backup processing method provided by the embodiment of the present application, comprising:
S301, write request operation is received.
S302, data write-in source book will corresponding with write request operation be write.
S303, when receive default snapshot instruction when, detect the operation result of current system.
S304, according to operation result, copy the first object data in source book to snapshot area, first object data are residual quantity Data.
Copy the first object data in source book, wherein first object data refer to the difference number between snapshot twice According to.At this time only by the first object data in copy source book to snapshot area, the rate of snapshot can be improved.It is this simultaneously Implementation can clearly see all BACKUP TIME points, be able to carry out quick rolling back action, improve the easy-to-use of software Property.It is copied for residual quantity, for example, snapshot area has the first snapshot data when copy time a;In copy time b, source book In data be the first data, the first data have more first object data than the first snapshot data, at this point, copying the in source book One target data is to snapshot area, and record copies time b, at this point, data are the first data in source book, snapshot area data are first Snapshot data and first object data, and record has copy time a and copy time b.As it can be seen that the present embodiment only safeguards that portion is fast According to the Backup Data in area, the high efficiency of maintenance work is improved.
S305, according to operation result, judge snapshot area with the presence or absence of snapshot data.
S306, if it exists snapshot data then delete snapshot data, obtain the corresponding preceding copy time of snapshot data, copy The second target data in source book is to snapshot area, and copy time before recording, wherein the second target data is full dose data.
In achievable another embodiment, snapshot area is judged with the presence or absence of snapshot data, if snapshot area exists fastly According to data, then the snapshot data in snapshot area is deleted, using the second target data in full dose copy source book to snapshot area, and recorded Copy time.It is copied for full dose, for example, in copy time b, judges that snapshot area, can be with the presence or absence of snapshot data Understand, copy or system mistake, snapshot area can have snapshot data for the first time for processing, and when snapshot area, there are snapshot datas When, the snapshot data in snapshot area is deleted, at this point, the second target data in source book refers to that all data, full dose copy source For the second target data in volume to snapshot area, record copies time b reduces the memory invalid number in snapshot area in this way According to storage.Wherein, when there are snapshot data, snapshot data is deleted, using the mode of full dose copy source book, only with maintenance one Part snapshot volume, improves the high efficiency of maintenance work.
Further, snapshot data if it exists, it is determined that the residual quantity of the data in snapshot data and source book, at this point, deleting Snapshot data, full dose copies the target data in source book to snapshot area, and the record copies time.At this point, for copying each time The shellfish equal record copies time determines the residual quantity of data, therefore, the time can be selected to carry out rollback when system data destroys, real The recovery of existing data.
Based on the above-mentioned technical proposal, the present embodiment can save snapshot by way of two kinds of data copies to snapshot area Occupied system space is backed up, the actual demand of user is met.
Based on the above embodiment, the present embodiment provides a kind of backup processing methods, specific referring to FIG. 5, Fig. 5 is the application The flow chart of another kind backup processing method provided by embodiment, comprising:
S501, write request operation is received.
S502, data write-in source book will corresponding with write request operation be write.
S503, when receiving the instruction of default snapshot, copy the target data in source book to snapshot area, and record and copy The shellfish time.
S504, snapshot rollback request is read, wherein snapshot rollback request includes the target copy time of rollback.
The snapshot rollback request of user's triggering when data is corrupted when snapshot rollback is requested.Snapshot rollback request includes rollback The target copy time.It is found that every time in snapshot area storing data, the equal record copies time.
S505, it is rolled back to the target copy time, to restore the data in target copy time corresponding snapshot area.
Wherein, when the target data in copy source book is copied to snapshot area using residual quantity, then the target copy time can To select any one in all copy times.Referring to FIG. 6, Fig. 6 is that a kind of rollback provided by the embodiments of the present application is shown It is intended to.It include 10:00am, 11:00am, 1:00pm, 2:00pm, 4:00pm, 5:00pm in snapshot, when confirmation target copy When time is 4:00pm, it is rolled back to 4:00pm, completes the data for restoring target copy time corresponding snapshot area.
When the target data in copy source book is copied to snapshot area using full dose, then the target copy time is then mesh Mark copy time can choose any one in all copy times.The present embodiment can be clear by the record copies time See all copy time points, be able to carry out quick rolling back action, improve the ease for use of software.
Based on the above-mentioned technical proposal, the present embodiment improves the high efficiency of maintenance work only with a snapshot volume is safeguarded, When receiving snapshot rollback request, rollback is carried out according to the target copy time, a point snapshot level is not needed, to solve system The big problem of expense, and then snapshot is efficiently produced, the convenience that snapshot generates and restores is improved, product competition is improved Property.
Based on the above embodiment, the present embodiment provides a kind of backup processing methods, referring to FIG. 7, Fig. 7 is the application implementation A kind of flow diagram for specific backup processing method that example provides, comprising:
Receive write request operation.It corresponding with write request operation will write data write-in source book.Judge whether to reach backup Time receives snapshot instruction.If not up to BACKUP TIME or do not receive snapshot instruction, continue to execute step and connect Receive write request operation.If reach BACKUP TIME or receive snapshot instruction, judge current system operation result whether Meet preset condition.If the operation result of system meets preset condition, executes and judge snapshot area with the presence or absence of snapshot data.If The operation result of system does not meet preset condition, then is delayed after preset time, executes step and judges snapshot area with the presence or absence of snapshot Data.And if then there are snapshot datas in snapshot area, delete snapshot data, and obtain the corresponding copy time of snapshot data and hold Row step full dose copies the data in source book, record copies time and the corresponding copy time of snapshot data.If snapshot Qu Bucun In snapshot data, the data in full dose copy source book are thened follow the steps, when record copies time and the corresponding copy of snapshot data Between.
It is found that write operation is only into source book when not receiving the instruction for generating snapshot or not up to BACKUP TIME Data are write, snapshot data is not write.When receiving snapshot instruction or reaching BACKUP TIME point, snapshot Qu Bucun if it does not exist In snapshot data, that is, snapshot volume, then full dose copy is carried out from source book, and record the copy time of full dose copy, that is to say The generation time of snapshot, the time point for later snapshot rollback.There is snapshot volume if it exists, then will be deleted the snapshot Duplicate volume, and full dose copy original volume generates snapshot volume, and records the copy time of full backup.Because only writing a number According to, solve the problems, such as write performance, when needing snapshot, will be deleted old snapshot data, thus solve account for asking for capacity Topic, because each full dose copy all records have a copy time, when snapshot rollback, it is only necessary to which carrying out rollback according to copy time is It can.Using the mode of full dose copy original volume, only with a snapshot volume is safeguarded, the high efficiency of maintenance work is improved.Simultaneously This implementation can clearly see all BACKUP TIME points, be able to carry out quick rolling back action, improve the easy of software The property used.
A kind of back-up processing device provided by the embodiments of the present application is introduced below, back-up processing dress described below Reference can be corresponded to each other with above-described backup processing method by setting, and correlation module is all set in mirror-image system, with reference to Fig. 8, Fig. 8 is a kind of structural schematic diagram of back-up processing device provided by the embodiment of the present application, comprising:
Receiving module 810, for receiving write request operation;
Writing module 820, for data write-in source book corresponding with write request operation will to be write;
Module 830 is copied, for when receiving the instruction of default snapshot, copying the target data in source book to snapshot Area, and record copies time.
Optionally, module 830 is copied, comprising:
Detection unit, for detecting the operation result of current system when receiving the instruction of default snapshot;
First copy cell, for according to operation result, copying the target data in source book to snapshot area.
Optionally, the first copy cell, comprising:
First copy subelement, for copying the first object data in source book to snapshot area, first object data are poor Measure data;
Judgment sub-unit, for judging snapshot area with the presence or absence of snapshot data;
Second subelement then deletes snapshot data for snapshot data if it exists, obtains the corresponding preceding copy of snapshot data Time, copy the second target data in source book to snapshot area, and copy time before recording, wherein the second target data is complete Measure data.
Optionally, module 830 is copied, comprising:
Second copy cell, for when operation result is that I/O utilization reaches default utilization rate, after the preset time that is delayed The target data in source book is copied to snapshot area.
Optionally, module 830 is copied, comprising:
Third copy cell, when being preset for being delayed when it is more than that CPU presets utilization rate that operation result, which is CPU usage, Between after target data in copy source book to snapshot area.
Optionally, module 830 is copied, comprising:
4th copy cell, for copying source book when it is more than that memory presets utilization rate that operation result, which is memory usage, In differential data to snapshot area;
5th copy cell, for judging whether when operation result is that memory usage presets utilization rate less than memory There are snapshot datas, and snapshot data, then delete snapshot data if it exists, the full dose data in copy source book to snapshot area.
Optionally, further includes:
Read module is requested, for reading snapshot rollback request, wherein snapshot rollback request includes the target copy of rollback Time;
Roll-back module, for being rolled back to the target copy time, to restore to target copy time corresponding snapshot area Data.
It is standby since the embodiment of back-up processing device part is corresponded to each other with the embodiment of backup processing method part The embodiment of part processing unit part refers to the description of the embodiment of backup processing method part, wouldn't repeat here.
A kind of electronic equipment provided by the embodiments of the present application is introduced below, electronic equipment described below and above The backup processing method of description can correspond to each other reference
A kind of electronic equipment, comprising:
Memory, for storing computer program;
Processor is realized when for executing computer program such as the step of above-mentioned backup processing method.
Since the embodiment of electronics portion is corresponded to each other with the embodiment of backup processing method part, electronics is set The embodiment of standby part refers to the description of the embodiment of backup processing method part, wouldn't repeat here.
A kind of computer readable storage medium provided by the embodiments of the present application is introduced below, calculating described below Machine readable storage medium storing program for executing can correspond to each other reference with above-described backup processing method.
A kind of computer readable storage medium is stored with computer program, computer journey on computer readable storage medium It realizes when sequence is executed by processor such as the step of above-mentioned backup processing method.
Since the embodiment of computer readable storage medium part is corresponded to each other with the embodiment of backup processing method part, Therefore the embodiment of computer readable storage medium part refers to the description of the embodiment of backup processing method part, here temporarily It does not repeat.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration .
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
It above can to a kind of backup processing method provided herein, back-up processing device, electronic equipment and computer Storage medium is read to be described in detail.Specific case used herein explains the principle and embodiment of the application It states, the description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for this skill For the those of ordinary skill in art field, under the premise of not departing from the application principle, several change can also be carried out to the application Into and modification, these improvement and modification also fall into the protection scope of the claim of this application.

Claims (10)

1. a kind of backup processing method characterized by comprising
Receive write request operation;
It corresponding with write request operation will write data write-in source book;
When receiving default snapshot instruction, target data in the source book is copied to snapshot area, and record and copy The shellfish time.
2. backup processing method according to claim 1, which is characterized in that described to receive the default snapshot When instruction, target data in the source book is copied to snapshot area, comprising:
When receiving default snapshot instruction, the operation result of current system is detected;
According to the operation result, target data in the source book is copied to the snapshot area.
3. backup processing method according to claim 2, which is characterized in that the target data in the copy source book To the snapshot area, comprising:
The first object data in the source book are copied to the snapshot area, the first object data are differential datas;
Or,
Judge the snapshot area with the presence or absence of snapshot data;
The snapshot data if it exists then deletes the snapshot data, obtains the corresponding preceding copy time of snapshot data, copies institute The second target data in source book is stated to the snapshot area, and records the preceding copy time, wherein second target data It is full dose data.
4. backup processing method according to claim 2, which is characterized in that it is described according to the operation result, copy institute Target data in source book is stated to the snapshot area, comprising:
When the operation result is that I/O utilization reaches default utilization rate, the mesh in the source book is copied after the preset time that is delayed Data are marked to the snapshot area.
5. backup processing method according to claim 2, which is characterized in that it is described according to the operation result, copy institute Target data in source book is stated to the snapshot area, comprising:
When it is more than that CPU presets utilization rate that the operation result, which is CPU usage, copied in the source book after the preset time that is delayed Target data to the snapshot area.
6. backup processing method according to claim 2, which is characterized in that it is described according to the operation result, copy institute Target data in source book is stated to the snapshot area, comprising:
When it is more than that memory presets utilization rate that the operation result, which is memory usage, differential data in the source book is copied extremely The snapshot area;
When the operation result is that memory usage presets utilization rate less than memory, snapshot data is judged whether there is, if depositing In the snapshot data, then the snapshot data is deleted, copies full dose data in the source book to the snapshot area.
7. backup processing method according to any one of claims 1 to 6, which is characterized in that copy the mesh in the source book Data are marked to snapshot area, and after the record copies time, further includes:
Read snapshot rollback request, wherein the snapshot rollback request includes the target copy time of rollback;
It is rolled back to the target copy time, to restore the data in the target copy time corresponding snapshot area.
8. a kind of back-up processing device characterized by comprising
Receiving module, for receiving write request operation;
Writing module, for data write-in source book corresponding with write request operation will to be write;
Module is copied, for when receiving default snapshot instruction, copying target data in the source book to fast According to area, and the record copies time.
9. a kind of electronic equipment characterized by comprising
Memory, for storing computer program;
Processor, realizing the backup processing method as described in any one of claim 1 to 7 when for executing the computer program Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the step of the backup processing method as described in any one of claim 1 to 7 when the computer program is executed by processor Suddenly.
CN201910754738.XA 2019-08-15 2019-08-15 A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing Pending CN110515769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910754738.XA CN110515769A (en) 2019-08-15 2019-08-15 A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910754738.XA CN110515769A (en) 2019-08-15 2019-08-15 A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110515769A true CN110515769A (en) 2019-11-29

Family

ID=68626243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910754738.XA Pending CN110515769A (en) 2019-08-15 2019-08-15 A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN110515769A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176572A (en) * 2019-12-27 2020-05-19 浪潮(北京)电子信息产业有限公司 Method, device, equipment and medium for protecting stored data
CN114816250A (en) * 2022-04-15 2022-07-29 北京志凌海纳科技有限公司 Continuous data protection method under distributed storage system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236956A1 (en) * 2002-06-20 2003-12-25 International Business Machines Corpoaration File system backup in a logical volume management data storage environment
CN101826040A (en) * 2009-03-03 2010-09-08 闪联信息技术工程中心有限公司 Method and system for automatically detecting and restoring memory equipment
CN107402848A (en) * 2017-07-31 2017-11-28 郑州云海信息技术有限公司 A kind of implementation method of snapshot data uniformity
CN109408280A (en) * 2017-08-17 2019-03-01 北京金山云网络技术有限公司 Data back up method, apparatus and system
CN109739690A (en) * 2018-12-29 2019-05-10 平安科技(深圳)有限公司 Backup method and Related product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236956A1 (en) * 2002-06-20 2003-12-25 International Business Machines Corpoaration File system backup in a logical volume management data storage environment
CN101826040A (en) * 2009-03-03 2010-09-08 闪联信息技术工程中心有限公司 Method and system for automatically detecting and restoring memory equipment
CN107402848A (en) * 2017-07-31 2017-11-28 郑州云海信息技术有限公司 A kind of implementation method of snapshot data uniformity
CN109408280A (en) * 2017-08-17 2019-03-01 北京金山云网络技术有限公司 Data back up method, apparatus and system
CN109739690A (en) * 2018-12-29 2019-05-10 平安科技(深圳)有限公司 Backup method and Related product

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176572A (en) * 2019-12-27 2020-05-19 浪潮(北京)电子信息产业有限公司 Method, device, equipment and medium for protecting stored data
CN111176572B (en) * 2019-12-27 2022-03-22 浪潮(北京)电子信息产业有限公司 Method, device, equipment and medium for protecting stored data
CN114816250A (en) * 2022-04-15 2022-07-29 北京志凌海纳科技有限公司 Continuous data protection method under distributed storage system
CN114816250B (en) * 2022-04-15 2022-10-25 北京志凌海纳科技有限公司 Continuous data protection method under distributed storage system

Similar Documents

Publication Publication Date Title
US8069191B2 (en) Method, an apparatus and a system for managing a snapshot storage pool
US7783848B2 (en) Method and apparatus for backup and recovery using storage based journaling
US7167880B2 (en) Method and apparatus for avoiding journal overflow on backup and recovery system using storage based journaling
US6618794B1 (en) System for generating a point-in-time copy of data in a data storage system
CN101566959B (en) Using volume snapshots to prevent file corruption in failed restore operations
JP5021929B2 (en) Computer system, storage system, management computer, and backup management method
US8103840B2 (en) Snapshot mechanism and method thereof
JP3386823B2 (en) File management method and device
US20050015416A1 (en) Method and apparatus for data recovery using storage based journaling
CN107562578B (en) Snapshot creating method, device, equipment and storage medium for stored data
JPH0715664B2 (en) How to recover data set
CN107643880A (en) The method and device of file data migration based on distributed file system
CN109710456B (en) Data recovery method and device
WO2023206968A1 (en) Data storage method and system, and computer readable storage medium
US6629203B1 (en) Alternating shadow directories in pairs of storage spaces for data storage
CN109491605A (en) A kind of date storage method based on COW, device and medium
CN110515769A (en) A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing
CN104424115B (en) Recover method, storage device and the electronic equipment of the preset state of electronic equipment
CN109325005A (en) A kind of data processing method and electronic equipment
JP7304215B2 (en) Storage system and history information management method
CN109213636A (en) A kind of storage snapshot creation method, device, equipment and storage medium
CN108038024B (en) Reliable static planning file system for NandFlash
JPH0981464A (en) Memory fault recovering method of computer system and recovering system
Kuts et al. Deleted Data Recovery on Solid-State Drives by Software Based Methods
JP2002055783A (en) Inter-disk copy processor and copy processing method and program allowing the same method to be performed by computer and computer readable recording medium with its program recorded

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191129