# US 2020/0348927 A1 · Data file partition and replication

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

- Number: US 2020/0348927 A1
- Document ID: US20200348927A1
- Status: Published application
- Kind: A1
- Application number: 16/399,953
- Filed: 2019-04-30
- Published: 2020-11-05
- Earliest claimed: 2019-04-30
- Assignees: JFrog Ltd.
- Applicants: JFrog, Ltd.
- Inventors: Yoav Landman
- Web page: https://patentgrep.com/patent/US20200348927A1

## CPC

- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 16/178: Techniques for file synchronisation in file systems
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure provides a method, system, and device for file replication. To illustrate, based on target replication information corresponding to a version of a file at a target device, a source device may determine one or more portions of a different version of the file at the source device to be provided to the target device. One or more other aspects of the present disclosure further provide sending, to the target device, the one or more portions and replication information corresponding to the version of the file at the source device. Based on the version of the file at the target device, the one or more portions, and the replication information corresponding to the version of the file at the source device, the target device may assemble and store a file that corresponds to the version of the file at the source device.

## Claims

### Claim 1

A method for replicating one or more files across a multi-node network, the method comprising:
receiving, from a source node having source replication information corresponding to a first version of a file, a request at a target node for target replication information corresponding to a second version of the file, the source replication information comprising a first plurality of checksums corresponding to the first version of the file utilized by the source node, and the target replication information comprising a second plurality of checksums corresponding to the second version of the file utilized by the target node;
sending, from the target node to the source node, the target replication information;
receiving, at the target node from the source node, the source replication information;
receiving, at the target node from the source node, update data corresponding to a difference between the first version of the file and the second version of the file; and
combining, at the target node and based on the source replication information, the update data and a portion of the second version of the file that is the same between the first version of the file and the second version of the file to generate a third version of the file identical to the first version of the file.

### Claim 2 (depends on 1)

The method of claim 1, where the request includes an identifier of the file.

### Claim 3 (depends on 2)

The method of claim 2, where the identifier of the file include a file name of the file.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
prior to sending the target replication information:
identifying a version indicator of the second version of the file; and
sending the version indicator of the second version of the file to the source node.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
responsive to receiving the request:
retrieving the target replication information; or
generating the target replication information.

### Claim 6 (depends on 1)

The method of claim 1, where the update data comprises multiple portions.

### Claim 7 (depends on 6)

The method of claim 6, where receiving the update data comprises:
receiving a first portion of the multiple portions of the update data, the first portion corresponding to a first checksum;
receiving a second portion of the multiple portions of the update data, the second portion corresponding to the first checksum; and
receiving a third portion of the multiple portions of the update data, the third portion corresponding to a second checksum.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
in response to receiving a first portion of the multiple portions of the update data, sending a first acknowledgement to the source node;
in response to receiving a second portion of the multiple portions of the update data, sending a second acknowledgement to the source node; and
in response to receiving a third portion of the multiple portions of the update data, sending a third acknowledgement to the source node.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
identifying a first position indicator corresponding to the first portion;
identifying a second position indicator corresponding to the second portion; and
combining the first portion and the second portion based on the first position indicator and the second position indicator.

### Claim 10 (depends on 7)

The method of claim 7, further comprising:
arranging, based on the source replication information, the first portion and the second portion to generate the first version of the file at the target node.

### Claim 11 (depends on 6)

The method of claim 6, further comprising:
receiving one or more portions of the multiple portions of the update data; and
determining whether each portion of the multiple portions of the update data is received.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
in response to a determination that each portion of the multiple portions of the update data is not received:
identifying an unreceived portion; and
sending a notification corresponding to the unreceived portion to the source node.

### Claim 13 (depends on 11)

The method of claim 11, wherein, the update data is combined with the portion of the second version of the file that is the same between the first version of the file and the second version of the file in response to a determination that each portion of the multiple portions of the update data is received.

### Claim 14 (depends on 1)

The method of claim 1, where the update data and the portion of the second version of the file are combined based on an order of the first plurality of checksums of the source replication information.

### Claim 15 (depends on 1)

The method of claim 1, further comprising:
verifying the third version of the file matches the first version of the file.

### Claim 16 (depends on 15)

The method of claim 15, where verifying the third version of the file matches the first version of the file comprising:
generating a checksum for an entirety of the third version of the file;
identifying, based on the source replication information, a checksum for an entirety of the first version of the file; and
comparing the checksum for the entirety of the third version of the file and the checksum for the entirety of the first version of the file to determine whether the third version of the file matches the first version of the file.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
in response to a determination that the third version of the file matches the first version of the file:
sending, from the target node, an acknowledgement to the source node; and
storing the third version of the file at a memory of the target node.

### Claim 18 (depends on 16)

The method of claim 16, further comprising:
in response to a determination that the third version of the file does not match the first version of the file:
sending, from the target node, a notification to the source node; and
discarding the third version of the file.

### Claim 19 (depends on 1)

The method of claim 1, further comprising:
after receiving the source replication information:
comparing the source replication information to the target replication information to identify one or more checksums included in both the source replication information and the target replication information; and
for each of the one or more checksums, retrieving a corresponding part of the second version of the file at the target node.

### Claim 20

A system for replicating one or more files at a target node, the system comprising:
at least one memory storing instructions; and
one or more processors coupled to the at least one memory, the one or more processors configured to execute the instructions to cause the processor to:
receive, from a source node having source replication information corresponding to a first version of a file, a request for target replication information corresponding to a second version of the file, the source replication information comprising a first plurality of checksums corresponding to the first version of the file utilized by the source node, and the target replication information comprising a second plurality of checksums corresponding to the second version of the file utilized by the target node;
send the target replication information to the source node;
receive the source replication information from the source node;
receive update data corresponding to a difference between the first version of the file and the second version of the file from the source node; and
combine, based on the source replication information, the update data and a portion of the second version of the file that is the same between the first version of the file and the second version of the file to generate a third version of the file.

### Claim 21 (depends on 20)

The system of claim 20, where:
the first version of the file utilized by the source node comprises a file name and a first version identifier; and
the second version of the file utilized by the target node comprises the file name and a second version identifier.

### Claim 22 (depends on 20)

The system of claim 20, where:
the second version of the file includes a plurality of parts;
each of the plurality of parts including a set of data blocks; and
each of the plurality of parts corresponding to a checksum.

### Claim 23 (depends on 20)

The system of claim 20, where the one or more processors are further configured to execute the instructions to cause the one or more processors to:
verify the third version of the file matches the first version of the file.

### Claim 24 (depends on 23)

The system of claim 23, where, to where verify the third version of the file matches the first version of the file, the one or more processors are further configured to execute the instructions to cause the one or more processors to:
generate a checksum for an entirety of the third version of the file;
identify, based on the source replication information, a checksum for an entirety of the first version of the file; and
compare the checksum for the entirety of the third version of the file and the checksum for the entirety of the first version of the file to determine whether the third version of the file matches the first version of the file.

### Claim 25 (depends on 24)

The system of claim 24, where the one or more processors are further configured to execute the instructions to cause the one or more processors to:
in response to a determination that the third version of the file matches the first version of the file:
send, from the target node, an acknowledgement to the source node; and
store the third version of the file at a memory of the target node.

### Claim 26 (depends on 24)

The system of claim 24, where the one or more processors are further configured to execute the instructions to cause the one or more processors to:
in response to a determination that the third version of the file does not match the first version of the file:
send, from the target node, a notification to the source node; and
discard the third version of the file.

### Claim 27

A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations for replicating one or more files at a target node, the operations comprising:
executing a first routine to receive, from a source node having source replication information corresponding to a first version of a file, a request for target replication information corresponding to a second version of the file, the source replication information comprising a first plurality of checksums corresponding to the first version of the file utilized by the source node, and the target replication information comprising a second plurality of checksums corresponding to the second version of the file utilized by the target node;
executing a second routine to send the target replication information to the source node;
executing a third routine to receive the source replication information from the source node;
executing a fourth routine to receive update data corresponding to a difference between the first version of the file and the second version of the file from the source node; and
executing a fifth routine to combine, based on the source replication information, the update data and a portion of the second version of the file that is the same between the first version of the file and the second version of the file.

### Claim 28 (depends on 27)

The non-transitory computer-readable storage medium of claim 27, where the request includes an identifier of the file.

### Claim 29 (depends on 27)

The non-transitory computer-readable storage medium of claim 27, where the operations further comprise:
prior to sending the target replication information:
identify a version indicator of the second version of the file; and
send the version indicator of the second version of the file to the source node.

### Claim 30 (depends on 27)

The non-transitory computer-readable storage medium of claim 27, where the fourth routine to receive the update data further comprises operations to:
receive a first portion of multiple portions of the update data, the first portion of the multiple portions corresponding to a first checksum;
receive a second portion of the multiple portions of the update data, the second portion of the multiple portions corresponding to the first checksum; and
receive a third portion of the multiple portions of the update data, the third portion of the multiple portions corresponding to a second checksum.

### Claim 31 (depends on 27)

The non-transitory computer-readable storage medium of claim 27, where:
the update data comprises multiple portions; and
the update data is combined with the portion of the second version of the file that is the same between the first version of the file and the second version of the file in response to a determination that each portion of the multiple portions of the update data is received.

### Claim 32 (depends on 27)

The non-transitory computer-readable storage medium of claim 27, where the operations further comprise:
after receipt of the source replication information:
compare the source replication information to the target replication information to identify one or more checksums included in both the source replication information and the target replication information; and
for each of the one or more checksums, retrieve a corresponding part of the second version of the file at the target node.
