Data backup method, apparatus, and system
AssigneeHuawei Technologies Co., Ltd.
InventorLei Zhang
Life of this patent
Estimating the term…
Abstract
In a data backup method, after data backup is triggered, a backup server sends a change information obtaining request to a file server to request change information of data on the file server. The backup server receives a data change record returned by a file server, wherein the data change record comprises identification information of a changed data block. The backup server then obtains data according to the data change record, backs up the obtained data, and establishes a data mapping relationship for the current backup. When data of a backup needs to be obtained, data of a corresponding data block is found in the backup storage device according to the data mapping relationship.
Claims15
A data backup method performed by a backup server, comprising:
- sending a snapshot request to a file server;
- receiving a snapshot creation success response returned by the file server, wherein the snapshot creation response comprises a snapshot identifier of a second snapshot;
- after a data backup operation is triggered, sending a change information obtaining request to the file server to request for change information of data in the file server;
- receiving, from the file server, a record of a data change between the second snapshot and a first snapshot made before the second snapshot, wherein the data change record records information about a data block corresponding to the data change between the second snapshot and the first snapshot, and the data change record includes identification information of the data block corresponding to the data change;
- obtaining, from the file server based on the data change record, data in the data block identified by the identification information of the data block;
- storing the obtained data in a backup storage device;
- and
- establishing a data mapping relationship for the data backup operation, wherein the data mapping relationship includes identification information of all data blocks in the second snapshot, storage locations of all the data blocks in the second snapshot in the backup storage device, and a snapshot identifier of the second snapshot.
A data backup method performed by a backup server, comprising:
- after a data backup operation is triggered, sending a change information obtaining request to a file server to request for change information of data in the file server, wherein the change information obtaining request comprises a snapshot identifier of a second snapshot and a snapshot identifier of a first snapshot made before the second snapshot;
- receiving, from the file server, a record of a data change between the second snapshot and the first snapshot, wherein the data change record records information about a data block corresponding to the data change between the second snapshot and the first snapshot, and the data change record includes identification information of the data block corresponding to the data change;
- obtaining, from the file server based on the data change record, data in the data block identified by the identification information of the data block;
- storing the obtained data in a backup storage device;
- and
- establishing a data mapping relationship for the backup operation, wherein the data mapping relationship includes identification information of all data blocks in the second snapshot, storage locations of all the data blocks in the second snapshot in the backup storage device, and a snapshot identifier of the second snapshot.
A data backup method performed by a file server, comprising:
- receiving, from a backup server, a snapshot request;
- sending, to the backup server, a snapshot creation success response comprising a snapshot identifier of a second snapshot;
- receiving, from the backup server, a change information obtaining request requesting for change information of data in the file server;
- determining the change information of the data in the file server;
- returning a record of a data change between the second snapshot and a first snapshot to the backup server, wherein the first snapshot is created before the second snapshot, the data change record is used to record information about a data block corresponding to the data change between the second snapshot and the first snapshot, and the data change record includes identification information of the data block corresponding to the data change;
- receiving a data obtaining request sent by the backup server, wherein the data obtaining request includes identification information of a to-be-obtained data block;
- and
- returning, to the backup server, data in the to-be-obtained data block.
A backup server comprising:
- a network interface for accessing a network;
- a memory storing executable instructions;
- and
- a processor configured to execute the executable instructions to:
- send a snapshot request to a file server;
- receive a snapshot creation success response returned by the file server, wherein the response includes a snapshot identifier of a second snapshot;
- after a data backup operation is triggered, send a change information obtaining request to the file server to request for change information of data in the file server;
- receive, from the file server, a record of a data change between the second snapshot and a first snapshot taken before the second snapshot, wherein the data change record records information about a data block corresponding to the data change between the second snapshot and the first snapshot, and the data change record includes identification information of the data block corresponding to the data change;
- obtain, from the file server based on the data change record, data in the data block identified by the identification information of the data block;
- store the obtained data in a backup storage device;
- and
- establish a data mapping relationship for the data backup operation, wherein the data mapping relationship includes identification information of all data blocks in the second snapshot, storage locations of all the data blocks in the second snapshot in the backup storage device, and a snapshot identifier of the second snapshot.
A file server comprising:
- a network interface for accessing a network;
- a memory storing executable instructions;
- and
- a processor configured to execute the executable instructions to:
- receive, from a backup server, a snapshot request;
- send, to the backup server, a snapshot creation success response comprising a snapshot identifier of a second snapshot;
- receive, from the backup server, a change information obtaining request requesting for change information of data in the file server;
- determine the change information of the data in the file server;
- return a record of a data change between the second snapshot and a first snapshot to the backup server, wherein the first snapshot is created before the second snapshot, the data change record is used to record information about a data block corresponding to the data change between the second snapshot and the first snapshot, and the data change record includes identification information of the data block corresponding to the data change;
- receive a data obtaining request sent by the backup server, wherein the data obtaining request includes identification information of a to-be-obtained data block;
- and
- return, to the backup server, data in the to-be-obtained data block.
A backup system comprising:
- a file server;
- a backup server;
- and
- a backup storage device,
- wherein the backup server is configured to:
- send a snapshot request to the file server;
- receive a snapshot creation success response returned by the file server, wherein the response includes a snapshot identifier of a second snapshot;
- after a data backup operation is triggered, send a change information obtaining request to the file server to request for change information of data in the file server;
- receive from the file server, a record of a data change between the second snapshot and a first snapshot taken before the second snapshot, wherein the data change record records information about a data block corresponding to the data change between the second snapshot and the first snapshot, and the data change record includes identification information of the data block corresponding to data change;
- obtain, from the file server based on the data change record, data in the data block identified by the identification information of the data block;
- store the obtained data in the backup storage device;
- and
- establish a data mapping relationship for the backup operation, wherein the data mapping relationship includes identification information of all data blocks in the second snapshot, storage locations of data blocks in the second snapshot in the backup storage device, and a snapshot identifier of the second snapshot.
Dependencies are inferred from the claim text.