CN117033084B - Virtual machine backup method and device, electronic equipment and storage medium - Google Patents
Virtual machine backup method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN117033084B CN117033084B CN202311295139.9A CN202311295139A CN117033084B CN 117033084 B CN117033084 B CN 117033084B CN 202311295139 A CN202311295139 A CN 202311295139A CN 117033084 B CN117033084 B CN 117033084B
- Authority
- CN
- China
- Prior art keywords
- full
- target
- virtual machine
- backup
- incremental
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012544 monitoring process Methods 0.000 claims description 33
- 230000005856 abnormality Effects 0.000 claims description 12
- 230000008859 change Effects 0.000 claims description 11
- 230000009467 reduction Effects 0.000 claims description 6
- 238000012512 characterization method Methods 0.000 claims description 3
- 238000004590 computer program Methods 0.000 claims 1
- 230000008569 process Effects 0.000 description 17
- 230000006870 function Effects 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The method comprises the steps that after management configuration is carried out in a target management program, the target management program can automatically establish connection with a target virtual machine and automatically realize backup management of the target virtual machine, and the target virtual machine does not need to establish a snapshot and store the snapshot for backup, so that resources of the target virtual machine cannot be consumed, disk space of the virtual machine cannot be occupied, and performance stability of the target virtual machine is effectively guaranteed; in addition, backup is performed in a mode of one full-volume backup and multiple incremental backups, latest full-volume data is obtained after each incremental backup, then the latest full-volume data and the latest incremental data are stored, and even if the latest incremental data are damaged or lost, the target virtual machine can still be restored according to the latest full-volume data. In conclusion, the virtual machine backup method has higher reliability.
Description
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a virtual machine backup method, a device, an electronic device, and a storage medium.
Background
In the prior art, an incremental backup reduction of a virtual machine is mainly performed in a snapshot mode, specifically, a snapshot of a certain time node is firstly created for the virtual machine, then the snapshot is created for a plurality of times in a plurality of time nodes based on a timing strategy, and then data of the certain time node can be restored as required to obtain the virtual machine of the certain time node.
However, first, creating the snapshot is performed by the virtual machine itself, and the creating process needs to occupy resources of the virtual machine, such as CPU, memory, and disk I/O, which may affect the performance of the virtual machine; secondly, all data of the virtual machine are recorded in each created snapshot, the data volume is large, the created snapshot is stored in a disk of the virtual machine, the disk space of the virtual machine is occupied, the occupied space is increased continuously along with the time, and if the snapshot function is frequently used by the virtual machine, the disk space is possibly insufficient, and the normal operation of the virtual machine is affected; third, since the snapshot records all important data of the virtual machine, if the latest snapshot is damaged or lost, the virtual machine may not be started normally.
Therefore, the current virtual machine backup method has the technical problem of lower backup reliability, and needs improvement.
Disclosure of Invention
The embodiment of the application provides a virtual machine backup method, a device, electronic equipment and a storage medium, which are used for relieving the technical problem of low backup reliability in the current virtual machine backup method.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
the application provides a virtual machine backup method, which comprises the following steps:
receiving management configuration operation aiming at a target virtual machine through a target management program, establishing connection with the target virtual machine according to the management configuration operation, and determining full-scale backup conditions and incremental backup conditions of the target virtual machine;
monitoring whether the target virtual machine meets the full-capacity backup condition or not through the target management program;
if yes, carrying out full backup on the disk files and the configuration files of the target virtual machine through the target management program to obtain a 0 th full disk file and a 0 th full configuration file, and determining a 0 th backup time point;
continuously monitoring whether the target virtual machine meets the incremental backup condition through the target management program;
if yes, determining a time point when the ith is met as an ith backup time point, determining an ith incremental backup time period according to the ith-1 backup time point and the ith backup time point, and performing the ith incremental backup on the disk file and the configuration file of the target virtual machine in the ith incremental backup time period through the target management program at the ith backup time point to obtain an ith incremental disk file and an ith incremental configuration file, wherein i is a positive integer;
Combining the 0 th full-capacity disk file and the previous i-1 incremental disk files through the target management program to obtain an i th full-capacity disk file, and combining the 0 th full-capacity configuration file and the previous i-1 incremental configuration file to obtain an i th full-capacity configuration file;
and determining the ith full-capacity disk file and the ith full-capacity configuration file as latest full-capacity data, determining the ith incremental disk file and the ith incremental configuration file as latest incremental data, and storing the latest full-capacity data and the latest incremental data to a first target storage position outside the target virtual machine through the target management program.
Meanwhile, the embodiment of the application also provides a virtual machine backup device, which comprises:
the receiving module is used for receiving management configuration operation aiming at a target virtual machine through a target management program, establishing connection with the target virtual machine according to the management configuration operation, and determining full backup conditions and incremental backup conditions of the target virtual machine;
the first monitoring module is used for monitoring whether the target virtual machine meets the full-capacity backup condition or not through the target management program;
the first full-capacity backup module is used for carrying out full-capacity backup on the disk files and the configuration files of the target virtual machine through the target management program if yes, obtaining a 0 th full-capacity disk file and a 0 th full-capacity configuration file, and determining a 0 th backup time point;
The second monitoring module is used for continuously monitoring whether the target virtual machine meets the incremental backup condition or not through the target management program;
the incremental backup module is used for determining an ith backup time point as the time point when the ith is met if the target virtual machine is met, determining an ith incremental backup time period according to the ith-1 backup time point and the ith backup time point, and performing the ith incremental backup on the disk file and the configuration file of the target virtual machine in the ith incremental backup time period through the target management program at the ith backup time point to obtain an ith incremental disk file and an ith incremental configuration file, wherein i is a positive integer;
the merging module is used for merging the 0 th full-volume disk file and the previous i-1 incremental disk files through the target management program to obtain an i th full-volume disk file, and merging the 0 th full-volume configuration file and the previous i-1 incremental configuration file to obtain an i th full-volume configuration file;
the first storage module is used for determining the ith full-capacity disk file and the ith full-capacity configuration file as latest full-capacity data, determining the ith incremental disk file and the ith incremental configuration file as latest incremental data, and storing the latest full-capacity data and the latest incremental data to a first target storage position outside the target virtual machine through the target management program.
The application also provides an electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory, so as to execute the steps in the virtual machine backup method described in any one of the above.
Embodiments of the present application provide a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the virtual machine backup method described above.
The beneficial effects are that: the method comprises the steps that after a target management program of a third party is developed and managed and configured in the target management program, the target management program can automatically establish connection with a target virtual machine and automatically realize backup management of the target virtual machine, and the target virtual machine does not need to establish a snapshot and store the snapshot for backup, so that resources of the target virtual machine cannot be consumed, disk space of the virtual machine cannot be occupied, and performance stability of the target virtual machine is effectively guaranteed; in addition, the backup is performed in a mode of one full-volume backup and multiple incremental backups, after each incremental backup, all backup data before the current backup time point are combined to obtain unique latest full-volume data, then the latest full-volume data and the latest full-volume data are stored, and even if the latest full-volume data are damaged or lost, most of information in the virtual machine is contained in the latest full-volume data, the target virtual machine can still be restored according to the latest full-volume data. In conclusion, the virtual machine backup method has higher reliability.
Drawings
Technical solutions and other advantageous effects of the present application will be made apparent from the following detailed description of specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart of a virtual machine backup method according to an embodiment of the present application.
FIG. 2 is a schematic diagram of a policy configuration process for KVM management in an embodiment of the present application.
FIG. 3 is a schematic diagram of a policy application process for KVM management in an embodiment of the present application.
FIG. 4 is a schematic diagram of a full backup and an incremental backup process in an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a virtual machine backup device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic 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. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides a virtual machine backup method, a device, an electronic device and a computer readable storage medium, wherein the virtual machine backup device can be integrated in the electronic device, and the electronic device can be a server or a terminal.
Referring to fig. 1, fig. 1 is a flowchart of a virtual machine backup method according to an embodiment of the present application, where the method specifically includes:
s1: receiving management configuration operation aiming at a target virtual machine through a target management program, establishing connection with the target virtual machine according to the management configuration operation, and determining full backup conditions and incremental backup conditions of the target virtual machine.
The virtual machine backup method in the embodiment of the application is realized through the target management program of the server, the target management program is independent software of a third party, and after relevant configuration is carried out in the target management program, the program can be used for realizing backup and restoration management of the virtual machine.
Specifically, a manager firstly executes management configuration operation for a target virtual machine in a management configuration interface of a target management program, the target virtual machine can be any virtual machine which can be supported by the program, the management configuration operation refers to configuration and storage of management strategies of the target virtual machine, and after receiving the management configuration operation for the target virtual machine through the target management program, a server side can acquire the management strategies and automatically finish various management of the target virtual machine based on the management strategies.
As shown in fig. 2, the virtual machine backup method is suitable for KVM (Kernel-based Virtual Machine ) management, wherein the management comprises backup and restoration, each virtual machine is based on a Linux Kernel, a plurality of independent virtual machines can be simultaneously operated on the same physical server, each virtual machine has a disk file and a configuration file, wherein the disk file contains various information such as an operating system, an application program and data of the virtual machine, and the configuration file is in an XML format and contains various configuration information such as hardware configuration, network setting and starting sequence of the virtual machine. The configured management policies specifically comprise a policy 1, a policy 2 and a policy 3, wherein the policy 1 is a full backup policy, the policy manages the whole disk file and configuration file of the virtual machine, the policy 2 is an incremental backup policy, the policy manages the incremental disk file and the incremental configuration file, the policy 3 is a virtual machine restoration policy, and the policy manages restoration of the new virtual machine for all backed up data.
In this embodiment, connection between the target hypervisor and the target virtual machine is established according to the management configuration operation, that is, the target hypervisor has management authority on the target virtual machine, and then the full backup condition and the incremental backup condition of the target virtual machine are determined from the configured management policies 1 and 2. The full-volume backup condition refers to a condition required to be met when the virtual machine needs to perform full-volume backup, the incremental backup condition refers to a condition required to be met when the virtual machine needs to perform incremental backup, the full-volume backup refers to backup of all disk files and all configuration files of the virtual machine, and the incremental backup refers to backup of the disk files and the configuration files of the virtual machine in a certain time period. The embodiment performs full backup and incremental backup for the target virtual machine once.
S2: and monitoring whether the target virtual machine meets the full-scale backup condition or not through the target management program.
The full backup condition specifically includes that the virtual machine is in an initial starting state, and the target management program monitors whether the target virtual machine is in the initial starting state or not after establishing connection with the target virtual machine.
S3: if yes, performing full-quantity backup on the disk files and the configuration files of the target virtual machine through the target management program to obtain a 0 th full-quantity disk file and a 0 th full-quantity configuration file, and determining a 0 th backup time point.
When the target management program monitors that the target virtual machine is in an initial starting state, judging that the target virtual machine meets the full-capacity backup condition, at the moment, the target management program determines the current time point as a 0 th backup time point, and performs full-capacity backup on the disk files and the configuration files of the target virtual machine at the time point to obtain a 0 th full-capacity disk file and a 0 th full-capacity configuration file. As shown in fig. 3, this process proceeds based on policy 1.
Specifically, the target virtual machine comprises a disk file and a configuration file, the disk file contains various information such as an operating system, an application program, data and the like of the target virtual machine, and the configuration file is in an XML format and contains various configuration information such as hardware configuration, network setting, starting sequence and the like of the target virtual machine. When the full-volume backup condition is detected to be met, the target management program can call a qemu-img command line tool, the tool can be used for creating, converting and managing various disk image files, and the full-volume backup of the disk files and configuration files in the target virtual machine can be realized by calling the tool.
S4: and continuously monitoring whether the target virtual machine meets the incremental backup condition or not through the target management program.
After the full-volume backup is finished, the target management program monitors whether the target virtual machine meets the incremental backup condition, and because the target virtual machine usually runs continuously for a long time, multiple incremental backups are required to be performed to ensure the timeliness of backup data, and therefore the target management program needs to continuously monitor whether the target virtual machine meets the incremental backup condition.
In one embodiment, S4 specifically includes:
s41: and acquiring a first incremental backup condition, a second incremental backup condition and a third incremental backup condition through the target management program, wherein the first incremental backup condition is that virtual machine data change, the second incremental backup condition is that the current time point reaches the target time point in the timing backup strategy, and the third incremental backup condition is that virtual machine state change.
S42: continuously monitoring, by the target hypervisor, whether the target virtual machine satisfies any one of the first incremental backup condition, the second incremental backup condition, and the third incremental backup condition.
In the above steps, when the manager performs the management configuration operation, the manager configures the incremental backup condition from three sides, and designates that the incremental backup needs to be performed once only if any one of the three conditions is satisfied later. Specifically, the incremental backup conditions include a first incremental backup condition, a second incremental backup condition and a third incremental backup condition, wherein the first incremental backup condition is that virtual machine data changes, and the data change refers to that any one of data in a disk file and a configuration file changes; the second incremental backup condition is that the current time point reaches a target time point in the timing backup strategy, if the timing backup strategy performs incremental backup every 5 minutes, the initial backup time point is assumed to be 10 points, if the current time point is 10 points and 5 times of time sharing needs to perform incremental backup, and if the current time point is 10 points and 10 times of time sharing needs to perform incremental backup, and so on; the third incremental backup condition is that the state of the virtual machine changes, and the state change refers to that the virtual machine changes from a normal running state to a starting, shutting down or suspending state.
After configuration, the target hypervisor may obtain the three types of incremental backup conditions and then continuously monitor whether the target virtual machine satisfies any one of the first incremental backup condition, the second incremental backup condition, and the third incremental backup condition.
In the prior art, the backup policy is only a timed backup, and when the running state of the virtual machine or the data changes in the time period between two backups, the snapshot does not record the changes immediately, but needs to wait for the next snapshot operation according to the timed policy, and during the period, the data consistency problem may exist. In the embodiment of the application, the incremental backup conditions are set by integrating three aspects of virtual machine data change, timing strategy and virtual machine state change, and when any one of the conditions is met, the incremental backup can be performed, so that the data consistency is improved.
S5: if yes, determining the time point when the ith is met as an ith backup time point, determining an ith incremental backup time period according to the ith-1 backup time point and the ith backup time point, and performing the ith incremental backup on the disk file and the configuration file of the target virtual machine in the ith incremental backup time period through the target management program at the ith backup time point to obtain an ith incremental disk file and an ith incremental configuration file, wherein i is a positive integer.
When the target management program monitors that the target virtual machine meets the incremental backup condition, starting from the 1 st time, determining the time point when each time is met as a backup time point, determining the ith backup time point for the ith time, wherein i is a positive integer, and simultaneously determining the time period between the ith-1 backup time point and the ith backup time point as the ith incremental backup time period. Then, invoking the qemu-img command line tool to perform the ith incremental backup on the disk file and the configuration file of the target virtual machine in the ith incremental backup time period to obtain the ith incremental disk file and the ith incremental configuration file, wherein the data contained in the ith incremental disk file and the ith incremental configuration file are only changed data in the ith incremental backup time period, so that the data size is smaller. As shown in fig. 3, this process proceeds based on multiple policies 2.
S6: and merging the 0 th full disk file and the previous i-1 incremental disk file through the target management program to obtain the i th full disk file, and merging the 0 th full configuration file and the previous i-1 incremental configuration file to obtain the i th full configuration file.
After the ith incremental disk file and the ith incremental configuration file are generated, the target management program merges the 0 th full disk file and the previous i-1 incremental disk file into the ith full disk file, and merges the 0 th full configuration file and the previous i-1 incremental configuration file into the ith full configuration file, so that only one full disk file and the last incremental disk file, and one full configuration file and the last incremental configuration file are reserved after the merging, as shown in fig. 3.
In one embodiment, S6 specifically includes:
s61: when i is equal to 1, the 0 th full disk file is determined as the i th full disk file, and the 0 th full configuration file is determined as the i th full configuration file.
S62: when i is greater than 1, merging the i-1 full-capacity disk file and the i-1 incremental disk file through the target management program to obtain the i-1 full-capacity disk file, and merging the i-1 full-capacity configuration file and the i-1 incremental configuration file through the target management program to obtain the i-1 full-capacity configuration file.
As shown in fig. 4, the full-capacity backup is performed on the target virtual machine to obtain the 0 th full-capacity disk file and the 0 th full-capacity configuration file, and then whether the target virtual machine meets the incremental backup condition is monitored.
And when the 1 st time is met, carrying out 1 st incremental backup to obtain a 1 st incremental disk file and a 1 st incremental configuration file, directly determining a 0 th full-capacity disk file as an i full-capacity disk file, and directly determining the 0 th full-capacity configuration file as the i full-capacity configuration file.
And then, continuously monitoring whether the target virtual machine meets the incremental backup condition, and carrying out the 2 nd incremental backup to obtain a 2 nd incremental disk file and a 2 nd incremental configuration file when the target virtual machine meets the 2 nd incremental backup condition, and simultaneously merging the 1 st full disk file and the 1 st incremental disk file to be used as the 2 nd full disk file, and merging the 1 st full configuration file and the 1 st incremental configuration file to be used as the 2 nd full configuration file. At this time, the 2 nd full disk file and the 2 nd full configuration file, and the 2 nd incremental disk file and the 2 nd incremental configuration file are reserved in the target management program.
And continuously monitoring whether the target virtual machine meets the incremental backup condition, and carrying out the 3 rd incremental backup to obtain a 3 rd incremental disk file and a 3 rd incremental configuration file when the target virtual machine meets the 3 rd incremental backup condition, combining the 2 nd full disk file and the 2 nd incremental disk file to be used as the 3 rd full disk file, and combining the 2 nd full configuration file and the 2 nd incremental configuration file to be used as the 3 rd full configuration file. At this time, the 3 rd full disk file and the 3 rd full configuration file, and the 3 rd incremental disk file and the 3 rd incremental configuration file are reserved in the target management program.
And by analogy, each time of subsequent incremental backup, the previous incremental backup data and the full backup data can be combined to obtain new full backup data, so that only one full backup data and one incremental backup data are reserved in the target management program.
S7: and determining the ith full-capacity disk file and the ith full-capacity configuration file as latest full-capacity data, determining the ith incremental disk file and the ith incremental configuration file as latest incremental data, and storing the latest full-capacity data and the latest incremental data to a first target storage position outside the target virtual machine through a target management program.
After the ith incremental backup, the ith full-capacity disk file and the ith full-capacity configuration file are determined to be the latest full-capacity data, and the ith incremental disk file and the ith incremental configuration file are determined to be the latest incremental data. When the management configuration is carried out, the storage position of the backup data is required to be configured, and after the configuration, the target management program can store the latest full-quantity data and the latest increment data to a first target storage position outside the target virtual machine according to the configuration information. The person skilled in the art can select to store the latest full-amount data and the latest increment data generated each time as needed, or can select to store the latest full-amount data and the latest increment data only a certain time or a certain times.
In the prior art, the snapshot is created by the virtual machine itself, and the creation process needs to occupy the resources of the virtual machine, such as a CPU, a memory, a disk I/O, and the like, which may affect the performance of the virtual machine. In the embodiment of the application, the whole backup process is completed by the target management program of the third party, and the target virtual machine does not need to create the snapshot and store the snapshot for backup, so that the resources of the target virtual machine are not consumed, and the performance stability of the target virtual machine is effectively ensured.
In the prior art, because all data of the virtual machine can be recorded by the created snapshot, the data volume is large, the created snapshot is stored in a disk of the virtual machine, the disk space of the virtual machine can be occupied, the occupied space can be increased continuously along with the time, and if the snapshot function is frequently used by the virtual machine, the disk space is possibly insufficient, and the normal operation of the virtual machine is affected. In the embodiment of the application, full-volume backup is performed for the first time, and only incremental backup is performed every time later, so that the data volume of incremental data every time is smaller, and the backup is completed through a target management program of a third party, so that the storage position of backup data can be customized, the data can be stored in a first target storage position outside a target virtual machine, the disk space of the target virtual machine is not occupied, and the normal operation of the virtual machine is ensured.
In the prior art, since the snapshot records all important data of the virtual machine, if the latest snapshot is damaged or lost, the virtual machine may not be started normally. In the embodiment of the application, backup is performed in a mode of one full-volume backup and multiple incremental backups, and after each incremental backup, all backup data before the current backup time point are combined to obtain unique latest full-volume data, and then the latest full-volume data and the latest full-volume data are stored, so that even if the latest full-volume data is damaged or lost, most of information in the virtual machine is contained in the latest full-volume data, the target virtual machine can still be restored according to the latest full-volume data.
In one embodiment, after S7, further comprising:
s7a: and carrying out full-scale backup on the latest full-scale data through the target management program to obtain target backup data.
S7b: and storing the target backup data to a second target storage location outside the target virtual machine, wherein the second target storage location is different from the first target storage location.
After the latest full-volume data is obtained, full-volume backup can be performed again on the latest full-volume data, and the obtained target backup data is stored in a second target storage position. Because the latest full-volume data contains a large amount of data and contains most of information when the target virtual machine is restored, the latest full-volume data can be backed up and stored for the second time to reduce the risk, and even if the latest full-volume data is damaged or lost, the target virtual machine can still be restored according to the target backup data and the latest full-volume data, so that the further reduction of the risk is realized.
In one embodiment, S1 further comprises: and determining virtual machine restoration conditions according to management configuration operation, wherein the virtual machine restoration conditions comprise abnormal file states of the virtual machine.
When the management configuration operation is performed, the virtual machine restoration condition is further required to be configured, the virtual machine restoration condition specifically may include that an abnormality occurs in a file state of the virtual machine, the file includes any one of a disk file and a configuration file, and the abnormality may, for example, theoretically exist data a in the target virtual machine, but the data a is not queried during actual access.
In one embodiment, after S7, further comprising:
s7c: and monitoring whether the target virtual machine meets the virtual machine reduction condition or not through the target management program.
S7d: if yes, determining a target time point to be restored from the previous i backup time points.
S7e: and determining target data to be restored from the latest full-quantity data and the latest increment data according to the target time point, wherein the target data comprises a target disk file and a target configuration file.
S7f: and restoring the target virtual machine positioned before the target time point through the target management program according to the target disk file and the target configuration file.
After the virtual machine restoration condition is set, the target management program can monitor whether the target virtual machine has abnormal file state, and if so, restoration is needed. At this time, the target time point to be restored may be determined from the previous i backup time points, where there are multiple manners for determining the target time point, for example, the target time point may be preconfigured when the management configuration operation is performed, the configuration content may be that j backup time points are pushed forward as the target time points from the time point when the occurrence of the abnormality is detected, and j may be any positive integer not greater than i; or, the selection interface may be displayed when the occurrence of an abnormality is detected, and then the manager may determine a certain time point of the previous i backup time points as a target time point after performing a selection operation on the certain time point in the interface. After the target time point is determined, the target management program can determine all data positioned before the target time point from the latest full-quantity data and the latest increased-quantity data, determine the data as target data to be restored, and restore the target virtual machine corresponding to the target time point according to the target disk file and the target configuration file. As shown in fig. 3, this process proceeds based on policy 3.
In the prior art, an abnormality is usually found manually, then a time point of the reduction is manually selected to restore the target virtual machine, the operation is complex, and the efficiency is low. In the embodiment of the application, the file state of the target virtual machine can be automatically monitored through the target management program, and when the abnormality is monitored, the target time point can be automatically determined according to the configuration data of the target time point in advance, so that the target virtual machine corresponding to the target time point is automatically restored, and the restoring efficiency is higher.
In one embodiment, after S7, further comprising:
s7g: and judging whether the value of i in the ith backup time point is equal to a preset threshold value.
S7h: if yes, performing full-scale backup on the disk file and the configuration file of the target virtual machine through the target management program to obtain a reference full-scale disk file and a reference full-scale configuration file, and merging the latest full-scale data and the latest incremental data through the target management program to obtain an actual full-scale disk file and an actual full-scale configuration file.
S7i: and comparing the reference full-volume disk file with the actual full-volume disk file to obtain a first comparison result, and comparing the reference full-volume configuration file with the actual full-volume configuration file to obtain a second comparison result.
S7j: and when any one of the first comparison result and the second comparison result is inconsistent in characterization, generating alarm information through the target management program.
In this embodiment, a plurality of preset thresholds, for example, 30, 60, 90, etc. may be configured first, and when each time it is monitored that the target virtual machine meets the incremental backup condition, i is counted, and whether i is equal to a certain preset threshold is determined, if not, the steps S5 to S7 are executed normally to obtain the latest full-volume data and the latest incremental data. If i is equal to a predetermined threshold, for example, i is equal to 30, that is, 30 th time the incremental backup condition is satisfied, steps S5 to S7 described above may be performed first to obtain the latest full-amount data and the latest incremental data. And then, performing full-scale backup on the disk file and the configuration file of the target virtual machine at the time point to obtain a reference full-scale disk file and a reference full-scale configuration file, and simultaneously merging the latest full-scale data and the latest incremental data to obtain an actual full-scale disk file and an actual full-scale configuration file. And then, comparing the reference full-volume disk file with the actual full-volume disk file to obtain a first comparison result, and comparing the reference full-volume configuration file with the actual full-volume configuration file to obtain a second comparison result. If the backup process is not abnormal, the contents of the first comparison result and the second comparison result should be consistent, and if any one of the first comparison result and the second comparison result is inconsistent, the backup process is abnormal. At this time, the alarm information can be generated and displayed to the manager through the target management program, so that the manager can know and take corresponding measures in time.
In the backup process of the virtual machine, if an abnormality occurs in the backup process, the merging process or the storing process, etc., the abnormality is not known by the manager in time, and the target virtual machine obtained in the subsequent restoration also has a problem. In the embodiment of the application, by setting the mechanism, the latest full-quantity data and the latest incremental data can be subjected to abnormality detection once every a period of time, and when inconsistent conditions occur between the reference backup data and the actual backup data, alarm information can be generated so as to facilitate management personnel to find abnormality in time and take corresponding measures, and reduce the risk of abnormality after restoration.
In summary, the above embodiments show that the virtual machine backup method of the present application has higher reliability.
Based on the method described in the foregoing embodiment, this embodiment will be further described from the perspective of a virtual machine backup apparatus, referring to fig. 5, the virtual machine backup apparatus may include:
the receiving module 10 is configured to receive a management configuration operation for a target virtual machine through a target management program, establish connection with the target virtual machine according to the management configuration operation, and determine a full backup condition and an incremental backup condition of the target virtual machine;
A first monitoring module 20, configured to monitor, by the target hypervisor, whether the target virtual machine meets the full-scale backup condition;
the first full-volume backup module 30 is configured to, if yes, perform full-volume backup on the disk file and the configuration file of the target virtual machine through the target management program, obtain a 0 th full-volume disk file and a 0 th full-volume configuration file, and determine a 0 th backup time point;
a second monitoring module 40, configured to continuously monitor, by the target hypervisor, whether the target virtual machine meets the incremental backup condition;
the incremental backup module 50 is configured to determine, if yes, a time point when the ith satisfies as an ith backup time point, determine an ith incremental backup time period according to the ith-1 backup time point and the ith backup time point, and perform, at the ith backup time point, an ith incremental backup on a disk file and a configuration file of the target virtual machine in the ith incremental backup time period through the target management program, so as to obtain an ith incremental disk file and an ith incremental configuration file, where i is a positive integer;
the merging module 60 is configured to merge the 0 th full-volume disk file and the previous i-1 incremental disk files through the target management program to obtain an i th full-volume disk file, and merge the 0 th full-volume configuration file and the previous i-1 incremental configuration file to obtain an i th full-volume configuration file;
And a first saving module 70, configured to determine the ith full-capacity disk file and the ith full-capacity configuration file as latest full-capacity data, determine the ith incremental disk file and the ith incremental configuration file as latest incremental data, and save the latest full-capacity data and the latest incremental data to a first target storage location outside the target virtual machine through the target management program.
In one embodiment, the second monitoring module 40 includes:
the acquisition sub-module is used for acquiring a first incremental backup condition, a second incremental backup condition and a third incremental backup condition through the target management program, wherein the first incremental backup condition is that virtual machine data change, the second incremental backup condition is that a current time point reaches a target time point in a timing backup strategy, and the third incremental backup condition is that virtual machine state change;
and the monitoring submodule is used for continuously monitoring whether the target virtual machine meets any one of the first incremental backup condition, the second incremental backup condition and the third incremental backup condition through the target management program.
In one embodiment, the merge module 60 includes:
A determining submodule, configured to determine the 0 th full-capacity disk file as an i-th full-capacity disk file and determine the 0 th full-capacity configuration file as an i-th full-capacity configuration file when i is equal to 1;
and the merging submodule is used for merging the i-1 full-quantity disk file and the i-1 incremental disk file through the target management program to obtain the i-full-quantity disk file when i is greater than 1, and merging the i-1 full-quantity configuration file and the i-1 incremental configuration file through the target management program to obtain the i-full-quantity configuration file.
In one embodiment, the virtual machine backup apparatus further includes:
the second full-quantity backup module is used for carrying out full-quantity backup on the latest full-quantity data through the target management program to obtain target backup data;
and the second storage module is used for storing the target backup data to a second target storage position outside the target virtual machine, wherein the second target storage position is different from the first target storage position.
In one embodiment, the receiving module 10 is further configured to determine a virtual machine restore condition according to the management configuration operation, where the virtual machine restore condition includes that a file state of the virtual machine is abnormal.
In one embodiment, the virtual machine backup apparatus further includes:
the third monitoring module is used for monitoring whether the target virtual machine meets the virtual machine reduction condition or not through the target management program;
the first determining module is used for determining a target time point to be restored from the previous i backup time points if yes;
the second determining module is used for determining target data to be restored from the latest full-quantity data and the latest increment data according to the target time point, wherein the target data comprises a target disk file and a target configuration file;
and the restoring module is used for restoring the target virtual machine positioned before the target time point through the target management program according to the target disk file and the target configuration file.
In one embodiment, the virtual machine backup apparatus further includes:
the judging module is used for judging whether the value of i in the ith backup time point is equal to a preset threshold value or not;
the backup and merging module is used for carrying out full backup on the disk file and the configuration file of the target virtual machine through the target management program if the disk file and the configuration file of the target virtual machine are the same, obtaining a reference full disk file and a reference full configuration file, and merging the latest full data and the latest full data through the target management program, so as to obtain an actual full disk file and an actual full configuration file;
The comparison module is used for comparing the reference full-volume disk file with the actual full-volume disk file to obtain a first comparison result, and comparing the reference full-volume configuration file with the actual full-volume configuration file to obtain a second comparison result;
and the generation module is used for generating alarm information through the target management program when any one of the first comparison result and the second comparison result is inconsistent in characterization.
Compared with the prior art, the virtual machine backup device provided by the application is characterized in that after management configuration is carried out in the target management program, the target management program can automatically establish connection with the target virtual machine and automatically realize backup management of the target virtual machine, and the target virtual machine does not need to establish a snapshot and store the snapshot for backup, so that the resources of the target virtual machine are not consumed, the disk space of the virtual machine is not occupied, and the performance stability of the target virtual machine is effectively ensured; in addition, the backup is performed in a mode of one full-volume backup and multiple incremental backups, after each incremental backup, all backup data before the current backup time point are combined to obtain unique latest full-volume data, then the latest full-volume data and the latest full-volume data are stored, and even if the latest full-volume data are damaged or lost, most of information in the virtual machine is contained in the latest full-volume data, the target virtual machine can still be restored according to the latest full-volume data. In summary, the virtual machine backup device has higher reliability.
Accordingly, the embodiment of the present application further provides an electronic device, as shown in fig. 6, where the electronic device may include a Radio Frequency (RF) circuit 101, a memory 102 including one or more computer readable storage media, an input unit 103, a display unit 104, a sensor 105, an audio circuit 106, a WiFi module 107, a processor 108 including one or more processing cores, and a power supply 109. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 6 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the radio frequency circuit 101 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, in particular, after receiving downlink information of the base station, the downlink information is processed by one or more processors 108; in addition, data relating to uplink is transmitted to the base station. The memory 102 may be used to store software programs and modules, and the processor 108 performs various functional applications and virtual machine backups by running the software programs and modules stored in the memory 102. The input unit 103 may be used to receive entered numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to customer settings and function control.
The display unit 104 may be used to display information entered by a client or provided to a client and various graphical client interfaces of a server, which may be composed of graphics, text, icons, video, and any combination thereof.
The electronic device may also include at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Audio circuitry 106 includes speakers that may provide an audio interface between the client and the electronic device.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment can help clients to send and receive emails, browse webpages, follow-up streaming media and the like through the WiFi module 107, so that wireless broadband Internet follow-up is provided for the clients. Although fig. 6 shows a WiFi module 107, it is understood that it does not belong to the necessary constitution of the electronic device, and can be omitted entirely as required within a range that does not change the essence of the application.
The processor 108 is a control center of the electronic device that uses various interfaces and lines to connect the various parts of the overall handset, performing various functions of the electronic device and processing the data by running or executing software programs and/or modules stored in the memory 102, and invoking data stored in the memory 102, thereby performing overall monitoring of the handset.
The electronic device further comprises a power supply 109 (e.g. a battery) for powering the various components, which may preferably be logically connected to the processor 108 via a power management system, whereby charging, discharging, and power consumption management functions are performed by the power management system.
Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the processor 108 in the server loads executable files corresponding to the processes of one or more application programs into the memory 102 according to the following instructions, and the processor 108 executes the application programs stored in the memory 102, so as to implement the following functions:
receiving management configuration operation aiming at a target virtual machine through a target management program, establishing connection with the target virtual machine according to the management configuration operation, and determining full-scale backup conditions and incremental backup conditions of the target virtual machine;
monitoring whether the target virtual machine meets the full-capacity backup condition or not through the target management program;
if yes, carrying out full backup on the disk files and the configuration files of the target virtual machine through the target management program to obtain a 0 th full disk file and a 0 th full configuration file, and determining a 0 th backup time point;
Continuously monitoring whether the target virtual machine meets the incremental backup condition through the target management program;
if yes, determining a time point when the ith is met as an ith backup time point, determining an ith incremental backup time period according to the ith-1 backup time point and the ith backup time point, and performing the ith incremental backup on the disk file and the configuration file of the target virtual machine in the ith incremental backup time period through the target management program at the ith backup time point to obtain an ith incremental disk file and an ith incremental configuration file, wherein i is a positive integer;
combining the 0 th full-capacity disk file and the previous i-1 incremental disk files through the target management program to obtain an i th full-capacity disk file, and combining the 0 th full-capacity configuration file and the previous i-1 incremental configuration file to obtain an i th full-capacity configuration file;
and determining the ith full-capacity disk file and the ith full-capacity configuration file as latest full-capacity data, determining the ith incremental disk file and the ith incremental configuration file as latest incremental data, and storing the latest full-capacity data and the latest incremental data to a first target storage position outside the target virtual machine through the target management program.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of an embodiment that are not described in detail in the foregoing embodiments may be referred to in the foregoing detailed description, which is not repeated herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the following functions:
receiving management configuration operation aiming at a target virtual machine through a target management program, establishing connection with the target virtual machine according to the management configuration operation, and determining full-scale backup conditions and incremental backup conditions of the target virtual machine;
monitoring whether the target virtual machine meets the full-capacity backup condition or not through the target management program;
if yes, carrying out full backup on the disk files and the configuration files of the target virtual machine through the target management program to obtain a 0 th full disk file and a 0 th full configuration file, and determining a 0 th backup time point;
Continuously monitoring whether the target virtual machine meets the incremental backup condition through the target management program;
if yes, determining a time point when the ith is met as an ith backup time point, determining an ith incremental backup time period according to the ith-1 backup time point and the ith backup time point, and performing the ith incremental backup on the disk file and the configuration file of the target virtual machine in the ith incremental backup time period through the target management program at the ith backup time point to obtain an ith incremental disk file and an ith incremental configuration file, wherein i is a positive integer;
combining the 0 th full-capacity disk file and the previous i-1 incremental disk files through the target management program to obtain an i th full-capacity disk file, and combining the 0 th full-capacity configuration file and the previous i-1 incremental configuration file to obtain an i th full-capacity configuration file;
and determining the ith full-capacity disk file and the ith full-capacity configuration file as latest full-capacity data, determining the ith incremental disk file and the ith incremental configuration file as latest incremental data, and storing the latest full-capacity data and the latest incremental data to a first target storage position outside the target virtual machine through the target management program.
The foregoing describes in detail a virtual machine backup method, apparatus, electronic device and computer readable storage medium provided in the embodiments of the present application, and specific examples are applied to illustrate principles and implementations of the present application, where the foregoing description of the embodiments is only used to help understand the technical solution and core idea of the present application; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims (9)
1. A virtual machine backup method, comprising:
receiving management configuration operation aiming at a target virtual machine through a target management program, establishing connection with the target virtual machine according to the management configuration operation, and determining full-scale backup conditions and incremental backup conditions of the target virtual machine;
monitoring whether the target virtual machine meets the full-capacity backup condition or not through the target management program;
if yes, carrying out full backup on the disk files and the configuration files of the target virtual machine through the target management program to obtain a 0 th full disk file and a 0 th full configuration file, and determining a 0 th backup time point;
Continuously monitoring whether the target virtual machine meets the incremental backup condition through the target management program;
if yes, determining a time point when the ith is met as an ith backup time point, determining an ith incremental backup time period according to the ith-1 backup time point and the ith backup time point, and performing the ith incremental backup on the disk file and the configuration file of the target virtual machine in the ith incremental backup time period through the target management program at the ith backup time point to obtain an ith incremental disk file and an ith incremental configuration file, wherein i is a positive integer;
combining the 0 th full-capacity disk file and the previous i-1 incremental disk files through the target management program to obtain an i th full-capacity disk file, and combining the 0 th full-capacity configuration file and the previous i-1 incremental configuration file to obtain an i th full-capacity configuration file; the method specifically comprises the following steps: when i is equal to 1, determining the 0 th full-capacity disk file as an i-th full-capacity disk file, and determining the 0 th full-capacity configuration file as an i-th full-capacity configuration file; when i is greater than 1, merging the i-1 full-quantity disk file and the i-1 incremental disk file through the target management program to obtain an i full-quantity disk file, and merging the i-1 full-quantity configuration file and the i-1 incremental configuration file through the target management program to obtain an i full-quantity configuration file;
And determining the ith full-capacity disk file and the ith full-capacity configuration file as latest full-capacity data, determining the ith incremental disk file and the ith incremental configuration file as latest incremental data, and storing the latest full-capacity data and the latest incremental data to a first target storage position outside the target virtual machine through the target management program.
2. The virtual machine backup method of claim 1, wherein the step of continuously monitoring, by the target hypervisor, whether the target virtual machine satisfies the incremental backup condition comprises:
acquiring a first incremental backup condition, a second incremental backup condition and a third incremental backup condition through the target management program, wherein the first incremental backup condition is that virtual machine data change, the second incremental backup condition is that a current time point reaches a target time point in a timing backup strategy, and the third incremental backup condition is that virtual machine state change;
continuously monitoring, by the target hypervisor, whether the target virtual machine satisfies any one of the first incremental backup condition, the second incremental backup condition, and the third incremental backup condition.
3. The virtual machine backup method of claim 1, further comprising, after the step of saving, by the target hypervisor, the latest full-volume data and the latest incremental data to a first target storage location outside the target virtual machine:
performing full-scale backup on the latest full-scale data through the target management program to obtain target backup data;
and storing the target backup data to a second target storage position outside the target virtual machine, wherein the second target storage position is different from the first target storage position.
4. The virtual machine backup method of claim 1, wherein the step of receiving, by the target hypervisor, a management configuration operation for the target virtual machine, further comprises:
and determining virtual machine restoration conditions according to the management configuration operation, wherein the virtual machine restoration conditions comprise the occurrence of abnormality of the file state of the virtual machine.
5. The virtual machine backup method of claim 4, further comprising, after the step of saving, by the target hypervisor, the latest full-volume data and the latest incremental data to a first target storage location outside the target virtual machine:
Monitoring whether the target virtual machine meets the virtual machine reduction condition or not through the target management program;
if yes, determining a target time point to be restored from the previous i backup time points;
determining target data to be restored from the latest full-quantity data and the latest increment data according to the target time point, wherein the target data comprises a target disk file and a target configuration file;
and restoring the target virtual machine positioned before the target time point through the target management program according to the target disk file and the target configuration file.
6. The virtual machine backup method of claim 1, further comprising, after the step of saving, by the target hypervisor, the latest full-volume data and the latest incremental data to a first target storage location outside the target virtual machine:
judging whether the value of i in the ith backup time point is equal to a preset threshold value or not;
if yes, performing full backup on the disk file and the configuration file of the target virtual machine through the target management program to obtain a reference full disk file and a reference full configuration file, and merging the latest full data and the latest increased data through the target management program to obtain an actual full disk file and an actual full configuration file;
Comparing the reference full-volume disk file with the actual full-volume disk file to obtain a first comparison result, and comparing the reference full-volume configuration file with the actual full-volume configuration file to obtain a second comparison result;
and generating alarm information through the target management program when any one of the first comparison result and the second comparison result is inconsistent in characterization.
7. A virtual machine backup apparatus, comprising:
the receiving module is used for receiving management configuration operation aiming at a target virtual machine through a target management program, establishing connection with the target virtual machine according to the management configuration operation, and determining full backup conditions and incremental backup conditions of the target virtual machine;
the first monitoring module is used for monitoring whether the target virtual machine meets the full-capacity backup condition or not through the target management program;
the first full-capacity backup module is used for carrying out full-capacity backup on the disk files and the configuration files of the target virtual machine through the target management program if yes, obtaining a 0 th full-capacity disk file and a 0 th full-capacity configuration file, and determining a 0 th backup time point;
the second monitoring module is used for continuously monitoring whether the target virtual machine meets the incremental backup condition or not through the target management program;
The incremental backup module is used for determining an ith backup time point as the time point when the ith is met if the target virtual machine is met, determining an ith incremental backup time period according to the ith-1 backup time point and the ith backup time point, and performing the ith incremental backup on the disk file and the configuration file of the target virtual machine in the ith incremental backup time period through the target management program at the ith backup time point to obtain an ith incremental disk file and an ith incremental configuration file, wherein i is a positive integer;
the merging module is used for merging the 0 th full-volume disk file and the previous i-1 incremental disk files through the target management program to obtain an i th full-volume disk file, and merging the 0 th full-volume configuration file and the previous i-1 incremental configuration file to obtain an i th full-volume configuration file; the method specifically comprises the following steps: when i is equal to 1, determining the 0 th full-capacity disk file as an i-th full-capacity disk file, and determining the 0 th full-capacity configuration file as an i-th full-capacity configuration file; when i is greater than 1, merging the i-1 full-quantity disk file and the i-1 incremental disk file through the target management program to obtain an i full-quantity disk file, and merging the i-1 full-quantity configuration file and the i-1 incremental configuration file through the target management program to obtain an i full-quantity configuration file;
The first storage module is used for determining the ith full-capacity disk file and the ith full-capacity configuration file as latest full-capacity data, determining the ith incremental disk file and the ith incremental configuration file as latest incremental data, and storing the latest full-capacity data and the latest incremental data to a first target storage position outside the target virtual machine through the target management program.
8. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform the steps in the virtual machine backup method according to any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which is executed by a processor to implement the steps in the virtual machine backup method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311295139.9A CN117033084B (en) | 2023-10-09 | 2023-10-09 | Virtual machine backup method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311295139.9A CN117033084B (en) | 2023-10-09 | 2023-10-09 | Virtual machine backup method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117033084A CN117033084A (en) | 2023-11-10 |
CN117033084B true CN117033084B (en) | 2024-01-19 |
Family
ID=88639854
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311295139.9A Active CN117033084B (en) | 2023-10-09 | 2023-10-09 | Virtual machine backup method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117033084B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106339254A (en) * | 2015-07-15 | 2017-01-18 | 中兴通讯股份有限公司 | Quick starting method and device, and management node for virtual machine |
CN106777219A (en) * | 2016-12-23 | 2017-05-31 | 北京亚细亚智业科技有限公司 | For the data processing method and device of Visualized data centre |
CN111338759A (en) * | 2020-02-26 | 2020-06-26 | 平安科技(深圳)有限公司 | Virtual disk check code generation method, device, equipment and storage medium |
CN111949445A (en) * | 2020-07-29 | 2020-11-17 | 苏州浪潮智能科技有限公司 | Incremental backup data storage method, device, equipment and product |
CN112882859A (en) * | 2021-02-07 | 2021-06-01 | 上海英方软件股份有限公司 | Virtual machine synthetic backup method and system |
CN113626256A (en) * | 2021-07-16 | 2021-11-09 | 济南浪潮数据技术有限公司 | Virtual machine disk data backup method, device, terminal and storage medium |
CN113886143A (en) * | 2021-10-19 | 2022-01-04 | 深圳市木浪云科技有限公司 | Virtual machine continuous data protection method and device and data recovery method and device |
CN114564284A (en) * | 2022-04-29 | 2022-05-31 | 武汉四通信息服务有限公司 | Data backup method of virtual machine, computer equipment and storage medium |
CN115098299A (en) * | 2022-06-28 | 2022-09-23 | 江苏安超云软件有限公司 | Backup method, disaster recovery method, device and equipment for virtual machine |
WO2023109245A1 (en) * | 2021-12-17 | 2023-06-22 | 广东浪潮智慧计算技术有限公司 | Data backup method, apparatus and system and non-volatile readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8495316B2 (en) * | 2008-08-25 | 2013-07-23 | Symantec Operating Corporation | Efficient management of archival images of virtual machines having incremental snapshots |
-
2023
- 2023-10-09 CN CN202311295139.9A patent/CN117033084B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106339254A (en) * | 2015-07-15 | 2017-01-18 | 中兴通讯股份有限公司 | Quick starting method and device, and management node for virtual machine |
CN106777219A (en) * | 2016-12-23 | 2017-05-31 | 北京亚细亚智业科技有限公司 | For the data processing method and device of Visualized data centre |
CN111338759A (en) * | 2020-02-26 | 2020-06-26 | 平安科技(深圳)有限公司 | Virtual disk check code generation method, device, equipment and storage medium |
WO2021169280A1 (en) * | 2020-02-26 | 2021-09-02 | 平安科技(深圳)有限公司 | Virtual disk check code generation method, apparatus and device, and storage medium |
CN111949445A (en) * | 2020-07-29 | 2020-11-17 | 苏州浪潮智能科技有限公司 | Incremental backup data storage method, device, equipment and product |
CN112882859A (en) * | 2021-02-07 | 2021-06-01 | 上海英方软件股份有限公司 | Virtual machine synthetic backup method and system |
CN113626256A (en) * | 2021-07-16 | 2021-11-09 | 济南浪潮数据技术有限公司 | Virtual machine disk data backup method, device, terminal and storage medium |
CN113886143A (en) * | 2021-10-19 | 2022-01-04 | 深圳市木浪云科技有限公司 | Virtual machine continuous data protection method and device and data recovery method and device |
WO2023109245A1 (en) * | 2021-12-17 | 2023-06-22 | 广东浪潮智慧计算技术有限公司 | Data backup method, apparatus and system and non-volatile readable storage medium |
CN114564284A (en) * | 2022-04-29 | 2022-05-31 | 武汉四通信息服务有限公司 | Data backup method of virtual machine, computer equipment and storage medium |
CN115098299A (en) * | 2022-06-28 | 2022-09-23 | 江苏安超云软件有限公司 | Backup method, disaster recovery method, device and equipment for virtual machine |
Also Published As
Publication number | Publication date |
---|---|
CN117033084A (en) | 2023-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9791908B2 (en) | Systems and methods for protecting virtualized assets | |
US20110004791A1 (en) | Server apparatus, fault detection method of server apparatus, and fault detection program of server apparatus | |
CN106462206B (en) | System and method for monitoring configuration of UPS groups having different redundancy levels | |
US11662803B2 (en) | Control method, apparatus, and electronic device | |
CA2861257A1 (en) | Fault tolerance for complex distributed computing operations | |
CN113407383B (en) | Main and standby system switching method and device, server and main and standby system | |
CN110413432B (en) | Information processing method, electronic equipment and storage medium | |
CN111124761B (en) | Equipment restarting method, device, equipment and medium | |
US20210385406A1 (en) | Device state monitoring method and apparatus | |
CN111342986B (en) | Distributed node management method and device, distributed system and storage medium | |
CN113849356A (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN112463550A (en) | Remote monitoring method, device and equipment for terminal equipment state | |
CN117033084B (en) | Virtual machine backup method and device, electronic equipment and storage medium | |
CN114826886B (en) | Disaster recovery method and device for application software and electronic equipment | |
CN116192885A (en) | High-availability cluster architecture artificial intelligent experiment cloud platform data processing method and system | |
CN112764837B (en) | Data reporting method, device, storage medium and terminal | |
CN115687026A (en) | Multi-node server fault early warning method, device, equipment and medium | |
CN107783852B (en) | Dump file generation method and terminal | |
US12038821B2 (en) | Alert rule manipulation in sync of temporary configuration change | |
CN110519393A (en) | Monitoring and managing method, device, equipment, server and the medium of self-service device | |
CN116991635B (en) | Data synchronization method and data synchronization device | |
CN116204502B (en) | NAS storage service method and system with high availability | |
CN117395263B (en) | Data synchronization method, device, equipment and storage medium | |
CN114007090B (en) | Video live broadcast establishing method and device, storage medium and electronic equipment | |
CN114328094A (en) | Equipment exception information processing method and device, storage medium and electronic equipment |
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 |