CN106936917A - A kind of cloud storage method and device, electronic equipment - Google Patents

A kind of cloud storage method and device, electronic equipment Download PDF

Info

Publication number
CN106936917A
CN106936917A CN201710184330.4A CN201710184330A CN106936917A CN 106936917 A CN106936917 A CN 106936917A CN 201710184330 A CN201710184330 A CN 201710184330A CN 106936917 A CN106936917 A CN 106936917A
Authority
CN
China
Prior art keywords
file
file fragment
store path
fragment
cloud server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710184330.4A
Other languages
Chinese (zh)
Inventor
王晓文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710184330.4A priority Critical patent/CN106936917A/en
Publication of CN106936917A publication Critical patent/CN106936917A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments

Abstract

The embodiment of the invention discloses a kind of cloud storage method, methods described includes:File destination is divided into N number of file fragment, wherein, the N is the natural number more than 1;Each file fragment in respectively described N number of file fragment sets up store path of the storage on Cloud Server, wherein, the store path at least identification information including Cloud Server;Each file fragment in N number of file fragment is stored in corresponding Cloud Server according to respective store path.The present invention also discloses a kind of cloud storage device and electronic equipment.

Description

A kind of cloud storage method and device, electronic equipment
Technical field
The present invention relates to technical field of data storage, more particularly to a kind of cloud storage method and device, electronic equipment.
Background technology
Used as a kind of emerging Network storage technology, cloud storage is by cluster application, network technology or distributed document The functions such as system, collaborative work is gathered by a large amount of various types of storage devices in network by application software, altogether With a system for externally providing data storage and Operational Visit function.In simple terms, exactly be put into for storage resources by cloud storage For a kind of emerging scheme of people's access on cloud.User can at any time, Anywhere, through any web-enabled device It is connected to and data is easily accessed on cloud, therefore is widely used.
But, when user accesses the large volume file at cloud storage service device end using client, access time is long. Meanwhile, the network of user is generally speed of download soon, and uploading speed is slow.This is caused when file is changed, file access It is time-consuming veryer long.User is used to wait the time of network transmission more long, uses inconvenience.Also wasting natively inadequate simultaneously Uploading bandwidth.Although proposed currently for the problem file for uploading will be needed to out to be temporarily stored in locally buffered, client exists The solution that backstage progressively uploads, but still needing the long time using program high in the clouds file can just obtain more Newly.File data synchronizing speed is slow.Meanwhile, upload identical information repeatedly is there is also, and then waste the problem of Internet resources.
The content of the invention
In view of this, the embodiment of the present invention for solve problems of the prior art and provide a kind of cloud storage method and Device, electronic equipment, can lift access speed, and can save network uploading bandwidth resource.
What the technical scheme of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of cloud storage method, electronic equipment is applied to, methods described includes:
File destination is divided into N number of file fragment, wherein, the N is the natural number more than 1;
Each file fragment in respectively described N number of file fragment sets up store path of the storage on Cloud Server, Wherein, the store path at least identification information including Cloud Server;
By each file fragment in N number of file fragment according to respective store path storage to corresponding cloud service In device.
Second aspect, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment at least includes communication interface, deposits Storage media and processor, wherein the processor is used for:
File destination is divided into N number of file fragment, wherein, the N is the natural number more than 1;
Each file fragment in respectively described N number of file fragment sets up store path of the storage on Cloud Server, Wherein, the store path at least identification information including Cloud Server;
By each file fragment in N number of file fragment according to respective store path storage to corresponding cloud service In device.
The third aspect, the embodiment of the present invention provides a kind of cloud storage device, and described device includes that the first division, first are set up Unit and the first memory cell, wherein:
First division unit, for file destination to be divided into N number of file fragment, wherein, the N is more than 1 Natural number;
Described first sets up unit, and each file fragment for being respectively in N number of file fragment is set up storage and existed Store path on Cloud Server, wherein, the store path at least identification information including Cloud Server;
First memory cell, for by each file fragment in N number of file fragment according to respective storage Path is stored in corresponding Cloud Server.
The embodiment of the present invention provides a kind of cloud storage method and device, electronic equipment, wherein, file destination is divided into N Individual file fragment;Each file fragment in respectively described N number of file fragment sets up storage road of the storage on Cloud Server Footpath, wherein, the store path at least identification information including Cloud Server;By each file in N number of file fragment Fragment is stored in corresponding Cloud Server according to respective store path, in this way, file destination is divided into multiple file pieces Section, multiple file fragments can be uploaded simultaneously, improve uploading speed, and only repaiied with upload when file fragment is changed The file fragment for changing, can not only improve uploading speed and save network uploading bandwidth resource.
Brief description of the drawings
Fig. 1 realizes schematic flow sheet for a kind of cloud storage method of the embodiment of the present invention;
Fig. 2 is the schematic diagram of a scenario of embodiment of the present invention cloud storage;
Fig. 3 realizes schematic flow sheet for embodiment of the present invention another kind cloud storage method;
Fig. 4 is that the embodiment of the present invention another cloud storage method realizes schematic flow sheet;
Fig. 5 is the composition structural representation of embodiment of the present invention cloud storage device;
Fig. 6 is the composition structural representation of embodiment of the present invention electronic equipment.
Specific embodiment
The technical solution of the present invention is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
Embodiment one
The present embodiment provides a kind of cloud storage method, and the method is applied to electronic equipment, what the cloud storage method was realized Function can realize that certain program code can be stored in computer by the processor caller code in electronic equipment In storage medium, it is seen then that the electronic equipment at least includes processor and storage medium.
Fig. 1 realizes schematic flow sheet for a kind of cloud storage method of the embodiment of the present invention, as shown in figure 1, the method includes:
Step S101, N number of file fragment is divided into by file destination;
Here, the electronic equipment can be various types of with information processing capability during specific embodiment Equipment, such as described electronic equipment can be including mobile phone, panel computer, notebook computer, desktop computer etc..
The N is the natural number more than 1.
It is described file destination is divided into N number of file fragment before, can be with it is first determined whether needing the target File is divided.If file destination memory space very little required in itself, again need not be divided file destination. During realization, it is described file destination is divided into N number of file fragment before, methods described also includes:It is determined that described Memory space needed for file destination;Judge the memory space whether more than default first threshold;If the storage is empty Between be more than the first threshold, then file destination is divided into N number of file fragment.
Step S102, each file fragment in respectively described N number of file fragment sets up storage on Cloud Server Store path;
Here, the store path at least identification information including Cloud Server.The store path can also include depositing Store up identification information, the identification information of file of the hard disk in Cloud Server.
Step S103, by each file fragment in N number of file fragment according to respective store path storage to phase In the Cloud Server answered;
Here, in general, electronic equipment supports that multiple files are uploaded simultaneously, therefore can simultaneously by N number of fragment In each file fragment stored in corresponding Cloud Server according to respective store path.In implementation process, can be with Each file fragment is encrypted first, storage so can be protected further in corresponding Cloud Server in the form of ciphertext Demonstrate,prove the safety of file.
In other embodiments of the present invention, N number of file fragment can also be backed up, to realize RAID functions, is entered one Step improves the reliability of cloud storage.
Fig. 2 is the schematic diagram of a scenario of embodiment of the present invention cloud storage, as shown in Fig. 2 electronic equipment 201 draws file destination It is divided into N number of file fragment 202, and this N number of file fragment is uploaded to corresponding cloud service according to respective store path respectively In device 203.There can be multiple file fragments to upload simultaneously in N number of file fragment, improve uploading speed.
In the embodiment of the present invention, file destination is divided into N number of file fragment first;N number of file piece is respectively again Each file fragment in section sets up store path of the storage on Cloud Server, wherein, the store path at least includes cloud The identification information of server;Finally each file fragment in N number of file fragment is stored according to respective store path To in corresponding Cloud Server;In this way, file destination is divided into multiple file fragments, multiple file fragments can simultaneously on Pass, uploading speed is improve, so as to improve system effectiveness.
In other embodiments of the invention, it is described file destination is divided into N number of file fragment before, methods described Also include:The N is determined according to the memory space, the first threshold and default Second Threshold.
Here, the maximum of Second Threshold memory space for needed for default file fragment.
During realization, first, determine the maximum of the file destination division numbers according to formula (1-1) Nmax
In formula (1-1), A is the memory space, Th1It is the first threshold, ceil () is the function that rounds up.
Then, determine the minimum value N of the file destination division numbers according to formula (1-2)min
In formula (1-2), Th2It is the Second Threshold.
Finally, from NminTo NmaxBetween randomly select an integer, the integer is defined as N.
It should be noted that in implementation process, file destination can be divided into N number of size identical file fragment, It is segmented into the N number of file fragment differed in size between first threshold and Second Threshold.
In other embodiments of the present invention, a visual interface can be provided the user, in user input user name and close After code, the quantity for pointing out user input to be divided the file for needing to upload, when the input value of user is not in NminTo NmaxIt Between when, further prompting user re-enter NminTo NmaxBetween integer value.
Embodiment two
The present embodiment provides a kind of cloud storage method, and the method is applied to electronic equipment, what the cloud storage method was realized Function can realize that certain program code can be stored in computer by the processor caller code in electronic equipment In storage medium, it is seen then that the electronic equipment at least includes processor and storage medium.
Fig. 3 realizes schematic flow sheet for embodiment of the present invention another kind cloud storage method, as shown in figure 3, the method bag Include:
Step S301, N number of file fragment is divided into by file destination;
Here, the N is the natural number more than 1.
Step S302, each file fragment in respectively described N number of file fragment sets up storage on Cloud Server Store path;
Here, the store path at least identification information including Cloud Server;
Step S303, by each file fragment in N number of file fragment according to respective store path storage to phase In the Cloud Server answered;
Step S304, by the corresponding N number of store path of the N number of file fragment according to N number of file fragment described The first store path sequence is sequentially generated in file destination;
Here, order of N number of file fragment in the file destination is and for N number of file fragment to synthesize file destination When, the sequence number of the position of each file destination, the sequence number is general since 1.
During realization, the first store path sequence can be a form storage for chained list.
Step S305, the first store path sequence is stored to itself memory space or stored to Cloud Server In;
Here, in implementation process, the first store path sequence can be stored to itself memory space, so may be used With the quick obtaining when file destination is read out to the first store path sequence;Can also be by the first store path sequence In storing the Cloud Server selected according to default selection algorithm.The safety coefficient and access speed of the Cloud Server Default condition need to be met.In this manner it is ensured that the security of the first store path sequence.
In the first store path sequence distinguished into storage value itself memory space and Cloud Server, Quick obtaining to the first store path sequence so can be both ensured, also ensure that security.
Step S306, obtains the first store path sequence of the file destination;
Here, when needing to download the file destination, it is necessary first to get the first store path sequence of file destination.
Step S307, store path in the first store path sequence from corresponding Cloud Server successively under Carry N number of file fragment of file destination;
Step S308, is recombinated N number of file fragment of the file destination according to the first store path sequence, Obtain file destination;
Here, what is obtained from step S307 is N number of scattered file fragment, at this moment needs the N number of file that will be obtained to carry out Sequence, is combined into file destination.Because the first store path sequence is suitable in file destination according to N number of file fragment What sequence was obtained, therefore, N number of file fragment is recombinated according to the order of the first store path sequence can obtain target text Part.
Step S309, the file destination is stored into the caching of itself.
In the embodiment of the present invention, file destination is divided into N number of file fragment first;N number of file piece is respectively again Each file fragment in section sets up store path of the storage on Cloud Server, and will be each in N number of file fragment File fragment is stored in corresponding Cloud Server according to respective store path, afterwards by the corresponding N of the N number of file fragment The first store path sequence that is sequentially generated storage of the individual store path according to N number of file fragment in the file destination Into itself or Cloud Server, so in downloading object file, get first the first store path sequence further according to this One store path sequence obtains N number of file fragment, and then obtains file destination.In this way, file destination is divided into multiple files Fragment, multiple file fragments can be uploaded simultaneously, it is also possible to while downloading, it is possible to increase speed of download is uploaded, so as to improve System effectiveness.
Embodiment three
Based on foregoing embodiment, the present embodiment provides a kind of cloud storage method, and the method is applied to electronic equipment, the cloud The function that storage method is realized can be realized by the processor caller code in electronic equipment, certain program code Can be stored in computer-readable storage medium, it is seen then that the electronic equipment at least includes processor and storage medium.
Fig. 4 is that the embodiment of the present invention another cloud storage method realizes schematic flow sheet, as shown in figure 4, the method bag Include:
Step S401, receiving user is used to close the instruction of file destination;
Here, before step S401, user has got target text according to the method provided in other embodiment Part, and store the timestamp for being carried in the caching of itself, and in the attribute information of file destination and being stored to during own cache Information.
Step S402, responds the instruction, judge file destination in current file destination and own cache whether phase Together;
Here, when user sends the instruction for closing file destination, electronic equipment can judge current file destination therewith Whether the file destination of preceding storage is identical, that is to say, that, it is necessary to judge whether user is modified to file destination.
If current file destination is different from the file destination in own cache, into step S403;If current File destination it is identical with the file destination in own cache, then terminate flow.
Step S403, it is determined that the file fragment for changing;
Here, show user to file destination if current file destination is different from the file destination in own cache It is modified.Here modification can be to file destination carried out change, delete in perhaps increase content.
Step S404, the file fragment for changing is stored to Cloud Server.
In implementation process, storing the file fragment for changing described in step S404 can be by Cloud Server Following steps are realized:
Whether step S404A, the memory space needed for judging the file fragment for changing is more than second threshold Value;
Here, if the memory space needed for the file fragment for changing is less than or equal to the Second Threshold, Into step S404B;If the memory space needed for the file fragment of the change is more than the Second Threshold, into step S404C。
Step S404B, the file fragment for changing is stored to corresponding according to the store path of this document fragment Cloud Server, terminate flow;
Here, if the memory space needed for the file fragment for changing is less than or equal to the Second Threshold, Storage size needed for showing the file fragment for changing is not above memory space needed for default file fragment Maximum, then directly the file fragment for sending change is stored according to the store path of this document fragment.
Step S404C, M file fragment is divided into by the file fragment for changing;Wherein, the M is more than 1 Natural number;
Here, if the memory space needed for the file fragment for changing is more than the Second Threshold, show Storage size needed for the file fragment for changing exceedes the maximum of memory space needed for default file fragment, that , it is necessary to the file fragment for changing is divided.
Step S404D, each file fragment in respectively described M file fragment sets up depositing on Cloud Server Storage path;
Step S404E, each file fragment in the M file fragment is arrived according to respective store path storage In corresponding Cloud Server.
Step S405, by the store path of each file fragment in the M file fragment according to the M file fragment The second store path sequence is sequentially generated in the file fragment for changing;
Step S406, determines for downloading current target according to the first store path sequence and the second store path sequence 3rd store path sequence of file.
Here, in implementation process, can depositing the file fragment changed in the first store path sequence Storage path replacement is the second store path sequence, obtains the 3rd store path sequence.
In embodiments of the present invention, user is received first is used to close the instruction of file destination;The instruction is then responding to, Judge whether current file destination is identical with file destination in own cache;If current file destination and own cache In file destination it is different, it is determined that the file fragment for changing;The file fragment for changing is stored to cloud service Device.So, in the case where file destination changes (changed), it is not necessary to which whole file destination is uploaded into cloud again Server, but by the file fragment for changing storage to Cloud Server, repetition can be avoided and upload identical file Fragment, so as to improve access speed.
Example IV
The embodiment of the present invention provides a kind of cloud storage device, each included by each unit, each unit included by the device Module, and each submodule included by each module, can be realized by the processor in electronic equipment, can also be led to certainly Specific logic circuit is crossed to realize;During implementation, processor can be central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA) etc..
Fig. 5 is the composition structural representation of embodiment of the present invention cloud storage device, as shown in figure 5, described device 500 includes First division unit 501, first set up the memory cell 503 of unit 502 and first, wherein:
First division unit 501, for file destination to be divided into N number of file fragment, wherein, the N is more than 1 Natural number;
Described first sets up unit 502, and each file fragment for being respectively in N number of file fragment sets up storage Store path on Cloud Server, wherein, the store path at least identification information including Cloud Server;
First memory cell 503, for each file fragment in N number of file fragment to be deposited according to respective Storage path is stored in corresponding Cloud Server.
In other embodiments of the present invention, described device also includes:
First determining unit, the memory space needed for for determining the file destination;
First judging unit, for judging the memory space whether more than default first threshold;
Second division unit, if being more than the first threshold for the memory space, N is divided into by file destination Individual file fragment.
Second determining unit, for determining institute according to the memory space, the first threshold and default Second Threshold State N;Wherein, the maximum of Second Threshold memory space for needed for default file fragment.
In other embodiments of the present invention, described device also includes:
First generation unit, for by the corresponding N number of store path of the N number of file fragment according to N number of file piece Section is sequentially generated the first store path sequence in the file destination;
Second memory cell, for storing to itself memory space or storing to cloud the first store path sequence In server.
In other embodiments of the present invention, described device also includes:
First acquisition unit, the first store path sequence for obtaining the file destination;
Download unit, for the store path in the first store path sequence from corresponding Cloud Server according to N number of file fragment of secondary downloading object file;
Recomposition unit, for being carried out N number of file fragment of the file destination according to the first store path sequence Restructuring, obtains file destination;
3rd memory cell, for the file destination to be stored into the caching of itself.
In other embodiments of the present invention, described device also includes:
Receiving unit, for receiving user for closing the instruction of file destination;
Second judging unit, for responding the instruction, judges the target text in current file destination and own cache Whether part is identical;
3rd determining unit, if different from the file destination in own cache for current file destination, it is determined that hair The file fragment of changing;
4th memory cell, for the file fragment for changing to be stored to Cloud Server.
In other embodiments of the present invention, the 4th memory cell includes:
First judge module, whether the memory space needed for for judging the file fragment for changing is more than described Second Threshold;
First memory module, if for the memory space needed for the file fragment for changing less than or equal to described Second Threshold, then store to corresponding cloud service the file fragment for changing according to the store path of this document fragment Device.
Division module, if being more than second threshold for the memory space needed for the file fragment for changing Value, M file fragment is divided into by the file fragment for changing;Wherein, the M is the natural number more than 1;
Module is set up, each file fragment for being respectively in the M file fragment is set up in Cloud Server Store path;
Second memory module, for by each file fragment in the M file fragment according to respective storage road Footpath is stored in corresponding Cloud Server.
In other embodiments of the present invention, described device also includes:
Second generation unit, for the store path of each file fragment in the M file fragment is individual according to the M File fragment is sequentially generated the second store path sequence in the file fragment for changing;
4th determining unit, for being determined to work as download according to the first store path sequence and the second store path sequence 3rd store path sequence of preceding file destination.
It need to be noted that be:The description of apparatus above embodiment, be with the description of above method embodiment it is similar, With the similar beneficial effect of same embodiment of the method.For the ins and outs not disclosed in apparatus of the present invention embodiment, refer to The description of the inventive method embodiment and understand.
Embodiment five
Based on foregoing embodiment, the embodiment of the present invention provides a kind of electronic equipment, and Fig. 5 sets for embodiment of the present invention electronics Standby composition structural representation, as shown in figure 5, the electronic equipment 600 includes communication interface 601, storage medium 602 and processor 603, wherein the processor 603 is used for:
File destination is divided into N number of file fragment, wherein, the N is the natural number more than 1;
Each file fragment in respectively described N number of file fragment sets up store path of the storage on Cloud Server, Wherein, the store path at least identification information including Cloud Server;
By each file fragment in N number of file fragment according to respective store path storage to corresponding cloud service In device.
In other embodiments of the present invention, the processor is additionally operable to:
Memory space needed for determining the file destination;
Judge the memory space whether more than default first threshold;
If the memory space is more than the first threshold, file destination is divided into N number of file fragment.
In other embodiments of the present invention, the processor is additionally operable to:
The N is determined according to the memory space, the first threshold and default Second Threshold;Wherein, described second Threshold value is the maximum of default file fragment.
In other embodiments of the present invention, the processor is additionally operable to:
By the corresponding N number of store path of the N number of file fragment according to N number of file fragment in the file destination Be sequentially generated the first store path sequence;
The first store path sequence is stored to itself memory space or stored into Cloud Server.
In other embodiments of the present invention, the processor is additionally operable to:
Obtain the first store path sequence of the file destination;
Store path in the first store path sequence downloads target text successively from corresponding Cloud Server N number of file fragment of part;
N number of file fragment of the file destination is recombinated according to the first store path sequence, is obtained target File;
The file destination is stored into the caching of itself.
In other embodiments of the present invention, the processor is additionally operable to:
Receiving user is used to close the instruction of file destination;
The instruction is responded, judges whether current file destination is identical with file destination in own cache;
If current file destination is different from the file destination in own cache, it is determined that the file fragment for changing;
The file fragment for changing is stored to Cloud Server.
In other embodiments of the present invention, described store to Cloud Server the file fragment for changing includes:
Whether the memory space needed for the file fragment changed described in judging is more than the Second Threshold;
If the memory space needed for the file fragment for changing is less than or equal to the Second Threshold, will be described The file fragment for changing is stored to corresponding Cloud Server according to the store path of this document fragment;
If the memory space needed for the file fragment for changing is more than the Second Threshold, become described The file fragment of change is divided into M file fragment;Wherein, the M is the natural number more than 1;
Each file fragment in respectively described M file fragment sets up the store path on Cloud Server;
Each file fragment in the M file fragment is stored to corresponding cloud according to respective store path and is taken In business device.
In other embodiments of the present invention, the processor is additionally operable to:
By the store path of each file fragment in the M file fragment according to the M file fragment in the hair The second store path sequence is sequentially generated in the file fragment of changing;
According to the first store path sequence and the second store path sequence determine for download current file destination Three store path sequences.
It need to be noted that be:Above electronic equipment implements the description of item, is similar, tool with above method description There is same embodiment of the method identical beneficial effect.For the ins and outs not disclosed in electronic equipment embodiment of the present invention, ability The technical staff in domain refer to the description of the inventive method embodiment and understand.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text means relevant with embodiment Special characteristic, structure or characteristic are included at least one embodiment of the present invention.Therefore, occur everywhere in entire disclosure " in one embodiment " or " in one embodiment " not necessarily refers to identical embodiment.Additionally, these specific feature, knots Structure or characteristic can be combined in one or more embodiments in any suitable manner.It should be understood that in various implementations of the invention In example, the size of the sequence number of above-mentioned each process is not meant to the priority of execution sequence, and the execution sequence of each process should be with its work( Can determine with internal logic, the implementation process without tackling the embodiment of the present invention constitutes any restriction.The embodiments of the present invention Sequence number is for illustration only, and the quality of embodiment is not represented.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in the process of key element, method, article or device.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can be by it Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only A kind of division of logic function, can have other dividing mode, such as when actually realizing:Multiple units or component can be combined, or Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion Coupling point each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs of equipment or unit by some interfaces Or communication connection, can be electrical, machinery or other forms.
The above-mentioned unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location;Both a place had been may be located at, it is also possible to be distributed to multiple network lists In unit;Part or all of unit therein can be according to the actual needs selected to realize the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used Being each unit individually as a unit, it is also possible to which two or more units are integrated in a unit;It is above-mentioned Integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in computer read/write memory medium, and the program exists During execution, the step of including above method embodiment is performed;And foregoing storage medium includes:Movable storage device, read-only deposit Reservoir (Read Only Memory, ROM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Or, if the above-mentioned integrated unit of the present invention is to realize in the form of software function module and as independent product When selling or using, it is also possible to which storage is in a computer read/write memory medium.Based on such understanding, the present invention is implemented The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product, The computer software product is stored in a storage medium, including some instructions are used to so that computer equipment (can be with It is personal computer, server or network equipment etc.) perform all or part of each embodiment methods described of the invention. And foregoing storage medium includes:Movable storage device, ROM, magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of cloud storage method, it is characterised in that methods described includes:
File destination is divided into N number of file fragment, wherein, the N is the natural number more than 1;
Each file fragment in respectively described N number of file fragment sets up store path of the storage on Cloud Server, wherein, The store path at least identification information including Cloud Server;
By each file fragment in N number of file fragment according to respective store path storage to corresponding Cloud Server In.
2. the method according to claim 1, it is characterised in that file destination is divided into N number of file fragment described Before, methods described also includes:
Memory space needed for determining the file destination;
Judge the memory space whether more than default first threshold;
If the memory space is more than the first threshold, file destination is divided into N number of file fragment.
3. the method according to claim 1, it is characterised in that methods described also includes:
The corresponding N number of store path of the N number of file fragment is suitable in the file destination according to N number of file fragment Sequence generates the first store path sequence;
The first store path sequence is stored to itself memory space or stored into Cloud Server.
4. the method according to claim 3, it is characterised in that methods described also includes:
Obtain the first store path sequence of the file destination;
Store path in the first store path sequence N of downloading object file successively from corresponding Cloud Server Individual file fragment;
N number of file fragment of the file destination is recombinated according to the first store path sequence, is obtained file destination;
The file destination is stored into the caching of itself.
5. the method according to claim 4, it is characterised in that methods described also includes:
Receiving user is used to close the instruction of file destination;
The instruction is responded, judges whether current file destination is identical with file destination in own cache;
If current file destination is different from the file destination in own cache, it is determined that the file fragment for changing;
The file fragment for changing is stored to Cloud Server.
6. the method according to claim 5, it is characterised in that it is described by the file fragment for changing store to Cloud Server includes:
Whether the memory space needed for the file fragment changed described in judging is more than the Second Threshold;
If the memory space needed for the file fragment for changing is less than or equal to the Second Threshold, by the generation The file fragment of change is stored to corresponding Cloud Server according to the store path of this document fragment.
7. the method according to claim 6, it is characterised in that it is described by the file fragment for changing store to Cloud Server, also includes:
If memory space needed for the file fragment for changing is more than the Second Threshold, changed described File fragment is divided into M file fragment;Wherein, the M is the natural number more than 1;
Each file fragment in respectively described M file fragment sets up the store path on Cloud Server;
By each file fragment in the M file fragment according to respective store path storage to corresponding Cloud Server In.
8. the method according to claim 7, it is characterised in that methods described also includes:
The store path of each file fragment in the M file fragment is become according to the M file fragment described The second store path sequence is sequentially generated in the file fragment of change;
Determined to be deposited for downloading the 3rd of current file destination the according to the first store path sequence and the second store path sequence Storage path sequence.
9. a kind of electronic equipment, it is characterised in that the electronic equipment at least includes:Communication interface, processor and storage medium, Wherein, the processor is used for:
File destination is divided into N number of file fragment, wherein, the N is the natural number more than 1;
Each file fragment in respectively described N number of file fragment sets up store path of the storage on Cloud Server, wherein, The store path at least identification information including Cloud Server;
By each file fragment in N number of file fragment according to respective store path storage to corresponding Cloud Server In.
10. a kind of cloud storage device, it is characterised in that described device includes first dividing, first sets up unit and the first storage Unit, wherein:
First division unit, for file destination to be divided into N number of file fragment, wherein, the N is the nature more than 1 Number;
Described first sets up unit, and each file fragment for being respectively in N number of file fragment sets up storage in cloud clothes Store path on business device, wherein, the store path at least identification information including Cloud Server;
First memory cell, for by each file fragment in N number of file fragment according to respective store path In storing corresponding Cloud Server.
CN201710184330.4A 2017-03-24 2017-03-24 A kind of cloud storage method and device, electronic equipment Pending CN106936917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710184330.4A CN106936917A (en) 2017-03-24 2017-03-24 A kind of cloud storage method and device, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710184330.4A CN106936917A (en) 2017-03-24 2017-03-24 A kind of cloud storage method and device, electronic equipment

Publications (1)

Publication Number Publication Date
CN106936917A true CN106936917A (en) 2017-07-07

Family

ID=59426393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710184330.4A Pending CN106936917A (en) 2017-03-24 2017-03-24 A kind of cloud storage method and device, electronic equipment

Country Status (1)

Country Link
CN (1) CN106936917A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483612A (en) * 2017-08-31 2017-12-15 郑州云海信息技术有限公司 A kind of cloud storage data-privacy guard method and device
CN108667917A (en) * 2018-04-24 2018-10-16 厦门集微科技有限公司 A kind of method, apparatus, computer storage media and terminal for realizing data storage
CN109246221A (en) * 2018-09-21 2019-01-18 上海勋立信息科技有限公司 A kind of data sectional high-speed uploading method, client and the server of multifile
CN112202905A (en) * 2020-10-09 2021-01-08 杭州安恒信息技术股份有限公司 Information storage method, device and equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110276538A1 (en) * 2010-05-06 2011-11-10 The Go Daddy Group, Inc. Cloud storage solution for reading and writing files
CN103166992A (en) * 2011-12-14 2013-06-19 中国电信股份有限公司 Method and system of fast file updating applied to cloud storage
CN103186617A (en) * 2011-12-30 2013-07-03 北京新媒传信科技有限公司 Data storage method and device
CN103227826A (en) * 2013-04-23 2013-07-31 蓝汛网络科技(北京)有限公司 Method and device for transferring file
CN103442037A (en) * 2013-08-09 2013-12-11 华南理工大学 Method for achieving multithreading breakpoint upload of oversized file based on FTP
CN103577503A (en) * 2012-08-10 2014-02-12 鸿富锦精密工业(深圳)有限公司 Cloud file storage system and method
CN103841170A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Cloud storage method and server
CN105610899A (en) * 2015-12-10 2016-05-25 浪潮(北京)电子信息产业有限公司 Text file parallel uploading method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110276538A1 (en) * 2010-05-06 2011-11-10 The Go Daddy Group, Inc. Cloud storage solution for reading and writing files
CN103166992A (en) * 2011-12-14 2013-06-19 中国电信股份有限公司 Method and system of fast file updating applied to cloud storage
CN103186617A (en) * 2011-12-30 2013-07-03 北京新媒传信科技有限公司 Data storage method and device
CN103577503A (en) * 2012-08-10 2014-02-12 鸿富锦精密工业(深圳)有限公司 Cloud file storage system and method
CN103841170A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Cloud storage method and server
CN103227826A (en) * 2013-04-23 2013-07-31 蓝汛网络科技(北京)有限公司 Method and device for transferring file
CN103442037A (en) * 2013-08-09 2013-12-11 华南理工大学 Method for achieving multithreading breakpoint upload of oversized file based on FTP
CN105610899A (en) * 2015-12-10 2016-05-25 浪潮(北京)电子信息产业有限公司 Text file parallel uploading method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483612A (en) * 2017-08-31 2017-12-15 郑州云海信息技术有限公司 A kind of cloud storage data-privacy guard method and device
CN108667917A (en) * 2018-04-24 2018-10-16 厦门集微科技有限公司 A kind of method, apparatus, computer storage media and terminal for realizing data storage
CN109246221A (en) * 2018-09-21 2019-01-18 上海勋立信息科技有限公司 A kind of data sectional high-speed uploading method, client and the server of multifile
CN112202905A (en) * 2020-10-09 2021-01-08 杭州安恒信息技术股份有限公司 Information storage method, device and equipment and computer readable storage medium
CN112202905B (en) * 2020-10-09 2023-02-17 杭州安恒信息技术股份有限公司 Information storage method, device and equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN103023962B (en) The technology of shared medium file
CN106936917A (en) A kind of cloud storage method and device, electronic equipment
US20160132541A1 (en) Efficient implementations for mapreduce systems
CN109308284B (en) Report menu generation method and device, computer equipment and storage medium
CN104699423B (en) The method and apparatus that drive is bound in linux system
US9251187B2 (en) Metadata-driven version management service in pervasive environment
US9280370B2 (en) System structure management device, system structure management method, and program
CN107241344A (en) Intercept method, apparatus and system of the client to the access of hostile network server
US20190205056A1 (en) Transparent data movement between a private cloud and storage ecosystem and another storage system
US20080043774A1 (en) Method, System and Program Product for Determining an Initial Number of Connections for a Multi-Source File Download
CN103780676B (en) File transmission method, device and system
AU2014315668A1 (en) Techniques for server-controlled tiling of location-based information
US20110238729A1 (en) Data storing system using network
CN108322304A (en) The computational methods and device of proof of work, electronic equipment, program and medium
CN110113393A (en) A kind of information push method, device, electronic equipment and medium
CN107667352A (en) File cache and synchronous technology for predictability
CN109634916A (en) File storage and method for down loading, device and storage medium
CN108268275A (en) Software version control method and software version control device
CN105100224A (en) Data transmission method and device
CN109522462A (en) A kind of cloud querying method, device, equipment and storage medium based on block chain
CN107888663A (en) A kind of method of distribution of document, equipment and computer-readable medium
US11269845B1 (en) Techniques to configure media packages
CN104572981B (en) A kind of Webpage method for caching and processing and mobile terminal device
US20130018987A1 (en) Adaptive replication
CN105763616A (en) Resource-downloading method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170707