US 12,346,207 B2
Cloud-based database backup and recovery
Yang Liu, Beijing (CN); Zhiyong Huang, Seattle, WA (US); Bin Dong, Beijing (CN); Chuanchuan Han, Beijing (CN); and Junzhao Zhang, Beijing (CN)
Assigned to COUPANG CORP., Seoul (KR)
Filed by Coupang Corp., Seoul (KR)
Filed on Nov. 29, 2021, as Appl. No. 17/456,672.
Claims priority of provisional application 63/123,757, filed on Dec. 10, 2020.
Prior Publication US 2022/0188194 A1, Jun. 16, 2022
Int. Cl. G06F 11/14 (2006.01); G06F 21/60 (2013.01)
CPC G06F 11/1451 (2013.01) [G06F 11/1464 (2013.01); G06F 11/1469 (2013.01); G06F 21/602 (2013.01); G06F 2201/84 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A system for database backup comprising:
a controller;
a metadata database coupled to the controller;
a backup tool coupled to the controller; and
a plurality of nodes coupled to the backup tool and accessed through a file system;
wherein the plurality of nodes are divided into source portions and replica portions;
wherein the controller is configured to:
determine a first data change in at least one of the plurality of nodes;
in response to determining the first data change, freeze the replica portions;
after freezing the replica portions, generate a first incremental snapshot of the at least one of the plurality of nodes from the replica portions, the first incremental snapshot comprising a portion of the at least one of the plurality of nodes;
upload an encrypted copy of the first incremental snapshot to a cloud storage;
update the metadata database by storing an entry associating the first incremental snapshot with the at least one of the plurality of nodes and unfreezing the replica portions;
determine a second data change in the at least one of the plurality of nodes;
compare the first data change and the second data change;
in response to determining the first data change and the second data change are different, freeze the replica portions;
after freezing the replica portions, generate a second incremental snapshot of the at least one of the plurality of nodes from the replica portions, the second incremental snapshot comprising a second portion of the at least one of the plurality of nodes and is smaller than the first incremental snapshot; and
uploading an encrypted copy of the second incremental snapshot to the cloud storage.