# US 2017/0286439 A1 · System and method for duplicating files on client device for cloud storage

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

- Number: US 2017/0286439 A1
- Document ID: US20170286439A1
- Status: Published application
- Kind: A1
- Application number: 15/504,803
- Filed: 2016-02-02
- Published: 2017-10-05
- Earliest claimed: 2015-06-30
- Assignees: Yandex Europe AG
- Applicants: Yandex Europe AG
- Inventors: Sergey Petrovich NECHAEV
- Web page: https://patentgrep.com/patent/US20170286439A1

## CPC

- G06F 16/128: {Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion (error detection or correction of the data by redundancy in operations or in hardware G06F11/14, G06F11/16)}
- G06F 16/152: {using file content signatures, e.g. hash values}
- G06F 16/178: Techniques for file synchronisation in file systems
- G06F 16/183: {Provision of network file services by network file servers, e.g. by using NFS, CIFS (network file access protocols H04L67/1097)}
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Disclosed are systems, methods and computer program products for duplicating files on client device for storage in a cloud storage server. An example method includes: receiving, by a user device, a request to upload a file stored locally on the user device into the cloud storage server; determine time required to generate a unique file identifier for said file and time required to upload said file to the cloud storage server; reponsive to the time required to generate the unique file identifier for said file exceeding the time required to upload said file to the cloud storage server, initiating the uploading of the file to the cloud storage server; and responsive to the time required to upload said file to the cloud storage server exceeding the time required to generate the unique file identifier, generating said unique file identifier and transmitting the unique file identifier to the cloud storage server.

## Claims

### Claim 1

A method for duplication of files on a user device, the method comprising:
receiving, by a hardware processor of a user device, a request to upload a file stored locally on the user device into the cloud storage server;
determining, by the hardware processor, time required to generate a unique file identifier for said file and time required to upload said file to the cloud storage server;
responsive to the time required to generate the unique file identifier for said file exceeding the time required to upload said file to the cloud storage server, initiating, by the hardware processor, the uploading of the file to the cloud storage server; and
responsive to the time required to upload said file to the cloud storage server exceeding the time required to generate the unique file identifier, generating, by the hardware processor, said unique file identifier and transmitting the unique file identifier to the cloud storage server.

### Claim 2 (depends on 1)

The method of claim 1, wherein the unique file identifier includes at least one hash of the file.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining time to upload the file to the cloud storage server, includes analyzing one or more of a bandwidth of the network connection between the user device and the cloud storage device, computational resources currently available at the user device, characteristics of the user device, and size and type of the file.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
storing in a local storage of the user device the information about computational resources of the user device after they are analyzed in order not to analyze computational resources of the user device again next time.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining the size of the file; and
responsive to the size of the file exceeding a predetermined size, performing the steps of calculating, uploading and generating.

### Claim 6 (depends on 1)

The method of claim 1, wherein the method is implemented in one or more of: a browser code executed on the user device, in a code of a native cloud storage application running on the user device, and a website code executed on the user device.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
starting calculation of the unique file identifier substantially simultaneously with the uploading of the file to the cloud storage server.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
if uploading of the file to the cloud storage server is finished earlier than generation of the unique file identifier, terminating generation of the unique file identifier; and
if generation of the unique file identifier is finished earlier than uploading of the file to the cloud storage server, transmitting the unique file identifier to the cloud storage server, and:
if the file is unique, continue uploading the file to the cloud storage server;
if the file is not unique, terminating uploading of the file to the cloud storage server.

### Claim 9 (depends on 1)

The method of claim 1, wherein a probability coefficient denoting the average probability of the file being unique is calculated using following inequality:
s
V
h
+
s
V
upl
×
α
<
s
V
upl
,
wherein
S—size of the file,
Vh—speed of generating the unique file identifier on the user device,
Vupl—speed of uploading the file to the cloud storage server,
α-13 average probability of a file being a unique file in the cloud storage server.

### Claim 10 (depends on 9)

The method of claim 9, wherein the inequality
s
V
h
+
s
V
upl
×
α
<
s
V
upl
is simplified into th<tupl*(1−α), wherein time t is calculated as , and if the simplified inequality is true, than generating the unique file identifier on the user device.

### Claim 11

A system for duplication of files on a user device, the system comprising:
a hardware processor of the user device being configured to:
receive a request to upload a file stored locally on the user device into the cloud storage server;
determine time required to generate a unique file identifier for said file and time required to upload said file to the cloud storage server;
responsive to the time required to generate the unique file identifier for said file exceeding the time required to upload said file to the cloud storage server, initiate the uploading of the file to the cloud storage server; and
responsive to the time required to upload said file to the cloud storage server exceeding the time required to generate the unique file identifier, generate said unique file identifier and transmitting the unique file identifier to the cloud storage server.

### Claim 12 (depends on 11)

The system of claim 11, wherein the unique file identifier includes at least one hash of the file.

### Claim 13 (depends on 11)

The system of claim 11, wherein determining time to upload the file to the cloud storage server, includes analyzing one or more of a bandwidth of the network connection between the user device and the cloud storage device, computational resources currently available at the user device, characteristics of the user device, and size and type of the file.

### Claim 14 (depends on 11)

The system of claim 11, wherein the hardware processor further configured to:
store in a local storage of the user device the information about computational resources of the user device after they are analyzed in order not to analyze computational resources of the user device again next time.

### Claim 15 (depends on 11)

The system of claim 11, wherein the hardware processor further configured to:
determine the size of the file; and
responsive to the size of the file exceeding a predetermined size, perform calculation, uploading of the file and generation of the unique file identifier.

### Claim 16 (depends on 11)

The system of claim 11, wherein the hardware processor further configured to:
start calculation of the unique file identifier substantially simultaneously with the uploading of the file to the cloud storage server.

### Claim 17 (depends on 16)

The system of claim 16, wherein the hardware processor further configured to:
if uploading of the file to the cloud storage server is finished earlier than generation of the unique file identifier, terminate generation of the unique file identifier; and
if generation of the unique file identifier is finished earlier than uploading of the file to the cloud storage server, transmit the unique file identifier to the cloud storage server, and:
if the file is unique, continue uploading the file to the cloud storage server;
if the file is not unique, terminate uploading of the file to the cloud storage server.

### Claim 18 (depends on 11)

The system of claim 11, wherein a probability coefficient denoting the average probability of the file being unique is calculated using following inequality:
s
V
h
+
s
V
upl
×
α
<
s
V
upl
,
wherein
S—size of the file,
Vh—speed of generating the unique file identifier on the user device,
Vupl—speed of uploading the file to the cloud storage server,
α—average probability of a file being a unique file in the cloud storage server.

### Claim 19 (depends on 18)

The system of claim 18, wherein the inequality
s
V
h
+
s
V
upl
×
α
<
s
V
upl
is simplified into th<tupl*(1−α), wherein time t is calculated as, and if the simplified inequality is true, than generating the unique file identifier on the user device.

### Claim 20

A non-transitory computer readable medium storing computer executable instructions for duplication of files on a user device, including instructions for:
receiving a request to upload a file stored locally on the user device into the cloud storage server;
determining time required to generate a unique file identifier for said file and time required to upload said file to the cloud storage server;
responsive to the time required to generate the unique file identifier for said file exceeding the time required to upload said file to the cloud storage server, initiating the uploading of the file to the cloud storage server; and
responsive to the time required to upload said file to the cloud storage server exceeding the time required to generate the unique file identifier, generating said unique file identifier and transmitting the unique file identifier to the cloud storage server.
