CN101853194A - Data backup method - Google Patents

Data backup method Download PDF

Info

Publication number
CN101853194A
CN101853194A CN200910131148A CN200910131148A CN101853194A CN 101853194 A CN101853194 A CN 101853194A CN 200910131148 A CN200910131148 A CN 200910131148A CN 200910131148 A CN200910131148 A CN 200910131148A CN 101853194 A CN101853194 A CN 101853194A
Authority
CN
China
Prior art keywords
data
backup
folder
difference
target data
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.)
Granted
Application number
CN200910131148A
Other languages
Chinese (zh)
Other versions
CN101853194B (en
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.)
Wistron Corp
Original Assignee
Wistron Corp
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 Wistron Corp filed Critical Wistron Corp
Priority to CN2009101311488A priority Critical patent/CN101853194B/en
Publication of CN101853194A publication Critical patent/CN101853194A/en
Application granted granted Critical
Publication of CN101853194B publication Critical patent/CN101853194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a data backup method, specifically comprising the following steps: generating a target folder and a difference list between the backup folders when a backup instruction which is used for backing up the target folder to the backup folder is received; calculating a difference proportion that at least one difference data of the difference list occupies the target holder; judging whether the difference proportion is more than a specific proportion; overwriting at least one target data of the target folder to the backup folder when the difference proportion is more than the above special proportion; backing up the target folder to the backup folder; and when the difference proportion is not more than the special proportion, utilizing a difference backup program to back up the target folder to the backup folder. The data backup method of the invention overwrites the data in the target folder to the backup folder, saves time and system resources needed in finding modified data, also can utilize the differentiated backup program, and saves the time and system resources in backing up the unmodified data.

Description

Data back up method
Technical field
The present invention relates to a kind of data back up method, and particularly relate to a kind of method that backs up according to data unusual fluctuation ratio.
Background technology
Along with day by day popularizing of computing machine, it is also huge day by day thereupon that the common people are stored in the data volume of computing machine.Yet when the hardware and software failure of the damage of operating system damage, hard disk or other computing machines produced, regular meeting made previous stored mass data commit to the flames.In addition, during for the relevant data of operating system work, the user need reinstall and the setting operation system, thereby causes user's puzzlement in the data of being damaged.
Therefore, generally can in advance data be backuped, in the data damage, just can utilize previous backed up data that computing machine is done homing action then.Wherein, prior art be by with data storing to other storage areas, to finish data backup.When the desire backed up data has change, just need the data after changing are override (overwrite) again to the storage area that backs up usefulness, to upgrade institute's backed up data.Yet, generally only can change the minority partial data.If therefore override all data again to backup, waste system resource and execution time override in order to the data to repetition and not change.
So, prior art with data by network backup during to other hard disks, can utilize an otherness stand-by program (as rsync) and only will have the data of change to back up again.Yet, be compared to the backup method that before directly overrides the whole part of data after the change, because the otherness stand-by program need be found out the piece that changed on the data, thereby need expend more system resources.In addition, the part of changing in data more for a long time, utilization variance stand-by program spent time that backups override the spent time much larger than previous directly making of the data after the whole part of change especially.
Summary of the invention
Therefore, a purpose of the present invention is in that a kind of data back up method is provided, and in order to the ratio according to the data unusual fluctuation, uses different mode Backup Datas.When the ratio of changing in data is higher than a special ratios, then directly all data are override to backup space to backup.On the contrary, when the ratio of data change is not higher than above-mentioned special ratios,, and only will there be the data of change to back up again then by an otherness stand-by program.
According to one embodiment of the invention, a kind of data back up method comprises following steps: produce the difference inventory between destination folder and the backup file folder when a destination folder (target folder) being backed up to a backup instruction of backup file folder (backup folder) receiving.At least one variance data of calculated difference inventory accounts for a difference ratio of destination folder.Judge that whether the difference ratio is greater than a special ratios.In the difference ratio during, at least one target data of destination folder is override to the backup file folder, destination folder is backed up to this backup file folder greater than above-mentioned special ratios.When the difference ratio is not more than special ratios,, destination folder is backed up to the backup file folder by an otherness stand-by program.
Use the present invention and have following advantage.When the change ratio of the data in destination folder to back up is higher, directly the data in the destination folder are override, find out the time and the system resource of the required cost of data of change with saving to backup file folder in order to backup.When the change ratio of the data in destination folder to back up is low, utilization variance stand-by program then, only backup has the data of change, to save the time and the system resource of the required cost of data that other major parts of backup do not change.
Description of drawings
For above-mentioned and other purposes of the present invention, feature, advantage and embodiment can be become apparent, appended the description of the drawings is as follows:
Fig. 1 illustrates the process flow diagram according to a kind of data back up method of an embodiment of the present invention.
Fig. 2 is an embodiment of step 120 among Fig. 1.
The primary clustering symbol description:
100: data back up method
110~160: step
Embodiment
Please refer to Fig. 1, it illustrates the process flow diagram according to a kind of data back up method of an embodiment of the present invention.Data back up method uses different mode Backup Datas according to the ratio of data unusual fluctuation.When the ratio of changing in data is higher than a special ratios, then directly all data are override to backup space to backup.On the contrary, when the ratio of data change is not higher than above-mentioned special ratios,, and only will there be the data of change to back up again then by an otherness stand-by program.Data back up method 100 comprises following steps:
Produce the difference inventory (step 120) between destination folder and the backup file folder when a destination folder being backed up to a backup instruction (step 110) of backup file folder receiving.Wherein, under (SuSE) Linux OS during application data backup method 100, produce the dry-run that difference inventory (step 120) can utilize rsync, simulation is sent to the backup file folder with at least one target data of destination folder, need the list of transmission to obtain, as the difference inventory because of not being present in the backup file folder.Yet, in other embodiments, still can produce difference inventory (step 120) by additive method.
In step 130, at least one variance data of calculated difference inventory accounts for a difference ratio of destination folder.Wherein, step 130 can be by the summation of the size of asking all differences data, to obtain an accumulative total difference size of difference inventory.Then, just can will add up the size of difference size, and calculate difference ratio (step 130) divided by destination folder.
In step 140, judge that whether the difference ratio is greater than a special ratios.Wherein, under (SuSE) Linux OS, during application data backup method 100, special ratios can be made as 0.4.Yet, in other embodiments, still can be according to different demands, and set corresponding special ratios.
In the difference ratio during, at least one target data of destination folder is override to backup file folder (step 150) greater than special ratios.Wherein, under (SuSE) Linux OS, during application data backup method 100, can utilize the cp instruction of (SuSE) Linux OS that target data is override to backup file folder (step 150).Thus, in the time of can differing greatly between destination folder and backup file folder, directly the target data with destination folder overrides to the backup file folder, finds out the time and the system resource of the required cost of data of change with saving.
Yet, when the difference ratio is not more than special ratios, utilize an otherness stand-by program, destination folder is backed up to backup file folder (step 160).Wherein, under (SuSE) Linux OS, during application data backup method 100, can use rsync as the otherness stand-by program.Yet, in other embodiments, still can will the data backup of change be arranged in the destination folder by other otherness stand-by programs to backup file folder (step 160).Thus, can be between destination folder and backup file folder difference hour, the utilization variance stand-by program, only backup has the data of change, to save the time and the system resource of the required cost of data that other major parts of backup do not change.
Please refer to Fig. 2, it is an embodiment of step 120 among Fig. 1.The difference inventory (step 120) that produces between destination folder and the backup file folder can comprise following steps:
In step 121, judge whether at least one target data of destination folder is present in the backup file folder.When target data is not present in the backup file folder, target data is added difference inventory (step 122).Thus, just the data that do not back up to the backup file folder as yet can be added the difference inventory.
In addition, can be present in backup file when folder, the Backup Data of corresponding target data whether identical (step 123) in judging above-mentioned target data and backup file pressing from both sides in target data.Wherein, can judge target data and Backup Data whether identical (step 123) by verification and (checksum).In addition, also can be by the comparison information of target data and the information of Backup Data, to judge target data and Backup Data whether identical (step 123).Wherein, the information in order to comparison can be the target data information relevant with Backup Data with modification time, file size or other target datas of Backup Data.
When target data is different from pairing Backup Data, target data is added difference inventory (step 122).When target data is identical with pairing Backup Data, then target data is not added difference inventory (step 124).Thus, can will the data of changing be arranged in the destination folder, add the difference inventory.
By the invention described above embodiment as can be known, use the present invention and have following advantage.When the change ratio of the data in destination folder to back up is higher, directly the data in the destination folder are override, find out the time and the system resource of the required cost of data of change with saving to backup file folder in order to backup.When the change ratio of the data in destination folder to back up is low, utilization variance stand-by program then, only backup has the data of change, to save the time and the system resource of the required cost of data that other major parts of backup do not change.In addition, when application the present invention carried out the backup of this machine, destination folder and backup file folder were positioned at same computing machine.Therefore, the bus or the transmission interface transmission data of fast speed can be arranged on the one hand by these facility, the data in the destination folder be override to the execution time of backup file folder and reduce.On the other hand, when only the ratio of changing in data was hanged down, the utilization variance stand-by program backuped, and can reduce and carry out otherness required this machine system resource and the execution time of expending of stand-by program.As from the foregoing, the computing machine that the present invention is short of applicable to system resource, (Network Attached Storage NAS), does the backup of this machine as the network attached storage device.
Though the present invention with embodiment openly as above; yet it is not in order to limit the present invention; any those skilled in the art; without departing from the spirit and scope of the present invention; should be used for a variety of modifications and variations, so protection scope of the present invention is when looking being as the criterion that the appending claims scope defined.

Claims (11)

1. data back up method may further comprise the steps:
Produce the difference inventory between described destination folder and the described backup file folder when a destination folder being backed up to a backup instruction of backup file folder receiving;
At least one variance data of calculating described difference inventory accounts for a difference ratio of described destination folder;
Judge that whether described difference ratio is greater than a special ratios;
In described difference ratio during, at least one target data of destination folder is override to described backup file folder, described destination folder is backed up to described backup file folder greater than described special ratios; And
When described difference ratio is not more than described special ratios, utilize an otherness stand-by program, described destination folder is backed up to described backup file folder.
2. data back up method as claimed in claim 1, the step that wherein produces described difference inventory comprises:
Whether described at least one target data of judging described destination folder is present in described backup file folder; And
When described at least one target data is not present in described backup file folder, described at least one target data is added described difference inventory.
3. data back up method as claimed in claim 2, the step that wherein produces described difference inventory also comprises:
When described at least one target data had been present in described backup file folder, whether described at least one Backup Data of corresponding described at least one target data was identical in judging described at least one target data and described backup file pressing from both sides; And
When described at least one target data is different from described at least one Backup Data, described at least one target data is added described difference inventory.
4. data back up method as claimed in claim 3, wherein judge described at least one target data and described at least one Backup Data whether identical step be by verification and.
5. data back up method as claimed in claim 3 judges wherein whether identical step is by the information of the described at least one target data of comparison and the information of described at least one Backup Data for described at least one target data and described at least one Backup Data.
6. data back up method as claimed in claim 1, the step that wherein produces described difference inventory are to utilize the dry-run of rsync.
7. data back up method as claimed in claim 1, the step of wherein calculating described difference ratio comprises:
Ask the summation of size of described at least one variance data of described difference inventory, to obtain an accumulative total difference size of described difference inventory; And
With the size of described accumulative total difference size, and calculate described difference ratio divided by described destination folder.
8. data back up method as claimed in claim 1, wherein said destination folder and described backup file folder are to be arranged in same computing machine.
9. data back up method as claimed in claim 1, wherein described at least one target data being override to the step of described backup file folder is to utilize the cp instruction of (SuSE) Linux OS.
10. data back up method as claimed in claim 1, wherein said otherness stand-by program is rsync.
11. data back up method as claimed in claim 1, wherein said special ratios are 0.4.
CN2009101311488A 2009-04-03 2009-04-03 Data backup method Active CN101853194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101311488A CN101853194B (en) 2009-04-03 2009-04-03 Data backup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101311488A CN101853194B (en) 2009-04-03 2009-04-03 Data backup method

Publications (2)

Publication Number Publication Date
CN101853194A true CN101853194A (en) 2010-10-06
CN101853194B CN101853194B (en) 2011-12-14

Family

ID=42804700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101311488A Active CN101853194B (en) 2009-04-03 2009-04-03 Data backup method

Country Status (1)

Country Link
CN (1) CN101853194B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399888A (en) * 2013-07-19 2013-11-20 广东电网公司电力科学研究院 Differential synchronization method and system for power grid model data
CN104679612A (en) * 2015-03-09 2015-06-03 陈健强 Automatic backup and restoration method and automatic backup and restoration system for files
CN106547648A (en) * 2016-10-21 2017-03-29 杭州嘉楠耘智信息科技有限公司 Backup data processing method and device
CN111721823A (en) * 2020-07-22 2020-09-29 广西大学 Plant nutrient real-time detection system based on electrophoresis microfluidic technology

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960612B (en) * 2019-03-07 2021-01-05 腾讯科技(深圳)有限公司 Method, device and server for determining data storage ratio

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756833B2 (en) * 2004-09-22 2010-07-13 Microsoft Corporation Method and system for synthetic backup and restore
CN101051285A (en) * 2006-09-21 2007-10-10 上海交通大学 File matching method in computer network data backup

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399888A (en) * 2013-07-19 2013-11-20 广东电网公司电力科学研究院 Differential synchronization method and system for power grid model data
CN103399888B (en) * 2013-07-19 2016-08-10 广东电网有限责任公司电力科学研究院 The differential synchronization method of grid model data and system
CN104679612A (en) * 2015-03-09 2015-06-03 陈健强 Automatic backup and restoration method and automatic backup and restoration system for files
CN106547648A (en) * 2016-10-21 2017-03-29 杭州嘉楠耘智信息科技有限公司 Backup data processing method and device
CN111721823A (en) * 2020-07-22 2020-09-29 广西大学 Plant nutrient real-time detection system based on electrophoresis microfluidic technology

Also Published As

Publication number Publication date
CN101853194B (en) 2011-12-14

Similar Documents

Publication Publication Date Title
CN101853194B (en) Data backup method
US10817386B2 (en) Virtual machine recovery method and virtual machine management device
CN106354583B (en) A kind of heat backup method and system of MySQL database
CN103176864B (en) A kind of backup method based on Android system, device and mobile terminal
CN104838365A (en) Methods and systems for provisioning bootable image on to external drive
US20100049932A1 (en) Method and apparatus for automatic snapshot
CN102521289B (en) File synchronization method, device and system
CN104778102A (en) Master-slave switching method and system
CN101777014A (en) Backup processing method and device
CN102193813A (en) Embedded type virtualized quick start method and system
CN102541685A (en) Linux system backup method and Linux system repair method
CN103678036A (en) Backup method based on virtual machine operation information data finding
CN104572354A (en) Backup and restoration method for operating system based on restoration service and equipment thereof
CN103902302A (en) Software installation system and method for virtual machine
CN103037076A (en) State backup reduction method and device of mobile terminal
US20130074073A1 (en) Virtual machine
CN112579361B (en) Backup data reconstruction method, device, equipment and storage medium
US8972353B1 (en) System and method of enhanced backup and recovery configuration
US20070198822A1 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
CN112333008B (en) Cloud host complete machine backup and restoration method, device, equipment and storage medium
CN106293535B (en) NAS performance optimization method and device
CN112306745B (en) Backup method and device and storage medium
CN111414240A (en) Kernel-state process copying method and device and container expansion method and device
CN109710377A (en) A method of restoring kvm virtual machine in the distributed storage of failure
CN101425029A (en) System file reducing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant