Table level database restore in a data storage system
First Claim
1. A method of storing database tables in secondary storage of a data storage system, comprising:
- using one or more computing devices comprising computer hardware;
backing up a database comprising a plurality of database tables wherein the plurality of database tables comprises a first database table and a second database table wherein the second database table is different from the first database table, wherein the backing up comprises copying data associated with the plurality of database tables from one or more primary storage devices in a primary storage subsystem to one or more secondary storage devices in a secondary storage subsystem, wherein said copying comprises at least;
determining a first set of database tables from the plurality of database tables, wherein each one of the database tables in the first set of database tables is referenced by the first database table; and
creating a separate first table metadata index for the first database table that is distinct from a plurality of table metadata indexes associated with each one of the plurality of database tables in the database, wherein the first table metadata index comprises, (i) a relationship information of the first database table to each one of the database tables in the determined first set of database tables that is referenced by the first database table; and
(ii) metadata for restoring the first database table and its related data to the primary storage subsystem from the secondary storage subsystem; and
wherein the first table metadata index is specific to the first database table for use in restoring the first database table and the database tables in the first set of database tables, without restoring or accessing all the other database tables in the database or accessing table metadata indexes associated with each one of the plurality of database tables in the database; and
determining, from the plurality of database tables, a second set of database tables referenced by the second database table different from the first database table; and
creating a separate second table metadata index that is distinct from the plurality of table metadata indexes associated with each one of the plurality of database tables in the database, wherein the second table metadata index comprises (a) a relationship information of the second database table to each one of the database tables in the determined second set of database tables and (b) metadata for restoring each one of the database tables in the identified second set of database tables to the one or more primary storage devices from the secondary storage subsystem; and
wherein the second table metadata index is specific to the second database table for use in restoring the second database table without restoring all the other database tables in the database or accessing table metadata indexes associated with each one of the plurality of database tables in the database.
2 Assignments
0 Petitions
Accused Products
Abstract
The data storage system according to certain aspects can implement table level database restore. Table level database restore may refer to restoring a database table and its related data without restoring the entire database. The data storage system may use table metadata index to implement table level restore. A table metadata index may be created for each table, e.g., during a backup of the database. The table metadata index for a table can include any type of information for restoring the table and its related data. Some examples of the type of information included in the table metadata index include the following: container for the table, table backup location, system data, table index, table relationships, etc. Table metadata index can make the restoring of tables fast and efficient by packaging information that can be used to restore a table and its related data in an easily accessible manner.
-
Citations
20 Claims
-
1. A method of storing database tables in secondary storage of a data storage system, comprising:
using one or more computing devices comprising computer hardware; backing up a database comprising a plurality of database tables wherein the plurality of database tables comprises a first database table and a second database table wherein the second database table is different from the first database table, wherein the backing up comprises copying data associated with the plurality of database tables from one or more primary storage devices in a primary storage subsystem to one or more secondary storage devices in a secondary storage subsystem, wherein said copying comprises at least; determining a first set of database tables from the plurality of database tables, wherein each one of the database tables in the first set of database tables is referenced by the first database table; and creating a separate first table metadata index for the first database table that is distinct from a plurality of table metadata indexes associated with each one of the plurality of database tables in the database, wherein the first table metadata index comprises, (i) a relationship information of the first database table to each one of the database tables in the determined first set of database tables that is referenced by the first database table; and
(ii) metadata for restoring the first database table and its related data to the primary storage subsystem from the secondary storage subsystem; and
wherein the first table metadata index is specific to the first database table for use in restoring the first database table and the database tables in the first set of database tables, without restoring or accessing all the other database tables in the database or accessing table metadata indexes associated with each one of the plurality of database tables in the database; anddetermining, from the plurality of database tables, a second set of database tables referenced by the second database table different from the first database table; and creating a separate second table metadata index that is distinct from the plurality of table metadata indexes associated with each one of the plurality of database tables in the database, wherein the second table metadata index comprises (a) a relationship information of the second database table to each one of the database tables in the determined second set of database tables and (b) metadata for restoring each one of the database tables in the identified second set of database tables to the one or more primary storage devices from the secondary storage subsystem; and
wherein the second table metadata index is specific to the second database table for use in restoring the second database table without restoring all the other database tables in the database or accessing table metadata indexes associated with each one of the plurality of database tables in the database.- View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 16, 17, 18, 19, 20)
-
10. A system for storing database tables, comprising:
one or more computing devices comprising computer hardware and configured to; copy data associated with a plurality of database tables from one or more primary storage devices in a primary storage subsystem to one or more secondary storage devices in a secondary storage subsystem, wherein the plurality of database tables comprises a first database table and a second database table that is different from the first database table, and wherein the one or more computing devices are configured to copy the data at least by; determining a first set of database tables from the plurality of database tables, wherein each one of the database tables in the first set of database tables is referenced by the first database table; and creating a separate first table metadata index for the first database table that is distinct from a plurality of table metadata indexes associated with each one of the plurality of database tables in the database, wherein the first table metadata index comprises, (i) a relationship information of the first database table to each one of the database tables in the determined first set of database tables that is referenced by the first database table; and
(ii) metadata for restoring the first database table and its related data to the primary storage subsystem from the secondary storage subsystem; and
wherein the first table metadata index is specific to the first database table for use in restoring the first database table and the database tables in the first set of database tables, without restoring or accessing all the other database tables in the database or accessing the table metadata indexes associated with each one of the plurality of database tables in the database; anddetermining, from the plurality of database tables, a second set of database tables referenced by the second database table different from the first database table; and creating a separate second table metadata index that is distinct from the plurality of table metadata indexes associated with each one of the plurality of database tables in the database, wherein the second table metadata index comprises (a) a relationship information of the second database table to each one of the database tables in the determined second set of database tables and (b) metadata for restoring each one of the database tables in the determined second set of database tables to the primary storage subsystem from the secondary storage subsystem; and
wherein the second table metadata index is specific to the second database table for use in restoring the second database table without restoring or accessing all the other database tables in the database or accessing the table metadata indexes associated with each one of the plurality of database tables in the database.- View Dependent Claims (11, 12, 13, 14, 15)
Specification