CN109284205B - Snapshot backup method and device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN109284205B
CN109284205B CN201811119959.1A CN201811119959A CN109284205B CN 109284205 B CN109284205 B CN 109284205B CN 201811119959 A CN201811119959 A CN 201811119959A CN 109284205 B CN109284205 B CN 109284205B
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.)
Active
Application number
CN201811119959.1A
Other languages
Chinese (zh)
Other versions
CN109284205A (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/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

The application relates to the field of data processing, in particular to application of data backup, and discloses a snapshot backup method, a snapshot backup device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a snapshot backup request, and generating a backup task according to the snapshot backup request, wherein the snapshot backup request comprises a data identifier corresponding to data to be backed up; inquiring a preset configuration library according to the data identification to obtain a source library disk list corresponding to the data identification; generating a storage snapshot according to the source library disk list; mounting the storage snapshot into a backup host, and generating a backup index; and executing the backup task according to the backup index to complete the backup of the data to be backed up. The snapshot backup method realizes the invisible condition of the production host and ensures the smooth backup, thereby improving the backup efficiency and not influencing the production environment.

Description

Snapshot backup method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a snapshot backup method and apparatus, a computer device, and a storage medium.
Background
At present, with the development of big data, the data plays a crucial role in the development of enterprises, and more enterprises are concerned about the backup of stored product data. In order to improve the security and efficiency of data storage backup of products and protect data of enterprises, a data Snapshot technology (Snapshot) is one of the mature rapid backup technologies. Data snapshot technology is a technology of preserving a data image at a certain time, and the preserved image is called a snapshot. The true meaning of the data snapshot is: the backup of the file system is achieved in the shortest amount of time and with the lowest consumption, creating a "shadow" image of the data, which can be read or written as the original data is manipulated. Therefore, the data snapshot technology is adopted to photograph the data, so that the application program can be ensured to continue running without being influenced while backup, data downloading or data transferring are carried out. However, when the commercial backup products on the market perform index and consistency check for the backup source library for snapshot backup, storage volume conflicts and disk link conflicts at the host end are often caused, which may cause backup failure, and even more cause failure of the production host in the production environment. Therefore, it is necessary to provide a snapshot backup method to solve the above problems.
Disclosure of Invention
The application provides a snapshot backup method, a snapshot backup device, computer equipment and a storage medium, and aims to improve the snapshot backup efficiency of data.
The application provides a snapshot backup method, which comprises the following steps:
receiving a snapshot backup request, and generating a backup task according to the snapshot backup request, wherein the snapshot backup request comprises a data identifier corresponding to data to be backed up;
inquiring a preset configuration library according to the data identification to obtain a source library disk list corresponding to the data identification;
generating a storage snapshot according to the source library disk list;
mounting the storage snapshot into a backup host, and generating a backup index;
and executing the backup task according to the backup index to complete the backup of the data to be backed up.
The application provides a snapshot backup device, it includes:
the system comprises a request receiving unit, a backup task generating unit and a backup task processing unit, wherein the request receiving unit is used for receiving a snapshot backup request and generating a backup task according to the snapshot backup request, and the snapshot backup request comprises a data identifier corresponding to data to be backed up;
the query acquisition unit is used for querying a preset configuration library according to the data identifier to acquire a source library disk list corresponding to the data identifier;
the snapshot generating unit is used for generating a storage snapshot according to the source library disk list;
the mounting generation unit is used for mounting the storage snapshot into a backup host and generating a backup index;
and the backup execution unit is used for executing the backup task according to the backup index so as to complete the backup of the data to be backed up.
The present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the snapshot backup methods provided in the present application when executing the program.
The present application further provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the snapshot backup method according to any embodiment provided in the present application.
The embodiment of the application provides a snapshot backup method, a snapshot backup device, computer equipment and a storage medium, wherein a backup task is generated by receiving a snapshot backup request and according to the snapshot backup request; inquiring a preset configuration library according to the data identifier in the snapshot backup request to acquire a source library disk list corresponding to the data identifier; generating a storage snapshot according to the source library disk list; mounting the storage snapshot to a backup host, and generating a backup index; and executing the backup task according to the backup index to complete the backup of the data to be backed up. The snapshot backup method realizes the invisible condition of the production host and ensures the smooth backup, thereby improving the backup efficiency and not influencing the production environment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene diagram corresponding to a snapshot backup method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for setting a preset configuration library according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of a snapshot backup method according to an embodiment of the present application;
FIG. 4 is a schematic flow diagram of sub-steps of the snapshot backup method of FIG. 3;
FIG. 5 is a schematic flow chart diagram of a snapshot backup method according to another embodiment of the present application;
fig. 6 is a schematic block diagram of a snapshot backup apparatus according to an embodiment of the present application;
FIG. 7 is a schematic block diagram of a snapshot backup apparatus according to another embodiment of the present application;
fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The embodiment of the application provides a snapshot backup method and device, computer equipment and a storage medium. The snapshot backup method is applied to cloud services and used for backing up production data of a user in real time quickly so as to ensure data safety of the user and further improve user experience.
For convenience of understanding, application scenario components to which the snapshot backup method of the embodiment of the present application is applied are introduced first. As shown in fig. 1, the application scenario includes a Server, a backup host, a preset configuration library, a storage end, a production host, and a terminal.
The terminal can be an electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and a wearable device; the Server can be an independent Server or a Server cluster consisting of a plurality of servers; the backup host can also be a server; the storage end is a storage device. The production host corresponds to the production environment and generates the data to be backed up, and the Server and the backup host form a backup environment for executing the snapshot backup method provided by the embodiment to complete the backup of the data to be backed up. In one embodiment, it is understood that the Server Server and the backup host may be the same Server.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a method for setting a default configuration library according to an embodiment of the present disclosure. The preset configuration library may be a database corresponding to the Server and is used for storing a source library disk list corresponding to the production host. As shown in fig. 2, the method includes steps S101 to S103.
S101, a resource application request is obtained, wherein the resource application request comprises disk demand information corresponding to a user application database.
Specifically, if a user needs a cloud service, such as a secure cloud or an ari cloud, the user may apply for a corresponding database on a cloud database through a terminal to store application data, thereby requesting the user to fill in a corresponding application requirement, that is, corresponding disk requirement information. And generating a resource application request according to the application requirement, and sending the resource application request to a Server Server, wherein the resource application request comprises disk requirement information corresponding to a user application database. Therefore, the Server Server can obtain the resource application request sent by the terminal.
S102, distributing disk resources for the user according to the disk demand information, and generating disk resource information according to the disk resources.
The disk resource information comprises a data identifier, a source library disk list and a corresponding relation between the data identifier and the source library disk list.
Specifically, the Server allocates corresponding disk resources to the user according to the disk demand information, and the allocated disk resources generate disk resource information. The disk resource information may include a data identifier and a source library disk list, and a corresponding relationship between the data identifier and the source library disk list.
The data identification can be represented by a database type and an instance name, and the instance name can be the name of the user application; the source library disk list is a disk directory corresponding to data generated by user application.
Because a plurality of users initiate resource application requests through corresponding terminals, a data disk table can be preset, and data identifications of the users and a source library disk list are correspondingly stored in the data disk table. And simultaneously, the receiving terminal sends a resource change request, the resource change request comprises disk change information, and the data disk table is updated according to the disk change information. In addition, a source library disk list corresponding to the data identification can be obtained from a generating host; and verifying the data disk table according to the acquired source library disk list, and storing the data disk table to the preset configuration library after the data disk table is verified.
S103, storing the disk resource information into the preset configuration library.
Specifically, the disk resource information is stored in the preset configuration library so as to obtain a source library disk list corresponding to the disk resource information according to data identification query. For example, the data identifier is stored in the data disk table in correspondence with the source library disk list and the corresponding relationship thereof, and the data disk table is stored in a preset configuration library.
In this embodiment, a resource application request is obtained; distributing disk resources for the user according to the disk demand information in the resource application request, and generating disk resource information according to the disk resources; and storing the disk resource information into the preset configuration library to complete the setting of the preset configuration library. According to the method, the preset configuration library can be set when the user applies for the cloud service, so that the setting efficiency is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a snapshot backup method according to an embodiment of the present application. The snapshot backup method is applied to a Server Server. As shown in fig. 3, the snapshot backup method includes steps S201 to S205.
S201, receiving a snapshot backup request, and generating a backup task according to the snapshot backup request, wherein the snapshot backup request comprises a data identifier corresponding to data to be backed up.
Specifically, the Server receives a snapshot backup request sent by the terminal, and generates a backup task according to the snapshot backup request. If a user needs a snapshot backup service, the user can send a snapshot backup request through a terminal, the snapshot backup request comprises backup parameters and a data identifier with backup data, and the backup parameters comprise: the backup data includes retention time, backup period, backup start time and the like, and the backup data includes production data, log data and the like.
Specifically, a backup client may be set in the terminal, the user opens the client in the terminal to set a corresponding backup policy, the backup policy includes a backup parameter, and a snapshot backup request is generated according to the backup policy. Wherein, setting a corresponding backup strategy, for example, setting the retention time of backup data to be 1 month, setting Monday, tuesday, thursday and Friday in the backup period, and setting the backup start time to be 23.
S202, inquiring a preset configuration library according to the data identification to obtain a source library disk list corresponding to the data identification.
The preset configuration library may be a database corresponding to the Server, where a corresponding relationship between the data identifier and the source library disk list is pre-stored in the preset configuration library. The source library disk list is a storage resource used by a user for storing corresponding data and applied in a cloud database. The data identification is used for marking data stored by a user, specifically represented by a database category and an instance name, and corresponds to a source library disk list. Therefore, the source library disk list corresponding to the data identifier can be inquired in the preset configuration database according to the data identifier. The source library disk list is the same as the disk list of the production host in the production environment of the user application, and both the source library disk list and the disk list are used for storing data generated by the user application. Thereby avoiding obtaining the source library disk list from the production host.
And S203, generating a storage snapshot according to the source library disk list.
Specifically, a data snapshot technology is used for creating a storage snapshot at a storage end according to the source library disk list, and the storage snapshot is convenient for realizing snapshot backup.
In an embodiment, step S203 includes a step of creating a storage snapshot, as shown in fig. 4, and this step specifically includes the following steps: s203a, creating a storage disk required for storing a snapshot in a storage end according to the source library disk list; s203b, establishing a mapping relation between a production source library corresponding to the production host and the storage disk to complete the creation of the storage snapshot.
Specifically, a storage disk required for storing a snapshot is created in a disk of a storage end according to the source library disk list, and a mapping relation between the storage disk and a production source library is created. The storage terminal is a storage device used for creating a snapshot; the production source library is a database corresponding to the generating host.
And S204, mounting the storage snapshot into a backup host, and generating a backup index.
Specifically, the storage snapshot is mapped onto a backup host so that the backup host scans and loads the storage snapshot when the storage snapshot is identified. Determining data parameters of data to be backed up according to the source library disk list; and generating a backup index according to the data parameters of the data to be backed up.
The mounting of the storage snapshot to the backup host specifically includes mapping, scanning, and loading processes. The data parameter corresponding to the data to be backed up can be determined by the source library disk list, so that the backup index includes: backup content, file name, modification time, file size, storage path, and the like. Thereby facilitating a snapshot backup based on the backup index.
S205, executing the backup task according to the backup index to complete the backup of the data to be backed up.
Specifically, the backup task is executed according to the backup index to start snapshot backup on the data to be backed up so as to ensure data security of a user, and the snapshot is invisible to the production host, so that storage disk volume group conflict and disk link conflict at the host end are avoided, further host abnormity or database abnormity caused by the host abnormity or database abnormity is avoided, and snapshot backup efficiency is improved.
In this embodiment, the snapshot backup method generates a backup task by receiving a snapshot backup request and according to the snapshot backup request; querying a preset configuration library according to the data identification in the snapshot backup request to acquire a source library disk list corresponding to the data identification; generating a storage snapshot according to the source library disk list; mounting the storage snapshot into a backup host, and generating a backup index; and executing the backup task according to the backup index to complete the backup of the data to be backed up. The snapshot backup method realizes the invisible condition of the production host and ensures the smooth backup, thereby improving the backup efficiency and not influencing the production environment.
Referring to fig. 5, fig. 5 is a schematic flowchart of a snapshot backup method according to another embodiment of the present application. The snapshot backup method is applied to a Server Server. As shown in fig. 5, the snapshot backup method includes steps S301 to S308.
S301, receiving a snapshot backup request, and generating a backup task according to the snapshot backup request, wherein the snapshot backup request comprises a data identifier corresponding to data to be backed up.
Specifically, the server receives a snapshot backup request sent by the terminal, and generates a backup task according to the snapshot backup request so as to execute the task to complete backup of data to be backed up. The snapshot backup request comprises a data identifier corresponding to the data to be backed up.
S302, inquiring a preset configuration library according to the data identification to obtain a source library disk list corresponding to the data identification.
Specifically, the data identifier queries a preset configuration library, and a source library disk list corresponding to the data identifier is obtained from the preset configuration library.
And S303, generating a storage snapshot according to the source library disk list.
Specifically, the Server controls the backup host to generate a storage snapshot in the storage end according to a data snapshot technology.
S304, acquiring a snapshot volume source of the production host.
Specifically, a source library disk list is obtained from a production host, a target snapshot is generated according to the source library disk list of the production host, the target snapshot is mounted on the production host, and the production host identifies and loads the target snapshot and stores the target snapshot in a temporary directory to generate a snapshot volume source. The Server can thus obtain the snapshot volume source of the production host from the production environment.
S305, verifying the storage snapshot according to the snapshot volume source.
Specifically, it is determined whether the snapshot volume source is consistent with the storage snapshot, and if the snapshot volume source is consistent with the storage snapshot, it is determined that the storage snapshot is verified, and step S306 is executed after the storage snapshot is verified.
S306, mounting the storage snapshot to a backup host, and generating a backup index.
Specifically, the storage snapshot is mapped onto a backup host to cause the backup host to scan for loading the storage snapshot when the storage snapshot is identified. Determining data parameters of data to be backed up according to the source library disk list; and generating a backup index according to the data parameters of the data to be backed up.
S307, the backup task is executed according to the backup index so as to complete the backup of the data to be backed up.
Specifically, the backup task is executed according to the backup index to start snapshot backup on the data to be backed up so as to ensure the data security of a user, and because the snapshot is invisible to the production host, the storage disk volume group conflict and the disk link conflict at the host end are avoided, so that the host exception or the database exception caused by the host exception or the database exception is avoided, and the snapshot backup efficiency is improved.
And S308, generating a backup record according to the data to be backed up, and sending the backup record to a terminal so that the terminal displays the backup record.
Specifically, a data backup bar may be set in a backup client in the terminal, and the backup record may be recorded in the data backup bar, and when the user clicks the data backup bar, the backup record may be displayed. Wherein the backup record includes: the starting time of the backup, the ending time of the backup, the size of the backup, the type of the backup, the state of the backup and the like are convenient for users to know the backup situation.
In the embodiment, the snapshot backup method generates the backup task by receiving the snapshot backup request and according to the snapshot backup request; inquiring a preset configuration library according to the data identifier in the snapshot backup request to acquire a source library disk list corresponding to the data identifier; generating a storage snapshot according to the source library disk list; verifying the storage snapshot according to a snapshot volume source in the production host; after the storage snapshot passes the verification, mounting the storage snapshot into a backup host, and generating a backup index; and executing the backup task according to the backup index to complete the backup of the data to be backed up. The snapshot backup method can ensure the smooth backup, so as to improve the backup efficiency and not influence the production environment.
Referring to fig. 6, fig. 6 is a schematic block diagram of a snapshot backup apparatus according to an embodiment of the present application. As shown in fig. 6, the present application also provides a snapshot backup apparatus corresponding to the above snapshot backup method. The snapshot backup apparatus includes a unit for executing the above-described snapshot backup method, and the apparatus may be configured in a server.
Specifically, as shown in fig. 6, the snapshot backup apparatus 400 includes: a request acquisition unit 401, an allocation generation unit 402, an information saving unit 403, a request receiving unit 404, a query acquisition unit 405, a snapshot generation unit 406, a mount generation unit 407, and an execution backup unit 408.
The request obtaining unit 401 is configured to obtain a resource application request, where the resource application request includes disk requirement information corresponding to a user application database.
An allocation generating unit 402, configured to allocate a disk resource to the user according to the disk demand information, and generate disk resource information according to the disk resource, where the disk resource information includes a data identifier, a source library disk list, and a correspondence between the data identifier and the source library disk list.
An information saving unit 403, configured to save the disk resource information to the preset configuration library.
The request receiving unit 404 is configured to receive a snapshot backup request, and generate a backup task according to the snapshot backup request, where the snapshot backup request includes a data identifier corresponding to data to be backed up.
And an inquiry obtaining unit 405, configured to query a preset configuration library according to the data identifier to obtain a source library disk list corresponding to the data identifier.
And a snapshot generating unit 406, configured to generate a storage snapshot according to the source library disk list.
A mount generating unit 407, configured to mount the storage snapshot to a backup host, and generate a backup index.
The backup executing unit 408 is configured to execute the backup task according to the backup index to complete backup of the data to be backed up.
Referring to fig. 7, fig. 7 is a schematic block diagram of a snapshot backup apparatus according to another embodiment of the present application. As shown in fig. 7, the present application also provides a snapshot backup apparatus corresponding to the above snapshot backup method. The snapshot backup apparatus includes a unit for executing the above-described snapshot backup method, and the apparatus may be configured in a server.
Specifically, as shown in fig. 7, the snapshot backup apparatus 500 includes: a request receiving unit 501, a query obtaining unit 502, a snapshot generating unit 503, a volume source obtaining unit 504, a snapshot checking unit 505, a mount generating unit 506, an execution backup unit 507, and a generation transmitting unit 508.
The request receiving unit 501 is configured to receive a snapshot backup request, and generate a backup task according to the snapshot backup request, where the snapshot backup request includes a data identifier corresponding to data to be backed up.
The query obtaining unit 502 is configured to query a preset configuration library according to the data identifier to obtain a source library disk list corresponding to the data identifier.
A snapshot generating unit 503, configured to generate a storage snapshot according to the source library disk list.
A volume source obtaining unit 504, configured to obtain a snapshot volume source of the production host.
And a snapshot verifying unit 505, configured to verify the storage snapshot according to the snapshot volume source.
A mount generating unit 506, configured to mount the storage snapshot to a backup host and generate a backup index if the storage snapshot passes verification.
And the backup execution unit 507 is configured to execute the backup task according to the backup index to complete backup of the data to be backed up.
And the generating and sending unit 508 is configured to generate a backup record according to the data to be backed up, and send the backup record to a terminal so that the terminal displays the backup record.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the snapshot backup apparatus and the units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above-described apparatus may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 700 may be a server.
Referring to fig. 8, the computer device 700 includes a processor 720, a memory, which may include a non-volatile storage medium 730 and an internal memory 740, and a network interface 750, which are connected by a system bus 710.
The non-volatile storage medium 730 may store an operating system 731 and computer programs 732. The computer program 732, when executed, may cause the processor 720 to perform any of a number of snapshot backup methods.
The processor 720 is used to provide computing and control capabilities, supporting the operation of the overall computer device 700.
The internal memory 740 provides an environment for the execution of the computer program 732 in the non-volatile storage medium 730, and when the computer program 732 is executed by the processor 720, the processor 720 can be caused to perform any one of the snapshot backup methods.
The network interface 750 is used for network communication such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing device 700 to which the disclosed aspects apply, as a particular computing device 700 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components. Wherein the processor 720 is configured to execute the program code stored in the memory to perform the following steps:
receiving a snapshot backup request, and generating a backup task according to the snapshot backup request, wherein the snapshot backup request comprises a data identifier corresponding to data to be backed up; inquiring a preset configuration library according to the data identification to obtain a source library disk list corresponding to the data identification; generating a storage snapshot according to the source library disk list; mounting the storage snapshot into a backup host, and generating a backup index; and executing the backup task according to the backup index to complete the backup of the data to be backed up.
In one embodiment, the processor 720 is configured to execute the program code stored in the memory to perform the following steps before receiving the snapshot backup request:
acquiring a resource application request, wherein the resource application request comprises disk demand information corresponding to a user application database; distributing disk resources for the user according to the disk demand information, and generating disk resource information according to the disk resources, wherein the disk resource information comprises a data identifier, a source library disk list and a corresponding relation between the data identifier and the source library disk list; and storing the disk resource information into the preset configuration library.
In an embodiment, the processor 720 is configured to execute the program code stored in the memory to implement the following steps before the mounting the storage snapshot to the backup host and generating the backup index:
acquiring a snapshot volume source of a production host; verifying the stored snapshot according to the snapshot volume source; and if the storage snapshot passes the verification, executing the step of mounting the storage snapshot to a backup host and generating a backup index.
In an embodiment, the processor 720 is configured to run a program code stored in a memory to implement the mounting of the storage snapshot to the backup host, and specifically implement the following steps:
mapping the storage snapshot onto a backup host to cause the backup host to scan load the storage snapshot upon identifying the storage snapshot.
In an embodiment, the processor 720 is configured to execute the program code stored in the memory to implement the generating the backup index, and specifically implement the following steps:
determining data parameters of data to be backed up according to the source library disk list; and generating a backup index according to the data parameters of the data to be backed up.
In an embodiment, the processor 720 is configured to execute the program code stored in the memory to implement the following steps after the backup task is executed according to the backup index to complete the backup of the data to be backed up:
and generating a backup record according to the data to be backed up, and sending the backup record to a terminal so that the terminal displays the backup record.
It should be understood that, in the embodiment of the present application, the processor 720 may be a Central Processing Unit (CPU), and the processor 720 may also be other general-purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that the configuration of computer device 700 depicted in FIG. 8 is not intended to be limiting of computer device 700 and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. In the embodiment of the present invention, the computer program may be stored in a storage medium of a computer system and executed by at least one processor in the computer system to implement the steps of the process including the embodiments of the methods as described above.
The computer readable storage medium may be a magnetic disk, an optical disk, a usb disk, a removable hard disk, a Read-only memory (ROM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed snapshot backup apparatus and method may be implemented in other manners. For example, the snapshot backup apparatus embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated in another system or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A snapshot backup method, comprising:
receiving a snapshot backup request, and generating a backup task according to the snapshot backup request, wherein the snapshot backup request comprises a data identifier corresponding to data to be backed up;
inquiring a preset configuration library according to the data identification to obtain a source library disk list corresponding to the data identification;
generating a storage snapshot according to the source library disk list;
mounting the storage snapshot into a backup host, and generating a backup index;
executing the backup task according to the backup index to complete the backup of the data to be backed up;
the generating a storage snapshot according to the source library disk list includes:
creating a storage disk required for storing a snapshot in a storage end according to the source library disk list, wherein the storage end is storage equipment used for creating the snapshot;
establishing a mapping relation between a production source library corresponding to a production host and the storage disk to complete the creation of the storage snapshot;
the generating the backup index includes:
determining data parameters of data to be backed up according to the source library disk list; and generating a backup index according to the data parameters of the data to be backed up.
2. The snapshot backup method of claim 1, wherein prior to receiving the snapshot backup request, further comprising:
acquiring a resource application request, wherein the resource application request comprises disk demand information corresponding to a user application database;
distributing disk resources for the user according to the disk demand information, and generating disk resource information according to the disk resources, wherein the disk resource information comprises a data identifier, a source library disk list and a corresponding relation between the data identifier and the source library disk list;
and storing the disk resource information into the preset configuration library.
3. The snapshot backup method of claim 1, wherein before mounting the storage snapshot to a backup host and generating a backup index, further comprising:
acquiring a snapshot volume source of a production host;
verifying the stored snapshot according to the snapshot volume source;
and if the storage snapshot passes the verification, the step of mounting the storage snapshot to a backup host and generating a backup index is executed.
4. The snapshot backup method of claim 1, wherein said mounting the storage snapshot to a backup host comprises:
mapping the storage snapshot onto a backup host to cause the backup host to scan load the storage snapshot when the storage snapshot is identified.
5. The snapshot backup method of claim 1, wherein after the executing the backup task according to the backup index to complete the backup of the data to be backed up, further comprising:
and generating a backup record according to the data to be backed up, and sending the backup record to a terminal so that the terminal displays the backup record.
6. A snapshot backup apparatus, comprising:
the system comprises a request receiving unit, a backup task generating unit and a backup task processing unit, wherein the request receiving unit is used for receiving a snapshot backup request and generating a backup task according to the snapshot backup request, and the snapshot backup request comprises a data identifier corresponding to data to be backed up;
the query acquisition unit is used for querying a preset configuration library according to the data identifier to acquire a source library disk list corresponding to the data identifier;
the snapshot generating unit is used for generating a storage snapshot according to the source library disk list;
the mounting generation unit is used for mounting the storage snapshot into a backup host and generating a backup index;
the backup execution unit is used for executing the backup task according to the backup index so as to complete the backup of the data to be backed up;
a snapshot generating unit comprising:
creating a storage disk required for storing a snapshot in a storage end according to the source library disk list, wherein the storage end is storage equipment used for creating the snapshot;
establishing a mapping relation between a production source library corresponding to a production host and the storage disk to complete the creation of the storage snapshot;
the generating the backup index includes:
determining data parameters of data to be backed up according to the source library disk list; and generating a backup index according to the data parameters of the data to be backed up.
7. Computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 5.
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 CN109284205A (en) 2019-01-29
CN109284205B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831472B (en) * 2019-04-18 2023-12-22 阿里云计算有限公司 Snapshot creation method and device and electronic equipment
CN110674502A (en) * 2019-09-19 2020-01-10 华为技术有限公司 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
CN113641694B (en) * 2021-07-16 2023-12-22 南京国电南自维美德自动化有限公司 Database massive historical data backup method and database massive historical data recovery method
CN113656149B (en) * 2021-08-20 2024-07-09 深信服科技股份有限公司 Application processing method and device and related equipment
CN113505027B (en) * 2021-09-10 2022-03-01 深圳市科力锐科技有限公司 Business system backup method, device, equipment and storage medium
CN114328029B (en) * 2022-03-02 2022-06-03 苏州浪潮智能科技有限公司 Backup method and device of application resources, electronic equipment and storage medium
CN115509807A (en) * 2022-09-09 2022-12-23 上海爱数信息技术股份有限公司 Backup data index management method, storage device and medium
CN115935023B (en) * 2022-12-21 2024-02-02 北京远舢智能科技有限公司 Object storage method, device, equipment and medium of elastic search index

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数据库备份策略与应用;王军等;《地震地磁观测与研究》(第02期);全文 *

Also Published As

Publication number Publication date
CN109284205A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN109284205B (en) Snapshot backup method and device, computer equipment and storage medium
CN107729041B (en) Application program hot updating method, device, terminal and storage medium
CN107168726B (en) Method and device for dynamically configuring application program
RU2421785C2 (en) Automated control of device drivers
WO2019205371A1 (en) Server, message allocation method, and storage medium
CN109376033B (en) Snapshot backup method and device, computer equipment and storage medium
WO2019201039A1 (en) Method and system for updating application and application server
CN108287708B (en) Data processing method and device, server and computer readable storage medium
US20070113039A1 (en) System and method for the sub-allocation of shared memory
WO2021000410A1 (en) Real-time data processing method based on micro-service and related device therefor
CN113553218A (en) Method for cloning and backing up real machine based on cloud mobile phone, terminal device and storage medium
CN108243254B (en) Electronic device, method for releasing application upgrading version and storage medium
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN112416542A (en) Distributed task system, management method and device and computer equipment
CN109150927B (en) File issuing method and device for file storage system
CN110837391A (en) Application program hot updating method and device, storage medium and electronic equipment
CN113238851A (en) Script automatic execution method, system, equipment and medium based on cloud platform
CN116339927B (en) Equipment determining method, device, storage medium and electronic device
CN109308288B (en) Data processing method and device
CN115756549A (en) Method and device for downloading data of big data middlebox and storage medium
US10482397B2 (en) Managing identifiers
CN106936643B (en) Equipment linkage method and terminal equipment
CN115017538A (en) Data processing method and device, electronic equipment and storage medium
CN115733666A (en) Password management method and device, electronic equipment and readable storage medium
CN111190637B (en) Version file release management method, device and system

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