CN105893182A - Backup method for data in hard disk - Google Patents
Backup method for data in hard disk Download PDFInfo
- Publication number
- CN105893182A CN105893182A CN201610192183.0A CN201610192183A CN105893182A CN 105893182 A CN105893182 A CN 105893182A CN 201610192183 A CN201610192183 A CN 201610192183A CN 105893182 A CN105893182 A CN 105893182A
- Authority
- CN
- China
- Prior art keywords
- data
- backup area
- district
- backup
- area
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention relates to a backup method for data in a hard disk. The backup method comprises the steps that the hard disk is provided with a main storage area, a first backup area and a second backup area; the main storage area is checked before data storage, wherein if the main storage area is in a good condition, data is stored in the main storage area, and backup is carried out in the backup areas; if the main storage area is partially damaged, the remaining capacity of the undamaged part is confirmed, the data is stored in the undamaged part in the main storage area if the remaining capacity is larger than the capacity of the data to be stored, and meanwhile backup is carried out in the backup areas; if the remaining capacity is smaller than the capacity of the data to be stored, the data is stored into the first backup area and the second backup area; if the main storage area is completely damaged, the data is stored into the first backup area and the second backup area. According to the scheme, the consistency and effectiveness of the data in all the areas are ensured by setting the double backup areas in the single hard disk and combining multiple times of regular self-checking, so that the anti-losing capability of data is improved, and the safety, stability and reliability of the data in the hard disk are improved.
Description
Technical field
The present invention relates to a kind of method for hard disc data is backed up.
Background technology
Along with the arriving of big data age, the rapid expansion of user group, user to the stability of data,
The requirement of reliability and safety is more and more higher.At present, conventional hard disk includes that mechanical hard disk and solid-state are hard
Dish, mechanical hard disk is owing to easily being affected by temperature, vibration and read-write error occurred, and solid state hard disc is certainly
The restriction of erasable number of times and bad block rate that body is intrinsic also result in read-write error.Although hard disk self has error correction
Function, but it can only correct the mistake less wrong data of figure place by self error correction algorithm, and therefore it entangles
Wrong ability is extremely limited.
In the prior art, there are some relatively new methods to may be used for protection and Backup Data, prevent
It is lost because of hard disk corruptions, but these method complex operations, the requirement to hard disk self is high, and protection
Relatively costly.
Summary of the invention
In place of the deficiencies in the prior art, it is an object of the invention to provide a kind of for hard disc data
The method carrying out backing up, it can give data multiple protective, provide safe and stable, reliable for data
Storage condition.
Technical scheme is summarized as follows:
A kind of method for hard disc data is backed up, comprising:
Single hard disk is carried out subregion, is respectively set as hosting district, the first backup area and the second backup area;
Before storage data, check hosting district:
If it is intact to host district, then store data in main memory district, and the most standby at the first backup area and second
Part carries out automated back-up in district;
If hosting district's partial destruction, then recording the physical address of broken parts, confirming the surplus of non-broken parts
Covolume amount, if the residual capacity of non-broken parts is more than treating deposit data capacity, then stores data in main memory
Unspoiled part in district, carries out automated back-up in the first backup area and the second backup area simultaneously;If not
The residual capacity of broken parts less than treating deposit data capacity, then stores data in the first backup area, with
Time in the second backup area, carry out automated back-up;
If hosting district all to damage, then storing data in the first backup area, entering at the second backup area simultaneously
Row automated back-up.
Preferably, the described method being used for hard disc data is backed up, wherein, also include:
Set first proof cycle and detect hosting district, if finding to host in district has data to occur
Damage, then format and host district, and copy to the data in the first backup area host in district.
Preferably, the described method being used for hard disc data is backed up, wherein, also include:
Set second proof cycle the first backup area is detected, if finding the first backup area has
Data are damaged, then format the first backup area, and the data in the second backup area are copied to first
In backup area.
Preferably, the described method being used for hard disc data is backed up, wherein, also include:
Set the 3rd proof cycle main memory district and the first backup area are compared, and will not have each other
Data carry out respectively supplementing backup, to ensure to host district and the data consistent of the first backup area.
Preferably, the described method being used for hard disc data is backed up, wherein, also include:
Set the 4th proof cycle the first backup area and the second backup area are compared, and will each other
The data not having carry out supplementing backup, to ensure the first backup area and the data consistent of the second backup area respectively.
Preferably, the described method being used for hard disc data is backed up, wherein, also include:
Set the 5th proof cycle main memory district, the first backup area and the second backup area to be compared simultaneously
Right, and by the data not having each other respectively carry out supplement backup, with ensure host district, the first backup area and
The data consistent of the second backup area.
Preferably, the described method being used for hard disc data is backed up, wherein, also include:
Check the second backup area, when the second backup area damages, stop hosting district and the number of the first backup area
According to import feature, retain data export function.
The invention has the beneficial effects as follows: this case is by arranging dual backup region in single hard disk, and ties
Close regular self-inspection repeatedly and guarantee data concordance in each area and effectiveness, thus improve
The anti-lost ability of data, adds data safety, stability and reliability in a hard disk.
Detailed description of the invention
Below in conjunction with embodiment, the present invention is described in further detail, to make those skilled in the art join
Book word can be implemented according to this as directed.
This case propose an embodiment for the method that hard disc data is backed up, comprising:
Single hard disk is carried out subregion, is respectively set as hosting district, the first backup area and the second backup area;
Before storage data, check hosting district:
If it is intact to host district, then store data in main memory district, and the most standby at the first backup area and second
Part carries out automated back-up in district;
If hosting district's partial destruction, then recording the physical address of broken parts, confirming the surplus of non-broken parts
Covolume amount, if the residual capacity of non-broken parts is more than treating deposit data capacity, then stores data in main memory
Unspoiled part in district, carries out automated back-up in the first backup area and the second backup area simultaneously;If not
The residual capacity of broken parts less than treating deposit data capacity, then stores data in the first backup area, with
Time in the second backup area, carry out automated back-up;
If hosting district all to damage, then storing data in the first backup area, entering at the second backup area simultaneously
Row automated back-up.
In the above-described embodiments, further preferably include:
Set first proof cycle and detect hosting district, if finding to host in district has data to occur
Damage, then format and host district, and copy to the data in the first backup area host in district.
In the above-described embodiments, further preferably include:
Set second proof cycle the first backup area is detected, if finding the first backup area has
Data are damaged, then format the first backup area, and the data in the second backup area are copied to first
In backup area.
In the above-described embodiments, further preferably include:
Set the 3rd proof cycle main memory district and the first backup area are compared, and will not have each other
Data carry out respectively supplementing backup, to ensure to host district and the data consistent of the first backup area.
In the above-described embodiments, further preferably include:
Set the 4th proof cycle the first backup area and the second backup area are compared, and will each other
The data not having carry out supplementing backup, to ensure the first backup area and the data consistent of the second backup area respectively.
In the above-described embodiments, further preferably include:
Set the 5th proof cycle main memory district, the first backup area and the second backup area to be compared simultaneously
Right, and by the data not having each other respectively carry out supplement backup, with ensure host district, the first backup area and
The data consistent of the second backup area.
In the above-described embodiments, further preferably include:
Check the second backup area, when the second backup area damages, stop hosting district and the number of the first backup area
According to import feature, retain data export function.Now should repair the second backup area as early as possible or derive number in time
According to and change hard disk.The data that so can adequately protect in hard disk can be transferred also safely and steadly
It is saved.
Although embodiment of the present invention are disclosed as above, but it is not restricted to description and embodiment party
Listed utilization in formula, it can be applied to various applicable the field of the invention completely, for being familiar with ability
For the personnel in territory, be easily achieved other amendment, therefore without departing substantially from claim and etc. homotype
Enclosing under limited general concept, the present invention is not limited to specific details.
Claims (7)
1. the method being used for hard disc data is backed up, it is characterised in that including:
Single hard disk is carried out subregion, is respectively set as hosting district, the first backup area and the second backup area;
Before storage data, check hosting district:
If it is intact to host district, then store data in main memory district, and the most standby at the first backup area and second
Part carries out automated back-up in district;
If hosting district's partial destruction, then recording the physical address of broken parts, confirming the surplus of non-broken parts
Covolume amount, if the residual capacity of non-broken parts is more than treating deposit data capacity, then stores data in main memory
Unspoiled part in district, carries out automated back-up in the first backup area and the second backup area simultaneously;If not
The residual capacity of broken parts less than treating deposit data capacity, then stores data in the first backup area, with
Time in the second backup area, carry out automated back-up;
If hosting district all to damage, then storing data in the first backup area, entering at the second backup area simultaneously
Row automated back-up.
Method for hard disc data is backed up the most according to claim 1, it is characterised in that
Also include:
Set first proof cycle and detect hosting district, if finding to host in district has data to occur
Damage, then format and host district, and copy to the data in the first backup area host in district.
Method for hard disc data is backed up the most according to claim 1, it is characterised in that
Also include:
Set second proof cycle the first backup area is detected, if finding the first backup area has
Data are damaged, then format the first backup area, and the data in the second backup area are copied to first
In backup area.
Method for hard disc data is backed up the most according to claim 1, it is characterised in that
Also include:
Set the 3rd proof cycle main memory district and the first backup area are compared, and will not have each other
Data carry out respectively supplementing backup, to ensure to host district and the data consistent of the first backup area.
Method for hard disc data is backed up the most according to claim 1, it is characterised in that
Also include:
Set the 4th proof cycle the first backup area and the second backup area are compared, and will each other
The data not having carry out supplementing backup, to ensure the first backup area and the data consistent of the second backup area respectively.
Method for hard disc data is backed up the most according to claim 1, it is characterised in that
Also include:
Set the 5th proof cycle main memory district, the first backup area and the second backup area to be compared simultaneously
Right, and by the data not having each other respectively carry out supplement backup, with ensure host district, the first backup area and
The data consistent of the second backup area.
Method for hard disc data is backed up the most according to claim 1, it is characterised in that
Also include:
Check the second backup area, when the second backup area damages, stop hosting district and the number of the first backup area
According to import feature, retain data export function.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610192183.0A CN105893182A (en) | 2016-03-30 | 2016-03-30 | Backup method for data in hard disk |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610192183.0A CN105893182A (en) | 2016-03-30 | 2016-03-30 | Backup method for data in hard disk |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105893182A true CN105893182A (en) | 2016-08-24 |
Family
ID=57014374
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610192183.0A Pending CN105893182A (en) | 2016-03-30 | 2016-03-30 | Backup method for data in hard disk |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105893182A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111081284A (en) * | 2018-10-19 | 2020-04-28 | 合肥沛睿微电子股份有限公司 | Memory device and control method |
| CN118398062A (en) * | 2024-06-27 | 2024-07-26 | 深圳市领德创科技有限公司 | SSD internal data security management system and method based on disk array |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1504893A (en) * | 2002-12-05 | 2004-06-16 | 纬创资通股份有限公司 | Hard disk data control method |
| US20060095665A1 (en) * | 2004-11-02 | 2006-05-04 | Ching-Lung Tsai | Real-time single hard disk data backup method |
| CN102521084A (en) * | 2011-12-20 | 2012-06-27 | 惠州市亿能电子有限公司 | Data storage and reading method |
| CN103914360A (en) * | 2013-01-05 | 2014-07-09 | 联想(北京)有限公司 | Electronic device and data backup restoring method |
| US20140298087A1 (en) * | 2012-04-28 | 2014-10-02 | Huawei Technologies Co., Ltd. | Hard disk data recovery method, apparatus, and system |
-
2016
- 2016-03-30 CN CN201610192183.0A patent/CN105893182A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1504893A (en) * | 2002-12-05 | 2004-06-16 | 纬创资通股份有限公司 | Hard disk data control method |
| US20060095665A1 (en) * | 2004-11-02 | 2006-05-04 | Ching-Lung Tsai | Real-time single hard disk data backup method |
| CN102521084A (en) * | 2011-12-20 | 2012-06-27 | 惠州市亿能电子有限公司 | Data storage and reading method |
| US20140298087A1 (en) * | 2012-04-28 | 2014-10-02 | Huawei Technologies Co., Ltd. | Hard disk data recovery method, apparatus, and system |
| CN103914360A (en) * | 2013-01-05 | 2014-07-09 | 联想(北京)有限公司 | Electronic device and data backup restoring method |
Non-Patent Citations (1)
| Title |
|---|
| 李大友等: "《计算机应用基础》", 30 April 2003, 清华大学出版社 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111081284A (en) * | 2018-10-19 | 2020-04-28 | 合肥沛睿微电子股份有限公司 | Memory device and control method |
| CN118398062A (en) * | 2024-06-27 | 2024-07-26 | 深圳市领德创科技有限公司 | SSD internal data security management system and method based on disk array |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105893178A (en) | Data backup method for mobile hard disk | |
| CN111176890B (en) | Satellite-borne software data storage and anomaly recovery method | |
| WO2021208341A1 (en) | Method and system for detecting and recovering memory bit flipping in secondary power equipment | |
| US10643668B1 (en) | Power loss data block marking | |
| CN102929805A (en) | Power-down protection method for cache data in memory system | |
| CN101840360A (en) | Rapid reconstruction method and device of RAID (Redundant Array of Independent Disk) system | |
| TWI635497B (en) | System for preserving data in volatile memory and method thereof | |
| CN105068888B (en) | A kind of data reconstruction method based on oracle database | |
| CN102508733A (en) | Disk array based data processing method and disk array manager | |
| CN105589767B (en) | A kind of system power failure for NAND FLASH protects implementation method | |
| US20180276092A1 (en) | Recovering using write data stored by a powerloss data protection technique | |
| CN102508620A (en) | Method for processing RAID5 (Redundant Array of Independent Disks) bad sector | |
| CN102981936A (en) | Method for reconstructing disk array data | |
| US11537468B1 (en) | Recording memory errors for use after restarts | |
| CN106155839A (en) | A kind of method and apparatus for Backup Data | |
| CN105893182A (en) | Backup method for data in hard disk | |
| CN101582044A (en) | Key information area maintenance method of file system and device | |
| CN102226892B (en) | Disk fault tolerance processing method and device thereof | |
| CN105808385A (en) | Anti-loss method of hard disk data | |
| CN103092765A (en) | Solid state storage system, solid state storage device and data writing method | |
| CN103678048A (en) | Repair method and repair device for redundant array of independent disks (RAID) and storage equipment | |
| CN107402843A (en) | Restoration methods, device and the equipment of database corruption | |
| CN105893179A (en) | Backup method for data of mobile hard disk drive | |
| CN115878377A (en) | Power failure protection method and device for embedded Linux system and computer equipment | |
| US20080184070A1 (en) | RAID capacity expansion interruption recovery handling method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into 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: 20160824 |