# US 2021/0240580 A1 · Exporting a database from a foreign database recovery environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0240580 A1
- Document ID: US20210240580A1
- Status: Published application
- Kind: A1
- Application number: 16/777,083
- Filed: 2020-01-30
- Published: 2021-08-05
- Earliest claimed: 2020-01-30
- Assignees: Rubrik, Inc.
- Applicants: Rubrik, Inc.
- Inventors: Snehal Arvind Khandkar; Yongbing Guo; Udbhav Prasad; Ganesh Karuppur Rajagopalan; Pandian Raju
- Web page: https://patentgrep.com/patent/US20210240580A1

## CPC

- G06F 11/1469: {Backup restoration techniques}
- G06F 11/1451: {by selection of backup contents}
- G06F 11/1464: {for networked environments}
- G06F 11/1484: {involving virtual machines}
- G06F 11/2028: {eliminating a faulty processor or activating a spare}
- G06F 2201/80: Database-specific techniques
- G06F 2201/82: Solving problems relating to consistency
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods to export a database from a foreign database recovery environment are described. The system includes the foreign database recovery environment that includes a backup host that receives the database from a source host operating in a native database recovery environment. The backup host utilizes foreign snapshot files and foreign incremental files for restoring the database. The backup host receives export information. The export information includes a target host, a point-in-time, and a database name identifying the database for export from the backup host to the target host. The backup host initiates a job that generates script information, creates directories, materializes file information, and communicates the script information and the file information, via the directories, to the target host.

## Claims

### Claim 1

A system comprising:
at least one processor and memory having instructions that, when executed, cause the at least one processor to perform operations comprising:
receiving a database from a source host operating in a native database recovery environment, the database being received at a backup host operating in a foreign database recovery environment and utilizing foreign snapshot files and foreign incremental files for restoring the database;
receiving export information at the backup host, the export information including a target host and a point-in-time and a database name identifying the database for export from the backup host to the target host, the target host operating in the native database recovery environment;
initiating a job, on the backup host, responsive to receiving the export information, the job executing to cause the at least one processor to perform operations further comprising:
generating script information based on the export information, the script information including scripts including logic to facilitate the export of the database from the backup host to the target host;
creating one or more directories based on the export information;
materializing file information including snapshots of the database and incremental changes to the database, the file information to facilitate export of the database from. the backup host to the target host; and
communicating the file information and the script information, via the directories and over a network, to the target host, the directories enabling the target host to recover the database in the native database recovery environment based on the file information recovered from the foreign database recovery environment.

### Claim 2 (depends on 1)

The system of claim 1, wherein the generating the scripts includes selecting a first template from a plurality of templates based on the export information.

### Claim 3 (depends on 2)

The system of claim 2, wherein the generating the scripts includes initializing plug-in value information in the first template based on the export information.

### Claim 4 (depends on 1)

The system of claim 1, wherein the file information includes native snapshot files including the snapshots of the database and native incremental files including the incremental changes to the database.

### Claim 5 (depends on 1)

The system of claim 1, wherein the materializing the file information includes:
selecting the native snapshot files and the native incremental files based on the point-in-time;
materializing the file information from the database in the backup host, wherein the materializing includes restoring the native snapshot files and recovering the native incremental files based on the point-in-time; and
wherein the file information includes the native snapshot files and the native incremental files.

### Claim 6 (depends on 1)

The system of claim 1, wherein the communicating the directories to the target host includes utilizing a network file system protocol to communicate the directories to the target host.

### Claim 7 (depends on 1)

The system of claim 1, the instructions cause the at least one processor to perform operations further comprising:
mounting the directories;
opening the database;
restoring the database;
recovering the database based on the native incremental files including applying incremental changes to the database to restore the database to the point-in-time that was selected; and
unmounting the directories.

### Claim 8 (depends on 1)

The system of claim 1, wherein the database is a standalone database and the backup host includes a first node including the backup node.

### Claim 9 (depends on 1)

The system of claim 1, wherein the backup host comprises a plurality nodes that stores a cluster database; and
wherein the plurality of nodes includes a first node and additional nodes; and
wherein the restoring the database includes restoring the database on the first node; and
wherein the recovering the database includes recovering the database on the first node; and
wherein the instructions cause the at least one processor to perform operations further comprising:
opening instances of the database on the additional nodes; and
copying the database to the additional nodes.

### Claim 10

A method comprising:
receiving a database from a source host operating in a native database recovery environment, the database being received at a backup host operating in a foreign database recovery environment and utilizing foreign snapshot files and foreign incremental files for restoring the database, the receiving the database being performed by at least one processor;
receiving export information at the backup host, the export information including a target host and a point-in-time and a database name identifying the database for export from the backup host to the target host, the target host operating in the native database recovery environment;
initiating a job, on the backup host, responsive to receiving the export information, the job executing to cause the at least one processor to perform operations further comprising:
generating script information based on the export information, the script information including scripts including logic to facilitate the export of the database from the backup host to the target host;
creating one or more directories based on the export information;
materializing file information including snapshots of the database and incremental changes to the database, the file information to facilitate export of the database from the backup host to the target host; and
communicating the file information and the script information, via the directories and over a network, to the target host, the directories enabling the target host to recover the database in the native database recovery environment based on the file information recovered from the foreign database recovery environment.

### Claim 11 (depends on 10)

The method of claim 10, wherein the generating the scripts includes selecting a first template from a plurality of templates based on the export information.

### Claim 12 (depends on 11)

The method of claim 11, wherein the generating the scripts includes initializing plug-in value information in the first template based on the export information.

### Claim 13 (depends on 10)

The method of claim 10, wherein the file information includes native snapshot files including the snapshots of the database and native incremental files including the incremental changes to the database.

### Claim 14 (depends on 10)

The method of claim 10, wherein the materializing the file information includes:
selecting the native snapshot files and the native incremental files based on the point-in-time;
materializing the file information from the database in the backup host, wherein the materializing includes restoring the native snapshot files and recovering the native incremental files based on the point-in-time; and
wherein the file information includes the native snapshot files and the native incremental files.

### Claim 15 (depends on 10)

The method of claim 10, wherein the communicating the directories to the target host includes utilizing a network file system protocol to communicate the directories to the target host.

### Claim 16 (depends on 10)

The method of claim 10, further comprising:
mounting the directories;
opening the database;
restoring the database;
recovering the database based on the native incremental files including applying incremental changes to the database to restore the database to the point-in-time that was selected; and
unmounting the directories.

### Claim 17 (depends on 10)

The method of claim 10, further comprising communicating a backup agent to the source host.

### Claim 18 (depends on 10)

The method of claim 10, further comprising:
automatically discovering the database on the target host; and
communicating a backup agent to the target host,

### Claim 19

A machine-storage medium and storing a set of instructions that, when executed by a processor, causes a machine to perform operations comprising:
receiving a database from a source host operating in a native database recovery environment, the database being received at a backup host operating in a foreign database recovery environment and utilizing foreign snapshot files and foreign incremental files for restoring the database, the receiving the database being performed by at least one processor;
receiving export information at the backup host, the export information including a target host and a point-in-time and a database name identifying the database for export from the backup host to the target host, the target host operating in the native database recovery environment;
initiating a job, on the backup host, responsive to receiving the export information, the job executing to cause the at least one processor to perform operations further comprising:
generating script information based on the export information, the script information including scripts including logic to facilitate the export of the database from the backup host to the target host;
creating one or more directories based on the export information;
materializing file information including snapshots of the database and incremental changes to the database, the file information to facilitate export of the database from the backup host to the target host; and
communicating the file information and the script information, via the directories and over a network, to the target host, the directories enabling the target host to recover the database in the native database recovery environment based on the file information on the file information recovered from the foreign database recovery environment.

### Claim 20 (depends on 19)

The machine-storage medium of claim 19, wherein the generating the scripts includes selecting a first template from a plurality of templates based on the export information.
