IP Library › Granted Patent US 10,956,374
Granted Patent B2
US 10,956,374 · App. 16/023,969 · Granted Mar 23, 2021

Data recovery method, apparatus, and system

Inventors: Guolong Shui (Shenzhen, CN); Yunfei Lei (Shenzhen, CN); Jiaxi Li (Shenzhen, CN); Si Chen (Shenzhen, CN); Jinyang Guo (Shenzhen, CN); Ji He (Shenzhen, CN); Lei Su (Shenzhen, CN)
Assignee: Tencent Technology (Shenzhen) Company Limited
G06F16/182G06F16/174G06F16/245
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,956,374
App. No.
16/023,969
Granted
Mar 23, 2021
Kind
B2
Abstract

This application is related to a data recovery system. The data recovery system includes processing circuitry which receives a restore request. The restore request includes a restore target time. When backup data corresponding to the restore target time is determined to be available, the processing circuitry creates a temporary database service instance and determines information of the temporary database service instance. The processing circuitry further obtains the backup data corresponding to the restore target time and writes the backup data into the temporary database service instance according to the information of the temporary database service instance. The processing circuitry executes a formal restoration operation on the temporary database service instance, in which the backup data is written, according to a received processing request.

Claims (56)

1. A data recovery system, comprising:

at least one memory; and

at least one processor, that when executing instructions stored in the at least one memory, is configured to

receive a restore request from a user that has access to an original database service, the restore request including a restore target time for restoring a previous state of the original database service;

when backup data corresponding to the restore target time is determined to be available, create a temporary database service and determine information of the temporary database service, wherein the temporary database service includes a same amount of memory, a same magnetic disk space, and a same number of central processing unit (CPU) cores as the original database service;

obtain the backup data corresponding to the restore target time and write the backup data into the temporary database service according to the information of the temporary database service; and

execute a formal restoration operation on the temporary database service, in which the backup data is written, according to a received processing request,

wherein

the formal restoration operation on the temporary database service includes formalizing the temporary database service as a formal database service by invoking a support system to serve the temporary database service to support initiation of the temporary database service, and modifying the information of the temporary database service as information of the formal database service when the support system completes supporting the initiation, and

wherein the formal restoration operation on the temporary database service further includes replacing an original database service with the temporary database service, which includes switching a gateway from connecting to the original database service to connecting to the temporary database service, the gateway disconnecting a first relationship and a first connection with the original database service and building a second relationship and a second connection with the temporary database service.

2. The data recovery system according to claim 1 , wherein the at least one processor is further configured to

perform an incremental backup of data and store the data of the incremental backup in a database for M (M is an integer of 0 or more) days; and

synchronously perform a full backup of the data every N (N is an integer of 1 or more) days and store the data of the full backup in the database for N days.

3. The data recovery system according to claim 2 , wherein the at least one processor is further configured to

query whether the full backup of the data corresponding to the restore target time exists before the restore target time according to a time confirming request; and

determine that the restore request is executable based on a query result.

4. The data recovery system according to claim 1 , wherein the at least one processor is further configured to

grant a user permission to access the temporary database service and prompt the user to perform a data check on the temporary database service.

5. The data recovery system according to claim 1 , wherein

the formal restoration operation on the temporary database service further includes deleting the temporary database service.

6. The data recovery system according to claim 5 , wherein the deleting the temporary database service includes

deleting the temporary database service and releasing a resource of the temporary database service.

7. A data recovery method, comprising:

receiving from a user that has access to an original database service, the restore request including a restore target time for restoring a previous state of the original database service;

when backup data corresponding to the restore target time is determined to be available, creating a temporary database service and determining information of the temporary database service, wherein the temporary database service includes a same amount of memory, a same magnetic disk space, and a same number of central processing unit (CPU) cores as the original database service;

obtaining, by processing circuitry of a data recovery system, the backup data corresponding to the restore target time and writing the backup data into the temporary database service according to the information of the temporary database service; and

executing a formal restoration operation on the temporary database service, in which the backup data is written, according to a received processing request,

wherein

the formal restoration operation on the temporary database service includes formalizing the temporary database service as a formal database service by invoking a support system to serve the temporary database service to support initiation of the temporary database service, and modifying the information of the temporary database service as information of the formal database service when the support system completes supporting the initiation, and

wherein the formal restoration operation on the temporary database service further includes replacing an original database service with the temporary database service, which includes switching a gateway from connecting to the original database service to connecting to the temporary database service, the gateway disconnecting a first relationship and a first connection with the original database service and building a second relationship and a second connection with the temporary database service.

8. The data recovery method according to claim 7 , further comprising:

performing an incremental backup of data and storing the data of the incremental backup in a database for M (M is an integer of 0 or more) days; and

synchronously performing a full backup of the data every N (N is an integer of 1 or more) days and storing the data of the full backup in the database for N days.

9. The data recovery method according to claim 8 , further comprising:

querying whether the full backup of the data corresponding to the restore target time exists before the restore target time according to a time confirming request; and

determining that the restore request is executable based on a query result.

10. The data recovery method according to claim 7 , further comprising:

granting a user permission to access the temporary database service and prompting the user to perform a data check on the temporary database service.

11. The data recovery method according to claim 7 , wherein the formal restoration operation on the temporary database service further includes deleting the temporary database service instance.

12. The data recovery method according to claim 11 , wherein the deleting the temporary database service includes

deleting the temporary database service and releasing a resource of the temporary database service.

13. A data recovery apparatus, comprising:

a memory; and

at least one processor configured to

receive a restore request from a user that has access to an original database service, the restore request including a restore target time for restoring a previous state of the original database service;

when backup data corresponding to the restore target time is determined to be available, create a temporary database service and determine information of the temporary database service, wherein the temporary database service includes a same amount of memory, a same magnetic disk space, and a same number of central processing unit (CPU) cores as the original database service;

obtain the backup data corresponding to the restore target time and write the backup data into the temporary database service according to the information of the temporary database service; and

execute a formal restoration operation on the temporary database service, in which the backup data is written, according to a received processing request,

wherein

the formal restoration operation on the temporary database service includes formalizing the temporary database service as a formal database service by invoking a support system to serve the temporary database service to support initiation of the temporary database service, and modifying the information of the temporary database service as information of the formal database service when the support system completes supporting the initiation, and

wherein the formal restoration operation on the temporary database service further includes replacing an original database service instance with the temporary database service, which includes switching a gateway from connecting to the original database service to connecting to the temporary database service, the gateway disconnecting a first relationship and a first connection with the original database service and building a second relationship and a second connection with the temporary database service.

14. The data recovery apparatus according to claim 13 , wherein

the formal restoration operation on the temporary database service further includes deleting the temporary database service; and

the at least one processor is further configured to

when the formal restoration operation on the temporary database service is the deleting the temporary database service,

delete the temporary database service and release a resource of the temporary database service.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 2, 2018
From: SHUI, GUOLONG; LEI, YUNFEI; LI, JIAXI; CHEN, SI; GUO, JINYANG; HE, JI; SU, LEI
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 046468/0477 →
Priority Claims (1)
CN 201610427256.X · Jun 15, 2016 · national
Continuity (2)
Continuation PCTCN2017086117 · May 26, 2017
Related Publication 20180307569A1 · Oct 25, 2018
Cited By (1)
US 12,711,239