Method and system of restoring items to a database while maintaining referential integrity
First Claim
Patent Images
1. A method for restoring data to a database, the method comprising:
- backing up at least a portion of the database, wherein the database stores information including a plurality of hierarchically organized list objects, wherein each of the list objects lists a plurality of items, wherein the hierarchically organized list objects include a chain of three or more list objects beginning at a starting list object and ending at a last list object, wherein each list object of the chain other than the starting list object is dependent on one of the other list objects of the chain, wherein said backing up the at least a portion of the database includes;
storing, in a backup copy of the database, the plurality of hierarchically organized list objects; and
generating a dependency map specifying dependencies between the hierarchically organized list objects, wherein the dependency map includes links that link together the chain of three or more list objects;
detecting a request to restore the starting list object of the chain to the database; and
in response to the request to restore the starting list object, restoring the chain of three or more list objects based on the dependency map, wherein the three or more list objects are restored in an order starting at the starting list object and ending at the last list object, wherein said restoring the chain comprises performing the following for each respective list object of the chain;
a) accessing an index of the plurality of hierarchically organized list objects stored within the backup copy of the database to locate the respective list object within the backup copy of the database;
b) restoring the respective list object to the database; and
c) determining, from the dependency map, whether the respective list object has a dependent list object;
wherein said accessing the index, said restoring, and said determining are repeated for the dependent list object if the respective list object has a dependent list object.
7 Assignments
0 Petitions
Accused Products
Abstract
A system and method for restoring list items to a database while maintaining the referential integrity of the list items. Before requested list items are restored to a database, a dependencies tablemetadata is read to determine the links between list items of the database. A map is created, and the links between list items are stored in the map. When the requested list items are restored to the database, the requested items and any dependent items are identified from the map and restored to the database. By restoring the dependent items of the selected item to be restored, referential integrity of the database is maintained.
103 Citations
20 Claims
-
1. A method for restoring data to a database, the method comprising:
-
backing up at least a portion of the database, wherein the database stores information including a plurality of hierarchically organized list objects, wherein each of the list objects lists a plurality of items, wherein the hierarchically organized list objects include a chain of three or more list objects beginning at a starting list object and ending at a last list object, wherein each list object of the chain other than the starting list object is dependent on one of the other list objects of the chain, wherein said backing up the at least a portion of the database includes; storing, in a backup copy of the database, the plurality of hierarchically organized list objects; and generating a dependency map specifying dependencies between the hierarchically organized list objects, wherein the dependency map includes links that link together the chain of three or more list objects; detecting a request to restore the starting list object of the chain to the database; and in response to the request to restore the starting list object, restoring the chain of three or more list objects based on the dependency map, wherein the three or more list objects are restored in an order starting at the starting list object and ending at the last list object, wherein said restoring the chain comprises performing the following for each respective list object of the chain; a) accessing an index of the plurality of hierarchically organized list objects stored within the backup copy of the database to locate the respective list object within the backup copy of the database; b) restoring the respective list object to the database; and c) determining, from the dependency map, whether the respective list object has a dependent list object; wherein said accessing the index, said restoring, and said determining are repeated for the dependent list object if the respective list object has a dependent list object. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory computer readable storage medium storing program instructions to restore data to a database, wherein when executed by a computer system, the program instructions are operable to cause the computer system to:
-
backup at least a portion of the database, wherein the database stores information including a plurality of hierarchically organized list objects, wherein each of the list objects lists a plurality of items, wherein the hierarchically organized list objects include a chain of three or more list objects beginning at a starting list object and ending at a last list object, wherein each list object of the chain other than the starting list object is dependent on one of the other list objects of the chain, wherein in said backing up the at least a portion of the database the program instructions are operable to cause the computer system to; store, in a backup copy of the database, the plurality of hierarchically organized list objects; and generate a dependency map specifying dependencies between the hierarchically organized list objects, wherein the dependency map includes links that link together the chain of three or more list objects; detect a request to restore the starting list object of the chain to the database; and in response to the request to restore the starting list object, restore the chain of three or more list objects based on the dependency map, wherein the three or more list objects are restored in an order starting at the starting list object and ending at the last list object, wherein in said restoring the chain the program instructions are operable to cause the computer system to perform the following for each respective list object of the chain; a) access an index of the plurality of hierarchically organized list objects stored within the backup copy of the database to locate the respective list object within the backup copy of the database; b) restore the respective list object to the database; and c) determine, from the dependency map, whether the respective list object has a dependent list object; wherein the program instructions are operable to cause the computer system to repeat said accessing the index, said restoring, and said determining for the dependent list object if the respective list object has a dependent list object. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer system comprising:
-
a processor; and a memory storing program instructions; wherein the program instructions are executable by the processor to; backup at least a portion of a database, wherein the database stores information including a plurality of hierarchically organized list objects, wherein each of the list objects lists a plurality of items, wherein the hierarchically organized list objects include a chain of three or more list objects beginning at a starting list object and ending at a last list object, wherein each list object of the chain other than the starting list object is dependent on one of the other list objects of the chain, wherein in said backing up the at least a portion of the database the program instructions are executable by the processor to; store, in a backup copy of the database, the plurality of hierarchically organized list objects; and generate a dependency map specifying dependencies between the hierarchically organized list objects, wherein the dependency map includes links that link together the chain of three or more list objects; detect a request to restore the starting list object of the chain to the database; and in response to the request to restore the starting list object, restore the chain of three or more list objects based on the dependency map, wherein the three or more list objects are restored in an order starting at the starting list object and ending at the last list object, wherein in said restoring the chain the program instructions are executable by the processor to perform the following for each respective list object of the chain; a) access an index of the plurality of hierarchically organized list objects stored within the backup copy of the database to locate the respective list object within the backup copy of the database; b) restore the respective list object to the database; and c) determine, from the dependency map, whether the respective list object has a dependent list object; wherein the program instructions are executable by the processor to repeat said accessing the index, said restoring, and said determining for the dependent list object if the respective list object has a dependent list object. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification