WO2014101409A1 - Data backup method and related device and system - Google Patents

Data backup method and related device and system Download PDF

Info

Publication number
WO2014101409A1
WO2014101409A1 PCT/CN2013/080459 CN2013080459W WO2014101409A1 WO 2014101409 A1 WO2014101409 A1 WO 2014101409A1 CN 2013080459 W CN2013080459 W CN 2013080459W WO 2014101409 A1 WO2014101409 A1 WO 2014101409A1
Authority
WO
WIPO (PCT)
Prior art keywords
backup
snapshot
storage device
data
server
Prior art date
Application number
PCT/CN2013/080459
Other languages
French (fr)
Chinese (zh)
Inventor
邹锋哨
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014101409A1 publication Critical patent/WO2014101409A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/84Using snapshots, i.e. a logical point-in-time copy of the data

Definitions

  • the present application relates to the field of data backup technologies, and in particular, to a data backup method and related devices and systems.
  • BACKGROUND OF THE INVENTION At present, data security issues are particularly important due to the proliferation of data volumes and the huge storage performance of databases and the rich application functions of devices. Therefore, various backup technologies and various backup technologies derive backup methods along with people's data. The level of awareness of the importance of protection continues to grow and develop rapidly.
  • Data backup technology refers to the process of copying all or part of the data set from the hard disk or array of the application host to other storage media in order to prevent data loss caused by operating errors or system failures.
  • the traditional host-based backup usually runs the disk mirroring function software in the application server.
  • the write operation of the logical unit number in the primary storage device is sent to the primary storage device, it is distributed to the backup storage device to back up the data.
  • Back up the storage device; or run the client backup software in the application server record the write operation to the primary storage device, and then periodically send the recorded write operation to the backup server, so that the backup server sends the recorded write operation to the backup storage. device.
  • the embodiments of the present application provide a data backup method and related device, which solves the problem that the existing backup method affects other application performance of the application server while implementing backup based on the application server.
  • the embodiment of the present application provides a data backup method, including:
  • the primary storage device generates a snapshot of the source volume;
  • the primary storage device sends a snapshot identifier of the snapshot to the backup server;
  • the primary storage device receives signaling sent by the backup server to query a valid data bitmap of the snapshot;
  • the primary storage device queries the valid data bitmap of the snapshot according to the signaling of querying the valid data bitmap of the snapshot;
  • the primary storage device sends a valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device;
  • the primary storage device receives signaling sent by the backup server to query valid data corresponding to the valid data bitmap of the snapshot
  • the primary storage device queries the valid data according to the signaling of querying the valid data corresponding to the valid data bitmap of the snapshot;
  • the primary storage device sends the valid data to the backup server to cause the backup server to back up the valid data to the backup storage device.
  • the method before the primary storage device generates a snapshot of the source volume, the method further includes:
  • the primary storage device creates a source volume
  • the primary storage device maps the source volume to an application server, so that the application server mounts the source volume to store data of the application server to the source volume.
  • the method further includes:
  • the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
  • the method further includes:
  • the method further includes: Receiving, by the primary storage device, a third indication sent by the backup server, where the third indication is used to instruct the primary storage device to delete the snapshot of the source volume;
  • the primary storage device deletes the snapshot of the source volume.
  • the embodiment of the present application provides a data backup method, including:
  • the backup server sends a backup indication to the primary storage device to instruct the primary storage device to generate a snapshot of the source volume, and the primary storage device sends the snapshot identifier of the snapshot to the backup server;
  • the backup server sends a signaling for querying the valid data bitmap of the snapshot to the primary storage device, so that the primary storage device queries the snapshot according to the signaling of querying the valid data bitmap of the snapshot.
  • Valid data bitmap
  • the backup server receives a valid data bitmap of the snapshot sent by the primary storage device; the backup server divides the valid data bitmap of the snapshot to a backup storage device;
  • the backup server sends, according to the feedback information of the valid data bitmap of the snapshot that is backed up, the signaling for querying the valid data corresponding to the valid data bitmap of the snapshot to the primary storage device, so that The primary storage device queries the valid data according to the signaling that queries the valid data corresponding to the valid data bitmap of the snapshot;
  • the backup server receives the valid data sent by the primary storage device
  • the backup server divides the valid data into the backup storage device
  • the backup server receives feedback information of the valid data that has been backed up by the backup storage device and backed up the snapshot.
  • the method further includes: The backup server sends a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
  • the backup server mounts the snapshot according to a mapping relationship between the snapshot and the backup server.
  • the method further includes:
  • the backup server sends a second indication to the primary storage device, so that the primary storage device removes the mapping relationship between the backup server and the snapshot.
  • the method further includes:
  • the backup server sends a third indication to the primary storage device to cause the primary storage device to delete the snapshot of the source volume.
  • the embodiment of the present application provides a data backup method, including:
  • the primary storage device receives the backup indication that the backup server sends the interval according to the preset time interval, and the backup indication is used to instruct the primary storage device to generate a snapshot, where the preset time is the current backup data and the current backup data.
  • the primary storage device generates a snapshot according to the backup indication
  • the primary storage device queries the current backup data according to the signaling of the difference data bitmap between the snapshot when the current backup data is queried and the previous backup data adjacent to the current backup data.
  • the primary storage device queries the difference data according to the signal that queries the difference data corresponding to the difference data bitmap.
  • the primary storage device sends the difference data to the backup server to cause the backup server to back up the difference data to the backup storage device.
  • the method further includes: before the snapshot of the backup data and the signaling of the difference data bitmap between the snapshots of the previous backup data adjacent to the current backup data, the method further includes:
  • the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
  • the method further includes:
  • the primary storage device releases the mapping relationship between the backup server and the snapshot.
  • the method further includes:
  • the primary storage device deletes a snapshot of the previous backup data adjacent to the current backup data.
  • the embodiment of the present application provides a data backup method, including:
  • the backup server sends the backup indication to the primary storage device intermittently according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, and the primary storage device generates a snapshot and sends the snapshot.
  • the snapshot of the snapshot is identified to the backup server;
  • the preset time is a time interval between the backup data and the previous backup data adjacent to the current backup data;
  • the backup server receives the snapshot identifier of the snapshot sent by the primary storage device; the backup server sends the previous backup data adjacent to the current backup data when the snapshot is queried for the current backup data. Signaling of the difference data bitmap between the snapshots to the primary storage device, so that the primary storage device queries the snapshot of the current backup data and the previous backup adjacent to the current backup data The difference data bitmap between snapshots at the time of data;
  • the backup server backs up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to the backup storage device;
  • the backup server sends a signaling for querying the difference data corresponding to the difference data bitmap to the primary storage device, so that the primary storage device queries the difference data corresponding to the difference data bitmap; the backup server receives The difference data sent by the primary storage device;
  • the backup server divides the difference data into the backup storage device
  • the backup server receives the feedback information sent by the backup storage device that has backed up the difference data.
  • the method further includes: before the signaling of the difference data bitmap between the snapshots of the previous backup data and the current backup data to the primary storage device, the method further includes:
  • the backup server sends a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
  • the backup server mounts the snapshot according to the mapping relationship.
  • the method further includes: The backup server sends a second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot according to the second indication.
  • the method further includes:
  • the backup server sends a third indication to the primary storage device, so that the primary storage device deletes a snapshot of the previous backup data adjacent to the current backup data according to the third indication.
  • the embodiment of the present application provides a storage device, including:
  • a receiving unit configured to receive a backup indication sent by the backup server, where the backup indication is used to instruct the storage device to generate a snapshot of the source volume;
  • a snapshot unit configured to generate a snapshot of the source volume
  • a sending unit configured to send a snapshot identifier of the snapshot to the backup server
  • the receiving unit is further configured to receive signaling sent by the backup server to query a valid data bitmap of the snapshot;
  • a processing unit configured to query, according to the signaling of the valid data bitmap of the snapshot, the valid data bitmap of the snapshot;
  • the sending unit is further configured to send a valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device;
  • the receiving unit is further configured to receive, by the backup server, signaling for querying valid data corresponding to the valid data bitmap of the snapshot;
  • the processing unit is further configured to query the valid data according to the signaling of the valid data corresponding to the valid data bitmap of the snapshot.
  • the sending unit is further configured to send the valid data to the backup server, so that the backup server backs up the valid data to the backup storage device.
  • the storage device further includes: a creating unit, configured to create a source volume;
  • mapping unit configured to map the source volume to an application server, so that the application server mounts the source volume to store data of the application server to the source volume.
  • the receiving unit is further configured to receive a first indication sent by the backup server, where the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server; And the unit is further configured to establish, according to the first indication, a mapping relationship between the snapshot and the backup server, so that the backup server mounts the snapshot.
  • the receiving unit is further configured to receive a second indication sent by the backup server, where the second indication is used to indicate The primary storage device releases the mapping relationship between the backup server and the snapshot; the processing unit is further configured to release a mapping relationship between the backup server and the snapshot.
  • the receiving unit is further configured to receive a third indication sent by the backup server, where the third indication is used to instruct the primary storage device to delete the snapshot of the source volume;
  • the processing unit is further configured to delete the snapshot of the source volume.
  • an embodiment of the present application provides a server, including:
  • a sending unit configured to send a backup indication to the primary storage device, to indicate that the primary storage device generates a snapshot of the source volume, and send, by the primary storage device, a snapshot identifier of the snapshot to the backup server; Receiving a snapshot identifier sent by the primary storage device;
  • the sending unit is further configured to send signaling for querying the valid data bitmap of the snapshot to the primary storage device, so that the primary storage device performs signaling according to the querying the valid data bitmap of the snapshot. Querying a valid data bitmap of the snapshot;
  • the receiving unit is further configured to receive a valid data bitmap of the snapshot sent by the primary storage device;
  • a backup unit configured to divide the valid data bitmap of the snapshot into a backup storage device
  • the receiving unit is further configured to receive, by the backup storage device, feedback information of a valid data bitmap of the snapshot that has been backed up;
  • the sending unit is further configured to send, according to the feedback information of the valid data bitmap of the snapshot that has been backed up, the signaling for querying the valid data corresponding to the valid data bitmap of the snapshot to the primary storage.
  • the device to enable the primary storage device to query the valid data according to the signaling that queries the valid data corresponding to the valid data bitmap of the snapshot;
  • the receiving unit is further configured to receive the valid data that is sent by the primary storage device; the backup unit is further configured to back up the valid data to the backup storage device;
  • the receiving unit is further configured to receive feedback information of the valid data that is backed up by the backup storage device and that is backed up by the snapshot.
  • the sending unit is further configured to send the first indication to the primary storage device according to the snapshot identifier, so that the primary storage device establishes a mapping between the snapshot and the backup server according to the first indication. Relationship
  • the server further includes: a processing unit, configured to mount the snapshot according to a mapping relationship between the snapshot and the server.
  • the sending unit is further configured to send a second indication to the primary storage device, so that the primary storage device is released a mapping relationship between the backup server and the snapshot.
  • the sending unit is further configured to send a third indication to the primary storage device, so that the primary storage device deletes the snapshot of the source volume.
  • a storage device including:
  • a receiving unit configured to receive a backup indication that is sent by the backup server according to a preset time interval, where the backup indication is used to instruct the storage device to generate a snapshot, where the preset time is the current backup data and the current backup data. The time interval of the previous backup data of the neighbor;
  • a snapshot unit configured to generate a snapshot according to the backup indication
  • a sending unit configured to send a snapshot identifier of the snapshot to the backup server
  • the receiving unit is further configured to receive a letter of a difference data bitmap between snapshots when the snapshot of the current backup data sent by the backup server and the previous backup data adjacent to the backup data is sent by the backup server Order
  • a processing unit configured to perform, according to the signaling query of the difference data bitmap between the snapshot when the current backup data is in the query and the previous backup data adjacent to the current backup data, the current query a difference data bitmap between a snapshot of the data and a snapshot of the previous backup data adjacent to the current backup data;
  • the sending unit is further configured to send the difference data bitmap between the snapshots of the current backup data and the previous backup data adjacent to the current backup data to the backup server, to And causing the backup server to back up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to the backup storage device;
  • the receiving unit is further configured to receive signaling sent by the backup server to query difference data corresponding to the difference data bitmap.
  • the processing unit is further configured to query the difference data according to the signaling of querying the difference data corresponding to the difference data bitmap.
  • the sending unit is further configured to send the difference data to the backup server, so that the backup server backs up the difference data to the backup storage device.
  • the receiving unit is further configured to receive a first indication sent by the backup server, where the first indication is used to instruct the primary storage device to establish the a mapping relationship between the snapshot and the backup server;
  • the processing unit is further configured to establish, according to the first indication, a mapping relationship between the snapshot and the backup server, so that the backup server mounts the snapshot.
  • the receiving unit is further configured to receive a second indication sent by the backup server, where the second indication is used to indicate The primary storage device releases the mapping relationship between the backup server and the snapshot; the processing unit is further configured to release a mapping relationship between the backup server and the snapshot.
  • the receiving unit is further configured to receive a third indication sent by the backup server, where the third indication is used to indicate to delete a snapshot when the previous backup data is adjacent to the current backup data;
  • the processing unit is further configured to delete a snapshot of the previous backup data adjacent to the current backup data.
  • an embodiment of the present application provides a server, including: a sending unit, configured to send a backup indication to the primary storage device intermittently according to a preset time, so that the primary storage device generates a snapshot according to the backup indication, generates a snapshot by the primary storage device, and sends the snapshot
  • the snapshot is identified to the backup server;
  • the preset time is a time interval between the backup data and the previous backup data adjacent to the backup data;
  • a receiving unit configured to receive a snapshot identifier of the snapshot sent by the primary storage device, where the sending unit is further configured to send the snapshot when the current backup data is queried adjacent to the current backup data
  • the signaling of the difference data bitmap between the snapshots of the previous backup data to the primary storage device, so that the primary storage device queries the snapshot of the current backup data and the current backup data The difference data bitmap between the snapshots of the neighbor when the data was previously backed up;
  • the receiving unit is further configured to receive the difference data bitmap between the snapshot when the current backup data is current and the snapshot when the previous backup data is adjacent to the current backup data;
  • a backup unit configured to back up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to the backup storage device;
  • the receiving unit is further configured to receive feedback information that is sent by the backup storage device and that is backed up by the difference data bitmap;
  • the sending unit is further configured to send, to the primary storage device, the signaling that is used to query the difference data corresponding to the difference data bitmap, so that the primary storage device queries the difference data corresponding to the difference data bitmap.
  • the receiving unit is further configured to receive the difference data sent by the primary storage device;
  • the backup unit is further configured to back up the difference data to the backup storage device;
  • the receiving unit is further configured to receive feedback information that is sent by the backup storage device and that is backed up by the difference data.
  • the sending unit is further configured to send a first indication to the primary storage device according to the snapshot identifier of the snapshot, so that the primary storage device establishes the snapshot between the snapshot and the backup server according to the first indication.
  • Mapping relationship
  • the server further includes: a processing unit, configured to mount the snapshot according to the mapping relationship.
  • the sending unit is further configured to send a second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot according to the second indication.
  • the sending unit is further configured to send a third indication to the primary storage device, so that the primary storage device deletes a snapshot of a previous backup data adjacent to the current backup data according to the third indication.
  • the embodiment of the present application provides a data backup system, including the fifth aspect or the primary storage device of any one of the first possible implementation manner to the fourth possible implementation manner of the fifth aspect, And the backup server including the sixth aspect of the claim or the first possible implementation to the third possible implementation of the sixth aspect; the data backup system further includes:
  • a backup storage device configured to store a valid data bitmap of a snapshot of the source volume sent by the backup server; the backup storage device is further configured to send feedback information of the valid data bitmap of the snapshot that has been backed up to the backup server;
  • the backup storage device is further configured to store valid data corresponding to the valid data bitmap sent by the backup server;
  • the backup storage device is further configured to send feedback information of valid data of the snapshot to the backup server.
  • the embodiment of the present application provides a data backup system, including the seventh aspect or the primary storage device of any one of the first possible implementation manner to the third possible implementation manner of the seventh aspect, And a backup server provided by the eighth aspect or combined with the first possible implementation manner of the eighth aspect to the third possible implementation manner;
  • the data backup system further includes: a backup storage device, configured to: a difference data bitmap between the snapshot when the backup data is stored and the snapshot when the previous backup data is adjacent to the current backup data;
  • the backup storage device is further configured to send feedback information of the difference data bitmap that has been backed up to the backup server;
  • the backup storage device is further configured to store the difference data corresponding to the difference data bitmap to the backup storage device;
  • the backup storage device is further configured to send feedback information that has stored the difference data to the backup server.
  • the primary storage device After receiving the backup instruction of the triggering backup policy sent by the backup server, the primary storage device processes the snapshot data to send the backup data to the backup server and the backup storage device.
  • the application server does not participate in the backup process.
  • the application server runs the client backup software or the disk mirroring function software to back up the data, which affects the service performance of the application server itself, and realizes the function of efficiently backing up the data while the application server is running normally, that is, the backup data function and the application server running the service.
  • the software does not interfere with each other.
  • the embodiment of the present application sends a valid data bitmap of the snapshot of the source volume to the backup server by using the primary storage device, so that the backup server sends a valid data bitmap or further sends valid data corresponding to the valid data bitmap to the backup storage device, so that the backup storage device is enabled.
  • the backup storage device can back up valid data, so that the backup data cannot be backed up without backing up invalid data.
  • the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data is sent to the backup server by the primary storage device, so that the backup server sends the backup server twice.
  • the difference data bitmap of the snapshot when the data is backed up or the difference data corresponding to the difference data bitmap is sent to the backup storage device, so that the backup storage device only backs up the differentiated data, which saves the storage space of the backup storage device and further improves Backup efficiency.
  • the full backup or incremental backup makes the backup scheme more selective and has no impact on the performance of the application server, and the valid data, valid bitmap or difference data difference data bitmap is stored in the file through the backup server.
  • Using a different model than the primary storage, which supports heterogeneous storage enhances the general applicability of each device in the backup system.
  • FIG. 1 is a flowchart of a data backup method according to Embodiment 1 of the present application.
  • FIG. 2 is a flowchart of a data backup method according to Embodiment 2 of the present application
  • 3a is a schematic diagram of a shared storage architecture provided by an embodiment of the present application
  • FIG. 3b is a full data bitmap of the full backup provided by the embodiment of the present application.
  • FIG. 3c is a schematic diagram of data bitmaps corresponding to snapshots obtained during the first backup provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of a difference data bitmap obtained when the first backup is provided in the embodiment of the present application
  • FIG. 3 e is a schematic diagram of a difference data bitmap obtained when the second backup is provided in the embodiment of the present application
  • FIG. 3g is a schematic diagram of a full-size data bitmap obtained when the third backup is restored according to the embodiment of the present application
  • FIG. 5 is a flowchart of a data backup method according to Embodiment 4 of the present application.
  • FIG. 6 is a schematic structural diagram of a storage device according to Embodiment 5 of the present application.
  • FIG. 7 is a schematic structural diagram of another storage device provided in Embodiment 5 of the present application.
  • FIG. 8 is a schematic structural diagram of a server provided in Embodiment 6 of the present application.
  • FIG. 9 is a schematic structural diagram of another server provided in Embodiment 6 of the present application.
  • FIG. 10 is a schematic structural diagram of a storage device according to Embodiment 7 of the present application.
  • FIG. 11 is a schematic structural diagram of another storage device provided in Embodiment 7 of the present application.
  • FIG. 12 is a schematic structural diagram of a server according to Embodiment 8 of the present application.
  • FIG. 13 is a schematic structural diagram of another server provided in Embodiment 8 of the present application.
  • FIG. 14 is a schematic structural diagram of a data backup system according to Embodiment 9 of the present application
  • FIG. 15 is a schematic structural diagram of a data backup system according to Embodiment 10 of the present application.
  • the first embodiment of the present application provides a data backup method, which is mainly based on backup of a data block.
  • the data of the application server is saved on the underlying primary storage device.
  • the data stored in the underlying primary storage device is usually backed up to avoid loss when the application fails. The data cannot be restored to normal.
  • data backup is performed by using a backup server and a backup storage device.
  • FIG. 1 is a flowchart of a data backup method according to Embodiment 1 of the present application.
  • the data backup method provided in Embodiment 1 is described in the perspective of a primary storage device in the case of full backup. of.
  • the data backup method provided in this embodiment includes:
  • the primary storage device receives the backup indication sent by the backup server.
  • the backup indication is used to instruct the primary storage device to generate a snapshot of the source volume.
  • the primary storage device generates a snapshot of the source volume.
  • a snapshot is generated for the source volume for full backup, that is, the snapshot of the source volume can be used as a final backup to achieve full and rapid recovery of the application system.
  • the Storage Networking Industry Association defines snapshots as: A fully available copy of a specified data set that includes an image of the corresponding data at a point in time (the point in time when the copy begins).
  • a snapshot can be a copy of the data it represents, or it can be a replica of the data.
  • the main role of the snapshot is mainly to enable online data recovery, when the snapshot produces a state at a point in time.
  • Another function of the snapshot is to provide another data access channel for the storage user. When the original data is processed online, the user can access the snapshot data, and can also use the snapshot for testing.
  • the primary storage device sends the snapshot identifier of the snapshot to the backup server, so that the backup server sends the first indication to the primary storage device.
  • the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server.
  • the primary storage device receives the first indication.
  • the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
  • the primary storage device receives signaling of a valid data bitmap of the query snapshot sent by the backup server.
  • the snapshot may not be mounted, and the primary storage device directly receives the signaling of the valid data bitmap of the query snapshot sent by the backup server, and queries the valid data bitmap.
  • step S114 and step S115 may not be performed.
  • step S116 the primary storage device is instructed to query the valid data bitmap of the snapshot of the source volume for full backup.
  • the full backup policy is to back up the snapshot of the source volume, specifically to obtain valid data of the snapshot of the source volume.
  • the valid data corresponding to the bitmap or the valid data bitmap so as to further implement the full backup strategy of the valid data corresponding to the valid data bitmap of the snapshot of the source volume.
  • the primary storage device queries the valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot.
  • the primary storage device sends a valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device.
  • the primary storage device receives signaling of valid data corresponding to the valid data bitmap of the query snapshot sent by the backup server.
  • the primary storage device queries the valid data according to the signaling of the valid data corresponding to the valid data bitmap of the query snapshot.
  • the primary storage device sends valid data to the backup server, so that the backup server backs up the valid data to the backup storage device.
  • the backup server further backs up the valid data to the backup storage device, and the multi-level data backup makes the backup performance perfect. Even if the application server and the backup server are faulty, the valid data can be extracted from the backup storage device, and the failure of the application server can be restored. The quality of the backup.
  • the valid data corresponding to the valid data bitmap and the valid data bitmap is obtained by the backup server, and the backup server can restore the valid data in the application server according to the valid data in the valid data bitmap. It is not necessary to back up invalid data, which reduces the amount of data backed up and improves the backup rate.
  • the data storage method After receiving the backup instruction of the triggering backup policy sent by the backup server, the data storage method is processed by the snapshot technology to query and send the backed up data to the backup server and the backup storage device, and the data backup method is not applied in the backup process.
  • the participation of the server avoids the application of the client backup software or the disk mirroring function software to back up the data, which affects the application server's own business performance, realizes the normal operation of the application server, and efficiently backs up the data, that is, the backup data.
  • the function and application server running business software do not interfere with each other.
  • the backup server sends a valid data bitmap to the backup storage device, so that the backup storage device can back up the valid bitmap, so that the backup system can further obtain valid data, and thus the backup data cannot be backed up without backing up the invalid data.
  • the method further includes the following steps:
  • the primary storage device creates the source volume.
  • the primary storage device maps the source volume to the application server, so that the application server mounts the source volume to store the data of the application server to the source volume.
  • the communication connection relationship between the primary storage device and the application server is established, and the application server obtains the identifier of the source volume of the primary storage device, so as to mount the source volume to the application server, and store the data write operation of the application server. . That is, the data stored by the application server when the operating system is running.
  • the data backup method provided in this embodiment establishes a communication connection relationship between the primary storage device and the application server, sends the identifier of the source volume to the application server, and mounts the source volume through the application server to store the data of the application server.
  • the data backup method provided in this embodiment further includes the following steps:
  • the primary storage device receives a second indication sent by the backup server.
  • the second indication is used to instruct the primary storage device to release the mapping relationship between the server and the snapshot.
  • the primary storage device releases the mapping relationship between the backup server and the snapshot.
  • the data backup method provided in this embodiment further includes the following steps: a.
  • the primary storage device receives a third indication sent by the backup server.
  • the third indication is used to instruct the primary storage device to delete the snapshot of the source volume.
  • the primary storage device deletes the snapshot of the source volume.
  • FIG. 2 is a flowchart of a data backup method according to Embodiment 2 of the present application.
  • the data backup method provided in the second embodiment is described in the perspective of the backup server in the case of full backup.
  • the data backup method provided in this embodiment may include the following steps:
  • the backup server sends a backup indication to the primary storage device to instruct the primary storage device to generate a snapshot of the source volume, and the primary storage device sends the snapshot identifier of the snapshot to the backup server.
  • the backup indication is used to instruct the primary storage device to generate a snapshot of the source volume, to trigger the backup system to start a full backup, and execute a full backup policy. And sending, by the primary storage device, the identity of the source volume to The application server, so that the application server mounts the source volume to the application server to store the data of the application server.
  • a communication connection relationship is established between the primary storage device and the application server, and the data write operation of the application server is stored, that is, the data stored by the application server when the operating system is running is stored.
  • the backup server receives the snapshot identifier sent by the primary storage device.
  • the backup server sends a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
  • the backup server mounts the snapshot according to the mapping relationship between the snapshot and the backup server. Among them, the backup server can use the data in the snapshot to recover the data in the application server.
  • the backup server sends the signaling of the valid data bitmap of the query snapshot to the primary storage device, so that the primary storage device queries the valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot.
  • step S213 and step S214 may be omitted, that is, the backup server does not need to mount the snapshot, and the signaling of querying the valid data bitmap of the snapshot may be sent to the primary according to the received snapshot identifier.
  • the storage device causes the primary storage device to query the valid data bitmap of the snapshot.
  • the valid data bitmap of the snapshot of the source volume is used for full backup.
  • the full backup strategy is to back up the snapshot of the source volume. Specifically, the valid data bitmap and the valid data bitmap of the snapshot of the source volume are obtained. Corresponding valid data, so as to further implement a full backup strategy of valid data corresponding to the valid data bitmap of the snapshot of the source volume.
  • the backup server receives a valid data bitmap of the snapshot sent by the primary storage device.
  • the backup server receives feedback information of a valid data bitmap of the backup snapshot sent by the backup storage device.
  • the backup server sends the signaling of the valid data corresponding to the valid data bitmap of the snapshot to the primary storage device according to the feedback information of the valid data bitmap of the backup snapshot, so that the primary storage device corresponds to the valid data bitmap of the query snapshot.
  • the valid data is signaled to query valid data.
  • the effective bitmap is further processed to further obtain valid data corresponding to the valid data bitmap.
  • the data in the source volume of the primary storage device can be restored according to the valid data, thereby restoring the application server to normal operation.
  • Further backup of valid data to the backup storage device through the backup server multi-level data backup, making the backup performance perfect, even the application server and backup service
  • the server has a fault, and it can also extract valid data from the backup storage device, recover the failure of the application server, and improve the backup quality.
  • the backup server receives valid data sent by the primary storage device.
  • the backup server backs up valid data to the backup storage device.
  • the backup server receives feedback information of valid data of the backup snapshot sent by the backup storage device.
  • the backup server sends a backup indication that triggers the backup policy to the primary storage device, and the primary storage device processes the snapshot data to send the backup data to the backup server and the backup storage device.
  • the participation of the server avoids the application of the client backup software or the disk mirroring function software to back up the data, which affects the application server's own business performance, realizes the normal operation of the application server, and efficiently backs up the data, that is, the backup data.
  • the function and application server running business software do not interfere with each other.
  • the primary storage device After the backup server mounts the snapshot of the source volume, the primary storage device queries the valid data bitmap of the snapshot, and sends a valid data bitmap of the snapshot to the backup server, and then the backup server receives the valid data bitmap of the snapshot sent by the primary storage device. , back up the valid data bitmap of the snapshot to the backup storage device.
  • the backup data is not backed up, the amount of data backed up is reduced, and the backup rate is increased.
  • the data backup method provided in this embodiment further includes: the backup server sends a second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot.
  • the data backup method provided in this embodiment further includes: the backup server sending a third indication to the primary storage device, so that the primary storage device deletes the snapshot of the source volume.
  • FIG. 3a is a schematic diagram of a shared storage architecture provided by an embodiment of the present application.
  • the device based on the shared storage architecture applied by the data backup method in this embodiment includes: an application server 31 carrying an application operating system, a backup server 32, a primary storage device 33 with a snapshot function, and a backup storage. Device 34.
  • the application server 31 carrying the application operating system can perform service processing, and the primary storage device 33 with the snapshot function can generate a snapshot of the operation of the data write by the application server.
  • a communication connection relationship is established between the application server 31 and the primary storage device 33, and the source volume of the primary storage device is mounted by the application server 31 to store data of the application server 31.
  • the backup server 32 establishes a communication connection relationship with the main storage device 33 to mount the main A snapshot generated by the storage device 33.
  • a communication connection relationship is established between the backup server 32 and the backup storage device 34 to back up the valid data or valid data bitmap obtained by the backup server 32 to the backup storage device 34.
  • the primary storage device 33 sends a snapshot identifier of the snapshot of the source volume to the backup server 32, so that the backup server 32 sends a first indication to the primary storage device 33, and the primary storage device 33 establishes a snapshot and backup server 32 according to the first indication.
  • the mapping relationship between the backup server 32 allows the backup server 32 to mount the snapshot, and the backup server 32 can restore the data in the application server 31 by using the data in the snapshot.
  • the backup server 32 sends the signaling of the valid data bitmap of the query snapshot to the primary storage device 33 to obtain a valid data bitmap, and realizes the full backup while the data needs to be backed up. Further backup server 32 may back up the valid data bitmap to backup storage device 34.
  • the backup storage device 34 can be a general storage medium, and the snapshot function can be used to implement full backup in the same manner as the model does not match.
  • the backup server 32 may send the signaling of the valid data corresponding to the valid data bitmap of the snapshot to the primary storage device 33 according to the feedback information of the stored valid data bitmap sent by the backup storage device 34.
  • the primary storage device 33 is caused to query the valid data corresponding to the valid data bitmap of the snapshot. After the backup server 32 obtains valid data from the primary storage device 33, it is further backed up to the backup storage device 34. Therefore, multi-level data backup makes the backup performance perfect. Even if both the application server and the backup server are faulty, valid data can be extracted from the backup storage device, the application server failure can be restored, and the backup quality is improved.
  • FIG. 3b is a full-size data bitmap of the full-size backup provided by the embodiment of the present application.
  • the block is a flag bit of the data block, and the flag bit is used to distinguish whether the data block corresponding to the byte bit has changed. Usually, 0 and 1 are used to distinguish whether the data block has changed.
  • the changed data is fast, the flag position under the byte bit corresponding to the data block is set to 1, and the block flag position corresponding to the byte bit corresponding to the unchanged data block is set to 1.
  • the flag position 1 of the data block whose bit is marked 2 and the flag position 1 of the data block whose bit is marked 11 are shown.
  • the valid data bitmap can be obtained according to the data bitmap of the importance identifier, and the data bitmap without importance can be used without backup, or the priority of the backup data bitmap can be set according to the importance, and the data bit with high importance is
  • the figure can be extracted in advance and transferred to the backup by the primary storage device 33.
  • the server 32 after the data bitmap with high importance is successfully backed up, extracts the second important data bitmap for backup.
  • the specific backup form is not limited by this embodiment.
  • the primary storage device 33 After receiving the backup indication of the triggering backup policy sent by the backup server 32, the primary storage device 33 processes the snapshot data and sends the backup data to the backup server 32 and the backup storage device 34.
  • the application server 31 does not participate in the backup process.
  • the application server 31 runs the client backup software or the disk mirroring function software to back up the data, which affects the service performance of the application server 31, realizes the function of the application server 31 running normally, and efficiently backs up the data, that is, the backup data function and
  • the application server 31 runs the business software without interfering with each other.
  • FIG. 4 is a flow chart of a data backup method according to Embodiment 3 of the present application.
  • the data backup method provided in this embodiment is described in the perspective of the primary storage device in the incremental backup. As shown in FIG. 4, the data backup method provided in this embodiment includes:
  • the primary storage device receives the backup indication that the backup server sends the interval according to the preset time, and the backup indication is used to instruct the primary storage device to generate the snapshot.
  • the preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
  • the incremental backup is based on the snapshot of the interval acquisition, and the difference data bitmap between the snapshots is obtained, and then the difference data corresponding to the difference data bitmap or the difference data bitmap is backed up. Therefore, the preset time is the time interval between the backup data and the previous backup data adjacent to the backup data.
  • the primary storage device generates a snapshot according to the backup indication.
  • the primary storage device sends the snapshot identifier of the snapshot to the backup server, so that the backup server sends the first indication to the primary storage device.
  • the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server.
  • the primary storage device receives the first indication.
  • the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
  • the primary storage device receives signaling of a difference data bitmap between snapshots when the backup server sends a query for the current backup data and the previous backup data adjacent to the backup data.
  • step S414 and step S415 may be omitted, that is, the backup server does not need to send the first indication to the primary storage device, and the primary storage device does not need to receive the first indication, and does not need to establish.
  • the mapping between the snapshot and the backup server The signaling of the difference data bitmap between the snapshots of the previous backup data adjacent to the current backup data is only required to be received by the backup server to perform subsequent backup steps.
  • the difference data bitmap between two snapshots is used for incremental backup.
  • the strategy of incremental backup is to back up the difference data bitmap or difference data between snapshots.
  • the sum of the data of the previous snapshot corresponding to the location where the difference data is written is the recovery data value.
  • the primary storage device queries the snapshot of the current backup data according to the signaling of the difference data bitmap between the snapshot when the data is backed up and the previous backup data adjacent to the current backup data.
  • the primary storage device receives signaling of the difference data corresponding to the query difference data bitmap sent by the backup server.
  • the primary storage device queries the difference data according to the signaling of the difference data corresponding to the query difference data bitmap.
  • the primary storage device sends the difference data to the backup server, so that the backup server backs up the difference data to the backup storage device.
  • the backup server further backs up the valid data to the backup storage device, and the multi-level data backup makes the backup performance perfect. Even if the application server and the backup server are faulty, the difference data or the difference data bitmap can be extracted from the backup storage device, and the recovery can be resumed. The failure of the application server improves the quality of the backup.
  • the data backup method provided in this embodiment is an implementation of the incremental backup policy.
  • the primary storage device After the primary storage device receives the backup indication that the backup server sends the triggering backup policy, the primary storage device queries the difference data bits between the snapshots generated by the primary storage device.
  • the standby data backup is performed by the backup server to the backup storage device.
  • the application server does not participate in the backup process. This prevents the application server from running the client backup software or the disk mirroring software to back up the data and affect the application server's own services. Performance, while realizing the normal operation of the application server, the function of backing up data efficiently, that is, the backup data function and the application server running business software do not interfere with each other.
  • the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data is sent to the backup server by the primary storage device, so that the backup server sends two
  • the difference data bitmap of the snapshot in the next adjacent backup data or the difference data corresponding to the difference data bitmap is sent to the backup storage device, so that the backup storage device only backs up the differentiated data, thereby saving the storage space of the backup storage device, and further Improved backup efficiency.
  • the data backup method provided in this embodiment further includes: receiving, by the primary storage device, a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot ;
  • the primary storage device releases the mapping relationship between the server and the snapshot.
  • the data backup method provided in this embodiment further includes: receiving, by the primary storage device, a third indication sent by the backup server, where the third indication is used to indicate deleting the previous backup adjacent to the current backup data. a snapshot of the data;
  • the primary storage device deletes the snapshot of the previous backup data adjacent to the current backup data.
  • FIG. 5 is a flowchart of a data backup method according to Embodiment 4 of the present application.
  • the data backup method provided in this embodiment is described by the backup server in the case of an incremental backup.
  • the data backup method provided in this embodiment includes:
  • the backup server sends a backup indication to the primary storage device at intervals according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, the primary storage device generates a snapshot, and sends the snapshot identifier of the snapshot to the backup server.
  • the preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
  • the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data are generated by the primary storage device according to a preset time interval.
  • the backup server receives the snapshot identifier of the snapshot sent by the primary storage device.
  • the backup server sends a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
  • the backup server mounts the snapshot according to the mapping relationship. S515.
  • the backup server sends the query of the difference data bitmap of the snapshot between the snapshot when the backup data is queried and the previous backup data adjacent to the backup data to the primary storage device, so that the primary storage device queries the current time.
  • step S513 and step S514 may be omitted, that is, the backup server does not need to send the first indication to the primary storage device, and the primary storage device does not need to establish a mapping relationship between the snapshot and the backup server. That is, the backup server does not need to mount the snapshot of the data to be backed up during the backup process, and only needs to query the snapshot of the backup data sent by the snapshot identifier of the snapshot sent by the primary storage device adjacent to the current backup data. The signaling of the difference data bitmap between the snapshots when the data was previously backed up is sent to the primary storage device to perform subsequent backup steps.
  • the primary storage device queries the difference data bitmap between snapshots for incremental backup.
  • the incremental backup strategy is to back up the difference data bitmap or difference data between snapshots.
  • the sum of the data of the previous snapshot corresponding to the location where the difference data is written is the recovery data value.
  • the backup server backs up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data to the backup storage device.
  • the backup server receives the feedback information of the backed up difference data bitmap sent by the backup storage device.
  • the backup server sends signaling for querying the difference data corresponding to the difference data bitmap to the primary storage device, so that the primary storage device queries the difference data corresponding to the difference data bitmap.
  • the backup server receives the difference data sent by the primary storage device.
  • the backup server backs up the difference data to the backup storage device.
  • the backup server further backs up the valid data to the backup storage device, and the multi-level data backup makes the backup performance perfect. Even if the application server and the backup server are faulty, the difference data or the difference data bitmap can be extracted from the backup storage device to restore the application. The failure of the server improves the quality of the backup.
  • the backup server receives feedback information of the backed up difference data sent by the backup storage device.
  • the backup server sends a backup indication to the primary storage device, so that the primary storage device queries the difference data bitmap between the snapshots generated by the primary storage device and sends the difference data bitmap to the backup server.
  • the server backs up the difference data bitmap to the backup storage device.
  • There is no application server participation in the backup process which avoids the application server running client backup software or disk mirroring function software to back up data, which affects the application server's own business performance, realizes the normal operation of the application server, and efficiently backs up data.
  • the function that is, the backup data function and the application server running business software do not interfere with each other.
  • the backup server receives the difference data bitmap between the snapshot when the backup data is queried by the primary storage device and the snapshot of the previous backup data adjacent to the backup data to the backup server, so as to backup the server.
  • the difference data bitmap of the snapshot when the adjacent backup data is sent twice or the difference data corresponding to the difference data bitmap is sent to the backup storage device, so that the backup storage device only backs up the differentiated data, which saves the storage space of the backup storage device. , further improve the backup efficiency.
  • the data backup method provided by the embodiment further includes: the backup server sending the second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot according to the second indication.
  • the data backup method provided in this embodiment further includes: the backup server sends a third indication to the primary storage device, so that the primary storage device deletes the previous data adjacent to the current backup data according to the third indication. A snapshot of when backing up data at one time.
  • FIG. 3a is a schematic diagram of a shared storage architecture of a data backup method according to an embodiment of the present application.
  • the device based on the shared storage architecture of the data backup method provided in this embodiment includes: an application server 31 carrying an application operating system, a backup server 32, a primary storage device 33 with a snapshot function, and a backup storage device. 34.
  • the application server 31 carrying the application operating system can perform service processing, and the primary storage device 33 with the snapshot function can generate a snapshot of the operation of the data write by the application server.
  • a communication connection relationship is established between the application server 31 and the primary storage device 33, and the source volume of the primary storage device is mounted by the application server 31 to store data of the application server 31.
  • a backup connection relationship is established between the backup server 32 and the primary storage device 33 to mount the snapshot generated by the primary storage device 33.
  • a communication connection relationship established between the backup server 32 and the backup storage device 34 to obtain valid data or valid data bitmaps obtained by the backup server 32. Backup to backup storage device 34.
  • the primary storage device 33 When the backup system executes the incremental backup policy, the primary storage device 33 generates a snapshot according to the backup indication that the backup server intermittently sends. Further, the primary storage device 33 sends the snapshot identifier of the snapshot at the current backup to the backup server 32, so that the backup server 32 sends a first indication to the primary storage device 33, and the primary storage device 33 creates a snapshot and backup server 32 according to the first indication.
  • the mapping relationship between the snapshot server 32 is mounted by the backup server 32 to the backup server 32 according to the mapping relationship.
  • the backup server 32 can instruct the primary storage device 33 to compare the snapshots of the two backup data to obtain the difference data bitmap between the two snapshots, so the backup server 32 can be based on the snapshot of the previous backup data and the between the two snapshots.
  • the difference data bitmap obtains the full data bitmap of the changed data block. Or, in the case of a failure, the full amount of data bitmap obtained through the snapshot at the time of the first backup, and the plurality of difference data bitmaps obtained after several backups after the first backup may be restored to the full amount before the fault is generated. Data bitmap.
  • the backup server 32 sends the signaling of the difference data bitmap between the snapshot when the current backup data is queried and the previous backup data adjacent to the current backup data to the primary storage device 33, Obtain the difference data bitmap, realize the incremental backup, and at the same time, the data that needs to be backed up. Further backup server 32 may back up the difference data bitmap to backup storage device 34.
  • the backup storage device 34 can be a general storage medium, and the snapshot function can be used to implement incremental backup in the case of a model mismatch.
  • the backup server 32 may send, according to the received feedback information of the stored difference data bitmap sent by the backup storage device 34, the primary storage device 33 to send signaling for querying the difference data corresponding to the difference data bitmap, so that the primary The storage device 33 queries the difference data.
  • the backup server 32 obtains the difference data from the primary storage device 33, it is further backed up to the backup storage device 34. Therefore, the multi-level data backup makes the backup performance perfect. Even if the application server and the backup server are faulty, the difference data or the difference bitmap can be extracted from the backup storage device, and the data can be restored to avoid the business processing failure due to the application server failure. Continuous problems occur, improving the quality of backups.
  • FIG. 3c is a schematic diagram of data bitmaps corresponding to snapshots obtained during the first backup provided by the embodiment of the present application
  • FIG. 3d is the first embodiment provided by the embodiment of the present application.
  • FIG. 3e is the second time provided by the embodiment of the present application
  • FIG. 3f is a schematic diagram of a difference data bitmap obtained in the third backup provided by the embodiment of the present application
  • FIG. 3g is a full amount of the third backup provided in the embodiment of the present application.
  • the block is a flag bit of the data block, and the flag bit is used to distinguish whether the data block corresponding to the byte bit has changed, and usually uses 0 and 1 to distinguish whether the data block has changed.
  • the flag bit under the byte bit corresponding to the data block is set to 1.
  • the block flag corresponding to the corresponding byte bit is set to 1.
  • the value of each flag bit in the initialization data bitmap is 0.
  • the flag position of the data block with the bit bit marked 2 is 1, and the bit bit is marked 11
  • the flag position of the data block is 1. As shown in FIG.
  • the flag position of the data block whose bit is marked as 2 is 1, indicating that the data block whose bit is marked with 2 has a change
  • the flag position of the data block whose bit is marked with 11 indicates that the bit is The data block marked with bit 11 has changed. Because the value of each flag bit in the initialization data bitmap is 0, the data bitmap corresponding to the snapshot obtained during the first backup is the same as the difference data bitmap obtained during the first backup. As shown in FIG. 3e, the flag position of the data block whose bit is marked as 4 is 1, indicating that the data block whose bit is marked as 4 has a change. As shown in FIG.
  • the flag position of the data block with the bit bit marked 1 is 1, indicating that the data block with the bit bit marked 4 has a change
  • the flag position of the data block with the bit bit mark 2 is 1, indicating that the bit is The data block marked with 2 has a change.
  • the data blocks corresponding to the same bit are merged.
  • the flag bit that is, the flag bit of at least one of the same bit bits in each data bitmap, the flag bit corresponding to the bit position is 1. Then, after the merge, the full data bitmap of the snapshot at the time of the third backup can be obtained, as shown in Fig. 3g.
  • the full data bitmap of the backup data is obtained according to the difference data bitmap obtained by the backup data and the full data bitmap corresponding to the snapshot of the previous backup data, and The backup is performed, and finally the full data bitmap is obtained, so that the full amount of data is obtained according to the full data bitmap and stored in the backup storage device, so that when the data is restored, it is directly obtained from the backup storage device.
  • FIG. 6 is a schematic structural diagram of a storage device according to Embodiment 5 of the present application.
  • the storage device provided in this embodiment is configured to perform the perspective of the primary storage device based on the first embodiment.
  • An execution carrier of the described data backup method that is, a primary storage device, such as the storage device shown in FIG. 6, includes: a receiving unit 61, a snapshot unit 62, a transmitting unit 63, and a processing unit 64.
  • the receiving unit 61 is configured to receive a backup indication sent by the backup server, where the backup indication is used to instruct the storage device to generate a snapshot of the source volume.
  • the snapshot unit 62 is configured to generate a snapshot of the source volume.
  • the sending unit 63 is configured to send a snapshot identifier of the snapshot to the backup server.
  • the receiving unit 61 is further configured to receive a signal of a valid data bitmap of the query snapshot sent by the backup server.
  • the processing unit 64 is configured to query a valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot.
  • the sending unit 63 is further configured to send a valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device.
  • the receiving unit 61 is further configured to receive signaling of valid data corresponding to the valid data bitmap of the query snapshot sent by the backup server.
  • the processing unit 64 is further configured to query the valid data according to the signaling of the valid data corresponding to the valid data bitmap of the query snapshot.
  • the sending unit 63 is further configured to send valid data to the backup server, so that the backup server backs up the valid data to the backup storage device.
  • the snapshot unit 62 After the receiving unit 61 receives the backup instruction sent by the backup server, the snapshot unit 62 generates a snapshot of the source volume for full backup. Sending the snapshot identifier of the snapshot to the backup server by the sending unit 63, so that the processing unit 64 of the primary storage device further informs the backup server to query the valid data bitmap of the snapshot, and the backup server receives the valid data bitmap sent by the sending unit 63. In order to back up the valid data bitmap to the backup storage device. And, by the processing unit 64, according to the signaling valid data corresponding to the valid data bitmap of the valid data bitmap of the query snapshot received by the receiving unit 61, the sending unit 63 sends the valid data to the backup server, so that the backup server is valid.
  • the storage device further includes:
  • a mapping unit configured to map the source volume to the application server, so that the application server mounts the source volume to store the data of the application server to the source volume.
  • the receiving unit is further configured to receive the first indication.
  • the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server.
  • the processing unit is further configured to establish a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
  • the receiving unit is further configured to receive a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot; the processing unit is further configured to release The mapping between the backup server and the snapshot.
  • the receiving unit is further configured to receive a third indication sent by the backup server, where the third indication is used to instruct the primary storage device to delete the snapshot of the source volume;
  • the processing unit is also used to delete the snapshot of the source volume.
  • FIG. 7 is a schematic structural diagram of another storage device according to Embodiment 5 of the present application.
  • the storage device provided in this embodiment is an execution carrier of the data backup method described in the perspective of the primary storage device according to the first embodiment, and includes: an input device 71, an output device 72, and a memory 73. And a processor 74, wherein the memory 73 stores a set of program codes, and the processor 74 is configured to call the program code stored in the memory, to perform the following operations:
  • the backup indication is used to instruct the primary storage device to generate a snapshot of the source volume.
  • a valid data bitmap of the snapshot is queried according to the signaling of the valid data bitmap of the query snapshot.
  • the valid data bitmap is obtained by the backup server, and the backup server can restore the valid data in the application server according to the valid data in the valid data bitmap. It is not necessary to back up invalid data, which reduces the amount of data backed up and improves the backup rate.
  • the processor 74 of the primary storage device controls the output device to send the valid data bitmap of the snapshot of the source volume to the backup server, so that the backup server sends the valid data bitmap to the backup storage device, so that the backup storage device can enable the backup storage device. Back up the valid bitmap so that the backup system can obtain valid data further, so that the backup data cannot be backed up without backing up the invalid data.
  • the processor before the processor performs an operation of generating a snapshot of the source volume, the processor further performs the following steps:
  • the processor is further configured to perform The following steps:
  • a mapping relationship between the snapshot and the backup server is established, so that the backup server mounts the snapshot.
  • the processor is further configured to perform the following steps:
  • the second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot.
  • the processor is further configured to perform the following steps:
  • the third indication is used to instruct the primary storage device to delete the snapshot of the source volume.
  • FIG. 8 is a schematic structural diagram of a server according to Embodiment 6 of the present application.
  • the server provided in this embodiment is an execution carrier of a data backup method according to the second embodiment, that is, a backup server.
  • the backup server shown in FIG. 8 includes: a sending unit 81, a receiving unit 82, and a backup unit 83.
  • the sending unit 81 is configured to send a backup indication to the primary storage device, to indicate that the primary storage device generates a snapshot of the source volume, and the primary storage device sends the snapshot identifier of the snapshot to the backup server.
  • the receiving unit 82 is configured to receive a snapshot identifier sent by the primary storage device.
  • the sending unit 81 is further configured to send signaling of the valid data bitmap of the query snapshot to the primary storage device, so that the primary storage device queries the valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot;
  • the receiving unit 82 is further configured to receive a valid data bitmap of the snapshot sent by the primary storage device, and a backup unit 83, configured to back up the valid data bitmap of the snapshot to the backup storage device;
  • the receiving unit 82 is further configured to receive feedback information of a valid data bitmap of the backup snapshot sent by the backup storage device;
  • the sending unit 81 is further configured to send, according to the feedback information of the valid data bitmap of the backed up snapshot, signaling of the valid data corresponding to the valid data bitmap of the snapshot to the primary storage device, so that the primary storage device obtains valid data according to the snapshot. Signaling query valid data of valid data corresponding to the bitmap;
  • the receiving unit 82 is further configured to receive valid data sent by the primary storage device
  • the backup unit 83 is also used to back up valid data to the backup storage device.
  • the receiving unit 82 is further configured to receive feedback information of valid data of the backup snapshot sent by the backup storage device.
  • the server provided in this embodiment is a backup server that backs up data, and sends a backup indication to the primary storage device by the sending unit 81 to instruct the primary storage device to generate a snapshot of the source volume, and the primary storage device sends the snapshot identifier of the snapshot, and the receiving unit Receiving a snapshot identifier of the snapshot of the source volume sent by the primary storage device, and sending, by the sending unit 81, the signaling of the valid data bitmap of the query snapshot to the primary storage device, so that the primary storage device according to the valid data bitmap of the query snapshot
  • the valid data bitmap of the snapshot is queried for receiving the valid data bitmap by the receiving unit 82, and then the backup data unit is backed up by the backup unit 83 to the backup storage device.
  • bitmap to the backup storage device implements multi-level data backup, improves the performance of data backup, and is fully prepared for better recovery of the application server during normal operation.
  • the sending unit is further configured to send the first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
  • the server further includes: a processing unit, configured to mount the snapshot according to the mapping relationship acquired by the receiving unit.
  • the sending unit is further configured to send the second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot.
  • the sending unit is further configured to send a third indication to the primary storage device, so that the primary storage device deletes the snapshot of the source volume.
  • FIG. 9 is a schematic structural diagram of another server provided in Embodiment 6 of the present application.
  • the server provided in this embodiment is an execution carrier of a data backup method according to the second embodiment, that is, a backup server.
  • the backup server shown in FIG. 9 includes: an input device 91, an output device 92, a memory 93, and
  • the processor 94 is configured to store a set of program codes in the memory 93, and the processor 94 is configured to call the program code stored in the memory to perform the following operations:
  • the signaling of the valid data bitmap of the query snapshot is sent to the primary storage device, so that the primary storage device queries the valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot.
  • the processor 94 performs a related operation to send a backup indication to the primary storage device, to instruct the primary storage device to generate a snapshot of the source volume, receive the snapshot identifier of the snapshot of the source volume sent by the primary storage device, and send the query snapshot valid.
  • the signaling of the data bitmap is sent to the primary storage device to receive a valid data bitmap of the snapshot queried and sent by the primary storage device, so as to back up the valid data bitmap of the snapshot to the backup storage device.
  • the backup data storage device obtains the valid data bitmap in the backup server, realizes multi-level data backup, improves the performance of the data backup, and fully satisfies the write data operation of the application server during normal operation. ready.
  • the processor is further configured to perform The following operations:
  • the processor is further configured to perform the following operations:
  • the processor is further configured to perform the following operations:
  • FIG. 10 is a schematic structural diagram of a storage device according to Embodiment 7 of the present application.
  • the storage device provided in this embodiment is an execution carrier that performs a data backup method according to the third embodiment, and is a primary storage device, including: a receiving unit 101, a snapshot unit 102, a sending unit 103, and Processing unit 104.
  • the receiving unit 101 is configured to receive a backup indication that is sent by the backup server according to a preset time interval, and the backup indication is used to instruct the storage device to generate a snapshot.
  • the preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
  • the snapshot unit 102 is configured to generate a snapshot according to the backup indication.
  • the sending unit 103 is configured to send a snapshot identifier of the snapshot to the backup server.
  • the receiving unit 101 is further configured to receive signaling of a difference data bitmap between the snapshots when the current backup data is queried by the backup server and the previous backup data adjacent to the backup data.
  • the processing unit 104 is configured to query the snapshot and the current backup data according to the signaling of the difference data bitmap between the snapshot when the backup data is queried and the previous backup data adjacent to the current backup data.
  • the sending unit 103 is further configured to send the difference data bitmap between the snapshots of the current backup data and the previous backup data adjacent to the current backup data to the backup server, so that the backup server backs up the current backup data.
  • the snapshot is the difference data bitmap between the snapshots of the previous backup data adjacent to this backup data to the backup storage device.
  • the receiving unit 101 is further configured to receive signaling of the difference data corresponding to the query difference data bitmap sent by the backup server.
  • the processing unit 104 is further configured to query the difference data according to the signaling of the difference data corresponding to the query difference data bitmap.
  • the sending unit 103 is further configured to send the difference data to the backup server, so that the backup server backs up the difference data to the backup storage device.
  • the storage device provided in this embodiment is a primary storage device.
  • the snapshot server 102 generates a snapshot according to the preset time interval of the backup server received by the receiving unit 101 according to the preset time interval, so as to send the unit.
  • the snapshot identifier of the snapshot is sent to the backup server, and the processing unit 104 receives, according to the receiving unit 101, a snapshot between the snapshot when the current backup data is sent by the backup server and the previous backup data adjacent to the current backup data.
  • the difference data bitmap between the snapshot when the backup data is sent and the previous backup data adjacent to the backup data is sent to the backup server, so that the backup server backs up the backup data and the current backup.
  • an incremental backup policy is executed. After the incremental backup policy is triggered, a communication link with snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with backup function.
  • the client software can complete the backup. Therefore, it will not affect the application service.
  • the normal operation of the server ensures the normal processing of the application server and completes the data backup online.
  • the receiving unit is further configured to receive the first indication sent by the backup server.
  • the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server.
  • the processing unit is further configured to establish a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
  • the receiving unit is further configured to receive a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot; the processing unit is further configured to release The mapping between the backup server and the snapshot.
  • FIG. 11 is a schematic structural diagram of another storage device according to Embodiment 7 of the present application.
  • the storage device provided in this embodiment is an execution carrier that executes a data backup method according to Embodiment 3, and is a primary storage device, including: an input device 111, an output device 112, a memory 113, and a processor. 114, wherein a set of program codes is stored in the memory 113, and the processor 114 is configured to call the program code stored in the memory, to perform the following operations:
  • a backup indication that is sent intermittently according to a preset time, and the backup indication is used to instruct the primary storage device to generate a snapshot, and the preset time is a time interval between the backup data and the previous backup data adjacent to the current backup data;
  • the snapshot of the current backup data and the snapshot adjacent to the current backup data are queried.
  • the difference data bitmap between the snapshot when the backup data is sent and the previous backup data adjacent to the backup data is sent to the backup server, so that the backup server backs up the backup data and the current backup data.
  • the difference data bitmap between the snapshots of the previous previous backup data to the backup storage device;
  • the storage device provided in this embodiment is a primary storage device, and the related operations are performed by the processor 114 to control the storage device to generate a snapshot according to the interval indication obtained by the interval, and receive the query for the current backup data sent by the backup server. After the snapshot of the difference data bitmap between the snapshots of the previous backup data adjacent to the current backup data, the snapshot of the current backup data and the previous backup data adjacent to the current backup data are queried. The difference data bitmap between the snapshots, and sending the difference data bitmap to the backup server, so that the backup server backs up the difference data bitmap to the backup storage device. During the backup process, an incremental backup policy is executed.
  • a communication link with snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with backup function.
  • the client software can complete the backup. Therefore, the normal operation of the application server is not affected, the normal processing service of the application server is ensured, and the data backup is completed online at the same time.
  • the processor performs the step of sending the snapshot identifier of the snapshot to the backup server, and performs the process of receiving the snapshot sent by the backup server to query the current backup data and the previous time adjacent to the current backup data.
  • the processor is also used to perform the following operations before the step of signaling the data bitmap of the difference between snapshots when backing up data:
  • the processor is further configured to: receive a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot;
  • the processor is further configured to perform the following operations:
  • FIG. 12 is a schematic structural diagram of a server according to Embodiment 8 of the present application.
  • the server provided in this embodiment is an execution carrier for performing a data backup method according to the fourth embodiment.
  • the backup server includes a sending unit 121, a receiving unit 122, and a backup unit 123.
  • the sending unit 121 is configured to send a backup indication to the primary storage device at intervals according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, the primary storage device generates a snapshot, and sends the snapshot identifier of the snapshot to the backup server.
  • the preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
  • the receiving unit 122 is configured to receive a snapshot identifier of the snapshot sent by the primary storage device.
  • the sending unit 121 is further configured to send, by the primary storage device, the signaling of the difference data bitmap between the snapshots when the snapshot of the current backup data and the previous backup data adjacent to the backup data are forwarded to the primary storage device. Query the difference data bitmap between the snapshot at the time of the backup data and the snapshot at the time of the previous backup data adjacent to the backup data.
  • the receiving unit 122 is further configured to receive a difference data bitmap between the snapshot at the time of the backup data and the snapshot at the time of the previous backup data adjacent to the current backup data.
  • the backup unit 123 is configured to back up the difference data bitmap between the snapshot when the backup data is used and the previous backup data adjacent to the backup data to the backup storage device.
  • the receiving unit 122 is further configured to receive feedback information of the backed up difference data bitmap sent by the backup storage device.
  • the sending unit 121 is further configured to send signaling for querying the difference data corresponding to the difference data bitmap to the primary storage device, so that the primary storage device queries the difference data corresponding to the difference data bitmap.
  • the receiving unit 122 is further configured to receive difference data sent by the primary storage device.
  • the backup unit 123 is also used to back up the difference data to the backup storage device.
  • the receiving unit 122 is further configured to receive a feedback message of the backup difference data sent by the backup storage device, where the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data are performed by the primary storage device.
  • the preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
  • the server provided in this embodiment is a backup server, and the backup unit sends the backup indication to the primary storage device at intervals according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, and the primary storage device generates a snapshot, and
  • the snapshot identifier of the snapshot is sent to the backup server, and the snapshot identifier of the snapshot sent by the primary storage device is received by the receiving unit 122, so that the snapshot of the current backup data is sent by the sending unit 121 to the previous backup data adjacent to the current backup data.
  • the signaling of the difference data bitmap between the snapshots to the primary storage device so that the primary storage device queries the difference between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data.
  • the bitmap is received by the receiving unit 122, and the difference data bitmap sent by the primary storage device is backed up by the backup unit 123 to the backup storage device.
  • an incremental backup policy is executed. After the incremental backup policy is triggered, a communication link with snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with backup function.
  • the client software can complete the backup. Therefore, the normal operation of the application server is not affected, the normal processing service of the application server is ensured, and the data backup is completed online.
  • the sending unit is further configured to send the first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
  • the processing unit is configured to mount the snapshot according to the obtained mapping relationship.
  • the sending unit is further configured to send the second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot according to the second indication.
  • the sending unit is further configured to send the third indication to the primary storage device, The snapshot of the previous backup data adjacent to the current backup data is deleted by the primary storage device according to the third indication.
  • FIG. 13 is a schematic structural diagram of another server according to Embodiment 8 of the present application.
  • the server provided in this embodiment is an execution carrier that executes a data backup method according to Embodiment 4, and is a backup server, including: an input device 131, an output device 132, a memory 133, and a processor. 134, wherein a set of program codes is stored in the memory 133, and the processor 134 is configured to call the program code stored in the memory 133 for performing the following operations:
  • the backup instruction is sent to the primary storage device at intervals according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, the primary storage device generates a snapshot, and the snapshot identifier of the snapshot is sent to the backup server.
  • the preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
  • the signaling of the difference data bitmap between the snapshots when the backup data is queried and the previous backup data adjacent to the current backup data is sent to the primary storage device, so that the primary storage device queries the current backup data.
  • the difference data bitmap between the snapshot and the snapshot when the previous backup data is adjacent to this backup data is sent to the primary storage device, so that the primary storage device queries the current backup data.
  • the difference data bitmap between the snapshot when the backup data is backed up and the previous backup data adjacent to the backup data is backed up to the backup storage device.
  • the snapshot of the backup data and the snapshot of the previous backup data adjacent to the backup data are generated by the primary storage device according to the backup indication, and the backup indication is sent by the backup server at intervals.
  • the preset time is The time when the backup data is adjacent to the previous backup data Interval.
  • the server provided in this embodiment is a backup server, and the related operations are performed by the processor 134 to send a backup indication to the primary storage device at intervals according to a preset time, so that the primary storage device generates a snapshot according to the backup indication, and the primary storage device generates the snapshot.
  • the device generates a snapshot, and sends the snapshot ID of the snapshot to the backup server, and then sends a signaling to the main data of the difference data bitmap between the snapshot when the backup data is queried and the previous backup data adjacent to the backup data.
  • the storage device is configured to enable the primary storage device to query the difference data bitmap between the snapshot when the backup data is synchronized and the previous backup data adjacent to the backup data, and receive the difference data bitmap sent by the primary storage device.
  • the processor performs the step of receiving the snapshot identifier of the snapshot sent by the primary storage device, and performing the snapshot of the current backup data and the previous backup data adjacent to the current backup data. Before the step of signaling the difference data bitmap between the snapshots to the primary storage device, the processor is also used to perform the following operations:
  • the processor is further configured to perform the following operations:
  • the processor is further configured to perform the following operations:
  • FIG. 14 is a schematic structural diagram of a data backup system according to Embodiment 9 of the present application.
  • the data backup system provided in this embodiment includes a primary storage device provided in Embodiment 5 and a backup server provided in Embodiment 6, and includes an application server, and further includes: a backup storage device 141.
  • the backup storage device 141 is further configured to send feedback information of the valid data bitmap of the backed up snapshot to the backup server;
  • the backup storage device 141 is further configured to store valid data corresponding to the valid data bitmap sent by the backup server.
  • the backup storage device 141 is further configured to send feedback information of valid data of the stored snapshot to the backup server.
  • the data backup system sends a valid data bitmap of the snapshot of the source volume to the backup server through the primary storage device, so that the backup server sends a valid data bitmap or further sends valid data corresponding to the valid data bitmap.
  • the backup storage device enables the backup storage device to back up valid data, so that the backup data cannot be backed up without backing up invalid data.
  • a full backup policy is executed. After the full backup policy is triggered, a communication link with a snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with a backup function.
  • the client software can complete the backup. Therefore, the normal operation of the application server is not affected, the normal processing service of the application server is ensured, and the data backup is completed online. By obtaining a valid data bitmap, the data can be further backed up and the backup storage space is reduced.
  • FIG. 15 is a schematic structural diagram of a data backup system according to Embodiment 10 of the present application.
  • the data backup system provided in this embodiment includes a primary storage device provided in the seventh embodiment and a backup server provided in the eighth embodiment, and further includes:
  • the backup storage device 151 is used to store a difference data bitmap between the snapshot at the time of the backup data and the snapshot at the time of the previous backup data adjacent to the backup data.
  • the backup storage device 151 is further configured to send feedback information of the backed up difference data bitmap to the backup server.
  • the backup storage device 151 is further configured to store the difference data corresponding to the difference data bitmap to the backup storage device.
  • the backup storage device 151 is further configured to send feedback information of the stored difference data to the backup server.
  • the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data is sent to the backup server by the primary storage device.
  • the backup server For the backup server to send the differential data bitmap of the snapshot when the backup data is sent twice or the difference data corresponding to the difference data bitmap to the backup storage device, so that the backup storage device only backs up the differentiated data.
  • an incremental backup policy is executed. After the incremental backup policy is triggered, a communication link with snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with backup function.
  • the client software can complete the backup.
  • the normal operation of the application server is not affected, the normal processing service of the application server is ensured, and the data backup is completed online.
  • the data can be further refined and the backup storage space is reduced, which is no longer limited to adoption.
  • the backup strategy of full backup backs up data.
  • the data backup method and related devices provided in this embodiment are configured by using a backup technology in the backup server, so that the backup server receives the signaling that triggers the backup policy, and then processes the snapshot with the primary storage device.
  • the backup data is sent to the backup storage device.
  • There is no application server participation during the backup process which avoids the application server running the client backup software or the disk mirror function software to back up the data and affect the application server's own business performance, and implements the application server.
  • the function of efficiently backing up data that is, the backup data function and the application server running business software do not interfere with each other.
  • the valid data bitmap of the snapshot of the source volume that is queried is sent to the backup server by the primary storage device, so that the backup server sends a valid data bitmap or further sends valid data corresponding to the valid data bitmap to the backup storage device, so that the backup storage is performed.
  • the device can back up valid data, so there is no need to back up invalid data, and the data is backed up.
  • the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data is sent to the backup server by the primary storage device, so that the backup server sends the backup server twice.
  • the difference data bitmap of the snapshot when the data is backed up or the difference data corresponding to the difference data bitmap is sent to the backup storage device, so that the backup storage device only backs up the differentiated data, which saves the storage space of the backup storage device and further improves Backup efficiency.
  • Full backup or incremental backup makes the backup scheme more selective and has no impact on the performance of the application server, and the valid data, valid bitmap or difference number is passed through the backup server.
  • the difference data bitmap stored in the file the model different from the main storage can be used, that is, the heterogeneous storage is supported, and the universal applicability of each device in the backup system is enhanced.
  • the disclosed apparatus and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or modules may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device, module or unit, or an electrical, mechanical or other form of connection.
  • modules or units described as separate components may or may not be physically separate.
  • the components displayed as modules or units may or may not be physical modules or units, ie may be located in one place, or may be distributed to multiple On a network module or unit. Some or all of the modules or units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional module or unit in each embodiment of the present invention may be integrated into one processing module or unit, or each module or unit may exist physically separately, or two or more modules or units may be integrated in In a module or unit.
  • the above integrated modules or units can be implemented either in the form of hardware or in the form of software functional units.
  • An integrated module or unit if implemented as a software function module or unit and sold or used as a stand-alone product, can be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Abstract

Disclosed are a data backup method and a related device and system. The data backup method provided in this embodiment involves receiving a backup indication for triggering a backup policy sent from a backup server through a main storage device, then processing through a snapshot technology, and sending backed up data to the backup server and a backup storage device. No application server is involved in a backup process, preventing the service performance of an application server from being affected as a result of the application server operating client backup software or disk mirroring functional software to back up data, realizing the function of backing up data efficiently while the application server is operating normally, i.e., the data backup function and the operation of service software by the application server not interfering with each other.

Description

一种数据备份方法及相关设备、 系统  Data backup method and related equipment and system
技术领域 本申请涉及数据备份技术领域,具体涉及一种数据备份方法及相关设备、 系统。 背景技术 目前, 由于数据量的激增及数据库的庞大存储性能以及设备应用功能的丰 富, 数据安全性问题显得尤为重要, 因而各种备份技术以及各种备份技术衍生 出的备份方式随着人们对数据保护重要性的认识程度不断加深而迅速发展。 The present application relates to the field of data backup technologies, and in particular, to a data backup method and related devices and systems. BACKGROUND OF THE INVENTION At present, data security issues are particularly important due to the proliferation of data volumes and the huge storage performance of databases and the rich application functions of devices. Therefore, various backup technologies and various backup technologies derive backup methods along with people's data. The level of awareness of the importance of protection continues to grow and develop rapidly.
数据备份技术是指为防止系统出现操作失误或系统故障导致数据丢失, 而将全部或部分数据集合从应用主机的硬盘或阵列复制到其它的存储介质的 过程。传统的基于主机的备份通常是在应用服务器内运行磁盘镜像功能软件, 将对主存储设备中的逻辑单元号的写操作发送给主存储设备时, 一并分发给 备份存储设备进而将数据备份到备份存储设备中; 或者在应用服务器内运行 客户端备份软件, 通过记录对主存储设备的写操作, 然后定时发送已经记录 的写操作给备份服务器, 使备份服务器发送已经记录的写操作给备份存储设 备。 采用传统基于主机的备份方案时, 如果备份数据量很大, 则应用服务器 的内存消耗非常大, 而且应用服务器运行客户端备份软件或者磁盘镜像功能 软件的同时还要运行其他业务的应用软件, 不仅影响了备份数据的速率和质 量, 也影响了应用服务器的其他应用性能。 发明内容 本申请实施例提供了一种数据备份方法及相关设备, 解决了现有备份方法 基于应用服务器实现备份的同时, 影响了应用服务器的其他应用性能的问题。  Data backup technology refers to the process of copying all or part of the data set from the hard disk or array of the application host to other storage media in order to prevent data loss caused by operating errors or system failures. The traditional host-based backup usually runs the disk mirroring function software in the application server. When the write operation of the logical unit number in the primary storage device is sent to the primary storage device, it is distributed to the backup storage device to back up the data. Back up the storage device; or run the client backup software in the application server, record the write operation to the primary storage device, and then periodically send the recorded write operation to the backup server, so that the backup server sends the recorded write operation to the backup storage. device. When the traditional host-based backup scheme is adopted, if the amount of backup data is large, the memory consumption of the application server is very large, and the application server runs the client backup software or the disk mirroring function software, and also runs application software of other services, not only It affects the rate and quality of backup data and also affects other application performance of the application server. SUMMARY OF THE INVENTION The embodiments of the present application provide a data backup method and related device, which solves the problem that the existing backup method affects other application performance of the application server while implementing backup based on the application server.
第一方面, 本申请实施例提供一种数据备份方法, 包括:  In a first aspect, the embodiment of the present application provides a data backup method, including:
主存储设备接收备份服务器发送的备份指示, 所述备份指示用于指示所述 主存储设备生成源卷的快照;  Receiving, by the primary storage device, a backup indication sent by the backup server, where the backup indication is used to instruct the primary storage device to generate a snapshot of the source volume;
所述主存储设备生成源卷的快照; 所述主存储设备发送所述快照的快照标识至所述备份服务器; 所述主存储设备接收所述备份服务器发送的查询所述快照的有效数据位图 的信令; The primary storage device generates a snapshot of the source volume; The primary storage device sends a snapshot identifier of the snapshot to the backup server; the primary storage device receives signaling sent by the backup server to query a valid data bitmap of the snapshot;
所述主存储设备根据所述查询所述快照的有效数据位图的信令查询所述快 照的有效数据位图;  The primary storage device queries the valid data bitmap of the snapshot according to the signaling of querying the valid data bitmap of the snapshot;
所述主存储设备发送所述快照的有效数据位图至所述备份服务器, 以使所 述备份服务器备份所述快照的有效数据位图至备份存储设备;  The primary storage device sends a valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device;
所述主存储设备接收所述备份服务器发送的查询所述快照的有效数据位图 对应的有效数据的信令;  The primary storage device receives signaling sent by the backup server to query valid data corresponding to the valid data bitmap of the snapshot;
所述主存储设备根据所述查询所述快照的有效数据位图对应的有效数据的 信令查询所述有效数据;  The primary storage device queries the valid data according to the signaling of querying the valid data corresponding to the valid data bitmap of the snapshot;
所述主存储设备发送所述有效数据至所述备份服务器, 以使所述备份服务 器备份所述有效数据至所述备份存储设备。  The primary storage device sends the valid data to the backup server to cause the backup server to back up the valid data to the backup storage device.
结合第一方面, 在第一种可能的实现方式中, 所述主存储设备生成源卷的 快照之前, 所述方法还包括:  With reference to the first aspect, in a first possible implementation, before the primary storage device generates a snapshot of the source volume, the method further includes:
主存储设备创建源卷;  The primary storage device creates a source volume;
所述主存储设备映射所述源卷给应用服务器, 以使所述应用服务器挂载所 述源卷, 以存储所述应用服务器的数据至所述源卷。  The primary storage device maps the source volume to an application server, so that the application server mounts the source volume to store data of the application server to the source volume.
结合第一方面, 在第二种可能的实现方式中, 所述主存储设备发送所述快 照的快照标识至所述备份服务器之后, 以及所述主存储设备接收所述备份服务 器发送的查询所述快照的有效数据位图的信令之前, 所述方法还包括:  With reference to the first aspect, in a second possible implementation manner, after the primary storage device sends the snapshot identifier of the snapshot to the backup server, and the primary storage device receives the query sent by the backup server, Before the signaling of the valid data bitmap of the snapshot, the method further includes:
所述主存储设备接收所述备份服务器发送的第一指示, 所述第一指示用于 指示所述主存储设备建立所述快照与所述备份服务器之间的映射关系;  Receiving, by the primary storage device, the first indication sent by the backup server, where the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server;
所述主存储设备根据所述第一指示建立所述快照与所述备份服务器之间的 映射关系, 以使所述备份服务器挂载所述快照。  And the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
结合第一方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所 述方法还包括:  In conjunction with the second possible implementation of the first aspect, in a third possible implementation, the method further includes:
所述主存储设备接收所述备份服务器发送的第二指示, 所述第二指示用于 指示所述主存储设备解除所述备份服务器与所述快照间的映射关系; 所述主存储设备解除所述备份服务器与所述快照间的映射关系。 结合第一方面或者结合第一方面的第一种可能的实现方式至第三种可能的 实现方式中的任一种实现方式, 在第四种可能的实现方式中, 所述方法还包括: 所述主存储设备接收所述备份服务器发送的第三指示, 所述第三指示用于 指示所述主存储设备删除所述源卷的所述快照; Receiving, by the primary storage device, a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release a mapping relationship between the backup server and the snapshot; The primary storage device releases the mapping relationship between the backup server and the snapshot. With reference to the first aspect, or any one of the first possible implementation to the third possible implementation, in a fourth possible implementation, the method further includes: Receiving, by the primary storage device, a third indication sent by the backup server, where the third indication is used to instruct the primary storage device to delete the snapshot of the source volume;
所述主存储设备删除所述源卷的所述快照。  The primary storage device deletes the snapshot of the source volume.
第二方面, 本申请实施例提供了一种数据备份方法, 包括:  In a second aspect, the embodiment of the present application provides a data backup method, including:
备份服务器发送备份指示给主存储设备, 以指示所述主存储设备生成源卷 的快照, 由所述主存储设备发送所述快照的快照标识至所述备份服务器;  The backup server sends a backup indication to the primary storage device to instruct the primary storage device to generate a snapshot of the source volume, and the primary storage device sends the snapshot identifier of the snapshot to the backup server;
所述备份服务器接收所述主存储设备发送的快照标识;  Receiving, by the backup server, a snapshot identifier sent by the primary storage device;
所述备份服务器发送查询所述快照的有效数据位图的信令给所述主存储设 备, 以使所述主存储设备根据所述查询所述快照的有效数据位图的信令查询所 述快照的有效数据位图;  The backup server sends a signaling for querying the valid data bitmap of the snapshot to the primary storage device, so that the primary storage device queries the snapshot according to the signaling of querying the valid data bitmap of the snapshot. Valid data bitmap;
所述备份服务器接收所述主存储设备发送的所述快照的有效数据位图; 所述备份服务器 ^分所述快照的有效数据位图至备份存储设备;  The backup server receives a valid data bitmap of the snapshot sent by the primary storage device; the backup server divides the valid data bitmap of the snapshot to a backup storage device;
所述备份服务器接收所述备份存储设备发送的已备份所述快照的有效数据 位图的反馈信息;  Receiving, by the backup server, feedback information of the valid data bitmap of the snapshot that is backed up by the backup storage device;
所述备份服务器根据所述已备份所述快照的有效数据位图的所述反馈信息 发送查询所述快照的所述有效数据位图对应的有效数据的信令给所述主存储设 备, 以使所述主存储设备根据所述查询所述快照的所述有效数据位图对应的有 效数据的所述信令查询所述有效数据;  And the backup server sends, according to the feedback information of the valid data bitmap of the snapshot that is backed up, the signaling for querying the valid data corresponding to the valid data bitmap of the snapshot to the primary storage device, so that The primary storage device queries the valid data according to the signaling that queries the valid data corresponding to the valid data bitmap of the snapshot;
所述备份服务器接收所述主存储设备发送的所述有效数据;  The backup server receives the valid data sent by the primary storage device;
所述备份服务器 ^分所述有效数据至所述备份存储设备;  The backup server divides the valid data into the backup storage device;
所述备份服务器接收所述备份存储设备发送的已备份所述快照的所述有效 数据的反馈信息。  The backup server receives feedback information of the valid data that has been backed up by the backup storage device and backed up the snapshot.
结合第二方面, 在第一种可能的实现方式中, 所述备份服务器接收所述主 存储设备发送的快照标识之后, 以及所述备份服务器发送查询所述快照的有效 数据位图的信令给所述主存储设备之前, 所述方法还包括: 所述备份服务器发送第一指示给所述主存储设备, 以使所述主存储设备根 据所述第一指示建立所述快照与所述备份服务器之间的映射关系; With reference to the second aspect, in a first possible implementation manner, after the backup server receives the snapshot identifier sent by the primary storage device, and the backup server sends a signaling for querying the valid data bitmap of the snapshot Before the primary storage device, the method further includes: The backup server sends a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
所述备份服务器根据所述快照与所述备份服务器之间的映射关系, 挂载所 述快照。  The backup server mounts the snapshot according to a mapping relationship between the snapshot and the backup server.
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所 述方法还包括:  In conjunction with the first possible implementation of the second aspect, in a second possible implementation, the method further includes:
所述备份服务器发送第二指示给所述主存储设备, 以使所述主存储设备解 除所述备份服务器与所述快照间的映射关系。  The backup server sends a second indication to the primary storage device, so that the primary storage device removes the mapping relationship between the backup server and the snapshot.
结合第二方面或者第二方面的第一种可能的实现方式或者第二种可能的实 现方式, 在第三种可能的实现方式中, 所述方法还包括:  With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner, in a third possible implementation manner, the method further includes:
所述备份服务器发送第三指示给所述主存储设备, 以使所述主存储设备删 除所述源卷的所述快照。  The backup server sends a third indication to the primary storage device to cause the primary storage device to delete the snapshot of the source volume.
第三方面, 本申请实施例提供了一种数据备份方法, 包括:  In a third aspect, the embodiment of the present application provides a data backup method, including:
主存储设备接收备份服务器按照预设时间, 间隔性发送的备份指示, 所述 备份指示用于指示所述主存储设备生成快照, 所述预设时间为本次备份数据与 本次备份数据相邻的前一次备份数据的时间间隔;  The primary storage device receives the backup indication that the backup server sends the interval according to the preset time interval, and the backup indication is used to instruct the primary storage device to generate a snapshot, where the preset time is the current backup data and the current backup data. The time interval of the previous backup data;
所述主存储设备按照所述备份指示生成快照;  The primary storage device generates a snapshot according to the backup indication;
所述主存储设备发送所述快照的快照标识至所述备份服务器;  Sending, by the primary storage device, a snapshot identifier of the snapshot to the backup server;
所述主存储设备接收所述备份服务器发送的查询所述本次备份数据时的快 照与所述本次备份数据相邻的前一次备份数据时的快照间的差异数据位图的信 令;  Receiving, by the primary storage device, a signal of a difference data bitmap between the snapshots when the current backup data is queried by the backup server and the previous backup data adjacent to the current backup data;
所述主存储设备根据查询所述本次备份数据时的快照与所述本次备份数据 相邻的前一次备份数据时的快照间的差异数据位图的信令查询所述本次备份数 据时的快照和与所述本次备份数据相邻的前一次备份数据时的快照间的所述差 异数据位图;  The primary storage device queries the current backup data according to the signaling of the difference data bitmap between the snapshot when the current backup data is queried and the previous backup data adjacent to the current backup data. The difference data bitmap between the snapshot and the snapshot when the previous backup data is adjacent to the current backup data;
所述主存储设备发送所述本次备份数据时的快照与所述本次备份数据相邻 的前一次备份数据时的快照间的所述差异数据位图至所述备份服务器, 以使所 述备份服务器备份所述本次备份数据时的快照与所述本次备份数据相邻的前一 次备份数据时的快照间的所述差异数据位图至备份存储设备; 所述主存储设备接收所述备份服务器发送的查询所述差异数据位图对应的 差异数据的信令; Sending, by the primary storage device, the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to the backup server, so that the The backup server backs up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to the backup storage device; Receiving, by the primary storage device, signaling for querying difference data corresponding to the difference data bitmap of the backup server;
所述主存储设备根据所述查询所述差异数据位图对应的差异数据的所述信 令查询所述差异数据;  The primary storage device queries the difference data according to the signal that queries the difference data corresponding to the difference data bitmap.
所述主存储设备发送所述差异数据至所述备份服务器, 以使所述备份服务 器备份所述差异数据至所述备份存储设备。  The primary storage device sends the difference data to the backup server to cause the backup server to back up the difference data to the backup storage device.
结合第三方面, 在第一种可能的实现方式中, 所述主存储设备发送所述快 照的快照标识至所述备份服务器之后, 以及所述主存储设备接收所述备份服务 器发送的查询所述本次备份数据时的快照与所述本次备份数据相邻的前一次备 份数据时的快照间的差异数据位图的信令之前, 所述方法还包括:  With reference to the third aspect, in a first possible implementation manner, after the primary storage device sends the snapshot identifier of the snapshot to the backup server, and the primary storage device receives the query sent by the backup server, The method further includes: before the snapshot of the backup data and the signaling of the difference data bitmap between the snapshots of the previous backup data adjacent to the current backup data, the method further includes:
所述主存储设备接收所述备份服务器发送的第一指示, 所述第一指示用于 指示所述主存储设备建立所述快照与所述备份服务器之间的映射关系;  Receiving, by the primary storage device, the first indication sent by the backup server, where the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server;
所述主存储设备根据所述第一指示建立所述快照与所述备份服务器之间的 映射关系, 以使所述备份服务器挂载所述快照。  And the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
结合第三方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所 述方法还包括:  In conjunction with the first possible implementation of the third aspect, in a second possible implementation, the method further includes:
所述主存储设备接收所述备份服务器发送的第二指示, 所述第二指示用于 指示所述主存储设备解除所述备份服务器与所述快照间的映射关系;  Receiving, by the primary storage device, a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release a mapping relationship between the backup server and the snapshot;
所述主存储设备解除所述备份服务器与所述快照间的映射关系。  The primary storage device releases the mapping relationship between the backup server and the snapshot.
结合第三方面或者第三方面的第一种可能的实现方式或者第二种可能的实 现方式, 在第三种可能的实现方式中, 所述方法还包括:  With reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner, in a third possible implementation manner, the method further includes:
所述主存储设备接收所述备份服务器发送的第三指示, 所述第三指示用于 指示删除与所述本次备份数据相邻的前一次备份数据时的快照;  Receiving, by the primary storage device, a third indication sent by the backup server, where the third indication is used to indicate that a snapshot of the previous backup data adjacent to the current backup data is deleted;
所述主存储设备删除与所述本次备份数据相邻的前一次备份数据时的快 照。  The primary storage device deletes a snapshot of the previous backup data adjacent to the current backup data.
第四方面, 本申请实施例提供了一种数据备份方法, 包括:  In a fourth aspect, the embodiment of the present application provides a data backup method, including:
备份服务器按照预设时间, 间隔性发送备份指示给主存储设备, 以使所述 主存储设备按照所述备份指示生成快照, 由所述主存储设备生成快照, 并发送 所述快照的快照标识至所述备份服务器; 所述预设时间为本次备份数据与本次 备份数据相邻的前一次备份数据的时间间隔; The backup server sends the backup indication to the primary storage device intermittently according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, and the primary storage device generates a snapshot and sends the snapshot. The snapshot of the snapshot is identified to the backup server; the preset time is a time interval between the backup data and the previous backup data adjacent to the current backup data;
所述备份服务器接收所述主存储设备发送的所述快照的快照标识; 所述备份服务器发送查询所述本次备份数据时的所述快照与所述本次备份 数据相邻的前一次备份数据时的快照间的差异数据位图的信令至所述主存储设 备, 以使所述主存储设备查询所述本次备份数据时的快照和与所述本次备份数 据相邻的前一次备份数据时的快照间的所述差异数据位图;  The backup server receives the snapshot identifier of the snapshot sent by the primary storage device; the backup server sends the previous backup data adjacent to the current backup data when the snapshot is queried for the current backup data. Signaling of the difference data bitmap between the snapshots to the primary storage device, so that the primary storage device queries the snapshot of the current backup data and the previous backup adjacent to the current backup data The difference data bitmap between snapshots at the time of data;
所述备份服务器接收所述本次备份数据时的所述快照和与所述本次备份数 据相邻的前一次备份数据时的快照间的所述差异数据位图;  And the difference data bitmap between the snapshot when the backup server receives the current backup data and the snapshot when the previous backup data is adjacent to the current backup data;
所述备份服务器备份所述本次备份数据时的快照和与所述本次备份数据相 邻的前一次备份数据时的快照间的所述差异数据位图至备份存储设备;  The backup server backs up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to the backup storage device;
所述备份服务器接收所述备份存储设备发送的已备份所述差异数据位图的 反馈信息;  Receiving, by the backup server, feedback information of the difference data bitmap that has been backed up by the backup storage device;
所述备份服务器发送查询所述差异数据位图对应的差异数据的信令给所述 主存储设备, 以使所述主存储设备查询所述差异数据位图对应的差异数据; 所述备份服务器接收所述主存储设备发送的所述差异数据;  The backup server sends a signaling for querying the difference data corresponding to the difference data bitmap to the primary storage device, so that the primary storage device queries the difference data corresponding to the difference data bitmap; the backup server receives The difference data sent by the primary storage device;
所述备份服务器 ^分所述差异数据至所述备份存储设备;  The backup server divides the difference data into the backup storage device;
所述备份服务器接收所述备份存储设备发送的已备份所述差异数据的反馈 信息。  The backup server receives the feedback information sent by the backup storage device that has backed up the difference data.
结合第四方面, 在第一种可能的实现方式中, 所述备份服务器接收所述主 存储设备发送的所述快照的快照标识之后, 以及所述备份服务器发送查询所述 本次备份数据时的所述快照与所述本次备份数据相邻的前一次备份数据时的快 照间的差异数据位图的信令至所述主存储设备之前, 所述方法还包括:  With reference to the fourth aspect, in a first possible implementation manner, after the backup server receives the snapshot identifier of the snapshot sent by the primary storage device, and when the backup server sends the query for the current backup data, The method further includes: before the signaling of the difference data bitmap between the snapshots of the previous backup data and the current backup data to the primary storage device, the method further includes:
所述备份服务器发送第一指示给所述主存储设备, 以使所述主存储设备根 据所述第一指示建立所述快照与所述备份服务器之间的映射关系;  The backup server sends a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
所述备份服务器根据所述映射关系挂载所述快照。  The backup server mounts the snapshot according to the mapping relationship.
结合第四方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所 述方法还包括: 所述备份服务器发送第二指示给所述主存储设备, 以使所述主存储设备根 据所述第二指示解除所述备份服务器与所述快照间的映射关系。 With the first possible implementation of the fourth aspect, in a second possible implementation, the method further includes: The backup server sends a second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot according to the second indication.
结合第四方面或者第四方面的第一种可能的实现方式或者第二种可能的实 现方式, 在第三种可能的实现方式中, 所述方法还包括:  With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, or the second possible implementation manner, in a third possible implementation manner, the method further includes:
所述备份服务器发送第三指示给所述主存储设备, 以使所述主存储设备根 据所述第三指示删除与所述本次备份数据相邻的前一次备份数据时的快照。  And the backup server sends a third indication to the primary storage device, so that the primary storage device deletes a snapshot of the previous backup data adjacent to the current backup data according to the third indication.
第五方面, 本申请实施例提供了一种存储设备, 包括:  In a fifth aspect, the embodiment of the present application provides a storage device, including:
接收单元, 用于接收备份服务器发送的备份指示, 所述备份指示用于指示 所述存储设备生成源卷的快照;  a receiving unit, configured to receive a backup indication sent by the backup server, where the backup indication is used to instruct the storage device to generate a snapshot of the source volume;
快照单元, 用于生成源卷的快照;  a snapshot unit, configured to generate a snapshot of the source volume;
发送单元, 用于发送所述快照的快照标识至所述备份良务器;  a sending unit, configured to send a snapshot identifier of the snapshot to the backup server;
所述接收单元, 还用于接收所述备份服务器发送的查询所述快照的有效数 据位图的信令;  The receiving unit is further configured to receive signaling sent by the backup server to query a valid data bitmap of the snapshot;
处理单元, 用于根据所述查询所述快照的有效数据位图的信令查询所述快 照的有效数据位图;  a processing unit, configured to query, according to the signaling of the valid data bitmap of the snapshot, the valid data bitmap of the snapshot;
所述发送单元, 还用于发送所述快照的有效数据位图至所述备份服务器, 以使所述备份服务器备份所述快照的有效数据位图至备份存储设备;  The sending unit is further configured to send a valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device;
所述接收单元, 还用于接收所述备份服务器发送的查询所述快照的有效数 据位图对应的有效数据的信令;  The receiving unit is further configured to receive, by the backup server, signaling for querying valid data corresponding to the valid data bitmap of the snapshot;
所述处理单元, 还用于根据所述查询所述快照的有效数据位图对应的有效 数据的信令查询所述有效数据;  The processing unit is further configured to query the valid data according to the signaling of the valid data corresponding to the valid data bitmap of the snapshot.
所述发送单元, 还用于发送所述有效数据至所述备份服务器, 以使所述备 份服务器备份所述有效数据至所述备份存储设备。  The sending unit is further configured to send the valid data to the backup server, so that the backup server backs up the valid data to the backup storage device.
结合第五方面, 在第一种可能的实现方式中, 该存储设备还包括: 创建单元, 用于创建源卷;  With reference to the fifth aspect, in a first possible implementation, the storage device further includes: a creating unit, configured to create a source volume;
映射单元, 用于映射所述源卷给应用服务器, 以使所述应用服务器挂载所 述源卷, 以存储所述应用服务器的数据至所述源卷。  a mapping unit, configured to map the source volume to an application server, so that the application server mounts the source volume to store data of the application server to the source volume.
结合第五方面, 在第二种可能的实现方式中, 所述接收单元, 还用于接收所述备份服务器发送的第一指示; 所述第一指 示用于指示所述主存储设备建立所述快照与所述备份服务器之间的映射关系; 所述处理单元, 还用于根据所述第一指示建立所述快照与所述备份服务器 之间的映射关系, 以使所述备份服务器挂载所述快照。 In combination with the fifth aspect, in a second possible implementation manner, The receiving unit is further configured to receive a first indication sent by the backup server, where the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server; And the unit is further configured to establish, according to the first indication, a mapping relationship between the snapshot and the backup server, so that the backup server mounts the snapshot.
结合第五方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述接收单元, 还用于接收所述备份服务器发送的第二指示, 所述第二指 示用于指示所述主存储设备解除所述备份服务器与所述快照间的映射关系; 所述处理单元, 还用于解除所述备份服务器与所述快照间的映射关系。 结合第五方面或者第五方面的第一种可能的实现方式或者第二种可能的实 现方式或者第三种可能的实现方式,  With the second possible implementation of the fifth aspect, in a third possible implementation, the receiving unit is further configured to receive a second indication sent by the backup server, where the second indication is used to indicate The primary storage device releases the mapping relationship between the backup server and the snapshot; the processing unit is further configured to release a mapping relationship between the backup server and the snapshot. In combination with the fifth aspect or the first possible implementation of the fifth aspect or the second possible implementation manner or the third possible implementation manner,
所述接收单元, 还用于接收所述备份服务器发送的第三指示, 所述第三指 示用于指示所述主存储设备删除所述源卷的所述快照;  The receiving unit is further configured to receive a third indication sent by the backup server, where the third indication is used to instruct the primary storage device to delete the snapshot of the source volume;
所述处理单元, 还用于删除所述源卷的所述快照。  The processing unit is further configured to delete the snapshot of the source volume.
第六方面, 本申请实施例提供了一种服务器, 包括:  In a sixth aspect, an embodiment of the present application provides a server, including:
发送单元, 用于发送备份指示给主存储设备, 以指示所述主存储设备生成 源卷的快照, 由所述主存储设备发送所述快照的快照标识至所述备份服务器; 接收单元, 用于接收所述主存储设备发送的快照标识;  a sending unit, configured to send a backup indication to the primary storage device, to indicate that the primary storage device generates a snapshot of the source volume, and send, by the primary storage device, a snapshot identifier of the snapshot to the backup server; Receiving a snapshot identifier sent by the primary storage device;
所述发送单元, 还用于发送查询所述快照的有效数据位图的信令给所述主 存储设备, 以使所述主存储设备根据所述查询所述快照的有效数据位图的信令 查询所述快照的有效数据位图;  The sending unit is further configured to send signaling for querying the valid data bitmap of the snapshot to the primary storage device, so that the primary storage device performs signaling according to the querying the valid data bitmap of the snapshot. Querying a valid data bitmap of the snapshot;
所述接收单元, 还用于接收所述主存储设备发送的所述快照的有效数据位 图;  The receiving unit is further configured to receive a valid data bitmap of the snapshot sent by the primary storage device;
备份单元, 用于 ^分所述快照的有效数据位图至备份存储设备;  a backup unit, configured to divide the valid data bitmap of the snapshot into a backup storage device;
所述接收单元, 还用于接收所述备份存储设备发送的已备份所述快照的有 效数据位图的反馈信息;  The receiving unit is further configured to receive, by the backup storage device, feedback information of a valid data bitmap of the snapshot that has been backed up;
所述发送单元, 还用于根据所述已备份所述快照的有效数据位图的所述反 馈信息发送查询所述快照的所述有效数据位图对应的有效数据的信令给所述主 存储设备, 以使所述主存储设备根据所述查询所述快照的所述有效数据位图对 应的有效数据的所述信令查询所述有效数据; 所述接收单元, 还用于接收所述主存储设备发送的所述有效数据; 所述备份单元, 还用于备份所述有效数据至所述备份存储设备; The sending unit is further configured to send, according to the feedback information of the valid data bitmap of the snapshot that has been backed up, the signaling for querying the valid data corresponding to the valid data bitmap of the snapshot to the primary storage. The device, to enable the primary storage device to query the valid data according to the signaling that queries the valid data corresponding to the valid data bitmap of the snapshot; The receiving unit is further configured to receive the valid data that is sent by the primary storage device; the backup unit is further configured to back up the valid data to the backup storage device;
所述接收单元, 还用于接收所述备份存储设备发送的已备份所述快照的所 述有效数据的反馈信息。  The receiving unit is further configured to receive feedback information of the valid data that is backed up by the backup storage device and that is backed up by the snapshot.
结合第六方面, 在第一种可能的实现方式中,  In combination with the sixth aspect, in a first possible implementation manner,
所述发送单元, 还用于根据所述快照标识发送第一指示给所述主存储设备, 以使所述主存储设备根据所述第一指示建立所述快照与所述备份服务器之间的 映射关系;  The sending unit is further configured to send the first indication to the primary storage device according to the snapshot identifier, so that the primary storage device establishes a mapping between the snapshot and the backup server according to the first indication. Relationship
所述服务器还包括: 处理单元, 用于根据所述快照与所述服务器之间的映 射关系挂载所述快照。  The server further includes: a processing unit, configured to mount the snapshot according to a mapping relationship between the snapshot and the server.
结合第六方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述发送单元, 还用于发送第二指示给所述主存储设备, 以使所述主存储 设备解除所述备份服务器与所述快照间的映射关系。  With reference to the first possible implementation manner of the sixth aspect, in a second possible implementation, the sending unit is further configured to send a second indication to the primary storage device, so that the primary storage device is released a mapping relationship between the backup server and the snapshot.
结合第二方面或者第二方面的第一种可能的实现方式或者第二种可能的实 现方式, 在第三种可能的实现方式中,  With reference to the second aspect or the first possible implementation of the second aspect or the second possible implementation manner, in a third possible implementation manner,
所述发送单元, 还用于发送第三指示给所述主存储设备, 以使所述主存储 设备删除所述源卷的所述快照。 第七方面, 本申请实施例提供了一种存储设备, 包括:  The sending unit is further configured to send a third indication to the primary storage device, so that the primary storage device deletes the snapshot of the source volume. In a seventh aspect, the embodiment of the present application provides a storage device, including:
接收单元, 用于接收备份服务器按照预设时间, 间隔性发送的备份指示, 所述备份指示用于指示所述存储设备生成快照, 所述预设时间为本次备份数据 与本次备份数据相邻的前一次备份数据的时间间隔;  a receiving unit, configured to receive a backup indication that is sent by the backup server according to a preset time interval, where the backup indication is used to instruct the storage device to generate a snapshot, where the preset time is the current backup data and the current backup data. The time interval of the previous backup data of the neighbor;
快照单元, 用于按照所述备份指示生成快照;  a snapshot unit, configured to generate a snapshot according to the backup indication;
发送单元, 用于发送所述快照的快照标识至所述备份良务器;  a sending unit, configured to send a snapshot identifier of the snapshot to the backup server;
所述接收单元, 还用于接收所述备份服务器发送的查询所述本次备份数据 时的快照与所述本次备份数据相邻的前一次备份数据时的快照间的差异数据位 图的信令;  The receiving unit is further configured to receive a letter of a difference data bitmap between snapshots when the snapshot of the current backup data sent by the backup server and the previous backup data adjacent to the backup data is sent by the backup server Order
处理单元, 用于根据所述查询所述本次备份数据时的快照与所述本次备份 数据相邻的前一次备份数据时的快照间的差异数据位图的信令查询所述本次备 份数据时的快照和与所述本次备份数据相邻的前一次备份数据时的快照间的所 述差异数据位图; a processing unit, configured to perform, according to the signaling query of the difference data bitmap between the snapshot when the current backup data is in the query and the previous backup data adjacent to the current backup data, the current query a difference data bitmap between a snapshot of the data and a snapshot of the previous backup data adjacent to the current backup data;
所述发送单元, 还用于发送所述本次备份数据时的快照与所述本次备份数 据相邻的前一次备份数据时的快照间的所述差异数据位图至所述备份服务器, 以使所述备份服务器备份所述本次备份数据时的快照与所述本次备份数据相邻 的前一次备份数据时的快照间的所述差异数据位图至备份存储设备;  The sending unit is further configured to send the difference data bitmap between the snapshots of the current backup data and the previous backup data adjacent to the current backup data to the backup server, to And causing the backup server to back up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to the backup storage device;
所述接收单元, 还用于接收所述备份服务器发送的查询所述差异数据位图 对应的差异数据的信令;  The receiving unit is further configured to receive signaling sent by the backup server to query difference data corresponding to the difference data bitmap.
所述处理单元, 还用于根据所述查询所述差异数据位图对应的差异数据的 所述信令查询所述差异数据;  The processing unit is further configured to query the difference data according to the signaling of querying the difference data corresponding to the difference data bitmap.
所述发送单元, 还用于发送所述差异数据至所述备份服务器, 以使所述备 份服务器备份所述差异数据至所述备份存储设备。  The sending unit is further configured to send the difference data to the backup server, so that the backup server backs up the difference data to the backup storage device.
结合第七方面, 在第一种可能的实现方式中, 所述接收单元, 还用于接收 所述备份服务器发送的第一指示; 所述第一指示用于指示所述主存储设备建立 所述快照与所述备份服务器之间的映射关系;  With reference to the seventh aspect, in a first possible implementation, the receiving unit is further configured to receive a first indication sent by the backup server, where the first indication is used to instruct the primary storage device to establish the a mapping relationship between the snapshot and the backup server;
所述处理单元, 还用于根据所述第一指示建立所述快照与所述备份服务器 之间的映射关系, 以使所述备份服务器挂载所述快照。  The processing unit is further configured to establish, according to the first indication, a mapping relationship between the snapshot and the backup server, so that the backup server mounts the snapshot.
结合第七方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述接收单元, 还用于接收所述备份服务器发送的第二指示, 所述第二指 示用于指示所述主存储设备解除所述备份服务器与所述快照间的映射关系; 所述处理单元, 还用于解除所述备份服务器与所述快照间的映射关系。 结合第七方面或者第七方面的第一种可能的实现方式或者第二种可能的实 现方式, 在第三种可能的实现方式中,  With reference to the first possible implementation manner of the seventh aspect, in a second possible implementation manner, the receiving unit is further configured to receive a second indication sent by the backup server, where the second indication is used to indicate The primary storage device releases the mapping relationship between the backup server and the snapshot; the processing unit is further configured to release a mapping relationship between the backup server and the snapshot. With reference to the seventh aspect or the first possible implementation manner of the seventh aspect or the second possible implementation manner, in a third possible implementation manner,
所述接收单元, 还用于接收所述备份服务器发送的第三指示, 所述第三指 示用于指示删除与所述本次备份数据相邻的前一次备份数据时的快照;  The receiving unit is further configured to receive a third indication sent by the backup server, where the third indication is used to indicate to delete a snapshot when the previous backup data is adjacent to the current backup data;
所述处理单元, 还用于删除与所述本次备份数据相邻的前一次备份数据时 的快照。  The processing unit is further configured to delete a snapshot of the previous backup data adjacent to the current backup data.
第八方面, 本申请实施例提供了一种服务器, 包括: 发送单元, 用于按照预设时间, 间隔性发送备份指示给主存储设备, 以使 所述主存储设备按照所述备份指示生成快照, 由所述主存储设备生成快照, 并 发送所述快照的快照标识至所述备份服务器; 所述预设时间为本次备份数据与 本次备份数据相邻的前一次备份数据的时间间隔; In an eighth aspect, an embodiment of the present application provides a server, including: a sending unit, configured to send a backup indication to the primary storage device intermittently according to a preset time, so that the primary storage device generates a snapshot according to the backup indication, generates a snapshot by the primary storage device, and sends the snapshot The snapshot is identified to the backup server; the preset time is a time interval between the backup data and the previous backup data adjacent to the backup data;
接收单元, 用于接收所述主存储设备发送的所述快照的快照标识; 所述发送单元, 还用于发送查询所述本次备份数据时的所述快照与所述本 次备份数据相邻的前一次备份数据时的快照间的差异数据位图的信令至所述主 存储设备, 以使所述主存储设备查询所述本次备份数据时的快照和与所述本次 备份数据相邻的前一次备份数据时的快照间的所述差异数据位图;  a receiving unit, configured to receive a snapshot identifier of the snapshot sent by the primary storage device, where the sending unit is further configured to send the snapshot when the current backup data is queried adjacent to the current backup data The signaling of the difference data bitmap between the snapshots of the previous backup data to the primary storage device, so that the primary storage device queries the snapshot of the current backup data and the current backup data The difference data bitmap between the snapshots of the neighbor when the data was previously backed up;
所述接收单元, 还用于接收所述本次备份数据时的所述快照和与所述本次 备份数据相邻的前一次备份数据时的快照间的所述差异数据位图;  The receiving unit is further configured to receive the difference data bitmap between the snapshot when the current backup data is current and the snapshot when the previous backup data is adjacent to the current backup data;
备份单元, 用于备份所述本次备份数据时的快照和与所述本次备份数据相 邻的前一次备份数据时的快照间的所述差异数据位图至备份存储设备;  a backup unit, configured to back up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to the backup storage device;
所述接收单元, 还用于接收所述备份存储设备发送的已备份所述差异数据 位图的反馈信息;  The receiving unit is further configured to receive feedback information that is sent by the backup storage device and that is backed up by the difference data bitmap;
所述发送单元, 还用于发送查询所述差异数据位图对应的差异数据的信令 给所述主存储设备, 以使所述主存储设备查询所述差异数据位图对应的差异数 据;  The sending unit is further configured to send, to the primary storage device, the signaling that is used to query the difference data corresponding to the difference data bitmap, so that the primary storage device queries the difference data corresponding to the difference data bitmap.
所述接收单元, 还用于接收所述主存储设备发送的所述差异数据; 所述备份单元, 还用于备份所述差异数据至所述备份存储设备;  The receiving unit is further configured to receive the difference data sent by the primary storage device; the backup unit is further configured to back up the difference data to the backup storage device;
所述接收单元, 还用于接收所述备份存储设备发送的已备份所述差异数据 的反馈信息。  The receiving unit is further configured to receive feedback information that is sent by the backup storage device and that is backed up by the difference data.
结合第八方面, 在第一种可能的实现方式中,  In combination with the eighth aspect, in a first possible implementation manner,
所述发送单元, 还用于根据所述快照的快照标识发送第一指示给所述主存 储设备, 以使所述主存储设备根据所述第一指示建立所述快照与所述备份服务 器之间的映射关系;  The sending unit is further configured to send a first indication to the primary storage device according to the snapshot identifier of the snapshot, so that the primary storage device establishes the snapshot between the snapshot and the backup server according to the first indication. Mapping relationship;
所述服务器还包括: 处理单元, 用于根据所述映射关系挂载所述快照。 结合第八方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述发送单元, 还用于发送第二指示给所述主存储设备, 以使所述主存储 设备根据所述第二指示解除所述备份服务器与所述快照间的映射关系。 The server further includes: a processing unit, configured to mount the snapshot according to the mapping relationship. In conjunction with the first possible implementation of the eighth aspect, in a second possible implementation manner, The sending unit is further configured to send a second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot according to the second indication.
结合第八方面或者第八方面的第一种可能的实现方式或者在第二种可能的 实现方式, 在第三种可能的实现方式中,  With reference to the eighth aspect or the first possible implementation of the eighth aspect or the second possible implementation manner, in a third possible implementation manner,
所述发送单元, 还用于发送第三指示给所述主存储设备, 以使所述主存储 设备根据所述第三指示删除与所述本次备份数据相邻的前一次备份数据时的快 照。  The sending unit is further configured to send a third indication to the primary storage device, so that the primary storage device deletes a snapshot of a previous backup data adjacent to the current backup data according to the third indication. .
第九方面, 本申请实施例提供了一种数据备份系统, 包括第五方面或者结 合第五方面的第一种可能的实现方式至第四种可能的实现方式中的任一种主存 储设备, 以及包括如权利要求第六方面或者结合第六方面的第一种可能的实现 方式至第三种可能的实现方式中的任一种备份月良务器; 所述数据备份系统还包 括:  The ninth aspect, the embodiment of the present application provides a data backup system, including the fifth aspect or the primary storage device of any one of the first possible implementation manner to the fourth possible implementation manner of the fifth aspect, And the backup server including the sixth aspect of the claim or the first possible implementation to the third possible implementation of the sixth aspect; the data backup system further includes:
备份存储设备, 用于存储备份服务器发送的源卷的快照的有效数据位图; 所述备份存储设备, 还用于发送已备份所述快照的有效数据位图的反馈信 息给所述备份服务器;  a backup storage device, configured to store a valid data bitmap of a snapshot of the source volume sent by the backup server; the backup storage device is further configured to send feedback information of the valid data bitmap of the snapshot that has been backed up to the backup server;
所述备份存储设备, 还用于存储备份服务器发送的与有效数据位图对应的 有效数据;  The backup storage device is further configured to store valid data corresponding to the valid data bitmap sent by the backup server;
所述备份存储设备, 还用于发送已存储所述快照的有效数据的反馈信息给 所述备份服务器。  The backup storage device is further configured to send feedback information of valid data of the snapshot to the backup server.
第十方面, 本申请实施例提供了一种数据备份系统, 包括第七方面或者结 合第七方面的第一种可能的实现方式至第三种可能的实现方式中的任一种主存 储设备, 以及包括第八方面提供的或者结合第八方面的第一种可能的实现方式 至第三种可能的实现方式中的任一种备份服务器; 所述数据备份系统还包括: 备份存储设备, 用于存储本次备份数据时的快照和与所述本次备份数据相 邻的前一次备份数据时的快照间的差异数据位图;  The tenth aspect, the embodiment of the present application provides a data backup system, including the seventh aspect or the primary storage device of any one of the first possible implementation manner to the third possible implementation manner of the seventh aspect, And a backup server provided by the eighth aspect or combined with the first possible implementation manner of the eighth aspect to the third possible implementation manner; the data backup system further includes: a backup storage device, configured to: a difference data bitmap between the snapshot when the backup data is stored and the snapshot when the previous backup data is adjacent to the current backup data;
所述备份存储设备, 还用于发送已备份所述差异数据位图的反馈信息给所 述备份服务器;  The backup storage device is further configured to send feedback information of the difference data bitmap that has been backed up to the backup server;
所述备份存储设备, 还用于存储与所述差异数据位图对应的所述差异数据 至所述备份存储设备; 所述备份存储设备, 还用于发送已存储所述差异数据的反馈信息给所述备 份服务器。 The backup storage device is further configured to store the difference data corresponding to the difference data bitmap to the backup storage device; The backup storage device is further configured to send feedback information that has stored the difference data to the backup server.
本申请实施例通过主存储设备接收到备份服务器发送的触发备份策略的备 份指示后, 经过快照技术处理, 发送备份的数据至备份服务器及备份存储设备, 备份过程中没有应用服务器的参与, 避免了通过应用服务器运行客户端备份软 件或者磁盘镜像功能软件备份数据而影响到应用服务器自身的业务性能, 实现 了应用服务器正常运行的同时, 高效率备份数据的功能, 即备份数据功能和应 用服务器运行业务软件互不干扰。  After receiving the backup instruction of the triggering backup policy sent by the backup server, the primary storage device processes the snapshot data to send the backup data to the backup server and the backup storage device. The application server does not participate in the backup process. The application server runs the client backup software or the disk mirroring function software to back up the data, which affects the service performance of the application server itself, and realizes the function of efficiently backing up the data while the application server is running normally, that is, the backup data function and the application server running the service. The software does not interfere with each other.
本申请实施例通过主存储设备发送查询到的源卷的快照的有效数据位图 给备份服务器, 以便备份服务器发送有效数据位图或者进一步发送有效数据 位图对应的有效数据给备份存储设备,使备份存储设备能够备份有效的数据, 进而不用备份无效的数据, 精筒了备份数据。 或者, 通过主存储设备发送查 询到的本次备份数据时的快照和与本次备份数据相邻的前一次备份数据时的 快照之间的差异数据位图给备份服务器, 以便备份服务器发送两次相邻备份 数据时的快照的差异数据位图或者该差异数据位图对应的差异数据给备份存 储设备, 使备份存储设备仅备份存在差异化的数据, 节省了备份存储设备的 存储空间, 进一步提升了备份效率。 通过全量备份或者增量备份使得备份方 案的选择性更多, 以及对应用服务器的性能没有任何影响, 且通过备份服务 器将有效数据、 有效位图或者差异数据差异数据位图存储至文件中, 可以使 用不同于主存储的型号, 即支持异构存储, 增强了备份系统中各个设备的普 遍应用性。 附图说明 为了更清楚地说明本申请实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面 描述中的附图仅仅是本申请的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  The embodiment of the present application sends a valid data bitmap of the snapshot of the source volume to the backup server by using the primary storage device, so that the backup server sends a valid data bitmap or further sends valid data corresponding to the valid data bitmap to the backup storage device, so that the backup storage device is enabled. The backup storage device can back up valid data, so that the backup data cannot be backed up without backing up invalid data. Or, the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data is sent to the backup server by the primary storage device, so that the backup server sends the backup server twice. The difference data bitmap of the snapshot when the data is backed up or the difference data corresponding to the difference data bitmap is sent to the backup storage device, so that the backup storage device only backs up the differentiated data, which saves the storage space of the backup storage device and further improves Backup efficiency. The full backup or incremental backup makes the backup scheme more selective and has no impact on the performance of the application server, and the valid data, valid bitmap or difference data difference data bitmap is stored in the file through the backup server. Using a different model than the primary storage, which supports heterogeneous storage, enhances the general applicability of each device in the backup system. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图 1是本申请实施例一提供的一种数据备份方法的流程图;  1 is a flowchart of a data backup method according to Embodiment 1 of the present application;
图 2是本申请实施例二提供的一种数据备份方法的流程图; 图 3 a是本申请实施例提供的共享存储架构示意图; 2 is a flowchart of a data backup method according to Embodiment 2 of the present application; 3a is a schematic diagram of a shared storage architecture provided by an embodiment of the present application;
图 3b是本申请实施例提供的全量备份的全量数据位图;  FIG. 3b is a full data bitmap of the full backup provided by the embodiment of the present application;
图 3c是本申请实施例提供的第一次备份时获得的快照对应的数据位图 示意图;  FIG. 3c is a schematic diagram of data bitmaps corresponding to snapshots obtained during the first backup provided by the embodiment of the present application;
图 3d是本申请实施例提供的第一次备份时获得的差异数据位图示意图; 图 3e是本申请实施例提供的第二次备份时获得的差异数据位图示意图; 图 3f是本申请实施例提供的第三次备份时获得的差异数据位图示意图; 图 3g是本申请实施例提供的恢复到第三次备份时的全量数据位图示意 图;  FIG. 3 is a schematic diagram of a difference data bitmap obtained when the first backup is provided in the embodiment of the present application; FIG. 3 e is a schematic diagram of a difference data bitmap obtained when the second backup is provided in the embodiment of the present application; FIG. 3g is a schematic diagram of a full-size data bitmap obtained when the third backup is restored according to the embodiment of the present application;
图 4是本申请实施例三提供的一种数据备份方法的流程图;  4 is a flowchart of a data backup method according to Embodiment 3 of the present application;
图 5是本申请实施例四提供的一种数据备份方法的流程图;  5 is a flowchart of a data backup method according to Embodiment 4 of the present application;
图 6是本申请实施例五提供的一种存储设备的结构示意图;  6 is a schematic structural diagram of a storage device according to Embodiment 5 of the present application;
图 7是本申请实施例五提供的另一种存储设备结构示意图;  7 is a schematic structural diagram of another storage device provided in Embodiment 5 of the present application;
图 8是本申请实施例六提供的一种服务器结构示意图;  8 is a schematic structural diagram of a server provided in Embodiment 6 of the present application;
图 9是本申请实施例六提供的另一种服务器结构示意图;  9 is a schematic structural diagram of another server provided in Embodiment 6 of the present application;
图 10是本申请实施例七提供的一种存储设备的结构示意图;  FIG. 10 is a schematic structural diagram of a storage device according to Embodiment 7 of the present application;
图 11是本申请实施例七提供的另一种存储设备的结构示意图;  11 is a schematic structural diagram of another storage device provided in Embodiment 7 of the present application;
图 12是本申请实施例八提供的一种服务器的结构示意图;  FIG. 12 is a schematic structural diagram of a server according to Embodiment 8 of the present application;
图 13是本申请实施例八提供的另一种服务器的结构示意图;  13 is a schematic structural diagram of another server provided in Embodiment 8 of the present application;
图 14是本申请实施例九提供的一种数据备份系统的结构示意图; 图 15是本申请实施例十提供的一种数据备份系统的结构示意图。  FIG. 14 is a schematic structural diagram of a data backup system according to Embodiment 9 of the present application; FIG. 15 is a schematic structural diagram of a data backup system according to Embodiment 10 of the present application.
具体实施方式 下面将结合本申请实施例中的附图, 对本申请实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本申请一部分实施例, 而 不是全部的实施例。 基于本申请中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本申请保护的范围。 The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
下面通过具体实施例, 分别进行详细的说明。  The detailed description will be respectively made below through specific embodiments.
本申请第一实施例提供了一种数据备份方法,主要是基于数据块的备份, 在共享存储架构中, 应用服务器的数据保存在底层的主存储设备上, 为了保 证服务器的数据可靠性, 通常需要对保存在底层的主存储设备中的数据进行 备份, 以免应用系统故障时, 丢失数据, 不能恢复到正常情况。 本实施例通 过采用备份服务器和备份存储设备进行数据备份。 具体地, 请参见图 1 , 图 1 是本申请实施例一提供的一种数据备份方法的流程图; 本实施例一提供的数 据备份方法是以全量备份情况下的主存储设备的角度进行描述的。 如图 1所 示, 本实施例提供的数据备份方法, 包括: The first embodiment of the present application provides a data backup method, which is mainly based on backup of a data block. In the shared storage architecture, the data of the application server is saved on the underlying primary storage device. To ensure the reliability of the server, the data stored in the underlying primary storage device is usually backed up to avoid loss when the application fails. The data cannot be restored to normal. In this embodiment, data backup is performed by using a backup server and a backup storage device. Specifically, please refer to FIG. 1. FIG. 1 is a flowchart of a data backup method according to Embodiment 1 of the present application. The data backup method provided in Embodiment 1 is described in the perspective of a primary storage device in the case of full backup. of. As shown in FIG. 1, the data backup method provided in this embodiment includes:
Slll、 主存储设备接收备份服务器发送的备份指示。  Slll, the primary storage device receives the backup indication sent by the backup server.
其中, 备份指示用于指示主存储设备生成源卷的快照。  The backup indication is used to instruct the primary storage device to generate a snapshot of the source volume.
S112、 主存储设备生成源卷的快照。  S112. The primary storage device generates a snapshot of the source volume.
其中, 对源卷生成一快照, 以便进行全量备份, 即源卷的快照可以作为最 终备份, 以对应用系统实现全面的快速恢复。 存储网络行业协会对快照的定义 是: 关于指定数据集合的一个完全可用拷贝, 该拷贝包括相应数据在某个时间 点 (拷贝开始的时间点) 的映像。 快照可以是其所表示的数据的一个副本, 也 可以是数据的一个复制品。 快照的主要作用主要是能够进行在线数据恢复, 当 快照产生时间点的状态。 快照的另一个作用是为存储用户提供了另外一个数据 访问通道, 当原数据进行在线应用处理时, 用户可以访问快照数据, 还可以利 用快照进行测试等工作。  A snapshot is generated for the source volume for full backup, that is, the snapshot of the source volume can be used as a final backup to achieve full and rapid recovery of the application system. The Storage Networking Industry Association defines snapshots as: A fully available copy of a specified data set that includes an image of the corresponding data at a point in time (the point in time when the copy begins). A snapshot can be a copy of the data it represents, or it can be a replica of the data. The main role of the snapshot is mainly to enable online data recovery, when the snapshot produces a state at a point in time. Another function of the snapshot is to provide another data access channel for the storage user. When the original data is processed online, the user can access the snapshot data, and can also use the snapshot for testing.
S113、 主存储设备发送快照的快照标识至备份服务器, 以使备份服务器发 送第一指示给主存储设备。  S113. The primary storage device sends the snapshot identifier of the snapshot to the backup server, so that the backup server sends the first indication to the primary storage device.
其中, 第一指示用于指示主存储设备建立快照与备份服务器之间的映射关 系。  The first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server.
S114、 主存储设备接收第一指示。  S114. The primary storage device receives the first indication.
S115、 主存储设备根据第一指示建立快照与备份服务器之间的映射关系, 以使备份服务器挂载快照。  S115. The primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
S116、 主存储设备接收备份服务器发送的查询快照的有效数据位图的信令。 可选的, 在其他实施例中, 可以不用挂载该快照, 主存储设备直接接收备 份服务器发送的查询快照的有效数据位图的信令, 查询有效数据位图。 即步骤S116. The primary storage device receives signaling of a valid data bitmap of the query snapshot sent by the backup server. Optionally, in other embodiments, the snapshot may not be mounted, and the primary storage device directly receives the signaling of the valid data bitmap of the query snapshot sent by the backup server, and queries the valid data bitmap. Step
S114和步骤 S115可以不执行。 S114 and step S115 may not be performed.
在步骤 S116中, 命令主存储设备查询源卷的快照的有效数据位图是为了进 行全量备份, 全量备份的策略即是对源卷的快照进行备份, 具体的为获取源卷 的快照的有效数据位图或者有效数据位图对应的有效数据, 以便于后续进一步 实现获取源卷的快照的有效数据位图对应的有效数据的全量备份策略。  In step S116, the primary storage device is instructed to query the valid data bitmap of the snapshot of the source volume for full backup. The full backup policy is to back up the snapshot of the source volume, specifically to obtain valid data of the snapshot of the source volume. The valid data corresponding to the bitmap or the valid data bitmap, so as to further implement the full backup strategy of the valid data corresponding to the valid data bitmap of the snapshot of the source volume.
S117、 主存储设备根据查询快照的有效数据位图的信令查询快照的有效数 据位图。  S117. The primary storage device queries the valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot.
S118、 主存储设备发送快照的有效数据位图至备份服务器, 以使备份服 务器备份快照的有效数据位图至备份存储设备。  S118. The primary storage device sends a valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device.
S119、 主存储设备接收备份服务器发送的查询快照的有效数据位图对应的 有效数据的信令。  S119. The primary storage device receives signaling of valid data corresponding to the valid data bitmap of the query snapshot sent by the backup server.
S 120、 主存储设备根据查询快照的有效数据位图对应的有效数据的信令查 询有效数据。  S120. The primary storage device queries the valid data according to the signaling of the valid data corresponding to the valid data bitmap of the query snapshot.
S121、 主存储设备发送有效数据至备份服务器, 以使备份服务器备份有效 数据至备份存储设备。 备份服务器进一步备份有效数据至备份存储设备, 多层 次的数据备份, 使得完善备份性能, 即便应用服务器与备份服务器都有故障, 也可以从备份存储设备中提取有效数据, 恢复应用服务器的故障, 提高了备份 质量。 通过备份服务器获取到有效数据位图及有效数据位图对应的有效数据, 则可以由备份服务器根据有效数据位图中的有效数据对应用服务器中的有效数 据进行恢复。 则不用备份无效数据, 减少了备份的数据量, 提升了备份速率。  S121. The primary storage device sends valid data to the backup server, so that the backup server backs up the valid data to the backup storage device. The backup server further backs up the valid data to the backup storage device, and the multi-level data backup makes the backup performance perfect. Even if the application server and the backup server are faulty, the valid data can be extracted from the backup storage device, and the failure of the application server can be restored. The quality of the backup. The valid data corresponding to the valid data bitmap and the valid data bitmap is obtained by the backup server, and the backup server can restore the valid data in the application server according to the valid data in the valid data bitmap. It is not necessary to back up invalid data, which reduces the amount of data backed up and improves the backup rate.
本实施例提供的数据备份方法通过主存储设备接收到备份服务器发送的 触发备份策略的备份指示后, 经过快照技术处理, 查询并发送备份的数据至 备份服务器及备份存储设备, 备份过程中没有应用服务器的参与, 避免了通 过应用服务器运行客户端备份软件或者磁盘镜像功能软件备份数据而影响到 应用服务器自身的业务性能, 实现了应用服务器正常运行的同时, 高效率备 份数据的功能, 即备份数据功能和应用服务器运行业务软件互不干扰。 主要 通过主存储设备发送查询到的源卷的快照的有效数据位图给备份服务器, 以 便备份服务器发送有效数据位图给备份存储设备, 使备份存储设备能够备份 有效位图, 以便备份系统进一步获得有效的数据,进而不用备份无效的数据, 精筒了备份数据。 After receiving the backup instruction of the triggering backup policy sent by the backup server, the data storage method is processed by the snapshot technology to query and send the backed up data to the backup server and the backup storage device, and the data backup method is not applied in the backup process. The participation of the server avoids the application of the client backup software or the disk mirroring function software to back up the data, which affects the application server's own business performance, realizes the normal operation of the application server, and efficiently backs up the data, that is, the backup data. The function and application server running business software do not interfere with each other. Sending a valid data bitmap of the snapshot of the source volume queried by the primary storage device to the backup server, The backup server sends a valid data bitmap to the backup storage device, so that the backup storage device can back up the valid bitmap, so that the backup system can further obtain valid data, and thus the backup data cannot be backed up without backing up the invalid data.
作为一种可选的实施方式, 在基于图 1所示的步骤 S111之前, 即主存储设 备生成源卷的快照之前, 该方法还包括以下步骤:  As an optional implementation manner, before the step S111 shown in FIG. 1 , that is, before the primary storage device generates a snapshot of the source volume, the method further includes the following steps:
A、 主存储设备创建源卷。  A. The primary storage device creates the source volume.
B、 主存储设备映射源卷给应用服务器, 以使应用服务器挂载源卷, 以存储 应用服务器的数据至源卷。  B. The primary storage device maps the source volume to the application server, so that the application server mounts the source volume to store the data of the application server to the source volume.
其中, 主存储设备与应用服务器之间建立通信连接关系, 主要是通过应用 服务器获取到主存储设备的源卷的标识, 以便挂载源卷至应用服务器上, 对应 用服务器的数据写操作进行存储。 即存储应用服务器在运行操作系统时的数据。  The communication connection relationship between the primary storage device and the application server is established, and the application server obtains the identifier of the source volume of the primary storage device, so as to mount the source volume to the application server, and store the data write operation of the application server. . That is, the data stored by the application server when the operating system is running.
本实施例提供的数据备份方法通过主存储设备与应用服务器之间建立通 信连接关系, 发送源卷的标识至应用服务器, 通过应用服务器挂载源卷以存 储应用服务器的数据。  The data backup method provided in this embodiment establishes a communication connection relationship between the primary storage device and the application server, sends the identifier of the source volume to the application server, and mounts the source volume through the application server to store the data of the application server.
作为一种可选的实施方式, 本实施例提供的数据备份方法还包括以下步骤: As an optional implementation manner, the data backup method provided in this embodiment further includes the following steps:
1、 主存储设备接收备份服务器发送的第二指示。 其中, 第二指示用于指示 主存储设备解除 ^分服务器与快照间的映射关系。 1. The primary storage device receives a second indication sent by the backup server. The second indication is used to instruct the primary storage device to release the mapping relationship between the server and the snapshot.
2、 主存储设备解除备份服务器与快照间的映射关系。  2. The primary storage device releases the mapping relationship between the backup server and the snapshot.
作为一种可选的实施方式, 本实施例提供的数据备份方法还包括以下步骤: a、 主存储设备接收备份服务器发送的第三指示。 其中, 第三指示用于指示 主存储设备删除源卷的快照。  As an optional implementation manner, the data backup method provided in this embodiment further includes the following steps: a. The primary storage device receives a third indication sent by the backup server. The third indication is used to instruct the primary storage device to delete the snapshot of the source volume.
b、 主存储设备删除源卷的快照。  b. The primary storage device deletes the snapshot of the source volume.
请参见图 2, 图 2是本申请实施例二提供的一种数据备份方法的流程图。 本实施例二提供的数据备份方法是以全量备份情况下的备份服务器的角度描 述的, 如图 2所示, 本实施例提供的数据备份方法可以包括以下步骤:  Referring to FIG. 2, FIG. 2 is a flowchart of a data backup method according to Embodiment 2 of the present application. The data backup method provided in the second embodiment is described in the perspective of the backup server in the case of full backup. As shown in FIG. 2, the data backup method provided in this embodiment may include the following steps:
S211、 备份服务器发送备份指示给主存储设备, 以指示主存储设备生成源 卷的快照, 由主存储设备发送快照的快照标识至备份服务器。  S211. The backup server sends a backup indication to the primary storage device to instruct the primary storage device to generate a snapshot of the source volume, and the primary storage device sends the snapshot identifier of the snapshot to the backup server.
其中, 备份指示用于指示主存储设备生成源卷的快照, 以触发备份系统开 始进行全量备份, 执行全量备份策略。 以及, 由主存储设备发送源卷的标识至 应用服务器, 以使应用服务器挂载源卷至应用服务器上, 以存储应用服务器的 数据。 主存储设备与应用服务器之间建立通信连接关系, 对应用服务器的数据 写操作进行存储, 即存储应用服务器在运行操作系统时的数据。 The backup indication is used to instruct the primary storage device to generate a snapshot of the source volume, to trigger the backup system to start a full backup, and execute a full backup policy. And sending, by the primary storage device, the identity of the source volume to The application server, so that the application server mounts the source volume to the application server to store the data of the application server. A communication connection relationship is established between the primary storage device and the application server, and the data write operation of the application server is stored, that is, the data stored by the application server when the operating system is running is stored.
S212、 备份服务器接收主存储设备发送的快照标识。  S212. The backup server receives the snapshot identifier sent by the primary storage device.
S213、 备份服务器发送第一指示给主存储设备, 以使主存储设备根据第一 指示建立快照与备份服务器之间的映射关系。  S213. The backup server sends a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
5214、 备份服务器根据快照与备份服务器之间的映射关系, 挂载快照。 其 中, 备份服务器可以利用快照中的数据对应用服务器中的数据进行恢复。  5214. The backup server mounts the snapshot according to the mapping relationship between the snapshot and the backup server. Among them, the backup server can use the data in the snapshot to recover the data in the application server.
5215、 备份服务器发送查询快照的有效数据位图的信令给主存储设备, 以 使主存储设备根据查询快照的有效数据位图的信令查询快照的有效数据位图。  5215. The backup server sends the signaling of the valid data bitmap of the query snapshot to the primary storage device, so that the primary storage device queries the valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot.
可选的, 在其他实施例中, 可以省略步骤 S213和步骤 S214, 即备份服务器 不需要挂载该快照, 即可根据接收到的快照标识发送查询该快照的有效数据位 图的信令给主存储设备, 使主存储设备查询该快照的有效数据位图。  Optionally, in other embodiments, step S213 and step S214 may be omitted, that is, the backup server does not need to mount the snapshot, and the signaling of querying the valid data bitmap of the snapshot may be sent to the primary according to the received snapshot identifier. The storage device causes the primary storage device to query the valid data bitmap of the snapshot.
其中, 查询源卷的快照的有效数据位图是为了进行全量备份, 全量备份的 策略即是对源卷的快照进行备份, 具体的为获取源卷的快照的有效数据位图以 及有效数据位图对应的有效数据, 以便于后续进一步实现获取源卷的快照的有 效数据位图对应的有效数据的全量备份策略。  The valid data bitmap of the snapshot of the source volume is used for full backup. The full backup strategy is to back up the snapshot of the source volume. Specifically, the valid data bitmap and the valid data bitmap of the snapshot of the source volume are obtained. Corresponding valid data, so as to further implement a full backup strategy of valid data corresponding to the valid data bitmap of the snapshot of the source volume.
5216、 备份服务器接收主存储设备发送的快照的有效数据位图。  5216. The backup server receives a valid data bitmap of the snapshot sent by the primary storage device.
5217、 备份服务器备份快照的有效数据位图至备份存储设备。  5217. Back up the valid data bitmap of the backup snapshot of the server to the backup storage device.
S218、 备份服务器接收备份存储设备发送的已备份快照的有效数据位图的 反馈信息。  S218. The backup server receives feedback information of a valid data bitmap of the backup snapshot sent by the backup storage device.
S219、 备份服务器根据已备份快照的有效数据位图的反馈信息发送查询快 照的有效数据位图对应的有效数据的信令给主存储设备, 以使主存储设备根据 查询快照的有效数据位图对应的有效数据的信令查询有效数据。  S219. The backup server sends the signaling of the valid data corresponding to the valid data bitmap of the snapshot to the primary storage device according to the feedback information of the valid data bitmap of the backup snapshot, so that the primary storage device corresponds to the valid data bitmap of the query snapshot. The valid data is signaled to query valid data.
其中, 通过对有效位图作进一步的处理, 以便进一步获取有效数据位图对 应的有效数据。 可以根据该有效数据恢复主存储设备的源卷中的数据, 进而使 应用服务器恢复正常运行的情况。 通过备份服务器进一步备份有效数据至备份 存储设备, 多层次的数据备份, 使得完善备份性能, 即便应用服务器与备份服 务器都有故障, 也可以从备份存储设备中提取有效数据, 恢复应用服务器的故 障, 提高了备份质量。 Wherein, the effective bitmap is further processed to further obtain valid data corresponding to the valid data bitmap. The data in the source volume of the primary storage device can be restored according to the valid data, thereby restoring the application server to normal operation. Further backup of valid data to the backup storage device through the backup server, multi-level data backup, making the backup performance perfect, even the application server and backup service The server has a fault, and it can also extract valid data from the backup storage device, recover the failure of the application server, and improve the backup quality.
S220、 备份服务器接收主存储设备发送的有效数据。  S220. The backup server receives valid data sent by the primary storage device.
S221、 备份服务器备份有效数据至备份存储设备。  S221. The backup server backs up valid data to the backup storage device.
S222、 备份服务器接收备份存储设备发送的已备份快照的有效数据的反馈 信息。  S222. The backup server receives feedback information of valid data of the backup snapshot sent by the backup storage device.
本实施例提供的数据备份方法, 通过备份服务器发送触发备份策略的备份 指示给主存储设备, 使主存储设备经过快照技术处理, 发送备份的数据至备份 服务器及备份存储设备, 备份过程中没有应用服务器的参与, 避免了通过应用 服务器运行客户端备份软件或者磁盘镜像功能软件备份数据而影响到应用服务 器自身的业务性能, 实现了应用服务器正常运行的同时, 高效率备份数据的功 能, 即备份数据功能和应用服务器运行业务软件互不干扰。 通过备份服务器挂 载源卷的快照, 由主存储设备查询快照的有效数据位图后, 发送快照的有效数 据位图给备份服务器, 进而备份服务器接收主存储设备发送的快照的有效数据 位图后, 备份快照的有效数据位图至备份存储设备。 则不用备份无效数据, 减 少了备份的数据量, 提升了备份速率。  In the data backup method provided by the embodiment, the backup server sends a backup indication that triggers the backup policy to the primary storage device, and the primary storage device processes the snapshot data to send the backup data to the backup server and the backup storage device. The participation of the server avoids the application of the client backup software or the disk mirroring function software to back up the data, which affects the application server's own business performance, realizes the normal operation of the application server, and efficiently backs up the data, that is, the backup data. The function and application server running business software do not interfere with each other. After the backup server mounts the snapshot of the source volume, the primary storage device queries the valid data bitmap of the snapshot, and sends a valid data bitmap of the snapshot to the backup server, and then the backup server receives the valid data bitmap of the snapshot sent by the primary storage device. , back up the valid data bitmap of the snapshot to the backup storage device. The backup data is not backed up, the amount of data backed up is reduced, and the backup rate is increased.
作为一种可选的实施方式, 本实施例提供的数据备份方法还包括: 备份服务器发送第二指示给主存储设备, 以使主存储设备解除备份服务器 与快照间的映射关系。  As an optional implementation manner, the data backup method provided in this embodiment further includes: the backup server sends a second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot.
作为一种可选的实施方式, 本实施例提供的数据备份方法还包括: 备份服务器发送第三指示给主存储设备, 以使主存储设备删除源卷的快照。 请参见图 3a, 图 3a是本申请实施例提供的共享存储架构示意图。 如图 3a所示, 本实施例提供的数据备份方法应用的共享存储架构基于的设备包 括: 携带应用操作系统的应用服务器 31、备份服务器 32、 带有快照功能的主 存储设备 33和一备份存储设备 34。 其中, 携带应用操作系统的应用服务器 31可以进行业务处理, 带有快照功能的主存储设备 33可以生成应用服务器 对数据写的操作的快照。 应用服务器 31与主存储设备 33之间建立有通信连 接关系, 通过应用服务器 31挂载主存储设备的源卷以存储应用服务器 31的 数据。 备份服务器 32与主存储设备 33之间建立有通信连接关系, 以挂载主 存储设备 33生成的快照。以及备份服务器 32和备份存储设备 34之间建立有 通信连接关系,以将备份服务器 32获得的有效数据或者有效数据位图备份至 备份存储设备 34中。 当备份系统执行全量备份策略的时候, 则主存储设备 33生成的是源卷的快照。 进一步, 主存储设备 33发送源卷的快照的快照标 识至备份服务器 32, 以使备份服务器 32发送第一指示给主存储设备 33 , 由 主存储设备 33根据第一指示建立快照与备份服务器 32之间的映射关系, 以 使备份服务器 32挂载快照, 则备份服务器 32可以利用快照中的数据对应用 服务器 31中的数据进行恢复。 备份服务器 32发送查询快照的有效数据位图 的信令给主存储设备 33 , 以获取有效数据位图, 实现全量备份的同时, 精筒 了需要备份的数据。进一步的备份服务器 32可以将有效数据位图备份至备份 存储设备 34。 该备份存储设备 34可以是一般的存储介质, 则利用快照功能, 在型号不匹配的情况下一样可以筒单的实现全量备份。 As an optional implementation manner, the data backup method provided in this embodiment further includes: the backup server sending a third indication to the primary storage device, so that the primary storage device deletes the snapshot of the source volume. Referring to FIG. 3a, FIG. 3a is a schematic diagram of a shared storage architecture provided by an embodiment of the present application. As shown in FIG. 3a, the device based on the shared storage architecture applied by the data backup method in this embodiment includes: an application server 31 carrying an application operating system, a backup server 32, a primary storage device 33 with a snapshot function, and a backup storage. Device 34. The application server 31 carrying the application operating system can perform service processing, and the primary storage device 33 with the snapshot function can generate a snapshot of the operation of the data write by the application server. A communication connection relationship is established between the application server 31 and the primary storage device 33, and the source volume of the primary storage device is mounted by the application server 31 to store data of the application server 31. The backup server 32 establishes a communication connection relationship with the main storage device 33 to mount the main A snapshot generated by the storage device 33. And a communication connection relationship is established between the backup server 32 and the backup storage device 34 to back up the valid data or valid data bitmap obtained by the backup server 32 to the backup storage device 34. When the backup system executes the full backup policy, the primary storage device 33 generates a snapshot of the source volume. Further, the primary storage device 33 sends a snapshot identifier of the snapshot of the source volume to the backup server 32, so that the backup server 32 sends a first indication to the primary storage device 33, and the primary storage device 33 establishes a snapshot and backup server 32 according to the first indication. The mapping relationship between the backup server 32 allows the backup server 32 to mount the snapshot, and the backup server 32 can restore the data in the application server 31 by using the data in the snapshot. The backup server 32 sends the signaling of the valid data bitmap of the query snapshot to the primary storage device 33 to obtain a valid data bitmap, and realizes the full backup while the data needs to be backed up. Further backup server 32 may back up the valid data bitmap to backup storage device 34. The backup storage device 34 can be a general storage medium, and the snapshot function can be used to implement full backup in the same manner as the model does not match.
进一步地, 备份服务器 32可以根据接收到的备份存储设备 34发送的已 存储有效数据位图的反馈信息后,给主存储设备 33发送查询快照的有效数据 位图对应的有效数据的信令,以使主存储设备 33查询快照的有效数据位图对 应的有效数据。 备份服务器 32从主存储设备 33中获取到有效数据后, 进一 步备份至备份存储设备 34中。 因而多层次的数据备份, 使得完善备份性能, 即便应用服务器与备份服务器都有故障, 也可以从备份存储设备中提取有效 数据, 恢复应用服务器的故障, 提高了备份质量。  Further, the backup server 32 may send the signaling of the valid data corresponding to the valid data bitmap of the snapshot to the primary storage device 33 according to the feedback information of the stored valid data bitmap sent by the backup storage device 34. The primary storage device 33 is caused to query the valid data corresponding to the valid data bitmap of the snapshot. After the backup server 32 obtains valid data from the primary storage device 33, it is further backed up to the backup storage device 34. Therefore, multi-level data backup makes the backup performance perfect. Even if both the application server and the backup server are faulty, valid data can be extracted from the backup storage device, the application server failure can be restored, and the backup quality is improved.
关于全量备份下对数据位图的处理过程如下:  The processing of data bitmaps under full backup is as follows:
请参见图 3b, 图 3b是本申请实施例提供的全量备份的全量数据位图。 如图 3b所示, block为数据块的标志位, 标志位用于区分字节 bit位对应的 数据块是否有改变, 通常用 0和 1来区分数据块是否有改变, 本实施例中, 对于有改变的数据快, 将该数据块对应的字节 bit位下的标志位置 1 , 没有改 变的数据块对应的字节 bit位对应的 block标志位置 1。 如图 3b所示, bit位 标记为 2的数据块的标志位置 1 , 以及 bit位标记为 11的数据块的标志位置 1。 进一步, 可以根据重要性标识的数据位图获得有效数据位图, 对于没有重 要性的数据位图可以不用备份,或者根据重要性设定备份数据位图的优先级, 对于重要性高的数据位图, 可以预先提取出来, 由主存储设备 33传送至备份 服务器 32, 待重要性高的数据位图备份成功后, 在提取次重要的数据位图进 行备份。 具体的备份形式不受本实施例的限制。 Referring to FIG. 3b, FIG. 3b is a full-size data bitmap of the full-size backup provided by the embodiment of the present application. As shown in FIG. 3b, the block is a flag bit of the data block, and the flag bit is used to distinguish whether the data block corresponding to the byte bit has changed. Usually, 0 and 1 are used to distinguish whether the data block has changed. In this embodiment, The changed data is fast, the flag position under the byte bit corresponding to the data block is set to 1, and the block flag position corresponding to the byte bit corresponding to the unchanged data block is set to 1. As shown in FIG. 3b, the flag position 1 of the data block whose bit is marked 2 and the flag position 1 of the data block whose bit is marked 11 are shown. Further, the valid data bitmap can be obtained according to the data bitmap of the importance identifier, and the data bitmap without importance can be used without backup, or the priority of the backup data bitmap can be set according to the importance, and the data bit with high importance is The figure can be extracted in advance and transferred to the backup by the primary storage device 33. The server 32, after the data bitmap with high importance is successfully backed up, extracts the second important data bitmap for backup. The specific backup form is not limited by this embodiment.
通过主存储设备 33接收到备份服务器 32发送的触发备份策略的备份指示 后, 经过快照技术处理, 发送备份的数据至备份服务器 32及备份存储设备 34, 备份过程中没有应用服务器 31的参与, 避免了通过应用服务器 31运行客户端 备份软件或者磁盘镜像功能软件备份数据而影响到应用服务器 31 自身的业务性 能, 实现了应用服务器 31正常运行的同时, 高效率备份数据的功能, 即备份数 据功能和应用服务器 31运行业务软件互不干扰。  After receiving the backup indication of the triggering backup policy sent by the backup server 32, the primary storage device 33 processes the snapshot data and sends the backup data to the backup server 32 and the backup storage device 34. The application server 31 does not participate in the backup process. The application server 31 runs the client backup software or the disk mirroring function software to back up the data, which affects the service performance of the application server 31, realizes the function of the application server 31 running normally, and efficiently backs up the data, that is, the backup data function and The application server 31 runs the business software without interfering with each other.
请参见图 4, 其中, 图 4是本申请实施例三提供的一种数据备份方法的流程 图。  Referring to FIG. 4, FIG. 4 is a flow chart of a data backup method according to Embodiment 3 of the present application.
本实施例提供的数据备份方法是以增量备份下的主存储设备的角度描述 的, 如图 4所示, 本实施例提供的数据备份方法包括:  The data backup method provided in this embodiment is described in the perspective of the primary storage device in the incremental backup. As shown in FIG. 4, the data backup method provided in this embodiment includes:
5411、 主存储设备接收备份服务器按照预设时间, 间隔性发送的备份指示, 备份指示用于指示主存储设备生成快照。 预设时间为本次备份数据与本次备份 数据相邻的前一次备份数据的时间间隔。 进行增量备份是基于间隔性获取的快 照, 得出快照间的差异数据位图, 然后备份差异数据位图或者差异数据位图对 应的差异数据。 因而, 预设时间为本次备份数据与本次备份数据相邻的前一次 备份数据的时间间隔。  The primary storage device receives the backup indication that the backup server sends the interval according to the preset time, and the backup indication is used to instruct the primary storage device to generate the snapshot. The preset time is the interval between the backup data and the previous backup data adjacent to the backup data. The incremental backup is based on the snapshot of the interval acquisition, and the difference data bitmap between the snapshots is obtained, and then the difference data corresponding to the difference data bitmap or the difference data bitmap is backed up. Therefore, the preset time is the time interval between the backup data and the previous backup data adjacent to the backup data.
5412、 主存储设备按照备份指示生成快照。  5412. The primary storage device generates a snapshot according to the backup indication.
S413、 主存储设备发送快照的快照标识至备份服务器, 以使备份服务器发 送第一指示给主存储设备。  S413. The primary storage device sends the snapshot identifier of the snapshot to the backup server, so that the backup server sends the first indication to the primary storage device.
第一指示用于指示主存储设备建立快照与备份服务器之间的映射关系。  The first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server.
5414、 主存储设备接收第一指示。  5414. The primary storage device receives the first indication.
5415、 主存储设备根据第一指示建立快照与备份服务器之间的映射关系, 以使备份服务器挂载快照。  5415. The primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
5416、 主存储设备接收备份服务器发送的查询本次备份数据时的快照与本 次备份数据相邻的前一次备份数据时的快照间的差异数据位图的信令。  5416. The primary storage device receives signaling of a difference data bitmap between snapshots when the backup server sends a query for the current backup data and the previous backup data adjacent to the backup data.
可选的, 在其他实施例中, 可以省略步骤 S414和步骤 S415 , 即备份良务器 不用给主存储设备发送第一指示, 主存储设备也不用接收第一指示, 无需建立 快照与备份服务器之间的映射关系。 仅需接收到备份服务器发送的查询本次备 份数据时的快照与本次备份数据相邻的前一次备份数据时的快照间的差异数据 位图的信令执行后续的备份步骤。 Optionally, in other embodiments, step S414 and step S415 may be omitted, that is, the backup server does not need to send the first indication to the primary storage device, and the primary storage device does not need to receive the first indication, and does not need to establish. The mapping between the snapshot and the backup server. The signaling of the difference data bitmap between the snapshots of the previous backup data adjacent to the current backup data is only required to be received by the backup server to perform subsequent backup steps.
查询两次快照间的差异数据位图是为了进行增量备份, 增量备份的策略即 是对快照间的差异数据位图或者差异数据进行备份。 若要恢复增量备份策略下 的数据, 则获取差异数据与差异数据所在写操作位置对应的前一次快照的数据 的和, 即为恢复数据值。  The difference data bitmap between two snapshots is used for incremental backup. The strategy of incremental backup is to back up the difference data bitmap or difference data between snapshots. To restore the data under the incremental backup policy, the sum of the data of the previous snapshot corresponding to the location where the difference data is written is the recovery data value.
5417、 主存储设备根据查询本次备份数据时的快照与本次备份数据相邻的 前一次备份数据时的快照间的差异数据位图的信令查询本次备份数据时的快照 和与本次备份数据相邻的前一次备份数据时的快照间的差异数据位图。  5417. The primary storage device queries the snapshot of the current backup data according to the signaling of the difference data bitmap between the snapshot when the data is backed up and the previous backup data adjacent to the current backup data. The difference data bitmap between snapshots when the backup data is adjacent to the previous backup data.
5418、 主存储设备发送本次备份数据时的快照与本次备份数据相邻的前一 次备份数据时的快照间的差异数据位图至备份服务器, 以使备份服务器备份本 次备份数据时的快照与本次备份数据相邻的前一次备份数据时的快照间的差异 数据位图至备份存储设备。  5418. The difference data bitmap between the snapshot when the primary storage device sends the backup data and the previous backup data adjacent to the backup data to the backup server, so that the backup server backs up the snapshot of the current backup data. The difference data bitmap between the snapshots of the previous backup data adjacent to this backup data to the backup storage device.
S419、 主存储设备接收备份服务器发送的查询差异数据位图对应的差异数 据的信令。  S419. The primary storage device receives signaling of the difference data corresponding to the query difference data bitmap sent by the backup server.
S420、 主存储设备根据查询差异数据位图对应的差异数据的信令查询差异 数据。  S420. The primary storage device queries the difference data according to the signaling of the difference data corresponding to the query difference data bitmap.
S421、 主存储设备发送差异数据至备份服务器, 以使备份服务器备份差异 数据至备份存储设备。 使得备份服务器进一步备份有效数据至备份存储设备, 多层次的数据备份, 使得完善备份性能, 即便应用服务器与备份服务器都有故 障, 也可以从备份存储设备中提取差异数据或者差异数据位图, 恢复应用服务 器的故障, 提高了备份质量。  S421. The primary storage device sends the difference data to the backup server, so that the backup server backs up the difference data to the backup storage device. The backup server further backs up the valid data to the backup storage device, and the multi-level data backup makes the backup performance perfect. Even if the application server and the backup server are faulty, the difference data or the difference data bitmap can be extracted from the backup storage device, and the recovery can be resumed. The failure of the application server improves the quality of the backup.
本实施例提供的数据备份方法为增量备份策略的实现, 即主存储设备接收 备份服务器发送触发备份策略的备份指示后, 主存储设备查询主存储设备间隔 性生成的快照之间的差异数据位图, 由备份服务器备份该差异数据位图至备份 存储设备, 备份过程中没有应用服务器的参与, 避免了通过应用服务器运行客 户端备份软件或者磁盘镜像功能软件备份数据而影响到应用服务器自身的业务 性能, 实现了应用服务器正常运行的同时, 高效率备份数据的功能, 即备份数 据功能和应用服务器运行业务软件互不干扰。 The data backup method provided in this embodiment is an implementation of the incremental backup policy. After the primary storage device receives the backup indication that the backup server sends the triggering backup policy, the primary storage device queries the difference data bits between the snapshots generated by the primary storage device. The standby data backup is performed by the backup server to the backup storage device. The application server does not participate in the backup process. This prevents the application server from running the client backup software or the disk mirroring software to back up the data and affect the application server's own services. Performance, while realizing the normal operation of the application server, the function of backing up data efficiently, that is, the backup data function and the application server running business software do not interfere with each other.
具体地, 通过主存储设备发送查询到的本次备份数据时的快照和与本次备 份数据相邻的前一次备份数据时的快照之间的差异数据位图给备份服务器, 以 便备份服务器发送两次相邻备份数据时的快照的差异数据位图或者该差异数据 位图对应的差异数据给备份存储设备, 使备份存储设备仅备份存在差异化的数 据, 节省了备份存储设备的存储空间, 进一步提升了备份效率。  Specifically, the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data is sent to the backup server by the primary storage device, so that the backup server sends two The difference data bitmap of the snapshot in the next adjacent backup data or the difference data corresponding to the difference data bitmap is sent to the backup storage device, so that the backup storage device only backs up the differentiated data, thereby saving the storage space of the backup storage device, and further Improved backup efficiency.
作为一种可选的实施方式, 本实施例提供的数据备份方法还包括: 主存储 设备接收备份服务器发送的第二指示, 第二指示用于指示主存储设备解除备份 服务器与快照间的映射关系;  As an optional implementation manner, the data backup method provided in this embodiment further includes: receiving, by the primary storage device, a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot ;
主存储设备解除 ^分服务器与快照间的映射关系;  The primary storage device releases the mapping relationship between the server and the snapshot.
作为一种可选的实施方式, 本实施例提供的数据备份方法还包括: 主存储设备接收备份服务器发送的第三指示, 第三指示用于指示删除与本 次备份数据相邻的前一次备份数据时的快照;  As an optional implementation manner, the data backup method provided in this embodiment further includes: receiving, by the primary storage device, a third indication sent by the backup server, where the third indication is used to indicate deleting the previous backup adjacent to the current backup data. a snapshot of the data;
主存储设备删除与本次备份数据相邻的前一次备份数据时的快照。  The primary storage device deletes the snapshot of the previous backup data adjacent to the current backup data.
请参见图 5 , 图 5是本申请实施例四提供的一种数据备份方法的流程图。 本实施例提供的数据备份方法是以增量备份情况下的备份服务器的角度 描述的, 如图 5所示, 本实施例提供的数据备份方法包括:  Referring to FIG. 5, FIG. 5 is a flowchart of a data backup method according to Embodiment 4 of the present application. The data backup method provided in this embodiment is described by the backup server in the case of an incremental backup. As shown in FIG. 5, the data backup method provided in this embodiment includes:
S511、 备份服务器按照预设时间, 间隔性发送备份指示给主存储设备, 以使主存储设备按照备份指示生成快照, 由主存储设备生成快照, 并发送快 照的快照标识至备份服务器。 预设时间为本次备份数据与本次备份数据相邻 的前一次备份数据的时间间隔。 其中, 本次备份数据时的快照和与本次备份 数据相邻的前一次备份数据时的快照是由主存储设备按照预设时间, 间隔性 生成的。  S511. The backup server sends a backup indication to the primary storage device at intervals according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, the primary storage device generates a snapshot, and sends the snapshot identifier of the snapshot to the backup server. The preset time is the interval between the backup data and the previous backup data adjacent to the backup data. The snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data are generated by the primary storage device according to a preset time interval.
S512、 备份服务器接收主存储设备发送的快照的快照标识。  S512. The backup server receives the snapshot identifier of the snapshot sent by the primary storage device.
5513、 备份服务器发送第一指示给主存储设备, 以使主存储设备根据第一 指示建立快照与备份服务器之间的映射关系。  5513. The backup server sends a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
5514、 备份服务器根据映射关系挂载快照。 S515、 备份服务器发送查询本次备份数据时的快照与本次备份数据相邻的 前一次备份数据时的快照间的差异数据位图的信令至主存储设备, 以使主存储 设备查询本次备份数据时的快照和与本次备份数据相邻的前一次备份数据时的 快照间的差异数据位图。 5514. The backup server mounts the snapshot according to the mapping relationship. S515. The backup server sends the query of the difference data bitmap of the snapshot between the snapshot when the backup data is queried and the previous backup data adjacent to the backup data to the primary storage device, so that the primary storage device queries the current time. The difference data bitmap between the snapshot when the data is backed up and the snapshot when the previous backup data is adjacent to the current backup data.
可选的, 在其他实施例中, 可以省略步骤 S513和步骤 S514, 即备份服务器 不用给主存储设备发送第一指示, 主存储设备无需建立快照与备份服务器之间 的映射关系。 即备份服务器在备份处理时可以不用挂载需要备份的数据的快照, 仅需根据接收到主存储设备发送的快照的快照标识发送的查询本次备份数据时 的快照与本次备份数据相邻的前一次备份数据时的快照间的差异数据位图的信 令给主存储设备, 以执行后续的备份步骤。  Optionally, in other embodiments, step S513 and step S514 may be omitted, that is, the backup server does not need to send the first indication to the primary storage device, and the primary storage device does not need to establish a mapping relationship between the snapshot and the backup server. That is, the backup server does not need to mount the snapshot of the data to be backed up during the backup process, and only needs to query the snapshot of the backup data sent by the snapshot identifier of the snapshot sent by the primary storage device adjacent to the current backup data. The signaling of the difference data bitmap between the snapshots when the data was previously backed up is sent to the primary storage device to perform subsequent backup steps.
使主存储设备查询两次快照间的差异数据位图是为了进行增量备份, 增量 备份的策略即是对快照间的差异数据位图或者差异数据进行备份。 若要恢复增 量备份策略下的数据, 则获取差异数据与差异数据所在写操作位置对应的前一 次快照的数据的和, 即为恢复数据值。  The primary storage device queries the difference data bitmap between snapshots for incremental backup. The incremental backup strategy is to back up the difference data bitmap or difference data between snapshots. To restore the data under the incremental backup policy, the sum of the data of the previous snapshot corresponding to the location where the difference data is written is the recovery data value.
S516、 备份服务器接收本次备份数据时的快照和与本次备份数据相邻的前 一次备份数据时的快照间的差异数据位图。  S516. The difference data bitmap between the snapshot when the backup server receives the current backup data and the snapshot when the previous backup data is adjacent to the backup data.
S517、 备份服务器备份本次备份数据时的快照和与本次备份数据相邻的前 一次备份数据时的快照间的差异数据位图至备份存储设备。  S517. The backup server backs up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data to the backup storage device.
S518、 备份服务器接收备份存储设备发送的已备份差异数据位图的反馈信 息。  S518. The backup server receives the feedback information of the backed up difference data bitmap sent by the backup storage device.
S519、 备份服务器发送查询差异数据位图对应的差异数据的信令给主存储 设备, 以使主存储设备查询差异数据位图对应的差异数据。  S519. The backup server sends signaling for querying the difference data corresponding to the difference data bitmap to the primary storage device, so that the primary storage device queries the difference data corresponding to the difference data bitmap.
5520、 备份服务器接收主存储设备发送的差异数据。  5520. The backup server receives the difference data sent by the primary storage device.
5521、 备份服务器备份差异数据至备份存储设备。 备份服务器进一步备 份有效数据至备份存储设备, 多层次的数据备份, 使得完善备份性能, 即便 应用服务器与备份服务器都有故障, 也可以从备份存储设备中提取差异数据 或者差异数据位图, 恢复应用服务器的故障, 提高了备份质量。  5521. The backup server backs up the difference data to the backup storage device. The backup server further backs up the valid data to the backup storage device, and the multi-level data backup makes the backup performance perfect. Even if the application server and the backup server are faulty, the difference data or the difference data bitmap can be extracted from the backup storage device to restore the application. The failure of the server improves the quality of the backup.
5522、 备份服务器接收备份存储设备发送的已备份差异数据的反馈信息。 本实施例提供的数据备份方法, 通过备份服务器发送备份指示给主存储设 备, 以使主存储设备查询主存储设备间隔性生成的快照之间的差异数据位图并 发送给备份服务器后, 通过备份服务器备份该差异数据位图至备份存储设备。 备份过程中没有应用服务器的参与, 避免了通过应用服务器运行客户端备份软 件或者磁盘镜像功能软件备份数据而影响到应用服务器自身的业务性能, 实现 了应用服务器正常运行的同时, 高效率备份数据的功能, 即备份数据功能和应 用服务器运行业务软件互不干扰。 5522. The backup server receives feedback information of the backed up difference data sent by the backup storage device. In the data backup method provided by the embodiment, the backup server sends a backup indication to the primary storage device, so that the primary storage device queries the difference data bitmap between the snapshots generated by the primary storage device and sends the difference data bitmap to the backup server. The server backs up the difference data bitmap to the backup storage device. There is no application server participation in the backup process, which avoids the application server running client backup software or disk mirroring function software to back up data, which affects the application server's own business performance, realizes the normal operation of the application server, and efficiently backs up data. The function, that is, the backup data function and the application server running business software do not interfere with each other.
具体地, 通过备份服务器接收主存储设备查询到的本次备份数据时的快 照和与本次备份数据相邻的前一次备份数据时的快照之间的差异数据位图给 备份服务器, 以便备份服务器发送两次相邻备份数据时的快照的差异数据位 图或者该差异数据位图对应的差异数据给备份存储设备, 使备份存储设备仅 备份存在差异化的数据, 节省了备份存储设备的存储空间, 进一步提升了备 份效率。  Specifically, the backup server receives the difference data bitmap between the snapshot when the backup data is queried by the primary storage device and the snapshot of the previous backup data adjacent to the backup data to the backup server, so as to backup the server. The difference data bitmap of the snapshot when the adjacent backup data is sent twice or the difference data corresponding to the difference data bitmap is sent to the backup storage device, so that the backup storage device only backs up the differentiated data, which saves the storage space of the backup storage device. , further improve the backup efficiency.
作为一种可选的实施方式, 本实施例提供的数据备份方法还包括: 备份服务器发送第二指示给主存储设备, 以使主存储设备根据第二指示 解除备份服务器与快照间的映射关系。  As an optional implementation manner, the data backup method provided by the embodiment further includes: the backup server sending the second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot according to the second indication.
作为一种可选的实施方式, 本实施例提供的数据备份方法还包括: 备份服务器发送第三指示给主存储设备, 以使主存储设备根据第三指示 删除与本次备份数据相邻的前一次备份数据时的快照。  As an optional implementation manner, the data backup method provided in this embodiment further includes: the backup server sends a third indication to the primary storage device, so that the primary storage device deletes the previous data adjacent to the current backup data according to the third indication. A snapshot of when backing up data at one time.
请参见图 3a, 图 3a是本申请实施例提供的数据备份方法的共享存储架 构示意图。 如图 3a所示, 本实施例提供的数据备份方法的共享存储架构基于 的设备包括: 携带应用操作系统的应用服务器 31、 备份服务器 32、 带有快照 功能的主存储设备 33和一备份存储设备 34。 其中, 携带应用操作系统的应 用服务器 31可以进行业务处理, 带有快照功能的主存储设备 33可以生成应 用服务器对数据写的操作的快照。 应用服务器 31与主存储设备 33之间建立 有通信连接关系,通过应用服务器 31挂载主存储设备的源卷以存储应用服务 器 31的数据。备份服务器 32与主存储设备 33之间建立有通信连接关系, 以 挂载主存储设备 33生成的快照。以及备份服务器 32和备份存储设备 34之间 建立有通信连接关系,以将备份服务器 32获得的有效数据或者有效数据位图 备份至备份存储设备 34中。 当备份系统执行增量备份策略的时候, 则主存储 设备 33生成的是按照备份服务器间歇性发送的的备份指示生成快照。 进一 步, 主存储设备 33发送当前备份时的快照的快照标识至备份服务器 32, 以 使备份服务器 32发送第一指示给主存储设备 33 , 由主存储设备 33根据第一 指示建立快照与备份服务器 32之间的映射关系, 由备份服务器 32根据该映 射关系将快照挂载到备份服务器 32上。 备份服务器 32可以指示主存储设备 33对比相邻两次备份数据的快照, 获取该两个快照间的差异数据位图, 因而 备份服务器 32可以根据前一次备份数据的快照和该两个快照间的差异数据 位图获得变化后的数据块的全量数据位图。 或者在遇到故障的情况下, 可以 根据第一次备份时经过快照获得的全量数据位图, 以及第一次备份后经过若 干次备份获得的若干个差异数据位图恢复到故障生成之前的全量数据位图。 其中,备份过程中,备份服务器 32发送查询本次备份数据时的快照和与本次 备份数据相邻的前一次备份数据时的快照间的差异数据位图的信令给主存储 设备 33 , 以获取差异数据位图, 实现增量备份的同时, 精筒了需要备份的数 据。 进一步的备份服务器 32可以将差异数据位图备份至备份存储设备 34。 该备份存储设备 34可以是一般的存储介质, 则利用快照功能,在型号不匹配 的情况下一样可以筒单的实现增量备份。 Referring to FIG. 3a, FIG. 3a is a schematic diagram of a shared storage architecture of a data backup method according to an embodiment of the present application. As shown in FIG. 3a, the device based on the shared storage architecture of the data backup method provided in this embodiment includes: an application server 31 carrying an application operating system, a backup server 32, a primary storage device 33 with a snapshot function, and a backup storage device. 34. The application server 31 carrying the application operating system can perform service processing, and the primary storage device 33 with the snapshot function can generate a snapshot of the operation of the data write by the application server. A communication connection relationship is established between the application server 31 and the primary storage device 33, and the source volume of the primary storage device is mounted by the application server 31 to store data of the application server 31. A backup connection relationship is established between the backup server 32 and the primary storage device 33 to mount the snapshot generated by the primary storage device 33. And a communication connection relationship established between the backup server 32 and the backup storage device 34 to obtain valid data or valid data bitmaps obtained by the backup server 32. Backup to backup storage device 34. When the backup system executes the incremental backup policy, the primary storage device 33 generates a snapshot according to the backup indication that the backup server intermittently sends. Further, the primary storage device 33 sends the snapshot identifier of the snapshot at the current backup to the backup server 32, so that the backup server 32 sends a first indication to the primary storage device 33, and the primary storage device 33 creates a snapshot and backup server 32 according to the first indication. The mapping relationship between the snapshot server 32 is mounted by the backup server 32 to the backup server 32 according to the mapping relationship. The backup server 32 can instruct the primary storage device 33 to compare the snapshots of the two backup data to obtain the difference data bitmap between the two snapshots, so the backup server 32 can be based on the snapshot of the previous backup data and the between the two snapshots. The difference data bitmap obtains the full data bitmap of the changed data block. Or, in the case of a failure, the full amount of data bitmap obtained through the snapshot at the time of the first backup, and the plurality of difference data bitmaps obtained after several backups after the first backup may be restored to the full amount before the fault is generated. Data bitmap. In the backup process, the backup server 32 sends the signaling of the difference data bitmap between the snapshot when the current backup data is queried and the previous backup data adjacent to the current backup data to the primary storage device 33, Obtain the difference data bitmap, realize the incremental backup, and at the same time, the data that needs to be backed up. Further backup server 32 may back up the difference data bitmap to backup storage device 34. The backup storage device 34 can be a general storage medium, and the snapshot function can be used to implement incremental backup in the case of a model mismatch.
进一步地, 备份服务器 32可以根据接收到的备份存储设备 34发送的已 存储差异数据位图的反馈信息后,给主存储设备 33发送查询差异数据位图对 应的差异数据的信令, 以使主存储设备 33查询差异数据。 备份服务器 32从 主存储设备 33中获取到差异数据后, 进一步备份至备份存储设备 34中。 因 而多层次的数据备份, 使得完善备份性能, 即便应用服务器与备份服务器都 有故障, 也可以从备份存储设备中提取差异数据或者差异位图, 恢复数据, 避免由于应用服务器的故障导致业务处理不能连续进行的问题出现, 提高了 备份质量。  Further, the backup server 32 may send, according to the received feedback information of the stored difference data bitmap sent by the backup storage device 34, the primary storage device 33 to send signaling for querying the difference data corresponding to the difference data bitmap, so that the primary The storage device 33 queries the difference data. After the backup server 32 obtains the difference data from the primary storage device 33, it is further backed up to the backup storage device 34. Therefore, the multi-level data backup makes the backup performance perfect. Even if the application server and the backup server are faulty, the difference data or the difference bitmap can be extracted from the backup storage device, and the data can be restored to avoid the business processing failure due to the application server failure. Continuous problems occur, improving the quality of backups.
关于增量备份下对差异数据位图的处理过程如下:  The process of processing the difference data bitmap under incremental backup is as follows:
请参见图 3c、 3d、 图 3e、 3f、 图 3g , 图 3c是本申请实施例提供的第一 次备份时获得的快照对应的数据位图示意图;图 3d是本申请实施例提供的第 一次备份时获得的差异数据位图示意图;图 3e是本申请实施例提供的第二次 备份时获得的差异数据位图示意图; 图 3f是本申请实施例提供的第三次备份 时获得的差异数据位图示意图;图 3g是本申请实施例提供的恢复到第三次备 份时的全量数据位图示意图。 其中, 在各差异数据位图中, block为数据块的 标志位, 标志位用于区分字节 bit位对应的数据块是否有改变, 通常用 0和 1来区分数据块是否有改变, 本实施例中, 对于有改变的数据快, 将该数据 块对应的字节 bit位下的标志位置 1 , 对于没有改变的数据块, 将其对应的字 节 bit位所对应的 block标志位置 1。初始化数据位图中各个标志位的值为 0, 对于初始化后进行的第一次快照, 如图 3c所示, bit位标记为 2的数据块的 标志位置为 1 , 以及 bit位标记为 11的数据块的标志位置 1。 如图 3d所示, bit位标记为 2的数据块的标志位置为 1 , 表明该 bit位标记为 2的数据块有 变化, 以及 bit位标记为 11的数据块的标志位置 1 , 表明该 bit位标记为 11 的数据块有变化。 因为初始化数据位图中各个标志位的值为 0, 则第一次备 份时获得的快照对应的数据位图与第一次备份时获得的差异数据位图是相同 的。 如图 3e所示, bit位标记为 4的数据块的标志位置为 1 , 表明该 bit位标 记为 4的数据块有变化。 如图 3f所示, bit位标记为 1的数据块的标志位置 为 1 , 表明该 bit位标记为 4的数据块有变化, bit位标记为 2的数据块的标 志位置为 1 , 表明该 bit位标记为 2的数据块有变化。 3c, 3d, 3e, 3f, and 3g, FIG. 3c is a schematic diagram of data bitmaps corresponding to snapshots obtained during the first backup provided by the embodiment of the present application; FIG. 3d is the first embodiment provided by the embodiment of the present application. A schematic diagram of the difference data bitmap obtained in the second backup; FIG. 3e is the second time provided by the embodiment of the present application FIG. 3f is a schematic diagram of a difference data bitmap obtained in the third backup provided by the embodiment of the present application; FIG. 3g is a full amount of the third backup provided in the embodiment of the present application. A schematic diagram of the data bitmap. Wherein, in each difference data bitmap, the block is a flag bit of the data block, and the flag bit is used to distinguish whether the data block corresponding to the byte bit has changed, and usually uses 0 and 1 to distinguish whether the data block has changed. In the example, for the changed data, the flag bit under the byte bit corresponding to the data block is set to 1. For the data block that has not changed, the block flag corresponding to the corresponding byte bit is set to 1. The value of each flag bit in the initialization data bitmap is 0. For the first snapshot after initialization, as shown in Figure 3c, the flag position of the data block with the bit bit marked 2 is 1, and the bit bit is marked 11 The flag position of the data block is 1. As shown in FIG. 3d, the flag position of the data block whose bit is marked as 2 is 1, indicating that the data block whose bit is marked with 2 has a change, and the flag position of the data block whose bit is marked with 11 indicates that the bit is The data block marked with bit 11 has changed. Because the value of each flag bit in the initialization data bitmap is 0, the data bitmap corresponding to the snapshot obtained during the first backup is the same as the difference data bitmap obtained during the first backup. As shown in FIG. 3e, the flag position of the data block whose bit is marked as 4 is 1, indicating that the data block whose bit is marked as 4 has a change. As shown in FIG. 3f, the flag position of the data block with the bit bit marked 1 is 1, indicating that the data block with the bit bit marked 4 has a change, and the flag position of the data block with the bit bit mark 2 is 1, indicating that the bit is The data block marked with 2 has a change.
则根据第一次备份时获得的快照对应的数据位图、 第二次备份时获得的 差异数据位图以及第三次备份时获得的差异数据位图, 合并相同 bit位所对 应的数据块的标志位, 即各个数据位图中相同 bit位中至少有一个置 1的标 志位, 则该 bit位对应的标志位置 1。 则合并后即可获得第三次备份时的快照 的全量数据位图, 即如图 3g所示。  According to the data bitmap corresponding to the snapshot obtained during the first backup, the difference data bitmap obtained during the second backup, and the difference data bitmap obtained during the third backup, the data blocks corresponding to the same bit are merged. The flag bit, that is, the flag bit of at least one of the same bit bits in each data bitmap, the flag bit corresponding to the bit position is 1. Then, after the merge, the full data bitmap of the snapshot at the time of the third backup can be obtained, as shown in Fig. 3g.
作为可选的, 可在每次备份数据时, 根据本次备份数据获得的差异数据 位图和上一次备份数据时的快照对应的全量数据位图获得本次备份数据的全 量数据位图, 依次进行备份, 最终得到全量数据位图, 以便根据全量数据位 图获得全量数据, 并存储至备份存储设备, 以便恢复数据的时候, 直接从备 份存储设备中获取。  Optionally, each time the data is backed up, the full data bitmap of the backup data is obtained according to the difference data bitmap obtained by the backup data and the full data bitmap corresponding to the snapshot of the previous backup data, and The backup is performed, and finally the full data bitmap is obtained, so that the full amount of data is obtained according to the full data bitmap and stored in the backup storage device, so that when the data is restored, it is directly obtained from the backup storage device.
请参见图 6, 图 6是本申请实施例五提供的一种存储设备的结构示意图。 本 实施例提供的存储设备, 是执行基于实施例一提供的一种以主存储设备的角度 描述的数据备份方法的执行载体, 即一种主存储设备, 如图 6所示的一种存储 设备, 包括: 接收单元 61、 快照单元 62、 发送单元 63和处理单元 64。 Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a storage device according to Embodiment 5 of the present application. The storage device provided in this embodiment is configured to perform the perspective of the primary storage device based on the first embodiment. An execution carrier of the described data backup method, that is, a primary storage device, such as the storage device shown in FIG. 6, includes: a receiving unit 61, a snapshot unit 62, a transmitting unit 63, and a processing unit 64.
其中, 接收单元 61 , 用于接收备份服务器发送的备份指示, 其中, 备份指 示用于指示存储设备生成源卷的快照。  The receiving unit 61 is configured to receive a backup indication sent by the backup server, where the backup indication is used to instruct the storage device to generate a snapshot of the source volume.
快照单元 62, 用于生成源卷的快照。  The snapshot unit 62 is configured to generate a snapshot of the source volume.
发送单元 63, 用于发送快照的快照标识至备份 务器。  The sending unit 63 is configured to send a snapshot identifier of the snapshot to the backup server.
接收单元 61 , 还用于接收备份服务器发送的查询快照的有效数据位图的信 令。  The receiving unit 61 is further configured to receive a signal of a valid data bitmap of the query snapshot sent by the backup server.
处理单元 64, 用于根据查询快照的有效数据位图的信令查询快照的有效数 据位图。  The processing unit 64 is configured to query a valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot.
发送单元 63, 还用于发送快照的有效数据位图至备份服务器, 以使备份服 务器备份快照的有效数据位图至备份存储设备。  The sending unit 63 is further configured to send a valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device.
接收单元 61 , 还用于接收备份服务器发送的查询快照的有效数据位图对应 的有效数据的信令。  The receiving unit 61 is further configured to receive signaling of valid data corresponding to the valid data bitmap of the query snapshot sent by the backup server.
处理单元 64, 还用于根据查询快照的有效数据位图对应的有效数据的信令 查询有效数据。  The processing unit 64 is further configured to query the valid data according to the signaling of the valid data corresponding to the valid data bitmap of the query snapshot.
发送单元 63, 还用于发送有效数据至备份服务器, 以使备份服务器备份有 效数据至备份存储设备。  The sending unit 63 is further configured to send valid data to the backup server, so that the backup server backs up the valid data to the backup storage device.
本实施例通过接收单元 61接收到备份服务器发送的备份指示后, 由快照单 元 62生成源卷的快照, 以便进行全量备份。 通过发送单元 63发送快照的快照 标识给备份服务器, 以便由备份服务器进一步通知主存储设备的处理单元 64查 询该快照的有效数据位图, 由备份服务器接收到发送单元 63发送的有效数据位 图, 以便备份该有效数据位图至备份存储设备。 以及, 进一步通过处理单元 64 根据接收单元 61接收到的查询快照的有效数据位图对应的有效数据的信令查询 有效数据, 由发送单元 63发送有效数据至备份服务器, 以使备份服务器 ^分有 效数据至备份存储设备。 通过执行全量备份策略, 对源卷的有效数据进行了备 份, 减少了备份数据, 且不需要应用服务器额外运行客户端软件进行备份, 只 在备份服务器和主存储设备间建立通信, 获取有效数据位图, 通过备份服务器 与备份存储设备之间的备份处理, 完成数据的全量备份。 作为一种可选的实施方式, 该存储设备还包括: In this embodiment, after the receiving unit 61 receives the backup instruction sent by the backup server, the snapshot unit 62 generates a snapshot of the source volume for full backup. Sending the snapshot identifier of the snapshot to the backup server by the sending unit 63, so that the processing unit 64 of the primary storage device further informs the backup server to query the valid data bitmap of the snapshot, and the backup server receives the valid data bitmap sent by the sending unit 63. In order to back up the valid data bitmap to the backup storage device. And, by the processing unit 64, according to the signaling valid data corresponding to the valid data bitmap of the valid data bitmap of the query snapshot received by the receiving unit 61, the sending unit 63 sends the valid data to the backup server, so that the backup server is valid. Data to the backup storage device. By performing a full backup policy, the valid data of the source volume is backed up, the backup data is reduced, and the application server is not required to additionally run the client software for backup. Only the backup server and the primary storage device establish communication, and obtain valid data bits. Figure, through the backup processing between the backup server and the backup storage device, complete the full backup of the data. As an optional implementation manner, the storage device further includes:
创建单元, 用于创建源卷。  Create a cell that is used to create the source volume.
映射单元, 用于映射源卷给应用服务器, 以使应用服务器挂载源卷, 以存 储应用服务器的数据至源卷。  A mapping unit, configured to map the source volume to the application server, so that the application server mounts the source volume to store the data of the application server to the source volume.
作为一种可选的实施方式, 接收单元, 还用于接收第一指示。 第一指示用 于指示主存储设备建立快照与备份服务器之间的映射关系。  As an optional implementation manner, the receiving unit is further configured to receive the first indication. The first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server.
处理单元, 还用于根据第一指示建立快照与备份服务器之间的映射关系, 以使备份服务器挂载快照。  The processing unit is further configured to establish a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
作为一种可选的实施方式, 接收单元, 还用于接收备份服务器发送的第二 指示, 第二指示用于指示主存储设备解除备份服务器与快照间的映射关系; 处理单元, 还用于解除备份服务器与快照间的映射关系。  As an optional implementation manner, the receiving unit is further configured to receive a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot; the processing unit is further configured to release The mapping between the backup server and the snapshot.
作为一种可选的实施方式, 接收单元, 还用于接收备份服务器发送的第三 指示, 第三指示用于指示主存储设备删除源卷的快照;  As an optional implementation manner, the receiving unit is further configured to receive a third indication sent by the backup server, where the third indication is used to instruct the primary storage device to delete the snapshot of the source volume;
处理单元, 还用于删除源卷的快照。  The processing unit is also used to delete the snapshot of the source volume.
请参见图 7 , 图 7是本申请实施例五提供的另一种存储设备结构示意图。 如图 7所示, 本实施例提供的存储设备, 是基于实施例一提供的一种以主存 储设备的角度描述的数据备份方法的执行载体, 包括: 输入装置 71、 输出装 置 72、 存储器 73和处理器 74, 其中, 存储器 73中存储一组程序代码, 且处 理器 74用于调用存储器中存储的程序代码, 用于执行以下操作:  Referring to FIG. 7, FIG. 7 is a schematic structural diagram of another storage device according to Embodiment 5 of the present application. As shown in FIG. 7, the storage device provided in this embodiment is an execution carrier of the data backup method described in the perspective of the primary storage device according to the first embodiment, and includes: an input device 71, an output device 72, and a memory 73. And a processor 74, wherein the memory 73 stores a set of program codes, and the processor 74 is configured to call the program code stored in the memory, to perform the following operations:
接收备份服务器发送的备份指示。 其中, 备份指示用于指示主存储设备生 成源卷的快照。  Receive backup instructions sent by the backup server. The backup indication is used to instruct the primary storage device to generate a snapshot of the source volume.
生成源卷的快照。  Generate a snapshot of the source volume.
发送快照的快照标识至备份服务器;  Send the snapshot ID of the snapshot to the backup server;
接收备份服务器发送的查询快照的有效数据位图的信令。  Receiving signaling of a valid data bitmap of a query snapshot sent by the backup server.
根据查询快照的有效数据位图的信令查询快照的有效数据位图。  A valid data bitmap of the snapshot is queried according to the signaling of the valid data bitmap of the query snapshot.
发送快照的有效数据位图至备份服务器, 以使备份服务器备份快照的有效 数据位图至备份存储设备。 其中, 通过备份服务器获取到有效数据位图, 则可 以由备份服务器根据有效数据位图中的有效数据对应用服务器中的有效数据进 行恢复。 则不用备份无效数据, 减少了备份的数据量, 提升了备份速率。 接收备份服务器发送的查询快照的有效数据位图对应的有效数据的信令。 根据查询快照的有效数据位图对应的有效数据的信令查询有效数据。 Send a valid data bitmap of the snapshot to the backup server so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device. Wherein, the valid data bitmap is obtained by the backup server, and the backup server can restore the valid data in the application server according to the valid data in the valid data bitmap. It is not necessary to back up invalid data, which reduces the amount of data backed up and improves the backup rate. Receiving signaling of valid data corresponding to the valid data bitmap of the query snapshot sent by the backup server. The valid data is queried according to the signaling of the valid data corresponding to the valid data bitmap of the query snapshot.
发送有效数据至备份服务器, 以使备份服务器备份有效数据至备份存储设 备。  Send valid data to the backup server so that the backup server backs up valid data to the backup storage device.
本实施例主要通过主存储设备的处理器 74控制输出装置发送查询到的 源卷的快照的有效数据位图给备份服务器, 以便备份服务器发送有效数据位 图给备份存储设备, 使备份存储设备能够备份有效位图, 以便备份系统进一 步获得有效的数据, 进而不用备份无效的数据, 精筒了备份数据。  In this embodiment, the processor 74 of the primary storage device controls the output device to send the valid data bitmap of the snapshot of the source volume to the backup server, so that the backup server sends the valid data bitmap to the backup storage device, so that the backup storage device can enable the backup storage device. Back up the valid bitmap so that the backup system can obtain valid data further, so that the backup data cannot be backed up without backing up the invalid data.
作为一种可选的实施方式, 该处理器执行生成源卷的快照的操作之前, 还 用于执行下述步骤:  As an optional implementation manner, before the processor performs an operation of generating a snapshot of the source volume, the processor further performs the following steps:
创建源卷;  Create a source volume;
映射源卷给应用服务器, 以使应用服务器挂载源卷, 以存储应用服务器的 数据至源卷。  Map the source volume to the application server so that the application server mounts the source volume to store the application server's data to the source volume.
作为一种可选的实施方式, 该处理器执行发送快照的快照标识至备份服务 器的步骤之后, 以及执行接收备份服务器发送的查询快照的有效数据位图的信 令的步骤之前, 还用于执行下述步骤:  As an optional implementation manner, after the step of performing the step of sending the snapshot identifier of the snapshot to the backup server, and performing the step of receiving the signaling of the valid data bitmap of the query snapshot sent by the backup server, the processor is further configured to perform The following steps:
接收备份服务器发送的第一指示, 第一指示用于指示主存储设备建立快照 与备份服务器之间的映射关系;  Receiving a first indication sent by the backup server, where the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server;
根据第一指示建立快照与备份服务器之间的映射关系, 以使备份服务器挂 载快照。  According to the first indication, a mapping relationship between the snapshot and the backup server is established, so that the backup server mounts the snapshot.
作为一种可选的实施方式, 该处理器还用于执行下述步骤:  As an optional implementation manner, the processor is further configured to perform the following steps:
接收备份服务器发送的第二指示。 第二指示用于指示主存储设备解除备份 服务器与快照间的映射关系。  Receiving a second indication sent by the backup server. The second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot.
解除备份服务器与快照间的映射关系。  Unmap the backup server from the snapshot.
作为一种可选的实施方式, 该处理器还用于执行下述步骤:  As an optional implementation manner, the processor is further configured to perform the following steps:
接收备份服务器发送的第三指示。 第三指示用于指示主存储设备删除源卷 的快照。  Receive a third indication sent by the backup server. The third indication is used to instruct the primary storage device to delete the snapshot of the source volume.
删除源卷的快照。 请参见图 8, 图 8是本申请实施例六提供的一种服务器结构示意图。 本实施 例提供的服务器是基于实施例二提供的一种数据备份方法的执行载体, 即一种 备份服务器, 如图 8所示的备份服务器包括: 发送单元 81、 接收单元 82、 备份 单元 83。 Delete a snapshot of the source volume. Referring to FIG. 8, FIG. 8 is a schematic structural diagram of a server according to Embodiment 6 of the present application. The server provided in this embodiment is an execution carrier of a data backup method according to the second embodiment, that is, a backup server. The backup server shown in FIG. 8 includes: a sending unit 81, a receiving unit 82, and a backup unit 83.
其中, 发送单元 81 , 用于发送备份指示给主存储设备, 以指示主存储设备 生成源卷的快照, 由主存储设备发送快照的快照标识至备份服务器;  The sending unit 81 is configured to send a backup indication to the primary storage device, to indicate that the primary storage device generates a snapshot of the source volume, and the primary storage device sends the snapshot identifier of the snapshot to the backup server.
接收单元 82, 用于接收主存储设备发送的快照标识;  The receiving unit 82 is configured to receive a snapshot identifier sent by the primary storage device.
发送单元 81 , 还用于发送查询快照的有效数据位图的信令给主存储设备, 以使主存储设备根据查询快照的有效数据位图的信令查询快照的有效数据位 图;  The sending unit 81 is further configured to send signaling of the valid data bitmap of the query snapshot to the primary storage device, so that the primary storage device queries the valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot;
接收单元 82, 还用于接收主存储设备发送的快照的有效数据位图; 备份单元 83 , 用于备份快照的有效数据位图至备份存储设备;  The receiving unit 82 is further configured to receive a valid data bitmap of the snapshot sent by the primary storage device, and a backup unit 83, configured to back up the valid data bitmap of the snapshot to the backup storage device;
接收单元 82, 还用于接收备份存储设备发送的已备份快照的有效数据位图 的反馈信息;  The receiving unit 82 is further configured to receive feedback information of a valid data bitmap of the backup snapshot sent by the backup storage device;
发送单元 81 , 还用于根据已备份快照的有效数据位图的反馈信息发送查询 快照的有效数据位图对应的有效数据的信令给主存储设备, 以使主存储设备根 据查询快照的有效数据位图对应的有效数据的信令查询有效数据;  The sending unit 81 is further configured to send, according to the feedback information of the valid data bitmap of the backed up snapshot, signaling of the valid data corresponding to the valid data bitmap of the snapshot to the primary storage device, so that the primary storage device obtains valid data according to the snapshot. Signaling query valid data of valid data corresponding to the bitmap;
接收单元 82, 还用于接收主存储设备发送的有效数据;  The receiving unit 82 is further configured to receive valid data sent by the primary storage device;
备份单元 83 , 还用于备份有效数据至备份存储设备。  The backup unit 83 is also used to back up valid data to the backup storage device.
接收单元 82,还用于接收备份存储设备发送的已备份快照的有效数据的 反馈信息。  The receiving unit 82 is further configured to receive feedback information of valid data of the backup snapshot sent by the backup storage device.
本实施例提供的服务器, 为一备份数据的备份服务器, 通过发送单元 81 发送备份指示给主存储设备, 以指示主存储设备生成源卷的快照, 由主存储 设备发送快照的快照标识,接收单元 82接收主存储设备发送的源卷的快照的 快照标识,进而通过发送单元 81发送查询快照的有效数据位图的信令给主存 储设备, 以使主存储设备根据查询快照的有效数据位图的信令查询快照的有 效数据位图, 以便通过接收单元 82接收有效数据位图, 进而通过备份单元 83备份快照的有效数据位图至备份存储设备。 已达到全量备份的同时, 不用 备份无效的数据, 精筒了备份数据。 并且通过备份单元进一步备份有效数据 位图至备份存储设备, 实现了多层次的数据备份, 完善了数据备份的性能, 为更好的恢复应用服务器在正常运行时的写数据操作做了充分的准备。 The server provided in this embodiment is a backup server that backs up data, and sends a backup indication to the primary storage device by the sending unit 81 to instruct the primary storage device to generate a snapshot of the source volume, and the primary storage device sends the snapshot identifier of the snapshot, and the receiving unit Receiving a snapshot identifier of the snapshot of the source volume sent by the primary storage device, and sending, by the sending unit 81, the signaling of the valid data bitmap of the query snapshot to the primary storage device, so that the primary storage device according to the valid data bitmap of the query snapshot The valid data bitmap of the snapshot is queried for receiving the valid data bitmap by the receiving unit 82, and then the backup data unit is backed up by the backup unit 83 to the backup storage device. At the same time that the full backup has been reached, there is no need to back up invalid data, and the data is backed up. And further back up valid data through the backup unit The bitmap to the backup storage device implements multi-level data backup, improves the performance of data backup, and is fully prepared for better recovery of the application server during normal operation.
作为一种可选的实施方式, 发送单元, 还用于发送第一指示给主存储设备, 以使主存储设备根据第一指示建立快照与备份服务器之间的映射关系;  As an optional implementation manner, the sending unit is further configured to send the first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
该服务器还包括: 处理单元, 用于根据接收单元获取的映射关系挂载快照。 作为一种可选的实施方式, 发送单元, 还用于发送第二指示给主存储设备, 以使主存储设备解除备份服务器与快照间的映射关系。  The server further includes: a processing unit, configured to mount the snapshot according to the mapping relationship acquired by the receiving unit. As an optional implementation manner, the sending unit is further configured to send the second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot.
作为一种可选的实施方式, 发送单元, 还用于发送第三指示给主存储设备, 以使主存储设备删除源卷的快照。  As an optional implementation manner, the sending unit is further configured to send a third indication to the primary storage device, so that the primary storage device deletes the snapshot of the source volume.
请参见图 9, 图 9是本申请实施例六提供的另一种服务器结构示意图。 本实施例提供的服务器, 是基于实施例二提供的一种数据备份方法的执行载 体, 即一种备份服务器, 如图 9所示的备份服务器包括: 输入装置 91、 输出 装置 92、 存储器 93和处理器 94, 其中, 存储器 93中存储一组程序代码, 且 处理器 94用于调用存储器中存储的程序代码, 用于执行以下操作:  Referring to FIG. 9, FIG. 9 is a schematic structural diagram of another server provided in Embodiment 6 of the present application. The server provided in this embodiment is an execution carrier of a data backup method according to the second embodiment, that is, a backup server. The backup server shown in FIG. 9 includes: an input device 91, an output device 92, a memory 93, and The processor 94 is configured to store a set of program codes in the memory 93, and the processor 94 is configured to call the program code stored in the memory to perform the following operations:
发送备份指示给主存储设备, 以指示主存储设备生成源卷的快照, 由主存 储设备发送快照的快照标识至备份服务器。  Sending a backup indication to the primary storage device to instruct the primary storage device to generate a snapshot of the source volume, and the primary storage device sends the snapshot identifier of the snapshot to the backup server.
接收主存储设备发送的快照标识。  Receive the snapshot ID sent by the primary storage device.
发送查询快照的有效数据位图的信令给主存储设备, 以使主存储设备根据 查询快照的有效数据位图的信令查询快照的有效数据位图。  The signaling of the valid data bitmap of the query snapshot is sent to the primary storage device, so that the primary storage device queries the valid data bitmap of the snapshot according to the signaling of the valid data bitmap of the query snapshot.
接收主存储设备发送的快照的有效数据位图。  Receives a valid data bitmap of the snapshot sent by the primary storage device.
备份快照的有效数据位图至备份存储设备。  Back up the valid data bitmap of the snapshot to the backup storage device.
接收备份存储设备发送的已备份快照的有效数据位图的反馈信息。  Receive feedback information about the valid data bitmap of the backed up snapshot sent by the backup storage device.
根据已备份快照的有效数据位图的反馈信息发送查询快照的有效数据位图 对应的有效数据的信令给主存储设备, 以使主存储设备根据查询快照的有效数 据位图对应的有效数据的信令查询有效数据。  And sending, according to the feedback information of the valid data bitmap of the backed up snapshot, signaling of the valid data corresponding to the valid data bitmap of the query snapshot to the primary storage device, so that the primary storage device according to the valid data bitmap corresponding to the valid data bitmap of the query snapshot Signaling queries for valid data.
接收主存储设备发送的有效数据。  Receive valid data sent by the primary storage device.
备份有效数据至 ^分存储设备。 本实施例通过处理器 94执行相关操作, 以发送备份指示给主存储设备, 以 指示主存储设备生成源卷的快照, 接收主存储设备发送的源卷的快照的快照标 识, 发送查询快照的有效数据位图的信令给主存储设备, 以接收主存储设备查 询并发送的快照的有效数据位图, 以便备份快照的有效数据位图至备份存储设 备。 通过控制备份服务器与主存储设备之间建立快照功能的备份处理通信关系, 获取源卷的有效数据位图, 不需要对应用服务器加载并运行具有备份功能的客 户端软件就可以完成备份。 且实现全量备份具体采用获取有效数据位图的方法, 则精筒了无效数据的备份, 提高了备份速率。 且进一步通过备份存储设备获取 备份服务器中的有效数据位图, 实现了多层次的数据备份, 完善了数据备份的 性能, 为更好的恢复应用服务器在正常运行时的写数据操作做了充分的准备。 Back up valid data to the storage device. In this embodiment, the processor 94 performs a related operation to send a backup indication to the primary storage device, to instruct the primary storage device to generate a snapshot of the source volume, receive the snapshot identifier of the snapshot of the source volume sent by the primary storage device, and send the query snapshot valid. The signaling of the data bitmap is sent to the primary storage device to receive a valid data bitmap of the snapshot queried and sent by the primary storage device, so as to back up the valid data bitmap of the snapshot to the backup storage device. By controlling the backup processing communication relationship between the backup server and the primary storage device, the valid data bitmap of the source volume is obtained, and the backup can be completed without loading and running the client software with the backup function on the application server. And to achieve full backup, specifically to obtain a valid data bitmap, the fine data backup of the invalid data, improve the backup rate. Further, the backup data storage device obtains the valid data bitmap in the backup server, realizes multi-level data backup, improves the performance of the data backup, and fully satisfies the write data operation of the application server during normal operation. ready.
作为一种可选的实施方式, 该处理器执行接收主存储设备发送的快照标识 的步骤之后, 以及执行发送查询快照的有效数据位图的信令给主存储设备的步 骤之前, 还用于执行下述操作:  As an optional implementation manner, after the step of receiving the snapshot identifier sent by the primary storage device, and performing the signaling of sending the valid data bitmap of the query snapshot to the primary storage device, the processor is further configured to perform The following operations:
发送第一指示给主存储设备, 以使主存储设备根据第一指示建立快照与备 份服务器之间的映射关系。  And sending a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
根据快照与备份服务器之间的映射关系, 挂载快照。  Mount the snapshot based on the mapping between the snapshot and the backup server.
作为一种可选的实施方式, 该处理器还用于执行下述操作:  As an optional implementation manner, the processor is further configured to perform the following operations:
发送第二指示给主存储设备, 以使主存储设备解除备份服务器与快照间的 映射关系。  Sending a second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot.
作为一种可选的实施方式, 该处理器还用于执行下述操作:  As an optional implementation manner, the processor is further configured to perform the following operations:
发送第三指示给主存储设备, 以使主存储设备删除源卷的快照。  Send a third indication to the primary storage device to cause the primary storage device to delete the snapshot of the source volume.
请参见图 10, 图 10是本申请实施例七提供的一种存储设备的结构示意图。 如图 10所示, 本实施例提供的存储设备是执行基于实施例三提供的一种数据备 份方法的执行载体, 为一主存储设备, 包括: 接收单元 101、 快照单元 102、 发 送单元 103和处理单元 104。  Referring to FIG. 10, FIG. 10 is a schematic structural diagram of a storage device according to Embodiment 7 of the present application. As shown in FIG. 10, the storage device provided in this embodiment is an execution carrier that performs a data backup method according to the third embodiment, and is a primary storage device, including: a receiving unit 101, a snapshot unit 102, a sending unit 103, and Processing unit 104.
其中, 接收单元 101 , 用于接收备份服务器按照预设时间, 间隔性发送的备 份指示, 备份指示用于指示存储设备生成快照。 预设时间为本次备份数据与本 次备份数据相邻的前一次备份数据的时间间隔。  The receiving unit 101 is configured to receive a backup indication that is sent by the backup server according to a preset time interval, and the backup indication is used to instruct the storage device to generate a snapshot. The preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
快照单元 102, 用于按照备份指示生成快照。 发送单元 103, 用于发送快照的快照标识至备份 务器。 The snapshot unit 102 is configured to generate a snapshot according to the backup indication. The sending unit 103 is configured to send a snapshot identifier of the snapshot to the backup server.
接收单元 101 ,还用于接收备份服务器发送的查询本次备份数据时的快照与 本次备份数据相邻的前一次备份数据时的快照间的差异数据位图的信令。  The receiving unit 101 is further configured to receive signaling of a difference data bitmap between the snapshots when the current backup data is queried by the backup server and the previous backup data adjacent to the backup data.
处理单元 104,用于根据查询本次备份数据时的快照与本次备份数据相邻的 前一次备份数据时的快照间的差异数据位图的信令查询本次备份数据时的快照 和与本次备份数据相邻的前一次备份数据时的快照间的差异数据位图。  The processing unit 104 is configured to query the snapshot and the current backup data according to the signaling of the difference data bitmap between the snapshot when the backup data is queried and the previous backup data adjacent to the current backup data. The difference data bitmap between snapshots when the backup data is adjacent to the previous backup data.
发送单元 103,还用于发送本次备份数据时的快照与本次备份数据相邻的前 一次备份数据时的快照间的差异数据位图至备份服务器, 以使备份服务器备份 本次备份数据时的快照与本次备份数据相邻的前一次备份数据时的快照间的差 异数据位图至备份存储设备。  The sending unit 103 is further configured to send the difference data bitmap between the snapshots of the current backup data and the previous backup data adjacent to the current backup data to the backup server, so that the backup server backs up the current backup data. The snapshot is the difference data bitmap between the snapshots of the previous backup data adjacent to this backup data to the backup storage device.
接收单元 101 ,还用于接收备份服务器发送的查询差异数据位图对应的差异 数据的信令。  The receiving unit 101 is further configured to receive signaling of the difference data corresponding to the query difference data bitmap sent by the backup server.
处理单元 104,还用于根据查询差异数据位图对应的差异数据的信令查询差 异数据。  The processing unit 104 is further configured to query the difference data according to the signaling of the difference data corresponding to the query difference data bitmap.
发送单元 103, 还用于发送差异数据至备份服务器, 以使备份服务器备份差 异数据至备份存储设备。  The sending unit 103 is further configured to send the difference data to the backup server, so that the backup server backs up the difference data to the backup storage device.
本实施例提供的存储设备为一主存储设备, 在备份过程中, 通过快照单元 102按照接收单元 101接收到的备份服务器按照预设时间,间隔性发送的备份指 示间隔性生成快照, 以便发送单元 103发送快照的快照标识至备份服务器, 并 通过处理单元 104根据接收单元 101接收到备份服务器发送的查询本次备份数 据时的快照与本次备份数据相邻的前一次备份数据时的快照间的差异数据位图 的信令, 查询本次备份数据时的快照与本次备份数据相邻的前一次备份数据时 的快照间的差异数据位图, 查询到该差异数据位图后, 通过发送单元 103发送 本次备份数据时的快照与本次备份数据相邻的前一次备份数据时的快照间的差 异数据位图至备份服务器, 以使备份服务器备份本次备份数据时的快照与本次 备份数据相邻的前一次备份数据时的快照间的差异数据位图至备份存储设备。 在备份过程中, 执行的是增量备份策略, 触发增量备份策略之后, 则在备份服 务器与该存储设备之间建立具有快照通信功能的通信链路, 无需对应用服务器 加载并运行具有备份功能的客户端软件就可以完成备份。 因而不会影响应用服 务器的正常运行, 保证应用服务器的正常处理业务, 同时在线完成数据备份。 且通过获取本次备份数据时的快照与本次备份数据相邻的前一次备份数据时的 快照间的差异数据位图, 可以进一步精筒备份数据, 减少了备份存储空间, 不 再局限于采用全量备份的备份策略进行数据的备份。 The storage device provided in this embodiment is a primary storage device. In the backup process, the snapshot server 102 generates a snapshot according to the preset time interval of the backup server received by the receiving unit 101 according to the preset time interval, so as to send the unit. The snapshot identifier of the snapshot is sent to the backup server, and the processing unit 104 receives, according to the receiving unit 101, a snapshot between the snapshot when the current backup data is sent by the backup server and the previous backup data adjacent to the current backup data. Signaling of the difference data bitmap, querying the difference data bitmap between the snapshot when the backup data is synchronized with the previous backup data adjacent to the backup data, after querying the difference data bitmap, passing the sending unit 103. The difference data bitmap between the snapshot when the backup data is sent and the previous backup data adjacent to the backup data is sent to the backup server, so that the backup server backs up the backup data and the current backup. Data difference bitmap between snapshots when the data was previously stored last time to backup storage Equipment. During the backup process, an incremental backup policy is executed. After the incremental backup policy is triggered, a communication link with snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with backup function. The client software can complete the backup. Therefore, it will not affect the application service. The normal operation of the server ensures the normal processing of the application server and completes the data backup online. By obtaining the difference data bitmap between the snapshots of the backup data and the previous backup data adjacent to the backup data, the data can be further refined and the backup storage space is reduced, which is no longer limited to adoption. The backup strategy of full backup backs up data.
作为一种可选的实施方式, 接收单元, 还用于接收备份服务器发送的第一 指示。 第一指示用于指示主存储设备建立快照与备份服务器之间的映射关系。  As an optional implementation manner, the receiving unit is further configured to receive the first indication sent by the backup server. The first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server.
处理单元, 还用于根据第一指示建立快照与备份服务器之间的映射关系, 以使备份服务器挂载快照。  The processing unit is further configured to establish a mapping relationship between the snapshot and the backup server according to the first indication, so that the backup server mounts the snapshot.
作为一种可选的实施方式, 接收单元, 还用于接收备份服务器发送的第二 指示, 第二指示用于指示主存储设备解除备份服务器与快照间的映射关系; 处理单元, 还用于解除备份服务器与快照间的映射关系。  As an optional implementation manner, the receiving unit is further configured to receive a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot; the processing unit is further configured to release The mapping between the backup server and the snapshot.
作为一种可选的实施方式, 接收单元, 还用于接收备份服务器发送的第三 指示, 第三指示用于指示删除与本次备份数据相邻的前一次备份数据时的快照; 处理单元, 还用于删除与本次备份数据相邻的前一次备份数据时的快照。 请参见图 11 ,图 11是本申请实施例七提供的另一种存储设备的结构示意图。 如图 11所示, 本实施提供的存储设备是执行基于实施例三提供的一种数据备份 方法的执行载体, 为一主存储设备, 包括: 输入装置 111、 输出装置 112、 存储 器 113和处理器 114, 其中, 存储器 113中存储一组程序代码, 且处理器 114用 于调用存储器中存储的程序代码, 用于执行以下操作:  As an optional implementation manner, the receiving unit is further configured to receive a third indication sent by the backup server, where the third indication is used to indicate to delete a snapshot when the previous backup data is adjacent to the current backup data; It is also used to delete a snapshot of the previous backup data adjacent to this backup data. Referring to FIG. 11, FIG. 11 is a schematic structural diagram of another storage device according to Embodiment 7 of the present application. As shown in FIG. 11, the storage device provided in this embodiment is an execution carrier that executes a data backup method according to Embodiment 3, and is a primary storage device, including: an input device 111, an output device 112, a memory 113, and a processor. 114, wherein a set of program codes is stored in the memory 113, and the processor 114 is configured to call the program code stored in the memory, to perform the following operations:
接收备份服务器按照预设时间, 间隔性发送的备份指示, 备份指示用于指 示主存储设备生成快照, 预设时间为本次备份数据与本次备份数据相邻的前一 次备份数据的时间间隔;  Receiving, by the backup server, a backup indication that is sent intermittently according to a preset time, and the backup indication is used to instruct the primary storage device to generate a snapshot, and the preset time is a time interval between the backup data and the previous backup data adjacent to the current backup data;
按照备份指示生成快照;  Generate a snapshot according to the backup instructions;
发送快照的快照标识至备份服务器;  Send the snapshot ID of the snapshot to the backup server;
接收备份服务器发送的查询本次备份数据时的快照与本次备份数据相邻的 前一次备份数据时的快照间的差异数据位图的信令;  Receiving the signaling of the difference data bitmap between the snapshots of the previous backup data adjacent to the previous backup data sent by the backup server;
根据查询本次备份数据时的快照与本次备份数据相邻的前一次备份数据时 的快照间的差异数据位图的信令查询本次备份数据时的快照和与本次备份数据 相邻的前一次备份数据时的快照间的差异数据位图; 发送本次备份数据时的快照与本次备份数据相邻的前一次备份数据时的快 照间的差异数据位图至备份服务器, 以使备份服务器备份本次备份数据时的快 照与本次备份数据相邻的前一次备份数据时的快照间的差异数据位图至备份存 储设备; According to the signaling of the difference data bitmap of the snapshot when the snapshot of the current backup data is compared with the previous backup data adjacent to the current backup data, the snapshot of the current backup data and the snapshot adjacent to the current backup data are queried. The difference data bitmap between snapshots when the data was previously backed up; The difference data bitmap between the snapshot when the backup data is sent and the previous backup data adjacent to the backup data is sent to the backup server, so that the backup server backs up the backup data and the current backup data. The difference data bitmap between the snapshots of the previous previous backup data to the backup storage device;
接收备份服务器发送的查询差异数据位图对应的差异数据的信令; 根据查询差异数据位图对应的差异数据的信令查询差异数据;  Receiving signaling of the difference data corresponding to the query difference data bitmap sent by the backup server; and querying the difference data according to the signaling of the difference data corresponding to the query difference data bitmap;
发送差异数据至备份服务器, 以使备份服务器备份差异数据至备份存储设 备。  Send the difference data to the backup server so that the backup server backs up the difference data to the backup storage device.
本实施例提供的存储设备为一种主存储设备, 主要通过处理器 114执行 相关操作, 以控制存储设备按照间隔获取的备份指示间隔性生成快照, 接收 到备份服务器发送的查询本次备份数据时的快照与本次备份数据相邻的前一 次备份数据时的快照间的差异数据位图的信令后, 查询本次备份数据时的快 照和与本次备份数据相邻的前一次备份数据时的快照间的差异数据位图, 以 及发送该差异数据位图给备份服务器, 使备份服务器备份该差异数据位图至 备份存储设备。 在备份过程中, 执行的是增量备份策略, 触发增量备份策略 之后,则在备份服务器与该存储设备之间建立具有快照通信功能的通信链路, 无需对应用服务器加载并运行具有备份功能的客户端软件就可以完成备份。 因而不会影响应用服务器的正常运行, 保证应用服务器的正常处理业务, 同 时在线完成数据备份。 且通过获取本次备份数据时的快照与本次备份数据相 邻的前一次备份数据时的快照间的差异数据位图,可以进一步精筒备份数据, 减少了备份存储空间,不再局限于采用全量备份的备份策略进行数据的备份。  The storage device provided in this embodiment is a primary storage device, and the related operations are performed by the processor 114 to control the storage device to generate a snapshot according to the interval indication obtained by the interval, and receive the query for the current backup data sent by the backup server. After the snapshot of the difference data bitmap between the snapshots of the previous backup data adjacent to the current backup data, the snapshot of the current backup data and the previous backup data adjacent to the current backup data are queried. The difference data bitmap between the snapshots, and sending the difference data bitmap to the backup server, so that the backup server backs up the difference data bitmap to the backup storage device. During the backup process, an incremental backup policy is executed. After the incremental backup policy is triggered, a communication link with snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with backup function. The client software can complete the backup. Therefore, the normal operation of the application server is not affected, the normal processing service of the application server is ensured, and the data backup is completed online at the same time. By obtaining the difference data bitmap between the snapshots of the backup data and the previous backup data adjacent to the backup data, the data can be further refined and the backup storage space is reduced, which is no longer limited to adoption. The backup strategy of full backup backs up data.
作为一种可选的实施方式, 该处理器执行发送快照的快照标识至备份服务 器的步骤之后, 以及执行接收备份服务器发送的查询本次备份数据时的快照与 本次备份数据相邻的前一次备份数据时的快照间的差异数据位图的信令的步骤 之前, 该处理器还用于执行下述操作:  As an optional implementation manner, the processor performs the step of sending the snapshot identifier of the snapshot to the backup server, and performs the process of receiving the snapshot sent by the backup server to query the current backup data and the previous time adjacent to the current backup data. The processor is also used to perform the following operations before the step of signaling the data bitmap of the difference between snapshots when backing up data:
接收备份服务器发送的第一指示, 第一指示用于指示主存储设备建立快照 与备份服务器之间的映射关系;  Receiving a first indication sent by the backup server, where the first indication is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server;
根据第一指示建立快照与备份服务器之间的映射关系, 以使备份服务器挂 载快照。 作为一种可选的实施方式, 该处理器还用于执行下述操作: 接收备份服务器发送的第二指示, 第二指示用于指示主存储设备解除备份 服务器与快照间的映射关系; According to the first indication, a mapping relationship between the snapshot and the backup server is established, so that the backup server mounts the snapshot. As an optional implementation, the processor is further configured to: receive a second indication sent by the backup server, where the second indication is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot;
解除备份服务器与快照间的映射关系。  Unmap the backup server from the snapshot.
作为一种可选的实施方式, 该处理器还用于执行下述操作:  As an optional implementation manner, the processor is further configured to perform the following operations:
接收备份服务器发送的第三指示, 第三指示用于指示删除与本次备份数据 相邻的前一次备份数据时的快照;  Receiving a third indication sent by the backup server, where the third indication is used to indicate that the snapshot of the previous backup data adjacent to the current backup data is deleted;
删除与本次备份数据相邻的前一次备份数据时的快照。  Delete the snapshot of the previous backup data adjacent to this backup data.
请参见图 12, 图 12是本申请实施例八提供的一种服务器的结构示意图。 如 图 12所示, 本实施例提供的服务器是执行基于实施例四提供的一种数据备份方 法的执行载体, 为一种备份服务器, 包括: 发送单元 121、 接收单元 122、 备份 单元 123。  Referring to FIG. 12, FIG. 12 is a schematic structural diagram of a server according to Embodiment 8 of the present application. As shown in FIG. 12, the server provided in this embodiment is an execution carrier for performing a data backup method according to the fourth embodiment. The backup server includes a sending unit 121, a receiving unit 122, and a backup unit 123.
其中, 发送单元 121 , 用于按照预设时间, 间隔性发送备份指示给主存储设 备, 以使主存储设备按照备份指示生成快照, 由主存储设备生成快照, 并发送 快照的快照标识至备份服务器。 预设时间为本次备份数据与本次备份数据相邻 的前一次备份数据的时间间隔。  The sending unit 121 is configured to send a backup indication to the primary storage device at intervals according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, the primary storage device generates a snapshot, and sends the snapshot identifier of the snapshot to the backup server. . The preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
接收单元 122, 用于接收主存储设备发送的快照的快照标识。  The receiving unit 122 is configured to receive a snapshot identifier of the snapshot sent by the primary storage device.
发送单元 121 ,还用于发送查询本次备份数据时的快照与本次备份数据相邻 的前一次备份数据时的快照间的差异数据位图的信令至主存储设备, 以使主存 储设备查询本次备份数据时的快照和与本次备份数据相邻的前一次备份数据时 的快照间的差异数据位图。  The sending unit 121 is further configured to send, by the primary storage device, the signaling of the difference data bitmap between the snapshots when the snapshot of the current backup data and the previous backup data adjacent to the backup data are forwarded to the primary storage device. Query the difference data bitmap between the snapshot at the time of the backup data and the snapshot at the time of the previous backup data adjacent to the backup data.
接收单元 122,还用于接收本次备份数据时的快照和与本次备份数据相邻的 前一次备份数据时的快照间的差异数据位图。  The receiving unit 122 is further configured to receive a difference data bitmap between the snapshot at the time of the backup data and the snapshot at the time of the previous backup data adjacent to the current backup data.
备份单元 123,用于备份本次备份数据时的快照和与本次备份数据相邻的前 一次备份数据时的快照间的差异数据位图至备份存储设备。  The backup unit 123 is configured to back up the difference data bitmap between the snapshot when the backup data is used and the previous backup data adjacent to the backup data to the backup storage device.
接收单元 122,还用于接收备份存储设备发送的已备份差异数据位图的反馈 信息。  The receiving unit 122 is further configured to receive feedback information of the backed up difference data bitmap sent by the backup storage device.
发送单元 121 ,还用于发送查询差异数据位图对应的差异数据的信令给主存 储设备, 以使主存储设备查询差异数据位图对应的差异数据。 接收单元 122, 还用于接收主存储设备发送的差异数据。 The sending unit 121 is further configured to send signaling for querying the difference data corresponding to the difference data bitmap to the primary storage device, so that the primary storage device queries the difference data corresponding to the difference data bitmap. The receiving unit 122 is further configured to receive difference data sent by the primary storage device.
备份单元 123, 还用于备份差异数据至备份存储设备。  The backup unit 123 is also used to back up the difference data to the backup storage device.
接收单元 122, 还用于接收备份存储设备发送的已备份差异数据的反馈信 其中, 本次备份数据时的快照和与本次备份数据相邻的前一次备份数据时 的快照是由主存储设备按照备份指示生成的, 预设时间为本次备份数据与本次 备份数据相邻的前一次备份数据的时间间隔。  The receiving unit 122 is further configured to receive a feedback message of the backup difference data sent by the backup storage device, where the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data are performed by the primary storage device. According to the backup instructions, the preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
本实施例提供的服务器是一备份服务器, 主要通过发送单元 121 按照预设 时间, 间隔性发送备份指示给主存储设备, 以使主存储设备按照备份指示生成 快照, 由主存储设备生成快照, 并发送快照的快照标识至备份服务器, 通过接 收单元 122接收主存储设备发送的快照的快照标识, 以便通过发送单元 121发 送查询本次备份数据时的快照与本次备份数据相邻的前一次备份数据时的快照 间的差异数据位图的信令至主存储设备, 以使主存储设备查询本次备份数据时 的快照和与本次备份数据相邻的前一次备份数据时的快照间的差异数据位图, 并通过接收单元 122接收主存储设备发送的该差异数据位图, 以通过备份单元 123备份该差异数据位图至备份存储设备。 在备份过程中, 执行的是增量备份策 略, 触发增量备份策略之后, 则在备份服务器与该存储设备之间建立具有快照 通信功能的通信链路, 无需对应用服务器加载并运行具有备份功能的客户端软 件就可以完成备份。 因而不会影响应用服务器的正常运行, 保证应用服务器的 正常处理业务, 同时在线完成数据备份。 且通过获取本次备份数据时的快照与 本次备份数据相邻的前一次备份数据时的快照间的差异数据位图, 可以进一步 精筒备份数据, 减少了备份存储空间, 不再局限于采用全量备份的备份策略进 行数据的备份。  The server provided in this embodiment is a backup server, and the backup unit sends the backup indication to the primary storage device at intervals according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, and the primary storage device generates a snapshot, and The snapshot identifier of the snapshot is sent to the backup server, and the snapshot identifier of the snapshot sent by the primary storage device is received by the receiving unit 122, so that the snapshot of the current backup data is sent by the sending unit 121 to the previous backup data adjacent to the current backup data. The signaling of the difference data bitmap between the snapshots to the primary storage device, so that the primary storage device queries the difference between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data. The bitmap is received by the receiving unit 122, and the difference data bitmap sent by the primary storage device is backed up by the backup unit 123 to the backup storage device. During the backup process, an incremental backup policy is executed. After the incremental backup policy is triggered, a communication link with snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with backup function. The client software can complete the backup. Therefore, the normal operation of the application server is not affected, the normal processing service of the application server is ensured, and the data backup is completed online. By obtaining the difference data bitmap between the snapshots of the backup data and the previous backup data adjacent to the backup data, the data can be further refined and the backup storage space is reduced, which is no longer limited to adoption. The backup strategy of full backup backs up data.
作为一种可选的实施方式, 发送单元, 还用于发送第一指示给主存储设备, 以使主存储设备根据第一指示建立快照与备份服务器之间的映射关系。  As an optional implementation manner, the sending unit is further configured to send the first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication.
处理单元, 用于才艮据获取到的映射关系挂载快照。  The processing unit is configured to mount the snapshot according to the obtained mapping relationship.
作为一种可选的实施方式, 发送单元, 还用于发送第二指示给主存储设备, 以使主存储设备根据第二指示解除备份服务器与快照间的映射关系。  As an optional implementation manner, the sending unit is further configured to send the second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot according to the second indication.
作为一种可选的实施方式, 发送单元, 还用于发送第三指示给主存储设备, 以使主存储设备根据第三指示删除与本次备份数据相邻的前一次备份数据时的 快照。 As an optional implementation manner, the sending unit is further configured to send the third indication to the primary storage device, The snapshot of the previous backup data adjacent to the current backup data is deleted by the primary storage device according to the third indication.
请参见图 13 , 图 13是本申请实施例八提供的另一种服务器的结构示意图。 如图 13所示, 本实施例提供的服务器是执行基于实施例四提供的一种数据备份 方法的执行载体, 为一种备份服务器, 包括: 输入装置 131、 输出装置 132、 存 储器 133和处理器 134, 其中, 存储器 133中存储一组程序代码, 且处理器 134用 于调用存储器 133中存储的程序代码, 用于执行以下操作:  Referring to FIG. 13, FIG. 13 is a schematic structural diagram of another server according to Embodiment 8 of the present application. As shown in FIG. 13, the server provided in this embodiment is an execution carrier that executes a data backup method according to Embodiment 4, and is a backup server, including: an input device 131, an output device 132, a memory 133, and a processor. 134, wherein a set of program codes is stored in the memory 133, and the processor 134 is configured to call the program code stored in the memory 133 for performing the following operations:
按照预设时间, 间隔性发送备份指示给主存储设备, 以使主存储设备按照 备份指示生成快照, 由主存储设备生成快照, 并发送快照的快照标识至备份服 务器。 预设时间为本次备份数据与本次备份数据相邻的前一次备份数据的时间 间隔。  The backup instruction is sent to the primary storage device at intervals according to the preset time, so that the primary storage device generates a snapshot according to the backup indication, the primary storage device generates a snapshot, and the snapshot identifier of the snapshot is sent to the backup server. The preset time is the interval between the backup data and the previous backup data adjacent to the backup data.
接收主存储设备发送的快照的快照标识。  Receives the snapshot ID of the snapshot sent by the primary storage device.
发送查询本次备份数据时的快照与本次备份数据相邻的前一次备份数据时 的快照间的差异数据位图的信令至主存储设备, 以使主存储设备查询本次备份 数据时的快照和与本次备份数据相邻的前一次备份数据时的快照间的差异数据 位图。  The signaling of the difference data bitmap between the snapshots when the backup data is queried and the previous backup data adjacent to the current backup data is sent to the primary storage device, so that the primary storage device queries the current backup data. The difference data bitmap between the snapshot and the snapshot when the previous backup data is adjacent to this backup data.
接收本次备份数据时的快照和与本次备份数据相邻的前一次备份数据时的 快照间的差异数据位图。  The difference data bitmap between the snapshot when the backup data is received and the snapshot when the previous backup data is adjacent to the backup data.
备份本次备份数据时的快照和与本次备份数据相邻的前一次备份数据时的 快照间的差异数据位图至备份存储设备。  The difference data bitmap between the snapshot when the backup data is backed up and the previous backup data adjacent to the backup data is backed up to the backup storage device.
接收备份存储设备发送的已备份差异数据位图的反馈信息。  Receive feedback information of the backed up difference data bitmap sent by the backup storage device.
发送查询差异数据位图对应的差异数据的信令给主存储设备, 以使主存储 设备查询差异数据位图对应的差异数据。  Sending signaling of the difference data corresponding to the query difference data bitmap to the primary storage device, so that the primary storage device queries the difference data corresponding to the difference data bitmap.
接收主存储设备发送的差异数据。  Receive differential data sent by the primary storage device.
备份差异数据至备份存储设备。  Back up the difference data to the backup storage device.
接收备份存储设备发送的已备份差异数据的反馈信息。  Receive feedback information about the backed up differential data sent by the backup storage device.
其中, 本次备份数据时的快照和与本次备份数据相邻的前一次备份数据时 的快照是由主存储设备按照备份指示生成的, 备份指示是由备份服务器间隔发 送的, 预设时间为本次备份数据与本次备份数据相邻的前一次备份数据的时间 间隔。 The snapshot of the backup data and the snapshot of the previous backup data adjacent to the backup data are generated by the primary storage device according to the backup indication, and the backup indication is sent by the backup server at intervals. The preset time is The time when the backup data is adjacent to the previous backup data Interval.
本实施例提供的服务器是一备份服务器, 主要通过处理器 134执行相关操 作, 以按照预设时间, 间隔性发送备份指示给主存储设备, 以使主存储设备按 照备份指示生成快照, 由主存储设备生成快照, 并发送快照的快照标识至备份 服务器, 然后发送查询本次备份数据时的快照与本次备份数据相邻的前一次备 份数据时的快照间的差异数据位图的信令至主存储设备, 以使主存储设备查询 本次备份数据时的快照和与本次备份数据相邻的前一次备份数据时的快照间的 差异数据位图后, 接收主存储设备发送的差异数据位图, 备份该差异数据位图 至备份存储设备。 在备份过程中, 执行的是增量备份策略, 触发增量备份策略 之后, 则在备份服务器与该存储设备之间建立具有快照通信功能的通信链路, 无需对应用服务器加载并运行具有备份功能的客户端软件就可以完成备份。 因 而不会影响应用服务器的正常运行, 保证应用服务器的正常处理业务, 同时在 线完成数据备份。 且通过获取本次备份数据时的快照与本次备份数据相邻的前 一次备份数据时的快照间的差异数据位图, 可以进一步精筒备份数据, 减少了 备份存储空间, 不再局限于采用全量备份的备份策略进行数据的备份。  The server provided in this embodiment is a backup server, and the related operations are performed by the processor 134 to send a backup indication to the primary storage device at intervals according to a preset time, so that the primary storage device generates a snapshot according to the backup indication, and the primary storage device generates the snapshot. The device generates a snapshot, and sends the snapshot ID of the snapshot to the backup server, and then sends a signaling to the main data of the difference data bitmap between the snapshot when the backup data is queried and the previous backup data adjacent to the backup data. The storage device is configured to enable the primary storage device to query the difference data bitmap between the snapshot when the backup data is synchronized and the previous backup data adjacent to the backup data, and receive the difference data bitmap sent by the primary storage device. , back up the difference data bitmap to the backup storage device. During the backup process, an incremental backup policy is executed. After the incremental backup policy is triggered, a communication link with snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with backup function. The client software can complete the backup. Therefore, the normal operation of the application server is not affected, the normal processing service of the application server is ensured, and the data backup is completed online. By obtaining the difference data bitmap between the snapshots of the backup data and the previous backup data adjacent to the backup data, the data can be further refined and the backup storage space is reduced, which is no longer limited to adoption. The backup strategy of full backup backs up data.
作为一种可选的实施方式, 该处理器执行接收主存储设备发送的快照的快 照标识的步骤之后, 以及执行发送查询本次备份数据时的快照与本次备份数据 相邻的前一次备份数据时的快照间的差异数据位图的信令至主存储设备的步骤 之前, 该处理器还用于执行下述操作:  As an optional implementation manner, the processor performs the step of receiving the snapshot identifier of the snapshot sent by the primary storage device, and performing the snapshot of the current backup data and the previous backup data adjacent to the current backup data. Before the step of signaling the difference data bitmap between the snapshots to the primary storage device, the processor is also used to perform the following operations:
发送第一指示给主存储设备, 以使主存储设备根据第一指示建立快照与备 份服务器之间的映射关系;  Sending a first indication to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first indication;
根据映射关系挂载快照。  Mount the snapshot based on the mapping relationship.
作为一种可选的实施方式, 该处理器还用于执行下述操作:  As an optional implementation manner, the processor is further configured to perform the following operations:
发送第二指示给主存储设备, 以使主存储设备根据第二指示解除备份服务 器与快照间的映射关系。  Sending a second indication to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot according to the second indication.
作为一种可选的实施方式, 该处理器还用于执行下述操作:  As an optional implementation manner, the processor is further configured to perform the following operations:
发送第三指示给主存储设备, 以使主存储设备根据第三指示删除与本次备 份数据相邻的前一次备份数据时的快照。  Sending a third indication to the primary storage device, so that the primary storage device deletes the snapshot of the previous backup data adjacent to the current backup data according to the third indication.
请参见图 14 , 图 14是本申请实施例九提供的一种数据备份系统的结构示意 图。 如图 14所示, 本实施例提供的数据备份系统包括实施例五提供的一种主存 储设备和实施例六提供的一种备份服务器, 以及包括应用服务器, 还包括: 备份存储设备 141 , 用于存储备份服务器发送的源卷的快照的有效数据位 图。 Referring to FIG. 14, FIG. 14 is a schematic structural diagram of a data backup system according to Embodiment 9 of the present application. Figure. As shown in FIG. 14, the data backup system provided in this embodiment includes a primary storage device provided in Embodiment 5 and a backup server provided in Embodiment 6, and includes an application server, and further includes: a backup storage device 141. A valid data bitmap for storing a snapshot of the source volume sent by the backup server.
备份存储设备 141 ,还用于发送已备份快照的有效数据位图的反馈信息给备 份服务器;  The backup storage device 141 is further configured to send feedback information of the valid data bitmap of the backed up snapshot to the backup server;
备份存储设备 141 , 还用于存储备份服务器发送的与有效数据位图对应的有 效数据。  The backup storage device 141 is further configured to store valid data corresponding to the valid data bitmap sent by the backup server.
备份存储设备 141 , 还用于发送已存储快照的有效数据的反馈信息给备份服 务器。  The backup storage device 141 is further configured to send feedback information of valid data of the stored snapshot to the backup server.
本实施例提供的数据备份系统, 通过主存储设备发送查询到的源卷的快照 的有效数据位图给备份服务器, 以便备份服务器发送有效数据位图或者进一步 发送有效数据位图对应的有效数据给备份存储设备, 使备份存储设备能够备份 有效的数据, 进而不用备份无效的数据, 精筒了备份数据。 其次, 在备份过程 中, 执行的是全量备份策略, 触发全量备份策略之后, 则在备份服务器与该存 储设备之间建立具有快照通信功能的通信链路, 无需对应用服务器加载并运行 具有备份功能的客户端软件就可以完成备份。 因而不会影响应用服务器的正常 运行, 保证应用服务器的正常处理业务, 同时在线完成数据备份。 且通过获取 有效数据位图, 可以进一步精筒备份数据, 减少了备份存储空间。  The data backup system provided in this embodiment sends a valid data bitmap of the snapshot of the source volume to the backup server through the primary storage device, so that the backup server sends a valid data bitmap or further sends valid data corresponding to the valid data bitmap. The backup storage device enables the backup storage device to back up valid data, so that the backup data cannot be backed up without backing up invalid data. Secondly, during the backup process, a full backup policy is executed. After the full backup policy is triggered, a communication link with a snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with a backup function. The client software can complete the backup. Therefore, the normal operation of the application server is not affected, the normal processing service of the application server is ensured, and the data backup is completed online. By obtaining a valid data bitmap, the data can be further backed up and the backup storage space is reduced.
请参见图 15 , 图 15是本申请实施例十提供的一种数据备份系统的结构示意 图。 如图 15所示, 本实施例提供的数据备份系统包括实施例七提供的一种主存 储设备和实施例八提供的一种备份服务器, 还包括:  Referring to FIG. 15, FIG. 15 is a schematic structural diagram of a data backup system according to Embodiment 10 of the present application. As shown in FIG. 15, the data backup system provided in this embodiment includes a primary storage device provided in the seventh embodiment and a backup server provided in the eighth embodiment, and further includes:
备份存储设备 151 ,用于存储本次备份数据时的快照和与本次备份数据相邻 的前一次备份数据时的快照间的差异数据位图。  The backup storage device 151 is used to store a difference data bitmap between the snapshot at the time of the backup data and the snapshot at the time of the previous backup data adjacent to the backup data.
备份存储设备 151 ,还用于发送已备份差异数据位图的反馈信息给备份服务 器。  The backup storage device 151 is further configured to send feedback information of the backed up difference data bitmap to the backup server.
备份存储设备 151 , 还用于存储与差异数据位图对应的差异数据至备份存储 设备。  The backup storage device 151 is further configured to store the difference data corresponding to the difference data bitmap to the backup storage device.
备份存储设备 151 , 还用于发送已存储差异数据的反馈信息给备份服务器。 本实施例提供的数据备份系统, 通过主存储设备发送查询到的本次备份数 据时的快照和与本次备份数据相邻的前一次备份数据时的快照之间的差异数据 位图给备份服务器, 以便备份服务器发送两次相邻备份数据时的快照的差异数 据位图或者该差异数据位图对应的差异数据给备份存储设备, 使备份存储设备 仅备份存在差异化的数据。 在备份过程中, 执行的是增量备份策略, 触发增量 备份策略之后, 则在备份服务器与该存储设备之间建立具有快照通信功能的通 信链路, 无需对应用服务器加载并运行具有备份功能的客户端软件就可以完成 备份。 因而不会影响应用服务器的正常运行, 保证应用服务器的正常处理业务, 同时在线完成数据备份。 且通过获取本次备份数据时的快照与本次备份数据相 邻的前一次备份数据时的快照间的差异数据位图, 可以进一步精筒备份数据, 减少了备份存储空间, 不再局限于采用全量备份的备份策略进行数据的备份。 The backup storage device 151 is further configured to send feedback information of the stored difference data to the backup server. In the data backup system provided by the embodiment, the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data is sent to the backup server by the primary storage device. For the backup server to send the differential data bitmap of the snapshot when the backup data is sent twice or the difference data corresponding to the difference data bitmap to the backup storage device, so that the backup storage device only backs up the differentiated data. During the backup process, an incremental backup policy is executed. After the incremental backup policy is triggered, a communication link with snapshot communication function is established between the backup server and the storage device, and the application server does not need to be loaded and run with backup function. The client software can complete the backup. Therefore, the normal operation of the application server is not affected, the normal processing service of the application server is ensured, and the data backup is completed online. By obtaining the difference data bitmap between the snapshots of the backup data and the previous backup data adjacent to the backup data, the data can be further refined and the backup storage space is reduced, which is no longer limited to adoption. The backup strategy of full backup backs up data.
综上表述, 本实施例提供的数据备份方法及相关设备, 通过在备份服务器 中设置不同的备份策略, 以使备份服务器接收到触发备份策略的信令后, 与主 存储设备间经过快照技术处理, 发送备份的数据至备份存储设备, 备份过程中 没有应用服务器的参与, 避免了通过应用服务器运行客户端备份软件或者磁盘 镜像功能软件备份数据而影响到应用服务器自身的业务性能, 实现了应用服务 器正常运行的同时, 高效率备份数据的功能, 即备份数据功能和应用服务器运 行业务软件互不干扰。  In summary, the data backup method and related devices provided in this embodiment are configured by using a backup technology in the backup server, so that the backup server receives the signaling that triggers the backup policy, and then processes the snapshot with the primary storage device. The backup data is sent to the backup storage device. There is no application server participation during the backup process, which avoids the application server running the client backup software or the disk mirror function software to back up the data and affect the application server's own business performance, and implements the application server. At the same time of normal operation, the function of efficiently backing up data, that is, the backup data function and the application server running business software do not interfere with each other.
具体地通过主存储设备发送查询到的源卷的快照的有效数据位图给备份服 务器, 以便备份服务器发送有效数据位图或者进一步发送有效数据位图对应的 有效数据给备份存储设备, 使备份存储设备能够备份有效的数据, 进而不用备 份无效的数据, 精筒了备份数据。  Specifically, the valid data bitmap of the snapshot of the source volume that is queried is sent to the backup server by the primary storage device, so that the backup server sends a valid data bitmap or further sends valid data corresponding to the valid data bitmap to the backup storage device, so that the backup storage is performed. The device can back up valid data, so there is no need to back up invalid data, and the data is backed up.
或者, 通过主存储设备发送查询到的本次备份数据时的快照和与本次备份 数据相邻的前一次备份数据时的快照之间的差异数据位图给备份服务器, 以便 备份服务器发送两次相邻备份数据时的快照的差异数据位图或者该差异数据位 图对应的差异数据给备份存储设备, 使备份存储设备仅备份存在差异化的数据, 节省了备份存储设备的存储空间, 进一步提升了备份效率。  Or, the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the backup data is sent to the backup server by the primary storage device, so that the backup server sends the backup server twice. The difference data bitmap of the snapshot when the data is backed up or the difference data corresponding to the difference data bitmap is sent to the backup storage device, so that the backup storage device only backs up the differentiated data, which saves the storage space of the backup storage device and further improves Backup efficiency.
通过全量备份或者增量备份使得备份方案的选择性更多, 以及对应用服务 器的性能没有任何影响, 且通过备份服务器将有效数据、 有效位图或者差异数 据差异数据位图存储至文件中, 可以使用不同于主存储的型号, 即支持异构存 储, 增强了备份系统中各个设备的普遍应用性。 Full backup or incremental backup makes the backup scheme more selective and has no impact on the performance of the application server, and the valid data, valid bitmap or difference number is passed through the backup server. According to the difference data bitmap stored in the file, the model different from the main storage can be used, that is, the heterogeneous storage is supported, and the universal applicability of each device in the backup system is enhanced.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的设备和方法, 可 以通过其它的方式实现。 例如, 以上所描述的设备实施例仅仅是示意性的, 例 如, 模块或单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的 划分方式, 例如多个单元或模块可以结合或者可以集成到另一个系统, 或一些 特征可以忽略, 或不执行。 另外, 所显示或讨论的相互之间的耦合或直接耦合 或通信连接可以是通过一些接口、 装置、 模块或单元的间接耦合或通信连接, 也可以是电的, 机械的或其它的形式连接。  In the several embodiments provided herein, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or modules may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device, module or unit, or an electrical, mechanical or other form of connection.
作为分离部件说明的模块或单元可以是或者也可以不是物理上分开的, 作 为模块或单元显示的部件可以是或者也可以不是物理模块或单元, 即可以位于 一个地方, 或者也可以分布到多个网络模块或单元上。 可以根据实际的需要选 择其中的部分或者全部模块或单元来实现本发明实施例方案的目的。  The modules or units described as separate components may or may not be physically separate. The components displayed as modules or units may or may not be physical modules or units, ie may be located in one place, or may be distributed to multiple On a network module or unit. Some or all of the modules or units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外, 在本发明各个实施例中的各功能模块或单元可以集成在一个处理模 块或单元中, 也可以是各个模块或单元单独物理存在, 也可以是两个或两个以 上模块或单元集成在一个模块或单元中。 上述集成的模块或单元既可以采用硬 件的形式实现, 也可以采用软件功能单元的形式实现。  In addition, each functional module or unit in each embodiment of the present invention may be integrated into one processing module or unit, or each module or unit may exist physically separately, or two or more modules or units may be integrated in In a module or unit. The above integrated modules or units can be implemented either in the form of hardware or in the form of software functional units.
集成的模块或单元如果以软件功能模块或单元的形式实现并作为独立的产 品销售或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分, 或者该技术方案 的全部或部分可以软件产品的形式体现出来, 该计算机软件产品存储在一个存 储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务 器, 或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。 而前述 的存储介质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ) 、 随机存取存储器(RAM, Random Access Memory ) 、 磁碟或者光盘等各种可以 存储程序代码的介质。  An integrated module or unit, if implemented as a software function module or unit and sold or used as a stand-alone product, can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到各 种等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以权利要求的保护范围为准。 The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent modification or can be easily conceived by those skilled in the art within the technical scope of the present disclosure. Such modifications or substitutions are intended to be included within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 Rights request
1、 一种数据备份方法, 其特征在于, 包括: 1. A data backup method, characterized by including:
主存储设备接收备份服务器发送的备份指示, 所述备份指示用于指示所述 主存储设备生成源卷的快照; The primary storage device receives a backup instruction sent by the backup server, where the backup instruction is used to instruct the primary storage device to generate a snapshot of the source volume;
所述主存储设备生成源卷的快照; The primary storage device generates a snapshot of the source volume;
所述主存储设备发送所述快照的快照标识至所述备份服务器; The primary storage device sends the snapshot identification of the snapshot to the backup server;
所述主存储设备接收所述备份服务器发送的查询所述快照的有效数据位图 的信令; The primary storage device receives the signaling sent by the backup server to query the valid data bitmap of the snapshot;
所述主存储设备根据所述查询所述快照的有效数据位图的信令查询所述快 照的有效数据位图; The main storage device queries the valid data bitmap of the snapshot according to the signaling for querying the valid data bitmap of the snapshot;
所述主存储设备发送所述快照的有效数据位图至所述备份服务器, 以使所 述备份服务器备份所述快照的有效数据位图至备份存储设备; The primary storage device sends the valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to the backup storage device;
所述主存储设备接收所述备份服务器发送的查询所述快照的有效数据位图 对应的有效数据的信令; The primary storage device receives the signaling sent by the backup server to query the valid data corresponding to the valid data bitmap of the snapshot;
所述主存储设备根据所述查询所述快照的有效数据位图对应的有效数据的 信令查询所述有效数据; The main storage device queries the valid data according to the signaling of querying the valid data corresponding to the valid data bitmap of the snapshot;
所述主存储设备发送所述有效数据至所述备份服务器, 以使所述备份服务 器备份所述有效数据至所述备份存储设备。 The main storage device sends the valid data to the backup server, so that the backup server backs up the valid data to the backup storage device.
2、 如权利要求 1所述的数据备份方法, 其特征在于, 所述主存储设备生成 源卷的快照之前, 所述方法还包括: 2. The data backup method according to claim 1, characterized in that, before the primary storage device generates a snapshot of the source volume, the method further includes:
主存储设备创建源卷; The primary storage device creates the source volume;
所述主存储设备映射所述源卷给应用服务器, 以使所述应用服务器挂载所 述源卷, 以存储所述应用服务器的数据至所述源卷。 The main storage device maps the source volume to the application server, so that the application server mounts the source volume to store data of the application server in the source volume.
3、 如权利要求 1所述的数据备份方法, 其特征在于, 所述主存储设备发送 所述快照的快照标识至所述备份服务器之后, 以及所述主存储设备接收所述备 份服务器发送的查询所述快照的有效数据位图的信令之前, 所述方法还包括: 所述主存储设备接收所述备份服务器发送的第一指示, 所述第一指示用于 指示所述主存储设备建立所述快照与所述备份服务器之间的映射关系; 所述主存储设备根据所述第一指示建立所述快照与所述备份服务器之间的 映射关系, 以使所述备份服务器挂载所述快照。 3. The data backup method according to claim 1, characterized in that, after the main storage device sends the snapshot identification of the snapshot to the backup server, and the main storage device receives the query sent by the backup server. Before signaling the valid data bitmap of the snapshot, the method further includes: the primary storage device receiving a first indication sent by the backup server, the first indication being used to instruct the primary storage device to establish the The mapping relationship between the snapshot and the backup server; The primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first instruction, so that the backup server mounts the snapshot.
4、 如权利要求 3所述的数据备份方法, 其特征在于, 所述方法还包括: 所述主存储设备接收所述备份服务器发送的第二指示, 所述第二指示用于 指示所述主存储设备解除所述备份服务器与所述快照间的映射关系; 4. The data backup method according to claim 3, wherein the method further includes: the primary storage device receiving a second instruction sent by the backup server, the second instruction being used to instruct the primary storage device. The storage device releases the mapping relationship between the backup server and the snapshot;
所述主存储设备解除所述备份服务器与所述快照间的映射关系。 The primary storage device releases the mapping relationship between the backup server and the snapshot.
5、 如权利要求 1至 4中任一所述的数据备份方法, 其特征在于, 所述方法还 包括: 5. The data backup method according to any one of claims 1 to 4, characterized in that the method further includes:
所述主存储设备接收所述备份服务器发送的第三指示, 所述第三指示用于 指示所述主存储设备删除所述源卷的所述快照; The primary storage device receives a third instruction sent by the backup server, where the third instruction is used to instruct the primary storage device to delete the snapshot of the source volume;
所述主存储设备删除所述源卷的所述快照。 The primary storage device deletes the snapshot of the source volume.
6、 一种数据备份方法, 其特征在于, 包括: 6. A data backup method, characterized by including:
备份服务器发送备份指示给主存储设备, 以指示所述主存储设备生成源卷 的快照, 由所述主存储设备发送所述快照的快照标识至所述备份服务器; The backup server sends a backup instruction to the primary storage device to instruct the primary storage device to generate a snapshot of the source volume, and the primary storage device sends a snapshot identification of the snapshot to the backup server;
所述备份服务器接收所述主存储设备发送的快照标识; The backup server receives the snapshot identification sent by the primary storage device;
所述备份服务器发送查询所述快照的有效数据位图的信令给所述主存储设 备, 以使所述主存储设备根据所述查询所述快照的有效数据位图的信令查询所 述快照的有效数据位图; The backup server sends a signaling to query the valid data bitmap of the snapshot to the primary storage device, so that the primary storage device queries the snapshot according to the signaling to query the valid data bitmap of the snapshot. The valid data bitmap;
所述备份服务器接收所述主存储设备发送的所述快照的有效数据位图; 所述备份服务器 ^分所述快照的有效数据位图至备份存储设备; 所述备份服务器接收所述备份存储设备发送的已备份所述快照的有效数据 位图的反馈信息; The backup server receives the valid data bitmap of the snapshot sent by the primary storage device; the backup server distributes the valid data bitmap of the snapshot to the backup storage device; the backup server receives the backup storage device Send feedback information that the valid data bitmap of the snapshot has been backed up;
所述备份服务器根据所述已备份所述快照的有效数据位图的所述反馈信息 发送查询所述快照的所述有效数据位图对应的有效数据的信令给所述主存储设 备, 以使所述主存储设备根据所述查询所述快照的所述有效数据位图对应的有 效数据的所述信令查询所述有效数据; The backup server sends signaling for querying the valid data corresponding to the valid data bitmap of the snapshot to the main storage device according to the feedback information of the valid data bitmap of the snapshot that has been backed up, so that The main storage device queries the valid data according to the signaling of querying the valid data corresponding to the valid data bitmap of the snapshot;
所述备份服务器接收所述主存储设备发送的所述有效数据; The backup server receives the valid data sent by the primary storage device;
所述备份服务器 ^分所述有效数据至所述备份存储设备; The backup server distributes the valid data to the backup storage device;
所述备份服务器接收所述备份存储设备发送的已备份所述快照的所述有效 数据的反馈信息。 The backup server receives the feedback information sent by the backup storage device that the valid data of the snapshot has been backed up.
7、 如权利要求 6所述的数据备份方法, 其特征在于, 所述备份服务器接收 所述主存储设备发送的快照标识之后, 以及所述备份服务器发送查询所述快照 的有效数据位图的信令给所述主存储设备之前, 所述方法还包括: 7. The data backup method according to claim 6, wherein after the backup server receives the snapshot identification sent by the primary storage device, the backup server sends a message querying the valid data bitmap of the snapshot. Before the command is given to the main storage device, the method further includes:
所述备份服务器发送第一指示给所述主存储设备, 以使所述主存储设备根 据所述第一指示建立所述快照与所述备份服务器之间的映射关系; The backup server sends a first instruction to the primary storage device, so that the primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first instruction;
所述备份服务器根据所述快照与所述备份服务器之间的映射关系, 挂载所 述快照。 The backup server mounts the snapshot according to the mapping relationship between the snapshot and the backup server.
8、 如权利要求 7所述的数据备份方法, 其特征在于, 所述方法还包括: 所述备份服务器发送第二指示给所述主存储设备, 以使所述主存储设备解 除所述备份服务器与所述快照间的映射关系。 8. The data backup method of claim 7, wherein the method further includes: the backup server sending a second instruction to the main storage device, so that the main storage device deactivates the backup server. and the mapping relationship between the snapshots.
9、 如权利要求 6至 8中任一所述的数据备份方法, 其特征在于, 所述方法还 包括: 9. The data backup method according to any one of claims 6 to 8, characterized in that the method further includes:
所述备份服务器发送第三指示给所述主存储设备, 以使所述主存储设备删 除所述源卷的所述快照。 The backup server sends a third instruction to the primary storage device, so that the primary storage device deletes the snapshot of the source volume.
10、 一种数据备份方法, 其特征在于, 包括: 10. A data backup method, characterized by including:
主存储设备接收备份服务器按照预设时间, 间隔性发送的备份指示, 所述 备份指示用于指示所述主存储设备生成快照, 所述预设时间为本次备份数据与 本次备份数据相邻的前一次备份数据的时间间隔; The main storage device receives backup instructions sent by the backup server at intervals according to a preset time. The backup instructions are used to instruct the main storage device to generate snapshots. The preset time is when the current backup data is adjacent to the current backup data. The time interval of the previous backup data;
所述主存储设备按照所述备份指示生成快照; The primary storage device generates a snapshot according to the backup instruction;
所述主存储设备发送所述快照的快照标识至所述备份服务器; The primary storage device sends the snapshot identification of the snapshot to the backup server;
所述主存储设备接收所述备份服务器发送的查询所述本次备份数据时的快 照与所述本次备份数据相邻的前一次备份数据时的快照间的差异数据位图的信 令; 相邻的前一次备份数据时的快照间的差异数据位图的信令查询所述本次备份数 据时的快照和与所述本次备份数据相邻的前一次备份数据时的快照间的所述差 异数据位图; 的前一次备份数据时的快照间的所述差异数据位图至所述备份服务器, 以使所 述备份服务器备份所述本次备份数据时的快照与所述本次备份数据相邻的前一 次备份数据时的快照间的所述差异数据位图至备份存储设备; The main storage device receives the signaling sent by the backup server to query the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data; The signaling of the difference data bitmap between the adjacent snapshots of the previous backup data is queried between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data. Difference data bitmap; Send the difference data bitmap between the snapshots of the previous data backup to the backup server, so that the backup server can back up the snapshots of the current backup data and the current backup data. adjacent previous The difference data bitmap between the snapshots when backing up data to the backup storage device;
所述主存储设备接收所述备份服务器发送的查询所述差异数据位图对应的 差异数据的信令; The primary storage device receives the signaling sent by the backup server to query the differential data corresponding to the differential data bitmap;
所述主存储设备根据所述查询所述差异数据位图对应的差异数据的所述信 令查询所述差异数据; The main storage device queries the difference data according to the signaling of querying the difference data corresponding to the difference data bitmap;
所述主存储设备发送所述差异数据至所述备份服务器, 以使所述备份服务 器备份所述差异数据至所述备份存储设备。 The main storage device sends the difference data to the backup server, so that the backup server backs up the difference data to the backup storage device.
11、 如权利要求 10所述的数据备份方法, 其特征在于, 所述主存储设备发 送所述快照的快照标识至所述备份服务器之后, 以及所述主存储设备接收所述 备份服务器发送的查询所述本次备份数据时的快照与所述本次备份数据相邻的 前一次备份数据时的快照间的差异数据位图的信令之前, 所述方法还包括: 所述主存储设备接收所述备份服务器发送的第一指示, 所述第一指示用于 指示所述主存储设备建立所述快照与所述备份服务器之间的映射关系; 11. The data backup method according to claim 10, characterized in that, after the main storage device sends the snapshot identification of the snapshot to the backup server, and the main storage device receives the query sent by the backup server. Before signaling the difference data bitmap between the snapshot of the current backup data and the previous snapshot of the backup data adjacent to the current backup data, the method further includes: the main storage device receives all The first instruction sent by the backup server, the first instruction is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server;
所述主存储设备根据所述第一指示建立所述快照与所述备份服务器之间的 映射关系, 以使所述备份服务器挂载所述快照。 The primary storage device establishes a mapping relationship between the snapshot and the backup server according to the first instruction, so that the backup server mounts the snapshot.
12、 如权利要求 11所述的数据备份方法, 其特征在于, 所述方法还包括: 所述主存储设备接收所述备份服务器发送的第二指示, 所述第二指示用于 指示所述主存储设备解除所述备份服务器与所述快照间的映射关系; 12. The data backup method as claimed in claim 11, wherein the method further includes: the primary storage device receiving a second instruction sent by the backup server, the second instruction being used to instruct the primary storage device. The storage device releases the mapping relationship between the backup server and the snapshot;
所述主存储设备解除所述备份服务器与所述快照间的映射关系。 The primary storage device releases the mapping relationship between the backup server and the snapshot.
13、 如权利要求 10至 12中任一所述的数据备份方法, 其特征在于, 所述方 法还包括: 13. The data backup method according to any one of claims 10 to 12, characterized in that the method further includes:
所述主存储设备接收所述备份服务器发送的第三指示, 所述第三指示用于 指示删除与所述本次备份数据相邻的前一次备份数据时的快照; The main storage device receives a third instruction sent by the backup server, where the third instruction is used to instruct to delete the snapshot of the previous backup data adjacent to the current backup data;
所述主存储设备删除与所述本次备份数据相邻的前一次备份数据时的快 照。 The main storage device deletes the snapshot of the previous backup data adjacent to the current backup data.
14、 一种数据备份方法, 其特征在于, 包括: 14. A data backup method, characterized by including:
备份服务器按照预设时间, 间隔性发送备份指示给主存储设备, 以使所述 主存储设备按照所述备份指示生成快照, 由所述主存储设备生成快照, 并发送 所述快照的快照标识至所述备份服务器; 所述预设时间为本次备份数据与本次 备份数据相邻的前一次备份数据的时间间隔; 所述备份服务器接收所述主存储设备发送的所述快照的快照标识; 所述备份服务器发送查询所述本次备份数据时的所述快照与所述本次备份 数据相邻的前一次备份数据时的快照间的差异数据位图的信令至所述主存储设 备, 以使所述主存储设备查询所述本次备份数据时的快照和与所述本次备份数 据相邻的前一次备份数据时的快照间的所述差异数据位图; The backup server sends backup instructions to the main storage device at intervals according to the preset time, so that the main storage device generates a snapshot according to the backup instruction, the main storage device generates a snapshot, and sends the snapshot identification of the snapshot to The backup server; The preset time is the time interval between the current backup data and the previous backup data adjacent to the current backup data; The backup server receives the snapshot identifier of the snapshot sent by the primary storage device; the backup server sends the previous backup data of the snapshot adjacent to the current backup data when querying the current backup data. Signaling the difference data bitmap between snapshots at that time to the main storage device, so that the main storage device queries the snapshot at the time of the current backup data and the previous backup adjacent to the current backup data a bitmap of said difference data between snapshots of data;
所述备份服务器接收所述本次备份数据时的所述快照和与所述本次备份数 据相邻的前一次备份数据时的快照间的所述差异数据位图; The backup server receives the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data;
所述备份服务器备份所述本次备份数据时的快照和与所述本次备份数据相 邻的前一次备份数据时的快照间的所述差异数据位图至备份存储设备; The backup server backs up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to a backup storage device;
所述备份服务器接收所述备份存储设备发送的已备份所述差异数据位图的 反馈信息; The backup server receives the feedback information sent by the backup storage device that the differential data bitmap has been backed up;
所述备份服务器发送查询所述差异数据位图对应的差异数据的信令给所述 主存储设备, 以使所述主存储设备查询所述差异数据位图对应的差异数据; 所述备份服务器接收所述主存储设备发送的所述差异数据; The backup server sends signaling to query the difference data corresponding to the difference data bitmap to the main storage device, so that the main storage device queries the difference data corresponding to the difference data bitmap; the backup server receives the difference data sent by the main storage device;
所述备份服务器 ^分所述差异数据至所述备份存储设备; The backup server distributes the differential data to the backup storage device;
所述备份服务器接收所述备份存储设备发送的已备份所述差异数据的反馈 信息。 The backup server receives the feedback information sent by the backup storage device that the differential data has been backed up.
15、 如权利要求 14所述的数据备份方法, 其特征在于, 所述备份服务器接 收所述主存储设备发送的所述快照的快照标识之后, 以及所述备份服务器发送 查询所述本次备份数据时的所述快照与所述本次备份数据相邻的前一次备份数 据时的快照间的差异数据位图的信令至所述主存储设备之前,所述方法还包括: 所述备份服务器发送第一指示给所述主存储设备, 以使所述主存储设备根 据所述第一指示建立所述快照与所述备份服务器之间的映射关系; 15. The data backup method of claim 14, wherein after the backup server receives the snapshot identifier of the snapshot sent by the primary storage device, the backup server sends a query for the current backup data. Before signaling the difference data bitmap between the snapshot at that time and the previous backup data adjacent to the current backup data to the main storage device, the method further includes: the backup server sends A first instruction is given to the main storage device, so that the main storage device establishes a mapping relationship between the snapshot and the backup server according to the first instruction;
所述备份服务器根据所述映射关系挂载所述快照。 The backup server mounts the snapshot according to the mapping relationship.
16、 如权利要求 15所述的数据备份方法, 其特征在于, 所述方法还包括: 所述备份服务器发送第二指示给所述主存储设备, 以使所述主存储设备根 据所述第二指示解除所述备份服务器与所述快照间的映射关系。 16. The data backup method as claimed in claim 15, wherein the method further includes: the backup server sending a second instruction to the main storage device, so that the main storage device performs the operation according to the second instruction. Instructs to release the mapping relationship between the backup server and the snapshot.
17、 如权利要求 14至 16中任一所述的数据备份方法, 其特征在于, 所述 方法还包括: 所述备份服务器发送第三指示给所述主存储设备, 以使所述主存储设备根 据所述第三指示删除与所述本次备份数据相邻的前一次备份数据时的快照。 17. The data backup method according to any one of claims 14 to 16, characterized in that the method further includes: The backup server sends a third instruction to the main storage device, so that the main storage device deletes the snapshot of the previous backup data adjacent to the current backup data according to the third instruction.
18、 一种存储设备, 其特征在于, 包括: 18. A storage device, characterized by including:
接收单元, 用于接收备份服务器发送的备份指示, 所述备份指示用于指示 所述存储设备生成源卷的快照; A receiving unit, configured to receive a backup instruction sent by the backup server, where the backup instruction is used to instruct the storage device to generate a snapshot of the source volume;
快照单元, 用于生成源卷的快照; Snapshot unit, used to generate snapshots of the source volume;
发送单元, 用于发送所述快照的快照标识至所述备份良务器; A sending unit, configured to send the snapshot identification of the snapshot to the backup server;
所述接收单元, 还用于接收所述备份服务器发送的查询所述快照的有效数 据位图的信令; The receiving unit is also configured to receive signaling sent by the backup server to query the effective data bitmap of the snapshot;
处理单元, 用于根据所述查询所述快照的有效数据位图的信令查询所述快 照的有效数据位图; A processing unit configured to query the effective data bitmap of the snapshot according to the signaling for querying the effective data bitmap of the snapshot;
所述发送单元, 还用于发送所述快照的有效数据位图至所述备份服务器, 以使所述备份服务器备份所述快照的有效数据位图至备份存储设备; The sending unit is also configured to send the valid data bitmap of the snapshot to the backup server, so that the backup server backs up the valid data bitmap of the snapshot to a backup storage device;
所述接收单元, 还用于接收所述备份服务器发送的查询所述快照的有效数 据位图对应的有效数据的信令; The receiving unit is also configured to receive signaling sent by the backup server to query the valid data corresponding to the valid data bitmap of the snapshot;
所述处理单元, 还用于根据所述查询所述快照的有效数据位图对应的有效 数据的信令查询所述有效数据; The processing unit is further configured to query the valid data according to the signaling of querying the valid data corresponding to the valid data bitmap of the snapshot;
所述发送单元, 还用于发送所述有效数据至所述备份服务器, 以使所述备 份服务器备份所述有效数据至所述备份存储设备。 The sending unit is also configured to send the valid data to the backup server, so that the backup server backs up the valid data to the backup storage device.
19、 如权利要求 18所述的存储设备, 其特征在于, 还包括: 19. The storage device according to claim 18, further comprising:
创建单元, 用于创建源卷; Creation unit, used to create source volumes;
映射单元, 用于映射所述源卷给应用服务器, 以使所述应用服务器挂载所 述源卷, 以存储所述应用服务器的数据至所述源卷。 A mapping unit configured to map the source volume to an application server, so that the application server mounts the source volume to store data of the application server in the source volume.
20、 如权利要求 18所述的存储设备, 其特征在于, 20. The storage device according to claim 18, characterized in that,
所述接收单元, 还用于接收所述备份服务器发送的第一指示; 所述第一指 示用于指示所述主存储设备建立所述快照与所述备份服务器之间的映射关系; 所述处理单元, 还用于根据所述第一指示建立所述快照与所述备份服务器 之间的映射关系, 以使所述备份服务器挂载所述快照。 The receiving unit is also configured to receive a first instruction sent by the backup server; the first instruction is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server; the processing The unit is further configured to establish a mapping relationship between the snapshot and the backup server according to the first instruction, so that the backup server mounts the snapshot.
21、 如权利要求 20所述的存储设备, 其特征在于, 21. The storage device according to claim 20, characterized in that,
所述接收单元, 还用于接收所述备份服务器发送的第二指示, 所述第二指 示用于指示所述主存储设备解除所述备份服务器与所述快照间的映射关系; 所述处理单元, 还用于解除所述备份服务器与所述快照间的映射关系。 The receiving unit is also configured to receive a second instruction sent by the backup server, and the second instruction is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot; and the processing unit is further configured to release the mapping relationship between the backup server and the snapshot.
22、 如权利要求 18至 21中任一所述的存储设备, 其特征在于, 22. The storage device according to any one of claims 18 to 21, characterized in that,
所述接收单元, 还用于接收所述备份服务器发送的第三指示, 所述第三指 示用于指示所述主存储设备删除所述源卷的所述快照; The receiving unit is further configured to receive a third instruction sent by the backup server, where the third instruction is used to instruct the primary storage device to delete the snapshot of the source volume;
所述处理单元, 还用于删除所述源卷的所述快照。 The processing unit is also configured to delete the snapshot of the source volume.
23、 一种服务器, 其特征在于, 包括: 23. A server, characterized by including:
发送单元, 用于发送备份指示给主存储设备, 以指示所述主存储设备生成 源卷的快照, 由所述主存储设备发送所述快照的快照标识至所述备份服务器; 接收单元, 用于接收所述主存储设备发送的快照标识; A sending unit, configured to send a backup instruction to the primary storage device to instruct the primary storage device to generate a snapshot of the source volume, and the primary storage device sends a snapshot identification of the snapshot to the backup server; a receiving unit, configured to Receive the snapshot identification sent by the primary storage device;
所述发送单元, 还用于发送查询所述快照的有效数据位图的信令给所述主 存储设备, 以使所述主存储设备根据所述查询所述快照的有效数据位图的信令 查询所述快照的有效数据位图; The sending unit is also configured to send a signaling for querying the valid data bitmap of the snapshot to the main storage device, so that the main storage device can query the valid data bitmap of the snapshot according to the signaling for querying the valid data bitmap of the snapshot. Query the effective data bitmap of the snapshot;
所述接收单元, 还用于接收所述主存储设备发送的所述快照的有效数据位 图; The receiving unit is also configured to receive the valid data bitmap of the snapshot sent by the main storage device;
备份单元, 用于 ^分所述快照的有效数据位图至备份存储设备; A backup unit, used to divide the effective data bitmap of the snapshot to a backup storage device;
所述接收单元, 还用于接收所述备份存储设备发送的已备份所述快照的有 效数据位图的反馈信息; The receiving unit is also configured to receive feedback information sent by the backup storage device that the valid data bitmap of the snapshot has been backed up;
所述发送单元, 还用于根据所述已备份所述快照的有效数据位图的所述反 馈信息发送查询所述快照的所述有效数据位图对应的有效数据的信令给所述主 存储设备, 以使所述主存储设备根据所述查询所述快照的所述有效数据位图对 应的有效数据的所述信令查询所述有效数据; The sending unit is further configured to send signaling for querying the valid data corresponding to the valid data bitmap of the snapshot to the main storage according to the feedback information of the valid data bitmap of the snapshot that has been backed up. Device, so that the main storage device queries the valid data according to the signaling of querying the valid data corresponding to the valid data bitmap of the snapshot;
所述接收单元, 还用于接收所述主存储设备发送的所述有效数据; 所述备份单元, 还用于备份所述有效数据至所述备份存储设备; The receiving unit is also used to receive the valid data sent by the main storage device; the backup unit is also used to back up the valid data to the backup storage device;
所述接收单元, 还用于接收所述备份存储设备发送的已备份所述快照的所 述有效数据的反馈信息。 The receiving unit is also configured to receive feedback information sent by the backup storage device that the valid data of the snapshot has been backed up.
24、 如权利要求 23所述的服务器, 其特征在于, 24. The server according to claim 23, characterized in that,
所述发送单元,还用于根据所述快照标识发送第一指示给所述主存储设备, 以使所述主存储设备根据所述第一指示建立所述快照与所述备份服务器之间的 映射关系; 所述服务器还包括: 处理单元, 用于根据所述快照与所述服务器之间的映 射关系挂载所述快照。 The sending unit is further configured to send a first instruction to the main storage device according to the snapshot identifier, so that the main storage device establishes a mapping between the snapshot and the backup server according to the first instruction. relation; The server further includes: a processing unit, configured to mount the snapshot according to the mapping relationship between the snapshot and the server.
25、 如权利要求 24所述的服务器, 其特征在于, 25. The server according to claim 24, characterized in that,
所述发送单元, 还用于发送第二指示给所述主存储设备, 以使所述主存储 设备解除所述备份服务器与所述快照间的映射关系。 The sending unit is further configured to send a second instruction to the primary storage device, so that the primary storage device releases the mapping relationship between the backup server and the snapshot.
26、 如权利要求 23至 25中任一所述的服务器, 其特征在于, 26. The server according to any one of claims 23 to 25, characterized in that,
所述发送单元, 还用于发送第三指示给所述主存储设备, 以使所述主存储 设备删除所述源卷的所述快照。 The sending unit is also configured to send a third instruction to the main storage device, so that the main storage device deletes the snapshot of the source volume.
27、 一种存储设备, 其特征在于, 包括: 27. A storage device, characterized by including:
接收单元, 用于接收备份服务器按照预设时间, 间隔性发送的备份指示, 所述备份指示用于指示所述存储设备生成快照, 所述预设时间为本次备份数据 与本次备份数据相邻的前一次备份数据的时间间隔; The receiving unit is configured to receive backup instructions sent by the backup server at intervals according to a preset time. The backup instructions are used to instruct the storage device to generate snapshots. The preset time is the phase between this backup data and this backup data. The time interval of the previous backup data;
快照单元, 用于按照所述备份指示生成快照; A snapshot unit, configured to generate snapshots according to the backup instructions;
发送单元, 用于发送所述快照的快照标识至所述备份良务器; A sending unit, configured to send the snapshot identification of the snapshot to the backup server;
所述接收单元, 还用于接收所述备份服务器发送的查询所述本次备份数据 时的快照与所述本次备份数据相邻的前一次备份数据时的快照间的差异数据位 图的信令; The receiving unit is also configured to receive the information sent by the backup server to query the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data. make;
处理单元, 用于根据所述查询所述本次备份数据时的快照与所述本次备份 数据相邻的前一次备份数据时的快照间的差异数据位图的信令查询所述本次备 份数据时的快照和与所述本次备份数据相邻的前一次备份数据时的快照间的所 述差异数据位图; A processing unit configured to query the current backup based on the signaling of the difference data bitmap between the snapshot when querying the current backup data and the snapshot when the previous backup data is adjacent to the current backup data. The difference data bitmap between the snapshot of the data and the snapshot of the previous backup data adjacent to the current backup data;
所述发送单元, 还用于发送所述本次备份数据时的快照与所述本次备份数 据相邻的前一次备份数据时的快照间的所述差异数据位图至所述备份服务器, 以使所述备份服务器备份所述本次备份数据时的快照与所述本次备份数据相邻 的前一次备份数据时的快照间的所述差异数据位图至备份存储设备; The sending unit is also configured to send the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to the backup server, to causing the backup server to back up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to a backup storage device;
所述接收单元, 还用于接收所述备份服务器发送的查询所述差异数据位图 对应的差异数据的信令; The receiving unit is also configured to receive signaling sent by the backup server to query the differential data corresponding to the differential data bitmap;
所述处理单元, 还用于根据所述查询所述差异数据位图对应的差异数据的 所述信令查询所述差异数据; 所述发送单元, 还用于发送所述差异数据至所述备份服务器, 以使所述备 份服务器备份所述差异数据至所述备份存储设备。 The processing unit is further configured to query the difference data according to the signaling for querying the difference data corresponding to the difference data bitmap; The sending unit is also configured to send the difference data to the backup server, so that the backup server backs up the difference data to the backup storage device.
28、 如权利要求 27所述的存储设备, 其特征在于, 28. The storage device according to claim 27, characterized in that,
所述接收单元, 还用于接收所述备份服务器发送的第一指示; 所述第一指 示用于指示所述主存储设备建立所述快照与所述备份服务器之间的映射关系; 所述处理单元, 还用于根据所述第一指示建立所述快照与所述备份服务器 之间的映射关系, 以使所述备份服务器挂载所述快照。 The receiving unit is also configured to receive a first instruction sent by the backup server; the first instruction is used to instruct the primary storage device to establish a mapping relationship between the snapshot and the backup server; the processing The unit is further configured to establish a mapping relationship between the snapshot and the backup server according to the first instruction, so that the backup server mounts the snapshot.
29、 如权利要求 28所述的存储设备, 其特征在于, 29. The storage device according to claim 28, characterized in that,
所述接收单元, 还用于接收所述备份服务器发送的第二指示, 所述第二指 示用于指示所述主存储设备解除所述备份服务器与所述快照间的映射关系; 所述处理单元, 还用于解除所述备份服务器与所述快照间的映射关系。 The receiving unit is further configured to receive a second instruction sent by the backup server, where the second instruction is used to instruct the primary storage device to release the mapping relationship between the backup server and the snapshot; the processing unit , and is also used to cancel the mapping relationship between the backup server and the snapshot.
30、 如权利要求 27至 29中任一所述的存储设备, 其特征在于, 所述接收单元, 还用于接收所述备份服务器发送的第三指示, 所述第三指 示用于指示删除与所述本次备份数据相邻的前一次备份数据时的快照; 30. The storage device according to any one of claims 27 to 29, wherein the receiving unit is further configured to receive a third instruction sent by the backup server, and the third instruction is used to instruct deletion and A snapshot of the previous backup data adjacent to the current backup data;
所述处理单元, 还用于删除与所述本次备份数据相邻的前一次备份数据时 的快照。 The processing unit is also configured to delete the snapshot of the previous backup data adjacent to the current backup data.
31、 一种服务器, 其特征在于, 包括: 31. A server, characterized by including:
发送单元, 用于按照预设时间, 间隔性发送备份指示给主存储设备, 以使 所述主存储设备按照所述备份指示生成快照, 由所述主存储设备生成快照, 并 发送所述快照的快照标识至所述备份服务器; 所述预设时间为本次备份数据与 本次备份数据相邻的前一次备份数据的时间间隔; A sending unit, configured to send backup instructions to the main storage device at intervals according to a preset time, so that the main storage device generates a snapshot according to the backup instruction, generates a snapshot by the main storage device, and sends the snapshot The snapshot is identified to the backup server; the preset time is the time interval between the current backup data and the previous backup data adjacent to the current backup data;
接收单元, 用于接收所述主存储设备发送的所述快照的快照标识; 所述发送单元, 还用于发送查询所述本次备份数据时的所述快照与所述本 次备份数据相邻的前一次备份数据时的快照间的差异数据位图的信令至所述主 存储设备, 以使所述主存储设备查询所述本次备份数据时的快照和与所述本次 备份数据相邻的前一次备份数据时的快照间的所述差异数据位图; The receiving unit is configured to receive the snapshot identifier of the snapshot sent by the main storage device; the sending unit is also configured to send the snapshot adjacent to the backup data when querying the current backup data. The difference data bitmap between the snapshots of the previous backup data is signaled to the main storage device, so that the main storage device queries the snapshot of the current backup data and is consistent with the current backup data. The difference data bitmap between the snapshots of the previous backup data;
所述接收单元, 还用于接收所述本次备份数据时的所述快照和与所述本次 备份数据相邻的前一次备份数据时的快照间的所述差异数据位图; The receiving unit is also configured to receive the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data;
备份单元, 用于备份所述本次备份数据时的快照和与所述本次备份数据相 邻的前一次备份数据时的快照间的所述差异数据位图至备份存储设备; 所述接收单元, 还用于接收所述备份存储设备发送的已备份所述差异数据 位图的反馈信息; A backup unit configured to back up the difference data bitmap between the snapshot of the current backup data and the snapshot of the previous backup data adjacent to the current backup data to a backup storage device; The receiving unit is also configured to receive feedback information sent by the backup storage device that the difference data bitmap has been backed up;
所述发送单元, 还用于发送查询所述差异数据位图对应的差异数据的信令 给所述主存储设备, 以使所述主存储设备查询所述差异数据位图对应的差异数 据; The sending unit is also configured to send signaling for querying the difference data corresponding to the difference data bitmap to the main storage device, so that the main storage device queries the difference data corresponding to the difference data bitmap;
所述接收单元, 还用于接收所述主存储设备发送的所述差异数据; 所述备份单元, 还用于备份所述差异数据至所述备份存储设备; 所述接收单元, 还用于接收所述备份存储设备发送的已备份所述差异数据 的反馈信息。 The receiving unit is also used to receive the difference data sent by the main storage device; the backup unit is also used to back up the difference data to the backup storage device; the receiving unit is also used to receive The backup storage device sends feedback information that the differential data has been backed up.
32、 如权利要求 31所述的服务器, 其特征在于, 32. The server according to claim 31, characterized in that,
所述发送单元, 还用于根据所述快照的快照标识发送第一指示给所述主存 储设备, 以使所述主存储设备根据所述第一指示建立所述快照与所述备份服务 器之间的映射关系; The sending unit is further configured to send a first instruction to the main storage device according to the snapshot identifier of the snapshot, so that the main storage device establishes a connection between the snapshot and the backup server according to the first instruction. mapping relationship;
所述服务器还包括: 处理单元, 用于根据所述映射关系挂载所述快照。 The server further includes: a processing unit, configured to mount the snapshot according to the mapping relationship.
33、 如权利要求 32所述的服务器, 其特征在于, 33. The server according to claim 32, characterized in that,
所述发送单元, 还用于发送第二指示给所述主存储设备, 以使所述主存储 设备根据所述第二指示解除所述备份服务器与所述快照间的映射关系。 The sending unit is further configured to send a second instruction to the main storage device, so that the main storage device releases the mapping relationship between the backup server and the snapshot according to the second instruction.
34、 如权利要求 31至 33中任一所述所述的服务器, 其特征在于, 所述发送单元, 还用于发送第三指示给所述主存储设备, 以使所述主存储 设备根据所述第三指示删除与所述本次备份数据相邻的前一次备份数据时的快 照。 34. The server according to any one of claims 31 to 33, characterized in that the sending unit is further configured to send a third instruction to the main storage device, so that the main storage device can The third instruction is to delete the snapshot of the previous backup data adjacent to the current backup data.
35、 一种数据备份系统, 其特征在于, 35. A data backup system, characterized by:
包括如权利要求 18至 22中任一所述的主存储设备, 以及包括如权利要求 23至 26中任一所述的备份服务器; 所述数据备份系统还包括: It includes the main storage device as described in any one of claims 18 to 22, and includes the backup server as described in any one of claims 23 to 26; the data backup system also includes:
备份存储设备, 用于存储备份服务器发送的源卷的快照的有效数据位图; 所述备份存储设备, 还用于发送已备份所述快照的有效数据位图的反馈信 息给所述备份服务器; The backup storage device is used to store the valid data bitmap of the snapshot of the source volume sent by the backup server; the backup storage device is also used to send feedback information of the valid data bitmap of the snapshot that has been backed up to the backup server;
所述备份存储设备, 还用于存储备份服务器发送的与有效数据位图对应的 有效数据; 所述备份存储设备, 还用于发送已存储所述快照的有效数据的反馈信息给 所述备份服务器。 The backup storage device is also used to store valid data sent by the backup server corresponding to the valid data bitmap; The backup storage device is also configured to send feedback information that valid data of the snapshot has been stored to the backup server.
36、 一种数据备份系统, 其特征在于, 包括权利要求 27至 30中任一所述 的主存储设备, 以及权利要求 31至 34中任一所述的备份服务器; 所述数据备 份系统还包括: 36. A data backup system, characterized in that it includes the main storage device according to any one of claims 27 to 30, and the backup server according to any one of claims 31 to 34; the data backup system also includes :
备份存储设备, 用于存储本次备份数据时的快照和与所述本次备份数据相 邻的前一次备份数据时的快照间的差异数据位图; Backup storage device, used to store the difference data bitmap between the snapshot of this backup data and the snapshot of the previous backup data adjacent to the current backup data;
所述备份存储设备, 还用于发送已备份所述差异数据位图的反馈信息给所 述备份服务器; The backup storage device is also used to send feedback information that the differential data bitmap has been backed up to the backup server;
所述备份存储设备, 还用于存储与所述差异数据位图对应的所述差异数据 至所述备份存储设备; The backup storage device is also used to store the difference data corresponding to the difference data bitmap to the backup storage device;
所述备份存储设备, 还用于发送已存储所述差异数据的反馈信息给所述备 份服务器。 The backup storage device is also used to send feedback information that the difference data has been stored to the backup server.
PCT/CN2013/080459 2012-12-27 2013-07-31 Data backup method and related device and system WO2014101409A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210578614.9 2012-12-27
CN201210578614.9A CN103064763B (en) 2012-12-27 2012-12-27 A kind of data back up method and relevant device, system

Publications (1)

Publication Number Publication Date
WO2014101409A1 true WO2014101409A1 (en) 2014-07-03

Family

ID=48107396

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/080459 WO2014101409A1 (en) 2012-12-27 2013-07-31 Data backup method and related device and system

Country Status (2)

Country Link
CN (1) CN103064763B (en)
WO (1) WO2014101409A1 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064763B (en) * 2012-12-27 2015-12-02 华为技术有限公司 A kind of data back up method and relevant device, system
CN104281538B (en) * 2013-07-03 2019-05-31 联想(北京)有限公司 It is a kind of store equipment dilatation and Snapshot Method and storage equipment
CN106959888B (en) * 2016-01-11 2020-09-04 杭州海康威视数字技术股份有限公司 Task processing method and device in cloud storage system
CN107229523A (en) * 2016-03-25 2017-10-03 中兴通讯股份有限公司 A kind of method and electronic equipment for copying data
CN105938457B (en) * 2016-03-31 2018-10-02 华为技术有限公司 Filter method, device and the data reading system of data
CN106331152B (en) * 2016-09-20 2020-02-07 郑州云海信息技术有限公司 Method and device for realizing information synchronization between modules
CN106844597A (en) * 2017-01-14 2017-06-13 郑州云海信息技术有限公司 The method and its device of a kind of quick deletion dependent snapshot target volume
CN107197022B (en) * 2017-06-02 2020-01-10 华南理工大学 OpenStack storage optimization method and system
CN108776622A (en) * 2018-06-06 2018-11-09 北京达佳互联信息技术有限公司 Method of data synchronization, device, computer equipment and storage medium
CN109254873B (en) * 2018-08-15 2022-04-22 华为云计算技术有限公司 Data backup method, related device and system
CN109408283A (en) * 2018-09-04 2019-03-01 深圳市宝德计算机系统有限公司 A kind of method of server data protection, equipment and storage medium
CN109324870A (en) * 2018-09-20 2019-02-12 郑州云海信息技术有限公司 A kind of method and apparatus for deleting the snapshot disk of virtual machine
EP4300314A3 (en) * 2018-12-29 2024-04-10 Huawei Technologies Co., Ltd. Data backup method, apparatus and system
CN109828950A (en) * 2019-01-29 2019-05-31 深圳前海达闼云端智能科技有限公司 Data protection method, management system, server and readable storage medium
CN111309527B (en) * 2020-02-29 2022-07-15 上海爱数信息技术股份有限公司 Method for reserving and restoring user snapshot in virtual backup system
CN112286869A (en) * 2020-10-29 2021-01-29 杭州宏杉科技股份有限公司 Snapshot creating method and device
CN114546714B (en) * 2020-11-27 2023-07-21 中国移动通信集团四川有限公司 Data backup method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567262A (en) * 2003-06-10 2005-01-19 联想(北京)有限公司 On-line data backup method based on data volume snapshot
CN102411524A (en) * 2011-12-30 2012-04-11 云海创想信息技术(天津)有限公司 Snapshot volume data copying method
CN102591982A (en) * 2011-01-07 2012-07-18 赛门铁克公司 Method and system of performing incremental sql server database backups
CN103064763A (en) * 2012-12-27 2013-04-24 华为技术有限公司 Data backup method and related device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100454265C (en) * 2007-06-07 2009-01-21 华为技术有限公司 Image recovery method, storage equipment and network system
CN102479118B (en) * 2010-11-30 2013-08-21 英业达集团(天津)电子技术有限公司 Incremental backup method for data blocks
CN102402471A (en) * 2011-12-23 2012-04-04 创新科软件技术(深圳)有限公司 Method and system for backing up data in real time based on snapshot function of memory array
CN102567145A (en) * 2011-12-28 2012-07-11 云海创想信息技术(无锡)有限公司 Remote copying method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567262A (en) * 2003-06-10 2005-01-19 联想(北京)有限公司 On-line data backup method based on data volume snapshot
CN102591982A (en) * 2011-01-07 2012-07-18 赛门铁克公司 Method and system of performing incremental sql server database backups
CN102411524A (en) * 2011-12-30 2012-04-11 云海创想信息技术(天津)有限公司 Snapshot volume data copying method
CN103064763A (en) * 2012-12-27 2013-04-24 华为技术有限公司 Data backup method and related device and system

Also Published As

Publication number Publication date
CN103064763B (en) 2015-12-02
CN103064763A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
WO2014101409A1 (en) Data backup method and related device and system
US9722788B1 (en) Rekeying encrypted virtual machines in a cloud
US9749300B1 (en) Method and system for immediate recovery of virtual machines encrypted in the cloud
US9740880B1 (en) Encrypted virtual machines in a cloud
US9557925B1 (en) Thin replication
US9250824B2 (en) Backing up method, device, and system for virtual machine
CN106776130B (en) Log recovery method, storage device and storage node
CN102594849B (en) Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device
WO2015085530A1 (en) Data replication method and storage system
US10223007B1 (en) Predicting IO
US20080209145A1 (en) Techniques for asynchronous data replication
US11947429B2 (en) Data disaster recovery method and site
WO2017107900A1 (en) Virtual machine recovery method and virtual machine management device
KR20150035507A (en) Data sending method, data receiving method, and storage device
CN102521083A (en) Backup method and system of virtual machine in cloud computing system
CN103077242A (en) Method for hot standby of dual database servers
JP2005196683A (en) Information processing system, information processor and control method of information processing system
WO2016078529A1 (en) Service processing method, device and system
CN110825562B (en) Data backup method, device, system and storage medium
US11386070B2 (en) Method and system for secure data replication data integrity verification
CN106681865B (en) Service recovery method and device
WO2015085529A1 (en) Data replication method, data replication device and storage device
US10484179B1 (en) Data consistency in an encrypted replication environment
EP3896571B1 (en) Data backup method, apparatus and system
CN112367186A (en) Fault protection method and device based on 0penStack bare machine

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13867842

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13867842

Country of ref document: EP

Kind code of ref document: A1