CN101324857B - Method of data backup and reduction - Google Patents

Method of data backup and reduction Download PDF

Info

Publication number
CN101324857B
CN101324857B CN 200710041985 CN200710041985A CN101324857B CN 101324857 B CN101324857 B CN 101324857B CN 200710041985 CN200710041985 CN 200710041985 CN 200710041985 A CN200710041985 A CN 200710041985A CN 101324857 B CN101324857 B CN 101324857B
Authority
CN
China
Prior art keywords
data
backup
storage device
main frame
address
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
Application number
CN 200710041985
Other languages
Chinese (zh)
Other versions
CN101324857A (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.)
Inventec Appliances Pudong Corp
Original Assignee
Inventec Appliances Pudong 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 Inventec Appliances Pudong Corp filed Critical Inventec Appliances Pudong Corp
Priority to CN 200710041985 priority Critical patent/CN101324857B/en
Publication of CN101324857A publication Critical patent/CN101324857A/en
Application granted granted Critical
Publication of CN101324857B publication Critical patent/CN101324857B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention relates to a method for backuping recovery data, which is suitable for backuping the recovery data of a file system in the storage device of a handheld-type electronic device. The invention can backup the data in the storage device of the handheld device through an universal serial bus interface without demounting a machine. The method comprises the following steps: firstly, the handheld-type electronic device is connected to a host computer through the universal serial bus interface; then the initial address and the end address of the recovery data are obtained via the host computer, and a specific address section corresponding to the recovery data in the storage device is defined according to the initial address and the end address; then the file allocation table of the file system of the storage device is read by the storage device through the universal serial bus interface, and the file allocation table is backuped; and finally, the specific address section of the storage device is read by the host computer, and the data of the initial address, the end address and the specific address section is backuped.

Description

The method of backup and reduction data
Technical field
The invention relates to a kind of method of Backup Data, and particularly relevant for a kind of method of backup and reduction data.
Background technology
Computing machine has been one of indispensable daily necessities in the society in modern times, yet along with the number of user's install software increases, or improve from the network download data frequency, inevitably can be because of software conflict to each other, or the destruction of internet worm, and the problem that must need rebuild in the face of system damage or system etc.When the refitting computing machine, must carry out installing operating system at every turn, set up account number, numerous and diverse manual steps such as initialization system parameter.If system is huge, installed software various, these steps are not only time-consuming really but also take a lot of trouble power.Therefore, the software of releasing back-up and reduction at the problem of system reconstructing is just arranged at present, the user is by these software, just set up the complete initial stage in system, the operating system and the default file backup that are about to operate as normal get up, whenever necessary, directly operating system and default file are reduced again, after treating to save these complicated manual steps such as installation system and parameter setting.
In addition, along with the electronics technology vigorous growth, the function of hand-hold electronic device (handheld electronic device) from strength to strength but the setting of system also become increasingly complex.For instance, the embedded system of portable electric device (embedded operating system) can be carried out user's installed software and read the data that the user is stored in storage device.When installed software or the increase of the data of storage, similarly also can meet with problems such as system damage or usefulness reduction, just must carry out the work of system reconstructing this moment.
Present backup and restore software only support all that on computers additional (advanced technology attachment, ATA) interface is connected with hard disk, and hard disk is carried out the action of system data back-up by this interface with advanced techniques.Yet, for the hand-hold electronic device that connects computing machine with universal sequential bus interface, because connecting interface and embedded OS are not supported this class instruction, still do not have backup software at present and can preserve embedded OS and restoring data thereof in the hand-hold electronic device effectively.Unique rule of doing must be torn machine open hard disk is taken out, and connects computing machine with ata interface again, just might carry out the action of data backup or reduction, the not only time-consuming and effort of this way.
Summary of the invention
The invention provides a kind of method of backup and reduction data, can back up restoring data on the storage device of hand-held device by universal sequential bus interface.
The present invention proposes a kind of method of backup and reduction data, is suitable for backing up the restoring data of file system in the storage device of portable electric device.
The invention provides a kind of method of backup and reduction data, the method comprises the following steps: by the universal serial bus mouth portable electric device to be connected to main frame; Main frame is obtained the start address and the end address of restoring data; Main frame according in start address and the end address definition storage device corresponding to the particular address section of restoring data; Main frame reads the file allocation table of the file system of storage device and backup file allocation table by universal sequential bus interface; Main frame reads the particular address section of storage device, and the data of backup start address, end address and particular address section.
According to the method for the described backup and reduction data of preferred embodiment of the present invention, comprise also by main frame producing a data set that wherein data acquisition comprises the data of start address, end address and particular address section.
According to the method for the described backup and reduction data of preferred embodiment of the present invention, wherein after the step of main frame generation data acquisition, also comprise data acquisition is encapsulated as image file by main frame.
According to the method for the described backup and reduction data of preferred embodiment of the present invention, wherein data acquisition also comprises the document directory structure of restoring data.
According to the method for the described backup and reduction data of preferred embodiment of the present invention, also comprise the particular address section that data acquisition is reverted back storage device by main frame.
According to the method for the described backup and reduction data of preferred embodiment of the present invention, the step that wherein data acquisition is reverted back the particular address section of storage device comprises the following steps: by main frame the file allocation table of backup to be write earlier the file allocation table of storage device; Read the start address and the end address of backup again by main frame; And by main frame according to start address and end address, the data of particular address section of backup are write the particular address section of storage device.
The present invention is by the restoring data on the storage device of universal sequential bus interface backup hand-hold electronic device, according to embedded OS and some position of default file in storage device, defining the particular address section by main frame in storage device backs up, only need whenever necessary backed up data is reverted back this particular address section in the future, can recover original setting of storage device and data, very convenient.
Description of drawings
For above-mentioned feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below, wherein:
Fig. 1 is the system schematic according to a preferred embodiment of the present invention illustrated.
Fig. 2 is the process flow diagram according to the method for the backup and reduction data that a preferred embodiment of the present invention illustrated.
Fig. 3 is the process flow diagram of the method for the backup and reduction data that illustrated according to another preferred embodiment of the present invention.
Fig. 4 is the synoptic diagram according to the backup and reduction data-interface of another preferred embodiment of the present invention.
Embodiment
Because the embedded OS of portable electric device or the possibility that the data of storage still have damage, thus portable electric device be necessary to back up, for reduce the usefulness of data of embedded OS and storage in the future.Below will come portable electric device is done explanation with the method that universal serial bus is connected to the backup and reduction data of main frame with embodiment.
Fig. 1 is the system schematic according to a preferred embodiment of the present invention illustrated.Please refer to Fig. 1, main frame 50 comprises universal sequential bus interface 52, control device 54 and storage device 56.Portable electric device 100 comprises universal sequential bus interface 110, control device 120, advanced techniques additional interface 130 and storage device 140.Portable electric device 100 can be connected to the universal sequential bus interface 52 of main frame 50 by universal sequential bus interface 110.120 of control device can be monitored universal sequential bus interface 110 and extraneous binding, and can transmit by advanced techniques additional interface 120 and control signal to storage device 140.Storage device 140 for example is Sheffer stroke gate flash memory (NAND FLASH) or hard disk, can be used to store information, embedded OS or multi-medium data of user or the like.
Fig. 2 is the process flow diagram according to the method for the backup and reduction data that a preferred embodiment of the present invention illustrated.Please refer to Fig. 1 and Fig. 2, at first portable electric device 100 is connected to main frame 50 (step S202), to allow main frame 50 come the action that portable electric device 100 is backed up by universal serial bus 110.Afterwards, main frame 50 is obtained start address and end address (the step S204) of restoring data.Then, main frame 50 defines a particular address section of corresponding restoring data in the storage device 140 according to start address and end address.
To with file allocation table (file allocation table, FAT) file system, the least unit of file system is one gather together (cluster), and one gathered together and include a plurality of sectors (sector), and this sector is the minimum storage unit of disk.Therefore, in storage device 140, can store a file allocation table,, make to calculate physical address corresponding in the disk when reading file with the position of gathering together that log file is disposed in storage device 140.So need carry out step S208, read the file allocation table of the file system of storage device 140 by main frame 50, and back up this file allocation table, so that calculate the corresponding address relation, and can restoring data can be reverted back corresponding particular address section when reducing in the future.Last then read the data of the particular address section of storage device 140 by main frame 50, and the data backup of start address, end address and particular address section is got up.
Can find out that by above-mentioned process flow diagram the method for the backup and reduction data of present embodiment does not need the complicated machine of tearing open, can back up the data on the storage device 140 of the portable electric device 100 that is connected with main frame 50 by universal sequential bus interface 110.In addition, the method for the backup and reduction data of present embodiment also can be according to embedded OS and some position of default file in storage device 140, by the particular address section of main frame 50 definition storage devices 140.Only need whenever necessary backed up data is reverted back the particular address section in the future, can recover original setting of storage device and data, very convenient.
In addition, when the present invention also is included in the backup and reduction data, restoring data is saved as image file, when needing to reduce, can utilize this mirror image file to reduce the data of particular address section in the future, do explanation with another preferred embodiment of next act.
Fig. 3 is the process flow diagram of the method for the backup and reduction data that illustrated according to another preferred embodiment of the present invention.Please refer to Fig. 3, present embodiment and last embodiment are similar, and its resemblance also repeats no more at this, below describe with regard to two embodiment difference places, and its system architecture can be with reference to figure 1.After step S310, can carry out step S312, produce a data set by main frame 50, this data acquisition can comprise the data of start address, end address and particular address section.In addition, data acquisition also can comprise the document directory structure in the file system, and wherein document directory structure can comprise the root directory (root directory) of the bottom.Then can carry out step S314, data acquisition is encapsulated as an image file, so that store and management by main frame 50.
When having run into system damage or having caused conflict between system's shakiness or software because some software has been installed, then can carry out step S316, by main frame 50 data acquisition is reverted back the particular address section of storage device 140, for example read the work that image file reduces with suitable reduction instrument.Step S316 can comprise substep S316a, S316b, S316c.In step S316a, the file allocation table of backup is write the file allocation table of storage device 140 by main frame 50.Then carry out step S316b, read the start address and the end address of backup by main frame 50.Carry out step S316c at last, main frame 50 is according to this start address and end address, and the data of the particular address section of previous back-up are write particular address section corresponding in the storage device 140.In addition, in another embodiment, step S316c can comprise that also the document directory structure with backup writes the document directory structure of storage device 140.
For another preferred embodiment of the present invention can more detailed and clearly be described, below above-mentioned back-up flow process will be described with the interface of backup and reduction data, but not in order to restriction the present invention.Fig. 4 is the synoptic diagram of the backup and reduction data-interface that illustrated according to another preferred embodiment of the present invention.Please be simultaneously with reference to Fig. 1, Fig. 3 and Fig. 4, backup and reduction data-interface 400 comprises and reads target selection district 410, stores path definition button (button) 420, particular address section definition 430 and begin to back up button 440.Read target selection district 410 and comprise that reading file selects button 412 and read storage device and select button 414, these two kinds of buttons can provide the user to select respectively to be to back up one in the file the particular address section or the particular address section in the storage device 140.Particular address section definition 430 comprises start address definition 432, end address definition 434 and data length definition 436.
At first, the user utilizes universal sequential bus interface that portable electric device 100 is connected to main frame 50.Then, user's definable reads target selection district 410, selects to read file and selects button 412 or select to read storage device selection button 414, to select the source of backup.
After the user had determined particular address section to back up, the user can do setting at particular address section definition 430.Wherein, setting means has following two kinds: the user can adopt the mode of directly address, just start address is inputed to after the start address definition 432, again with end of input address definition district, end address 434; The user also can adopt the mode of indirect addressing, just start address is inputed to after the start address definition 432, data length is imported data length definition 436, main frame 50 obtains the end address behind the result that start address adds data length via calculating again.
Then, the user can press and store path definition button 420 with storage path of specifying the mirror image file and the form that will store.Come, the user presses and begins to back up button 440 again, and main frame 50 just begins to read by universal sequential bus interface 52 data of the particular address section of storage device 140.Main frame 50 read finish after, main frame 50 is encapsulated as an image file with the formed data acquisition of data, start address, end position of the particular address section that read, and is stored to defined path.In the future,, can use this mirror image file to reduce the data content of particular address section of storage device 140 if when the particular address section of storage device 140 has data damage.
In addition, in the embodiment that another does not illustrate,, the user selects button 412 if selecting to read file, the user can select the file that will read, to read the particular address section of this file, the particular address section with this file backs up again, and is converted to image file and is stored to defined path.Wherein, behind the particular address section that the user determines to back up according to demand, the mode that also can set particular address section definition 430 as described above defines particular address section to back up, does not repeat them here.
In sum, the present invention can back up the data on the storage device of hand-held device and the machine of tearing open process when not costing by universal sequential bus interface, and is therefore very convenient.In addition, the present invention can be according to embedded OS and some position of default file in storage device, particular address section by the host definition storage device backs up, only need whenever necessary backed up data is reverted back the particular address section in the future, can recover original setting of storage device and data, and do not need whole storage device is all backed up, therefore the efficient of backup is good.In addition, the present invention also can back up the data of the particular address section of any file, and saves as image file, therefore, occupies jumbo file for one, this file can be come segmentation or carries out differential backup according to the address, stores required space and save.Have in the data of the particular address section of this file and to damage or during the data content need revert back backup the time, only to need to reply the data of particular address section, and can restore source document apace.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; have in the technical field under any and know the knowledgeable usually; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is when looking accompanying being as the criterion that claim defines.

Claims (10)

1. the method for backup and reduction data is suitable for backing up a restoring data of a file system in the storage device of handheld electronic device, it is characterized in that this method comprises the following steps:
By a universal sequential bus interface, this portable electric device is connected to a main frame;
This main frame is obtained an initial address and an end address of this restoring data;
This main frame defines in this storage device a particular address section corresponding to this restoring data according to this start address and this end address;
This main frame reads a file allocation table of this document system of this storage device by this universal sequential bus interface, and backs up this document allocation table;
And
This main frame reads this particular address section of this storage device, and backs up the data of this start address, this end address and this particular address section.
2. the method for backup and reduction data as claimed in claim 1 is characterized in that, wherein also comprises:
This main frame produces a data acquisition, and wherein this data acquisition comprises the data of this start address, this end address and this particular address section.
3. the method for backup and reduction data as claimed in claim 2 is characterized in that, wherein also comprises after this main frame produces the step of this data acquisition:
This main frame is encapsulated as an image file with this data acquisition.
4. the method for backup and reduction data as claimed in claim 2 is characterized in that, wherein this data acquisition also comprises a document directory structure of this restoring data.
5. the method for backup and reduction data as claimed in claim 2 is characterized in that, wherein also comprises:
This main frame reverts back this data acquisition this particular address section of this storage device.
6. the method for backup and reduction data as claimed in claim 5 is characterized in that, the step that wherein this data acquisition is reverted back this particular address section of this storage device comprises:
This main frame writes this document allocation table of backup this document allocation table of this storage device;
This main frame reads this start address and this end address of backup;
And
This main frame is according to this start address and this end address, the data of this particular address section of backup write this particular address section of this storage device.
7. the method for backup and reduction data as claimed in claim 1 is characterized in that, wherein this end address adds a data length for this start address.
8. the method for backup and reduction data as claimed in claim 1 is characterized in that, wherein this storage device comprises by an advanced techniques additional interface and being connected with this hand-held electronic equipment.
9. the method for backup and reduction data as claimed in claim 1 is characterized in that, wherein this storage device comprises a Sheffer stroke gate flash memory.
10. the method for backup and reduction data as claimed in claim 1 is characterized in that, wherein this restoring data comprises an embedded OS.
CN 200710041985 2007-06-11 2007-06-11 Method of data backup and reduction Expired - Fee Related CN101324857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710041985 CN101324857B (en) 2007-06-11 2007-06-11 Method of data backup and reduction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710041985 CN101324857B (en) 2007-06-11 2007-06-11 Method of data backup and reduction

Publications (2)

Publication Number Publication Date
CN101324857A CN101324857A (en) 2008-12-17
CN101324857B true CN101324857B (en) 2011-04-06

Family

ID=40188404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710041985 Expired - Fee Related CN101324857B (en) 2007-06-11 2007-06-11 Method of data backup and reduction

Country Status (1)

Country Link
CN (1) CN101324857B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582044B (en) * 2009-06-15 2012-07-04 中兴通讯股份有限公司 Key information area maintenance method of file system and device
CN109739691A (en) * 2018-12-30 2019-05-10 上海达梦数据库有限公司 DB Backup and restoration methods, device, terminal device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469251A (en) * 2002-06-21 2004-01-21 ���չ�˾ Information processing device, information equipment, automatic duplicating mehtod and data transmitting & receiving method
EP1746506A1 (en) * 2005-07-22 2007-01-24 Synology Inc. Portable device and automatic backup method of computer data on the device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469251A (en) * 2002-06-21 2004-01-21 ���չ�˾ Information processing device, information equipment, automatic duplicating mehtod and data transmitting & receiving method
EP1746506A1 (en) * 2005-07-22 2007-01-24 Synology Inc. Portable device and automatic backup method of computer data on the device

Also Published As

Publication number Publication date
CN101324857A (en) 2008-12-17

Similar Documents

Publication Publication Date Title
CN103970585B (en) Create the method and device of virtual machine
US8738883B2 (en) Snapshot creation from block lists
CN103136116A (en) Memory storage system and central control device, management method and blackout recovery method thereof
CN102171668A (en) A storage device for mounting to a host
JP2007172586A (en) Method, apparatus and computer program for sharing computer data among computers
CN102597983A (en) Backup using metadata virtual hard drive and differential virtual hard drive
CN104216796A (en) Data backup and recovery method and electronic device
US20080109676A1 (en) Processing device and storage medium
CN107247672A (en) Pass through the method for udev and expander relevant interface hyperdisks
CN103440204B (en) A kind of method of updating file system and memory device
CN109683983B (en) Method and equipment for generating and loading mirror image file
CN101311896A (en) Computer system possessing multipurpose desktop
CN103530206B (en) A kind of method and apparatus of date restoring
CN110692058A (en) Auxiliary storage device providing independent backup and recovery functions and apparatus using the same
CN101324857B (en) Method of data backup and reduction
CN103389941B (en) Storer formatting method, Memory Controller and memory storage apparatus
CN102375781B (en) Data protecting method, memory controller and portable memory storage device
CN103530144A (en) Method for generating virtual machine images from legacy system
CN117370107A (en) BIOS log collection method and computing device
CN101893999A (en) System for virtually partitioning storage device into multiple devices
CN100409164C (en) Storage device and storage system
CN101859307B (en) Kvm switch for switching among computers by employing mouse movement, computer system and document searching method
CN108052342A (en) Partition table restorative procedure, device and electronic equipment
CN103064771A (en) Method of conducting computer detection and image downloading synchronously and computer system there of
CN101493844A (en) Method and apparatus for implementing multiple main interfaces for embedded memory

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110406