A fast synthetic backup and recovery method based on snapshot
By creating storage volumes and taking snapshots on the CDM storage machine, a fast synthetic backup method based on snapshots is realized, solving the shortcomings of traditional synthetic backup methods in terms of recovery time and disk usage, and achieving efficient recovery and disk space saving effect.
Patent Information
- Application Number
- CN202111331896.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2041-11-11
AI Technical Summary
Traditional synthetic backup methods have shortcomings in recovery time and disk usage, and need to be optimized to improve recovery efficiency and reduce disk usage.
Using a snapshot-based fast synthetic backup method, by creating storage volumes in the CDM storage machine, establishing synthetic backup tasks, performing full and incremental backups, and snapping the storage volume after each backup is completed, recording the snapshot time to the recovery time point List.
It realizes the retention of only one disk data, avoids duplicate data, saves disk space, and shortens recovery time during recovery, eliminating the merging process of incremental and differential data.
Smart Images

Figure CN114090337B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer disaster recovery and backup, and in particular to a snapshot-based rapid synthesis backup and recovery method. Background Art
[0002] Synthetic backup means combining a full backup and some incremental backups or differential backups into a full backup. In this way, when restoring, only one backup needs to be restored, which shortens the time of data recovery.
[0003] Traditional data backup modes mainly include full backup, incremental backup, and differential backup. Full backup means backing up a complete set of data each time, and directly selecting a full backup data for recovery when restoring. This backup method only requires restoring one backup when restoring, but each backup takes a long time because it requires backing up multiple complete sets of data, which also occupies the disk space of the backup machine. Incremental backup only backs up the new and differential files based on the last backup each time, and there will be no data duplication, which saves backup space. However, when restoring, it is necessary to rely on all incremental backups between the last full backup and the recovery point, and there are multiple backups to merge, which increases the time for data recovery. Differential backups are backed up based on the new and differential files of the last full backup each time. When restoring, it only requires merging the data based on the last full backup and the current differential backup. The recovery time is shorter than that of incremental backups, but there will be duplicate data, which will occupy more disk space than incremental backups.
[0004] Synthetic backup is a new backup method based on the traditional backup method, which is designed to reduce the recovery time. However, the traditional synthetic backup generates a new full backup based on the full backup and the incremental backup after the incremental backup is completed. Although it shortens the recovery time, it will take up more disk space. Summary of the invention
[0005] In order to overcome the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a snapshot-based rapid synthetic backup and recovery method to improve the recovery efficiency of the synthetic backup and reduce the disk occupancy of the synthetic backup.
[0006] To achieve the above object, the present invention provides a snapshot-based rapid synthetic backup method, comprising the following steps:
[0007] Step S1, creating a storage volume in the CDM storage machine;
[0008] Step S2, establish a synthetic backup task, determine the storage volume and the target path of the synthetic backup, and mount the storage volume to the target path. When performing the first backup, perform a full backup of the data. After mounting the storage volume to the target path, back up the data to be backed up on the working machine to the target path, and take a snapshot of the storage volume after the backup is completed, and record the snapshot time to the recovery time point list;
[0009] Step S3, when the second and subsequent backup cycles arrive, perform incremental backup of the data, mount the storage volume to the target path, write the incremental or differential data to the target path, and after the incremental backup is completed, take a snapshot of the storage volume and record the snapshot time to the recovery time point list.
[0010] Preferably, in step S1, a storage pool is created in a CDM storage machine through a storage management service, and a storage volume is created based on the storage pool.
[0011] Preferably, the CDM storage machine is deployed on a disaster recovery machine or on a separate server.
[0012] Preferably, step S2 further comprises:
[0013] Step S200, determining the target path of the disaster recovery machine to be backed up by the synthetic backup task and the storage volume on the CDM storage machine, and mounting the storage volume to the target path;
[0014] Step S201, after mounting the storage volume to the target path, obtaining the data to be backed up of the working machine and backing it up to the target path;
[0015] Step S202: when the data backup is completed, the target path is unmounted, and the CDM storage device is notified to take a snapshot of the data of the storage volume, and the snapshot time is recorded in the recovery time point list.
[0016] Preferably, in step S200, a synthetic backup task from the working machine to the disaster recovery machine is created by the control machine, the working machine source path and the target path of the synthetic backup task are input through the control machine, and the storage volume on the CDM storage machine is selected, and a synthetic backup task request is submitted to the working machine; after receiving the synthetic backup task request, the working machine establishes a connection with the disaster recovery machine and transmits the control machine parameters to the disaster recovery machine; the disaster recovery machine determines the mount target path and storage volume according to the control machine parameters, and mounts the storage volume to the target path through ISCSI or other network storage protocols.
[0017] Preferably, in step S203, the snapshot data is stored in a CDM storage machine, and a list of recovery time points recording snapshot information is stored in a configuration directory of the disaster recovery machine.
[0018] Preferably, in step S201, if the working machine and the disaster recovery machine are the same server, the data to be backed up of the working machine is directly copied to the target path.
[0019] To achieve the above object, the present invention also provides a snapshot-based rapid synthetic backup recovery method, comprising the following steps:
[0020] Step S1, establishing a recovery task, obtaining a snapshot corresponding to the selected recovery time point according to the selected recovery time point, cloning the snapshot corresponding to the time point to obtain a clone volume;
[0021] Step S2, mounting the clone volume to the mount point of the disaster recovery machine, restoring the data at the mount point, and unmounting the mount point after the restoration is complete.
[0022] Preferably, step S1 further comprises:
[0023] Step S100, establishing a recovery task on the control machine, selecting the target path of the backup task as the recovery source path, and sending a request for obtaining configuration information to the disaster recovery machine;
[0024] Step S101, the disaster recovery machine reads the configuration information from the configuration file under the recovery source path according to the request for obtaining the configuration information, and returns it to the control machine;
[0025] Step S102, after obtaining the configuration information, the control machine uses the backup source path in the configuration information as the target path of the recovery task, and initiates a recovery task request to the disaster recovery machine according to the selected recovery time point;
[0026] Step S103, the disaster recovery machine initiates a recovery task according to the recovery task request, generates a snapshot acquisition request to the CDM storage machine to obtain the snapshot corresponding to the selected recovery time point, clones the snapshot at the recovery time point, and obtains a clone volume.
[0027] Preferably, in step S2, the clone volume is mounted to a mount point of the disaster recovery machine via ISCSI or other network storage protocols.
[0028] Compared with the prior art, the snapshot-based rapid synthetic backup and recovery method of the present invention only retains one copy of disk data, without duplicate data, saving disk space. During recovery, there is no need to merge increments and differences. Only one complete data needs to be restored, thus shortening the recovery time. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A flowchart of the steps of a snapshot-based rapid synthetic backup method of the present invention;
[0030] Figure 2A flowchart of the steps of a method for restoring a snapshot-based rapid synthetic backup according to the present invention;
[0031] Figure 3 This is a flowchart of a backup task in an embodiment of the present invention;
[0032] Figure 4 A backup task flow chart of a LAN FREE synthetic backup method in another embodiment of the present invention;
[0033] Figure 5 This is a flowchart of recovery events in an embodiment of the present invention;
[0034] Figure 6 This is a flow chart of recovery events in a LAN FREE mode in another embodiment of the present invention;
[0035] Figure 7 The diagram is a process diagram of synthetic backup and recovery data processing in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The following describes the implementation of the present invention through specific examples and in conjunction with the accompanying drawings. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific examples, and the details in this specification can also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0037] Figure 1 FIG. 1 is a flowchart of a method for rapid synthetic backup based on snapshots of the present invention. Figure 1 As shown, the present invention provides a snapshot-based rapid synthetic backup method, comprising the following steps:
[0038] Step S1, creating a storage volume in a CDM storage machine.
[0039] In the present invention, in addition to the working machine and the disaster recovery machine, a data copy management service, namely a CDM storage machine, is also provided to store and manage backup data copies. First, a storage pool is created in the CDM storage machine through the storage management service, and then a storage volume V is created based on the storage pool. In a specific embodiment of the present invention, the CDM storage machine can be deployed on the disaster recovery machine or on a separate server, but the present invention is not limited thereto.
[0040] Step S2, establish a synthetic backup task from the working machine to the disaster recovery machine, determine the target path of the storage volume and the synthetic backup, and mount the storage volume to the target path. When performing the first backup, perform a full backup of the data. After mounting the storage volume to the target path, back up the data to be backed up on the working machine to the target path, and take a snapshot of the storage volume after the backup is completed, and record the snapshot time to the recovery time point list.
[0041] Specifically, in one embodiment of the present invention, step S2 further includes:
[0042] Step S200: determine the target path B to be backed up by the synthetic backup task and the storage volume on the CDM storage machine, and mount the storage volume to the target path B.
[0043] In this embodiment, the working machine and the disaster recovery machine are not the same server. When creating a synthetic backup task from the working machine to the disaster recovery machine through the graphical interface of the control machine, it is necessary to first input the working machine source path and the disaster recovery machine target path B, and select the storage volume V on the CDM storage server (step S1 has created the storage volume in the CDM storage machine), and then submit a synthetic backup task request to the working machine. The synthetic backup task request contains at least the control machine parameters such as the working machine source path, the disaster recovery machine target path and the selected storage volume; after receiving the synthetic backup task request, the working machine establishes a connection with the disaster recovery machine and transmits the control machine parameters to the disaster recovery machine. The disaster recovery machine determines the mounted target path B and storage volume V according to the control machine parameters, and mounts the storage volume V to the target path B of the disaster recovery machine through ISCSI or other network storage protocols, so that the disaster recovery machine can access the data on the CDM storage machine through ISCSI or other network storage protocols, and returns a response to the working machine after the mounting is completed.
[0044] Step S201, after mounting the storage volume to the target path, remotely obtain the data to be backed up on the working machine and back it up to the target path B of the disaster recovery machine.
[0045] In a specific embodiment of the present invention, when the disaster recovery machine mounts the storage volume V to the target path B, after the working machine receives the returned response, the working machine backs up the data under the source path in its synthetic backup task request, such as directory A, to the target path B directory of the disaster recovery machine. In the present invention, since the target path B is the mount point of the storage volume V, when the data of the working machine is backed up to the target path B, the data copy is actually backed up to the storage volume V.
[0046] Step S202, when the data backup is completed, the target path B of the disaster recovery machine is uninstalled, and the CDM storage machine is notified to take a snapshot of the data of the storage volume V, and the snapshot time is recorded in the recovery time point list.
[0047] Specifically, when all the data of the working machine is backed up, the mount point B directory (the B directory refers to the mount directory of the storage volume V) is unmounted on the disaster recovery machine. At the same time, the disaster recovery machine sends a snapshot creation request to the CDM storage machine to request the CDM storage machine to create a snapshot based on the storage volume V. The snapshot data is stored on the CDM storage machine, and the snapshot time is recorded in the recovery time point list. The recovery time point list recording the snapshot time is stored in the configuration directory of the disaster recovery machine. It should be noted here that the snapshot time is also recorded in the snapshot data of the CDM storage machine, and the snapshot time is recorded in the snapshot name. Therefore, the CDM storage machine can directly find the corresponding snapshot data according to the snapshot time.
[0048] In another embodiment of the present invention, step S2 further comprises:
[0049] Step S200a, treat the working machine and the disaster recovery machine as the same server, determine the target path B of the synthetic backup and the storage volume on the CDM storage machine, and mount the storage volume to the target path B.
[0050] In this embodiment, the working machine and the disaster recovery machine act as the same server (but are two backend services). Similarly, a synthetic backup task from the working machine to the disaster recovery machine is created through the graphical interface of the control machine. First, the working machine source path and the target path B of the synthetic backup task are input, and the storage volume V on the CDM storage server is selected. Then, the synthetic backup task request is submitted to the working machine. After receiving the synthetic backup task request, the working machine establishes a connection with the disaster recovery machine and transmits the control machine parameters to the disaster recovery machine. The disaster recovery machine determines the mount target path B and storage volume V based on the control machine parameters, and also mounts the storage volume V to the target path B through ISCSI or other network storage protocols.
[0051] Step S200b, after mounting the storage volume to the target path, directly copy the data to be backed up on the working machine to the target path.
[0052] In this embodiment, since the working machine and the disaster recovery machine are the same server, the data to be backed up on the working machine can be directly copied to the target path during backup.
[0053] Step S200c, when the backup is completed, the target path B is unmounted, and the CDM storage machine is notified to take a snapshot of the data of the storage volume V, and the snapshot time is recorded in the recovery time point list.
[0054] That is to say, when all the data in the source path of the working machine is backed up, the directory of mount point B (referring to the mount directory of storage volume V) is unmounted, and at the same time, the disaster recovery machine sends a snapshot creation request to the CDM storage machine to request the CDM storage machine to create a snapshot based on storage volume V. The snapshot data is stored on the CDM storage machine, and the snapshot time is recorded to the recovery time point list, and the recovery time point list recording the snapshot time is stored in the configuration directory of the disaster recovery machine. It can be seen that the advantage of the working machine and the disaster recovery machine being the same server in this embodiment is that it reduces the process of data transmission in the network during the backup and recovery process.
[0055] Step S3, when the second and subsequent backup cycles arrive, the storage volume V is mounted to the target path, and then an incremental backup of the data is performed, and the acquired incremental or differential data is written to the target path. After the incremental backup is completed, a snapshot of the storage volume V is taken, and the snapshot time is recorded in the recovery time point list, and the mount point is unmounted.
[0056] In a specific embodiment of the present invention, when the second and subsequent backup cycles arrive, incremental backup of data is performed, and the incremental or differential data is still written to the B directory of the target path. Specifically, the storage volume V is first mounted to the target path B directory of the disaster recovery machine, and then the incremental or differential data is written to the target path B directory. After each incremental backup is completed, the mount point B directory (the B directory refers to the mount directory of the storage volume V) is unmounted on the disaster recovery machine, and a snapshot creation request is sent to the CDM storage machine at the same time to request the CDM storage machine to create a snapshot based on the storage volume V. The snapshot data is stored on the CDM storage server, and the snapshot time is recorded to the recovery time point list. The recovery time point list recording the snapshot time is stored in the configuration directory of the disaster recovery machine. It should be noted here that the snapshot taken after each incremental or differential backup is equivalent to a full backup.
[0057] Figure 2 FIG. 1 is a flowchart of a method for restoring a snapshot-based rapid synthetic backup according to the present invention. Figure 2 As shown, the present invention provides a method for restoring a snapshot-based rapid synthetic backup, comprising the following steps:
[0058] Step S1, establishing a recovery task, obtaining a snapshot corresponding to the selected recovery time point according to the selected recovery time point, cloning the snapshot at the time point to obtain a clone volume.
[0059] Specifically, step S1 further includes:
[0060] Step S100: Create a recovery task on the graphical interface of the control machine, select the target path of the backup task as the recovery source path, and send a request for obtaining configuration information to the disaster recovery machine.
[0061] Specifically, when the aforementioned backup task is established, the configuration information related to the backup will be saved in the configuration file under the target path of the disaster recovery machine. The configuration information includes a list of snapshot recovery time points and the backup source path and target path. When establishing a recovery task through the graphical interface of the control machine, you first need to select the target path of the backup task as the recovery source path. After the control machine selects the recovery source path, it sends a message to obtain the configuration information to the disaster recovery machine.
[0062] Step S101: the disaster recovery machine reads configuration information from the configuration file under the recovery source path according to the request for obtaining configuration information, and returns the configuration information to the control machine.
[0063] Specifically, when the disaster recovery machine obtains the request for obtaining the configuration information, it obtains the selected recovery source path according to the request for obtaining the configuration information, reads the configuration information from the configuration file under the recovery source path, and returns a message to the control machine.
[0064] Step S102, after obtaining the configuration information, the control machine uses the backup source path in the configuration information as the default target path of the recovery task, and initiates a recovery task request to the disaster recovery machine according to the selected recovery time point.
[0065] Specifically, when the control machine obtains the configuration information returned by the disaster recovery machine, it will use the backup source path in the configuration information as the default target path of the recovery task, and display a list of recovery time points. Then, based on the list of recovery time points, it will select the time point to be restored and initiate a recovery task request to the disaster recovery machine. The recovery task request includes the selected recovery time point and the target path of the recovery task.
[0066] Step S103, the disaster recovery machine initiates a recovery task according to the recovery task request, generates a snapshot acquisition request to the CDM storage machine to obtain the snapshot corresponding to the selected recovery time point, clones the snapshot at the recovery time point, and obtains a clone volume.
[0067] In a specific embodiment of the present invention, the snapshot acquisition request generated by the disaster recovery machine at least includes a selected recovery time point, and there is a corresponding snapshot corresponding to the recovery time point in the CDM storage machine. When the CDM storage machine obtains the snapshot acquisition request, it obtains the snapshot corresponding to the selected recovery time point on the CDM storage machine, and clones the snapshot corresponding to the snapshot time point on the CDM storage machine to obtain a clone volume V1 of the original volume V of the snapshot.
[0068] Step S2, mount the cloned volume to the mount point of the disaster recovery machine through ISCSI or other network storage protocols, restore the data of the mount point, and unmount the mount point after the restoration is completed.
[0069] In one embodiment of the present invention, the clone volume V1 is mounted to the mount point of the disaster recovery machine (any mount point will do), such as the C directory, through ISCSI or other network storage protocols, that is, the C directory is the mount point of the restored snapshot, and then the data under the mount point C directory is restored (such as remote transmission, the working machine and the disaster recovery machine are not the same server) to the working machine or other recovery target machine, such as the A directory of the working machine, and when the recovery is completed, the mount point C directory is unmounted.
[0070] In another embodiment of the present invention, if the working machine and the disaster recovery machine are the same server, the clone volume V1 is mounted to the mount point of the working machine, such as the D directory, through ISCSI or other network storage protocols, and then the data under the mount point D directory is directly copied to the working machine (of course, it can also be remotely transmitted to other recovery target machines), that is, the A directory. When the recovery is completed, the mount point D directory is unmounted.
[0071] Example
[0072] In this embodiment, if Figure 3 As shown, the CDM storage machine is used to store data backup copies. First, a storage pool is created in the CDM storage machine through the storage management service, a device volume V is created based on the storage pool, and the storage volume V is mounted to the target path of the disaster recovery machine through the ISCSI protocol. The synthetic backup data copy is stored on the storage volume V.
[0073] When establishing a synthetic backup task from the working machine to the disaster recovery machine (created through the graphical interface of the control machine), first select the working machine source path and the mount target path B of the storage volume V on the disaster recovery machine, and select the storage volume V on the CDM storage server, then start the synthetic backup task, submit the synthetic backup task request to the working machine, after receiving the synthetic backup task request, the working machine establishes a connection with the disaster recovery machine, and transmits the control machine parameters to the disaster recovery machine, the disaster recovery machine determines the mount target path B and storage volume V according to the control machine parameters, and mounts the storage volume V to the disaster recovery machine through ISCSI or other network storage protocols The target path is B, so that the disaster recovery machine can access the data on the CDM storage machine through ISCSI or other network storage protocols, and return a response to the working machine after the mounting is completed; then the working machine backs up the data source path, such as directory A, to the disaster recovery machine target path, such as directory B. Since directory B is the mount point of storage volume V, the data copy is actually backed up to storage volume V; when all data are backed up, the mount point directory B is unmounted, and then the CDM storage machine is notified to create a snapshot based on storage volume V. The snapshot record is the full backup of directory A on the working machine, and the snapshot information is recorded in the configuration directory of the disaster recovery machine.
[0074] In order to reduce the network transmission process of data from the disaster recovery machine to the working machine between different servers during recovery, the present invention also provides a LAN-Free synthetic backup method, that is, when creating a backup task, such as Figure 4 As shown in the figure, the working machine and the disaster recovery machine select the same server node, and the mount point of the disaster recovery machine is the B directory on the working machine. The data is backed up from the A directory of the working machine to the B directory of the working machine, and is actually backed up to the storage volume V of the CDM storage machine. After the backup is completed, the B directory of the working machine is unmounted, and a snapshot of the storage volume V is taken to obtain a full backup.
[0075] After the subsequent scheduled incremental backup tasks and differential backup tasks are completed, the incremental and differential data are written to the B directory, and a snapshot is taken based on the original volume V of the target end mount path B directory. Each snapshot is a full backup.
[0076] Since there is only one copy of the data after synthetic backup and there is no duplicate data, it will not take up extra disk space.
[0077] Figure 5 This is a flowchart of the recovery task in this embodiment. Figure 5 As shown, after creating the recovery task corresponding to the backup task, read the snapshot time point recorded by the synthetic backup task in the data directory of the disaster recovery machine, select the snapshot at the specified time point, and start the recovery of the full data.
[0078] First, clone the snapshot corresponding to the selected recovery time point on the CDM storage machine to obtain a clone volume of the snapshot original volume V. Then mount the clone volume to the disaster recovery machine C directory through the ISCSI protocol or other network storage protocols, and restore the data in the C directory from the disaster recovery machine to the working machine or other recovery target machine. After the recovery is complete, unmount the mount point of the snapshot clone volume and delete the clone volume.
[0079] For the recovery of LAN FREE synthetic backup method, such as Figure 6 As shown, if the working machine and the disaster recovery machine are the same server, the CDM storage machine clones the selected snapshot to obtain the clone volume of the original volume V, mounts the clone volume to the working machine D directory (target path) through the ISCSI protocol, and restores the data in the D directory from the D directory to the working machine or other recovery target machine. After the recovery is complete, unmount the mount point of the snapshot clone volume and then delete the clone volume.
[0080] Figure 7 This is the synthetic backup and recovery data processing process in this embodiment. Figure 7As shown in the figure, during the backup process, data is written from the working machine A to the disaster recovery machine B path. During the process of data changes on the A path, the data on the disaster recovery machine B path is always kept consistent with the A path. At the time point when scheduled backup is required, a snapshot backup of the data under the B path is performed, which is equivalent to a full backup. When there are multiple time point backups, multiple full backups are generated, and the snapshot backup method only takes up very little disk space. During the recovery process, the data copy is restored by cloning and mounting the snapshot data, and there is no need to use extra disk space for copy data backup, which saves disk space usage during recovery and saves the time for merging incremental and differential data.
[0081] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Any person skilled in the art may modify and alter the above embodiments without violating the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be as set forth in the claims.
Claims
1. A snapshot-based rapid synthetic backup method, comprising the following steps: Step S1, creating a storage volume in the CDM storage machine; Step S2, establishing a synthetic backup task from the working machine to the disaster recovery machine, determining the storage volume and the target path of the synthetic backup, and mounting the storage volume to the target path; When performing the first backup, perform a full backup of the data. After mounting the storage volume to the target path, back up the data to be backed up on the working machine to the target path. After the backup is completed, take a snapshot of the storage volume and record the snapshot time to the recovery time point list. Step S2 further comprises: Step S200, determining the target path of the disaster recovery machine to be backed up by the synthetic backup task and the storage volume on the CDM storage machine, and mounting the storage volume to the target path, including: The working machine and the disaster recovery machine are not the same server. When creating a synthetic backup task from the working machine to the disaster recovery machine through the graphical interface of the control machine, you first need to enter the working machine source path and the disaster recovery machine target path, and select the storage volume on the CDM storage machine, and then submit a synthetic backup task request to the working machine. The control machine parameters in the synthetic backup task request at least include the working machine source path, the disaster recovery machine target path and the selected storage volume; after receiving the synthetic backup task request, the working machine establishes a connection with the disaster recovery machine and transmits the control machine parameters to the disaster recovery machine. The disaster recovery machine determines the mounted target path and storage volume according to the control machine parameters, mounts the storage volume to the target path of the disaster recovery machine through ISCSI or other network storage protocols, and returns a response to the working machine after the mounting is completed; Step S201, after the disaster recovery machine mounts the storage volume to the target path, the data to be backed up of the working machine is obtained and backed up to the target path; Step S202: When all the data on the working machine is backed up, the target path of the disaster recovery machine is unmounted, and the disaster recovery machine sends a snapshot creation request to the CDM storage machine to request the CDM storage machine to create a snapshot based on the storage volume. The snapshot data is stored on the CDM storage machine, and the snapshot time is recorded in the recovery time point list. Step S3, when the second and subsequent backup cycles arrive, perform incremental backup of the data, mount the storage volume to the target path directory of the disaster recovery machine, and then write the incremental or differential data to the target path directory. After each incremental backup is completed, unmount the mount directory of the mount point storage volume on the disaster recovery machine, and send a snapshot creation request to the CDM storage machine to request the CDM storage machine to create a snapshot based on the storage volume. The snapshot data is stored on the CDM storage server, and the snapshot time is recorded to the recovery time point list.
2. The method for rapid synthetic backup based on snapshot according to claim 1, characterized in that: In step S1, a storage pool is created in a CDM storage machine through a storage management service, and a storage volume is created based on the storage pool.
3. The method for rapid synthetic backup based on snapshot according to claim 2, characterized in that: The CDM storage machine is deployed on a disaster recovery machine or on a separate server.
4. The method for rapid synthetic backup based on snapshot according to claim 1, characterized in that: Snapshot data is stored on the CDM storage machine, and the recovery time point list that records the snapshot time is stored in the configuration directory of the disaster recovery machine.
5. The method for rapid synthetic backup based on snapshot according to claim 1, characterized in that: In step S200, if the working machine and the disaster recovery machine are the same server, the data to be backed up of the working machine is directly copied to the target path.
6. A method for restoring a snapshot-based rapid synthetic backup as claimed in claim 1, comprising the following steps: Step S1, establishing a recovery task, obtaining a snapshot corresponding to the selected recovery time point according to the selected recovery time point, cloning the snapshot corresponding to the time point to obtain a clone volume; Step S1 further includes: Step S100, establishing a recovery task on the control machine, selecting the target path of the backup task as the recovery source path, and sending a request for obtaining configuration information to the disaster recovery machine; Step S101, the disaster recovery machine reads configuration information from the configuration file under the recovery source path according to the request for obtaining configuration information, and returns it to the control machine; Step S102, after obtaining the configuration information, the control machine uses the backup source path in the configuration information as the target path of the recovery task, and initiates a recovery task request to the disaster recovery machine according to the selected recovery time point; Step S103, the disaster recovery machine initiates a recovery task according to the recovery task request, generates a snapshot acquisition request to the CDM storage machine to acquire a snapshot corresponding to the selected recovery time point, clones the snapshot at the recovery time point, and obtains a clone volume; Step S2, mounting the clone volume to the mount point of the disaster recovery machine, restoring the data at the mount point, and unmounting the mount point after the restoration is complete.
7. The recovery method according to claim 6, characterized in that: In step S2, the clone volume is mounted to the mount point of the disaster recovery machine via ISCSI or other network storage protocols.
Citation Information
Patent Citations
Database information backup method and database information recovery method
CN110851302A