# US 9,355,098 B2 · Restore of full system backup and incremental backups using multiple simultaneous device streams

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

- Number: US 9,355,098 B2
- Document ID: US9355098B2
- Status: Granted
- Kind: B2
- Application number: 13/682,237
- Filed: 2012-11-20
- Published: 2013-03-28
- Granted: 2016-05-31
- Earliest claimed: 2009-12-22
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Wayne A. Sawdon; Frank B. Schmuck
- Web page: https://patentgrep.com/patent/US9355098B2

## CPC

- G06F 11/1469: {Backup restoration techniques}
- G06F 11/1448: {Management of the data involved in backup or backup restore}
- G06F 11/1451: {by selection of backup contents}
- G06F 11/1456: {Hardware arrangements for backup}
- G06F 16/188: Virtual file systems
- G06F 16/2308: {Concurrency control (transaction processing G06F9/466)}
- G06F 16/174: Redundancy elimination performed by the file system (error detection or correction of the data by redundancy in operations G06F11/14)
- G06F 2201/815: Virtual
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A technique for restoring file systems by applying full and incremental backups together while streaming them from multiple devices provides a faster system restore from a full backup where incremental backups must also be applied. A first storage device streams the full backup while at least one second storage device streams at least one incremental backup. As files are detected in the incremental backup, they are written instead of the corresponding file in the full backup. Incremental backups can be pre-merged to reduce their number to one less than a number of storage devices available to stream the backups, so that the full backup can be streamed along with the pre-merged incremental backup(s) to restore the file system.

## Claims

### Claim 1

A computer-performed method for restoring a file system to a target storage, the method comprising:
first reading a first backup stream containing a full backup of the file system from a first one of multiple storage devices;
while performing the first reading, second reading a second backup stream containing a first incremental backup of the file system from a corresponding second one of the multiple storage devices;
prior to performing the first and second reading, generating the first incremental backup by merging a second incremental backup with a third incremental backup to temporary storage by overwriting any files present in both the second incremental backup and the third incremental backup first from the second incremental backup and then the third incremental backup, and wherein the second reading reads a result of the merging as the first incremental backup from the temporary storage;
prior to completing the first reading of the full backup and prior to completing the second reading of the second backup stream, determining whether the second backup stream contains a copy of a file read by the first reading;
responsive to determining that the second backup stream does not contain the copy of the file read by the first reading and prior to completing the first reading of the full backup and prior to completing the second reading of the second backup stream, first writing the file read by the first reading to the target storage; and
responsive to determining that the second backup stream contains the copy of the file read by the first reading and prior to completing the first reading of the full backup and prior to completing the second reading of the second backup stream, second writing the file read by the second reading to the target storage.

### Claim 2 (depends on 1)

The computer-performed method of claim 1, wherein the full backup and the first incremental backup store files of the file system in a common canonical order and wherein the method further comprises:
continuing the first reading the first backup stream;
subsequent to writing the file written read by the second reading to the target storage, continuing the second reading the second backup stream to determine an identifier of a next file in the first incremental backup;
comparing identifiers of files read by the first reading with the identifier of the next file in the first incremental backup; and
halting the second reading the second backup stream until a result of the comparing indicates the next file has been reached in the first backup stream.

### Claim 3 (depends on 2)

The computer-performed method of claim 2, wherein the common canonical order of the files in the full backup and the first incremental backup is an order according to inodes of the files.

### Claim 4 (depends on 2)

The computer-performed method of claim 2, wherein the common canonical order of the files in the full backup and the first incremental backup is an alphabetical ordering of the files.

### Claim 5

A computer system comprising a processor for executing program instructions and a memory coupled to the processor for executing the program instructions, wherein the program instructions include program instructions for restoring a file system to a target storage, wherein the program instructions comprise program instructions for:
first reading a first backup stream containing a full backup of the file system from a first one of multiple storage devices;
while performing the first reading, second reading a second backup stream containing a first incremental backup of the file system from a corresponding second one of the multiple storage devices;
prior to performing the first and second reading, generating the first incremental backup by merging a second incremental backup with a third incremental backup to temporary storage by overwriting any files present in both the second incremental backup and the third incremental backup first from the second incremental backup and then the third incremental backup, and wherein the second reading reads the first incremental backup from the temporary storage;
prior to completing the first reading of the full backup and prior to completing the second reading of the second backup stream, determining whether the second backup stream contains a copy of a file read by the first reading;
responsive to determining that the second backup stream does not contain the copy of the file read by the first reading and prior to completing the first reading of the full backup and prior to completing the second reading of the second backup stream, first writing the file read by the first reading to the target storage; and
responsive to determining that the second backup stream contains the copy of the file read by the first reading and prior to completing the first reading of the full backup and prior to completing the second reading of the second backup stream, second writing the file read by the second reading to the target storage.

### Claim 6 (depends on 5)

The computer system of claim 5, wherein the full backup and the first incremental backup store files of the file system in a common canonical order and wherein the program instructions further comprise program instructions for:
continuing the first reading the first backup stream;
subsequent to writing the file written read by the second reading to the target storage, continuing the second reading the second backup stream to determine an identifier of a next file in the first incremental backup;
comparing identifiers of files read by the first reading with the identifier of the next file in the first incremental backup; and
halting the second reading the second backup stream until a result of the comparing indicates the next file has been reached in the first backup stream.

### Claim 7 (depends on 6)

The computer system of claim 6, wherein the common canonical order of the files in the full backup and the first incremental backup is an order according to inodes of the files.

### Claim 8 (depends on 6)

The computer system of claim 6, wherein the common canonical order of the files in the full backup and the first incremental backup is an alphabetical ordering of the files.

### Claim 9

A computer program product comprising a computer-readable storage device that is not a signal or a carrier wave, storing program instructions for execution within a computer system, wherein the program instructions include program instructions for restoring a file system to a target storage, wherein the program instructions comprise program instructions for:
first reading a first backup stream containing a full backup of the file system from a first one of multiple storage devices;
while performing the first reading, second reading a second backup stream containing a first incremental backup of the file system from a corresponding second one of the multiple storage devices;
prior to performing the first and second reading, generating the first incremental backup by merging a second incremental backup with a third incremental backup to temporary storage by overwriting any files present in both the second incremental backup and the third incremental backup first from the second incremental backup and then the third incremental backup, and wherein the second reading reads the first incremental backup from the temporary storage;
prior to completing the first reading of the full backup and prior to completing the second reading of the second backup stream, determining whether the second backup stream contains a copy of a file read by the first reading;
responsive to determining that the second backup stream does not contain the copy of the file read by the first reading and prior to completing the first reading of the full backup and prior to completing the second reading of the second backup stream, first writing the file read by the first reading to the target storage; and
responsive to determining that the second backup stream contains the copy of the file read by the first reading and prior to completing the first reading of the full backup and prior to completing the second reading of the second backup stream, second writing the file read by the second reading to the target storage.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the full backup and the first incremental backup store files of the file system in a common canonical order and wherein the program instructions further comprise program instructions for:
continuing the first reading the first backup stream;
subsequent to writing the file written read by the second reading to the target storage, continuing the second reading the second backup stream to determine an identifier of a next file in the first incremental backup;
comparing identifiers of files read by the first reading with the identifier of the next file in the first incremental backup; and
halting the second reading the second backup stream until a result of the comparing indicates the next file has been reached in the first backup stream.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the common canonical order of the files in the full backup and the first incremental backup is an order according to inodes of the files.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein the common canonical order of the files in the full backup and the first incremental backup is an alphabetical ordering of the files.
