CN105183585B - Data backup method and device - Google Patents
Data backup method and device Download PDFInfo
- Publication number
- CN105183585B CN105183585B CN201510537364.8A CN201510537364A CN105183585B CN 105183585 B CN105183585 B CN 105183585B CN 201510537364 A CN201510537364 A CN 201510537364A CN 105183585 B CN105183585 B CN 105183585B
- Authority
- CN
- China
- Prior art keywords
- data
- thread
- backed
- backup
- data backup
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004891 communication Methods 0.000 claims description 8
- 238000013481 data capture Methods 0.000 claims description 6
- 238000012163 sequencing technique Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000013500 data storage Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a data backup method and device, relates to the technical field of data storage, and can solve the problem of low data backup efficiency. The data backup method comprises the following steps: acquiring data to be backed up; acquiring resource information of current system resources; determining the number of threads for data backup according to the resource information of the current system resource and the data to be backed up, wherein the number of the threads for data backup is greater than or equal to 2; and uploading the data to be backed up by utilizing the thread for data backup. The method is suitable for the cloud storage technology.
Description
Technical field
The present invention relates to technical field of data storage more particularly to a kind of data back up method and device.
Background technique
With the development of internet technology, more and more data are generated in the electronic equipment that user uses, in order to
Storing data but the use for not influencing electronic equipment, user would generally select local data (such as image, the sound view of desired storage
Frequency file etc.) it is saved in cloud.
It is successively to upload to cloud storage service device according to file for unit when local data is saved in cloud at present.Under and
Primary data upload has to wait for last data upload and completes just to can be carried out.In this process, if certain is primary upper
Biography encounters problems, and the indirect as caused by unstable networks interrupts etc., then the data uploaded need to wait network unimpeded
It could continue to upload later, so that the time that data upload is longer, i.e. the efficiency of data upload is lower.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of data back up method and device, solves the backup of data cloud and upload
The lower problem of efficiency.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
On the one hand, the embodiment of the present invention provides a kind of data back up method, comprising:
Obtain data to be backed up;
Obtain the resource information of current system resource;
According to the resource information of the current system resource and the data to be backed up, the thread for being used for data backup is determined
Item number, wherein the item number of the thread for data backup is greater than or equal to 2;
Carry out the upload of the data to be backed up simultaneously using the thread for data backup.
Alternatively, the acquisition data to be backed up include:
Backup reception data indicates, includes the routing information of the data to be backed up in the data backup instruction;
Data to be backed up corresponding with data backup instruction are obtained according to the routing information.
Alternatively, the resource information of the current system resource includes the CPU (Central of the system
Processing Unit, central processing unit) nucleus number, the resource information according to the current system resource and it is described to
Backup Data determines the item number of the thread for data backup, comprising:
Resource information by reading the current system resource obtains the CPU core number of the system;
It is determined according to the bandwidth of the CPU core number and the data to be backed up corresponding with the CPU core number for data
The item number n of the item number of the thread of backup, the thread for data backup meets following relationship:
2≤n≤m, wherein m, n are integer, and m is the CPU core number.
Alternatively, described to utilize the thread for data backup while carrying out the data to be backed up
Upload include:
The sequencing uploaded in queue is added to according to the data to be backed up successively to distribute the data to be backed up
To the thread for data backup, the upper of the data to be backed up is carried out simultaneously using the thread of the user data backup
It passes;Or
The data to be backed up are divided into data block, wherein the quantity of the data block is used for data backup equal to described
Thread item number, the data block is respectively allocated to be used for the thread of data backup, it is standby to be utilized respectively the user data
The thread of part carries out the upload of the data to be backed up simultaneously.
Alternatively, further, the method also includes:
The data backup progress of the thread for data backup is obtained respectively;
The data backup progress of the display thread for data backup.
Second aspect, the embodiment of the present invention provide a kind of data backup device, comprising:
Data capture unit, for obtaining data to be backed up;
Information acquisition unit, for obtaining the resource information of current system resource;
Determination unit, for the resource information and the data to be backed up according to the current system resource, determination is used for
The item number of the thread of data backup, wherein the item number of the thread for data backup is greater than or equal to 2;
Backup units, the upload for utilizing the thread for being used for data backup while carrying out the data to be backed up.
Alternatively, the data capture unit includes:
Receiving module, backup indicates for receiving data, includes the data to be backed up in the data backup instruction
Routing information;
Module is obtained, for obtaining data to be backed up corresponding with data backup instruction according to the routing information.
Alternatively, the resource information of the current system resource includes the CPU core number of the system, described
Determination unit includes:
Module is obtained, the CPU core number of the system is obtained for the resource information by reading the current system resource;
Determining module, for according to the determination of the bandwidth of the CPU core number and the data to be backed up and the CPU core number pair
The item number n of the item number for the thread for data backup answered, the thread for data backup meets following relationship:
2≤n≤m, wherein m, n are integer, and m is the CPU core number.
Alternatively, the backup units are specifically used for:
The sequencing uploaded in queue is added to according to the data to be backed up successively to distribute the data to be backed up
To the thread for data backup, the upper of the data to be backed up is carried out simultaneously using the thread of the user data backup
It passes;Or
The data to be backed up are divided into data block, wherein the quantity of the data block is used for data backup equal to described
Thread item number, the data block is respectively allocated to be used for the thread of data backup, it is standby to be utilized respectively the user data
The thread of part carries out the upload of the data to be backed up simultaneously.
Alternatively, further, described device further include:
Acquiring unit, for obtaining the data backup progress of the thread for data backup respectively;
Display unit, for showing the data backup progress of the thread for data backup.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, comprising:
Processor, memory, communication interface and bus;
The processor, the memory are connected by the bus with the communication interface and complete mutual lead to
Letter;
The memory stores executable program code;
The processor is run by reading the executable program code stored in the memory can be performed with described
The corresponding program of program code, to be used for:
Obtain data to be backed up;
Obtain the resource information of current system resource;
According to the resource information of the current system resource and the data to be backed up, the thread for being used for data backup is determined
Item number, wherein the item number of the thread for data backup is greater than or equal to 2;
Carry out the upload of the data to be backed up simultaneously using the thread for data backup.
Fourth aspect, the embodiment of the invention also provides a kind of storage mediums, wherein the storage medium is answered for storing
With program, the application program for executing a kind of data back up method of the present invention at runtime.
5th aspect, the embodiment of the invention also provides a kind of application programs, wherein the application program is for running
A kind of Shi Zhihang data back up method of the present invention.
By above description as can be seen that in embodiments of the present invention, obtaining data to be backed up and current system money first
The resource information in source, it is standby for data according to the resource information of current system resource and the data to be backed up determining at least two
Then the thread of part carries out data backup simultaneously using described at least two threads for data backup.Due to utilizing this hair
The scheme of bright embodiment in Backup Data can using this, at least two lines journey carries out simultaneously simultaneously, reduce data upload when
Between, thus the efficiency of data backup can be improved using the scheme of the embodiment of the present invention.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the data back up method of the embodiment of the present invention one;
Fig. 2 is the flow chart of the data back up method of the embodiment of the present invention two;
Fig. 3 is the schematic diagram of the data backup device of the embodiment of the present invention three;
Fig. 4 is the structure chart of the data backup device of the embodiment of the present invention three;
Fig. 5 is the schematic diagram of the electronic equipment of the embodiment of the present invention four.
Specific embodiment
A kind of data back up method of the embodiment of the present invention and device are described in detail with reference to the accompanying drawing.
As shown in Figure 1, the data back up method of the embodiment of the present invention one, comprising:
Step 11 obtains data to be backed up.
In this step, it backup reception data can indicate first, include the number to be backed up in the data backup instruction
According to routing information, such as the store path of the transmission of data to be backed up.Then, it is obtained and the number according to the routing information
Corresponding data to be backed up are indicated according to backup.
Step 12, the resource information for obtaining current system resource.
In embodiments of the present invention, the resource information of the current system resource generally refers to the CPU core number of system, example
Such as four cores.By taking computer as an example, the CPU core number of its system can be obtained by reading the resource information of computer.In general, resource information
It is stored in a configuration file.
Step 13, resource information and the data to be backed up according to the current system resource determine standby for data
The item number of the thread of part, wherein the item number of the thread for data backup is greater than or equal to 2.
In this step, the CPU core number of the system can be obtained by reading the resource information of current system resource, then
The line for data backup corresponding with the CPU core number is determined according to the bandwidth of the CPU core number and the data to be backed up
The item number of journey.Wherein, meet following relationship for the item number n of the thread of data backup:
2≤n≤m, wherein m, n are integer, and m is the CPU core number.
In the specific application process, in the ideal case, it is contemplated that system resource is made full use of, it is described to be used for data backup
The item number of thread can be equal to system CPU nucleus number.But, it is generally the case that due to the idle of system resource and in order to make
It obtains user and observes each system process conveniently, the item number of the thread for data backup determined is usually less than system CPU nucleus number.It is right
For some system, determine that several are used for data backup on the basis of guaranteeing to have at least 2 threads for being used for data backup
Thread be advisable, can be arranged based on experience value.For example, the thread for data backup determined can by taking tetra- core system of CPU as an example
Think 3.
Step 14, the upload for carrying out the data to be backed up simultaneously using the thread for data backup.
It in embodiments of the present invention, can be same using this several threads after the thread item number for data backup has been determined
Shi Jinhang backup.
In this step, can be added to according to the data to be backed up upload sequencing in queue successively will it is described to
Backup Data distributes to the thread for being used for data backup, using the thread of the user data backup carry out simultaneously it is described to
The upload of Backup Data.
For example, the thread for data backup determined can be 3, respectively thread 1 by taking tetra- core system of CPU as an example,
Thread 2, thread 3.Assuming that needing uploading pictures to cloud, the task that data upload in queue is assigned to this three lines
Journey, and three threads upload respective picture simultaneously.Appoint after some thread is transmitted, then for thread distribution is new
Business.
Alternatively, also the data to be backed up can be divided into data block, wherein the quantity of the data block is equal to the use
In the item number of the thread of data backup, the data block is respectively allocated to be used for the thread of data backup, be utilized respectively described
The thread of user data backup carries out the upload of the data to be backed up simultaneously.
It should be noted that can be hung up, when some thread uploads data when something goes wrong then according to predetermined policy
Data to be backed up are assigned to other threads to upload.Predetermined policy can be with are as follows: cannot upload number when thread goes wrong
According to when, remaining data to be uploaded can be evenly distributed in other threads;Or by remaining data to be uploaded according to line
The information such as coding/position of journey, which postpone, to be assigned in next thread.For example, having thread 1,2,3 to upload data, when thread 1 goes out
Problem is showed, then thread 2 and thread 3 can be assigned to the residue data to be backed up for belonging to thread 1;Alternatively, will directly belong to
The residue data to be backed up of thread 1 are assigned to thread 2.By above-mentioned processing mode, resource can be further comprehensively utilized, is improved
The backup efficiency of data.
By above description as can be seen that since the scheme using the embodiment of the present invention can utilize simultaneously in Backup Data
At least two lines journey carries out simultaneously for this, thus compared with prior art, it is standby that data can be improved using the scheme of the embodiment of the present invention
Part efficiency, and the speed of data backup is also faster.
As shown in Fig. 2, the data back up method of the embodiment of the present invention two includes:
Step 21 obtains data to be backed up.
Step 22, the resource information for obtaining current system resource.
Step 23, resource information and the data to be backed up according to the current system resource determine standby for data
The item number of the thread of part, wherein the item number of the thread for data backup is greater than or equal to 2.
Step 24, the upload for carrying out the data to be backed up simultaneously using the thread for data backup.
Step 25, the data backup progress for obtaining the thread for data backup respectively, display is described to be used for data
The data backup progress of the thread of backup.
By taking the example in embodiment one as an example, the progress of thread 1,2,3 can be obtained respectively, and using the form of progress bar
Show the progress of each process.
Wherein the description of step 21-24 shown in Fig. 2 can refer to the description of preceding method embodiment.
By above description as can be seen that since the scheme using the embodiment of the present invention can utilize simultaneously in Backup Data
At least two lines journey carries out simultaneously for this, thus compared with prior art, it is standby that data can be improved using the scheme of the embodiment of the present invention
The efficiency of part;System and Internet resources, the speed of data backup are preferably utilized using the scheme of the embodiment of the present invention simultaneously
Faster.
As shown in figure 3, the device of the data backup of the embodiment of the present invention three, comprising:
Data capture unit 31, for obtaining data to be backed up;Information acquisition unit 32, for obtaining current system resource
Resource information;Determination unit 33 is determined for the resource information and the data to be backed up according to the current system resource
The item number of thread for data backup, wherein the item number of the thread for data backup is greater than or equal to 2;Backup units
34, the upload for utilizing the thread for being used for data backup while carrying out the data to be backed up.
Wherein, the data capture unit 31 includes: receiving module, and backup instruction, the data are standby for receiving data
It include the routing information of the data to be backed up in part instruction;Obtain module, for according to the routing information obtain with it is described
Data backup indicates corresponding data to be backed up.
As previously mentioned, the resource information of the current system resource includes the CPU core number of the system.In view of system provides
Source making full use of and limiting, and the number of the thread for data backup is less than or equal to the nucleus number of the CPU.At this point, institute
Stating determination unit 33 includes: acquisition module, obtains the system for the resource information by reading the current system resource
CPU core number;Determining module, for according to the determination of the bandwidth of the CPU core number and the data to be backed up and the CPU core number
The item number n of the item number of the corresponding thread for data backup, the thread for data backup meets following relationship: 2≤n
≤ m, wherein m, n are integer, and m is the CPU core number.
Specifically, the backup units 34 are specifically used for: being added to the elder generation uploaded in queue according to the data to be backed up
The data to be backed up are successively distributed to the thread for being used for data backup by sequence afterwards, utilize the user data backup
Thread carries out the upload of the data to be backed up simultaneously;Or the data to be backed up are divided into data block, wherein the number
It is equal to the item number of the thread for data backup according to the quantity of block, is respectively allocated to the data block to be used for data backup
Thread, be utilized respectively the thread of the user data backup while carrying out the upload of the data to be backed up.
In addition, in order to enable user adequately understands the progress of each process, as shown in figure 4, described device further include: obtain
Unit 33, for obtaining the data backup progress of the thread for data backup respectively;Display unit 34, for showing
State the data backup progress of the thread for data backup.
Wherein, the working principle of the device of that embodiment of the invention can refer to the description of preceding method embodiment.
By above description as can be seen that since the scheme using the embodiment of the present invention can utilize simultaneously in Backup Data
At least two lines journey carries out simultaneously for this, thus compared with prior art, it is standby that data can be improved using the scheme of the embodiment of the present invention
The efficiency of part;System and Internet resources, the speed of data backup are preferably utilized using the scheme of the embodiment of the present invention simultaneously
Faster.
As shown in figure 5, the embodiment of the present invention four additionally provides a kind of electronic equipment, comprising:
Processor 41, memory 42, communication interface 43 and bus 44;
The processor 41, the memory 42 and the communication interface 43 are connected by the bus 44 and are completed mutually
Between communication;
The memory 42 stores executable program code;
The processor 41 is held to run with described by reading the executable program code stored in the memory
The corresponding program of line program code, to be used for:
Obtain data to be backed up;
Obtain the resource information of current system resource;
According to the resource information of the current system resource and the data to be backed up, the thread for being used for data backup is determined
Item number, wherein the item number of the thread for data backup is greater than or equal to 2;
Carry out the upload of the data to be backed up simultaneously using the thread for data backup.
The embodiment of the invention also provides a kind of storage mediums, wherein the storage medium is for storing application program, institute
Application program is stated for executing a kind of data back up method of the present invention at runtime.
The embodiment of the invention also provides a kind of application programs, wherein the application program for executing sheet at runtime
A kind of invention data back up method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist
Implement to realize each unit/module function in the same or multiple software and or hardware when the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence
On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product
It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention
Method described in part.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (9)
1. a kind of data back up method characterized by comprising
Obtain data to be backed up;
Obtain the resource information of current system resource;
According to the resource information of the current system resource and the data to be backed up, the item of the thread for data backup is determined
Number, wherein the item number of the thread for data backup is greater than or equal to 2;
Carry out the upload of the data to be backed up simultaneously using the thread for data backup;
The resource information of the current system resource includes the CPU core number of the system, described according to the current system resource
Resource information and the data to be backed up, determine for data backup thread item number, comprising:
Resource information by reading the current system resource obtains the CPU core number of the system;
It is determined according to the bandwidth of the CPU core number and the data to be backed up corresponding with the CPU core number for data backup
Thread item number, the item number n of the thread for data backup meets following relationship:
2≤n≤m, wherein m, n are integer, and m is the CPU core number;
When some thread upload data when something goes wrong, hung up, be then assigned to data to be backed up according to predetermined policy
Other threads are uploaded;The predetermined policy are as follows:, will be remaining to be uploaded when thread, which goes wrong, to upload data
Data are evenly distributed in other threads;Or remaining data to be uploaded are postponed point according to coding/location information of thread
It is fitted in next thread.
2. the method according to claim 1, wherein the acquisition data to be backed up include:
Backup reception data indicates, includes the routing information of the data to be backed up in the data backup instruction;
Data to be backed up corresponding with data backup instruction are obtained according to the routing information.
3. the method according to claim 1, wherein it is described utilize the thread for data backup simultaneously into
The upload of the row data to be backed up includes:
The data to be backed up are successively distributed into institute according to the sequencing that the data to be backed up are added in upload queue
The thread for data backup is stated, carries out the upload of the data to be backed up simultaneously using the thread for data backup;
Alternatively,
The data to be backed up are divided into data block, wherein the quantity of the data block is equal to the line for being used for data backup
The data block is respectively allocated to be used for the thread of data backup by the item number of journey, is utilized respectively described for data backup
Thread carries out the upload of the data to be backed up simultaneously.
4. method according to claim 1 to 3, which is characterized in that the method also includes:
The data backup progress of the thread for data backup is obtained respectively;
The data backup progress of the display thread for data backup.
5. a kind of data backup device characterized by comprising
Data capture unit, for obtaining data to be backed up;
Information acquisition unit, for obtaining the resource information of current system resource;
Determination unit determines for the resource information and the data to be backed up according to the current system resource and is used for data
The item number of the thread of backup, wherein the item number of the thread for data backup is greater than or equal to 2;
Backup units, the upload for utilizing the thread for being used for data backup while carrying out the data to be backed up;
The resource information of the current system resource includes the CPU core number of the system, and the determination unit includes:
Module is obtained, the CPU core number of the system is obtained for the resource information by reading the current system resource;
Determining module, for corresponding with the CPU core number according to the determination of the bandwidth of the CPU core number and the data to be backed up
The item number n of the item number of thread for data backup, the thread for data backup meets following relationship:
2≤n≤m, wherein m, n are integer, and m is the CPU core number;
When some thread upload data when something goes wrong, hung up, be then assigned to data to be backed up according to predetermined policy
Other threads are uploaded;The predetermined policy are as follows:, will be remaining to be uploaded when thread, which goes wrong, to upload data
Data are evenly distributed in other threads;Or remaining data to be uploaded are postponed point according to coding/location information of thread
It is fitted in next thread.
6. device according to claim 5, which is characterized in that the data capture unit includes:
Receiving module, backup indicates for receiving data, includes the path of the data to be backed up in the data backup instruction
Information;
Module is obtained, for obtaining data to be backed up corresponding with data backup instruction according to the routing information.
7. device according to claim 5, which is characterized in that the backup units are specifically used for:
The data to be backed up are successively distributed into institute according to the sequencing that the data to be backed up are added in upload queue
The thread for data backup is stated, carries out the upload of the data to be backed up simultaneously using the thread for data backup;
Or
The data to be backed up are divided into data block, wherein the quantity of the data block is equal to the line for being used for data backup
The data block is respectively allocated to be used for the thread of data backup by the item number of journey, is utilized respectively described for data backup
Thread carries out the upload of the data to be backed up simultaneously.
8. according to any device of claim 5-7, which is characterized in that described device further include:
Acquiring unit, for obtaining the data backup progress of the thread for data backup respectively;
Display unit, for showing the data backup progress of the thread for data backup.
9. a kind of electronic equipment, comprising:
Processor, memory, communication interface and bus;
The processor, the memory are connected by the bus with the communication interface and complete mutual communication;
The memory stores executable program code;
The processor is run and the executable program by reading the executable program code stored in the memory
The corresponding program of code, to be used for:
Obtain data to be backed up;
Obtain the resource information of current system resource;
According to the resource information of the current system resource and the data to be backed up, the item of the thread for data backup is determined
Number, wherein the item number of the thread for data backup is greater than or equal to 2;
Carry out the upload of the data to be backed up simultaneously using the thread for data backup;
The resource information of the current system resource includes the CPU core number of the system, described according to the current system resource
Resource information and the data to be backed up, determine for data backup thread item number, comprising:
Resource information by reading the current system resource obtains the CPU core number of the system;
It is determined according to the bandwidth of the CPU core number and the data to be backed up corresponding with the CPU core number for data backup
Thread item number, the item number n of the thread for data backup meets following relationship:
2≤n≤m, wherein m, n are integer, and m is the CPU core number;
When some thread upload data when something goes wrong, hung up, be then assigned to data to be backed up according to predetermined policy
Other threads are uploaded;The predetermined policy are as follows:, will be remaining to be uploaded when thread, which goes wrong, to upload data
Data are evenly distributed in other threads;Or remaining data to be uploaded are postponed point according to coding/location information of thread
It is fitted in next thread.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510537364.8A CN105183585B (en) | 2015-08-27 | 2015-08-27 | Data backup method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510537364.8A CN105183585B (en) | 2015-08-27 | 2015-08-27 | Data backup method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105183585A CN105183585A (en) | 2015-12-23 |
CN105183585B true CN105183585B (en) | 2019-03-26 |
Family
ID=54905679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510537364.8A Expired - Fee Related CN105183585B (en) | 2015-08-27 | 2015-08-27 | Data backup method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105183585B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106569917B (en) * | 2016-11-07 | 2020-06-16 | Oppo广东移动通信有限公司 | Data backup method and mobile terminal |
CN107145409A (en) * | 2017-05-31 | 2017-09-08 | 广州鼎甲计算机科技有限公司 | A kind of method of file multichannel backup |
CN109783275A (en) * | 2018-12-17 | 2019-05-21 | 北京春鸿科技有限公司 | The method and terminal of file backup are carried out to multiple wifi storage equipment |
CN110806953A (en) * | 2019-11-07 | 2020-02-18 | 中国联合网络通信集团有限公司 | Backup method and device |
CN113467996B (en) * | 2021-07-08 | 2024-04-19 | 咪咕音乐有限公司 | Database backup method, device, computer equipment and storage medium |
CN113434344A (en) * | 2021-07-22 | 2021-09-24 | 咪咕数字传媒有限公司 | File storage method and device, computing equipment and computer storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103064760A (en) * | 2012-12-19 | 2013-04-24 | 华为技术有限公司 | Backup method and backup device |
CN103092840A (en) * | 2011-10-28 | 2013-05-08 | 上海邮电设计咨询研究院有限公司 | Method for acquiring self-increment mass data files from multiple sources |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9152643B2 (en) * | 2012-12-21 | 2015-10-06 | Zetta Inc. | Distributed data store |
-
2015
- 2015-08-27 CN CN201510537364.8A patent/CN105183585B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092840A (en) * | 2011-10-28 | 2013-05-08 | 上海邮电设计咨询研究院有限公司 | Method for acquiring self-increment mass data files from multiple sources |
CN103064760A (en) * | 2012-12-19 | 2013-04-24 | 华为技术有限公司 | Backup method and backup device |
Also Published As
Publication number | Publication date |
---|---|
CN105183585A (en) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105183585B (en) | Data backup method and device | |
US11018979B2 (en) | System and method for network slicing for service-oriented networks | |
US9501318B2 (en) | Scheduling and execution of tasks based on resource availability | |
US9805140B2 (en) | Striping of directed graphs and nodes with improved functionality | |
US8434085B2 (en) | Scalable scheduling of tasks in heterogeneous systems | |
CN102752388B (en) | Interactive system based on browser, method, browser and cloud server | |
US20180018197A1 (en) | Virtual Machine Resource Allocation Method and Apparatus | |
CN104572301B (en) | A kind of resource allocation methods and system | |
CN103763343A (en) | Method and device for processing service access | |
CN111694646A (en) | Resource scheduling method and device, electronic equipment and computer readable storage medium | |
CN107515786A (en) | Resource allocation methods, master device, from device and distributed computing system | |
US20220174100A1 (en) | System and method for grouping participant devices in a communication environment | |
CN104683408A (en) | Method and system for OpenStack cloud computing management platform to build virtual machine instance | |
CN109491788A (en) | A kind of virtual platform implementation of load balancing and device | |
CN108234242A (en) | A kind of method for testing pressure and device based on stream | |
CN106059940A (en) | Flow control method and device | |
CN108153494B (en) | A kind of I/O request processing method and processing device | |
CN103152212B (en) | A kind of alarm correlation analysis method, device and network management system | |
US20160342899A1 (en) | Collaborative filtering in directed graph | |
CN109032979A (en) | Document transmission method, device, equipment and storage medium between a kind of BMC | |
CN103338159B (en) | Polling dispatching implementation method and device | |
US8954974B1 (en) | Adaptive lock list searching of waiting threads | |
CN109491807A (en) | Data exchange method, device and system | |
CN109510774B (en) | Method for realizing flow control in data synchronization process | |
Caraccio et al. | Joint Stationary Distribution Of Queues In Homogenous M| M| 3 Queue With Resequencing. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190326 |