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
Grant status
Grant
Patent type
Prior art keywords
data
address
backup
host
restore
Prior art date
Application number
CN 200710041985
Other languages
Chinese (zh)
Other versions
CN101324857A (en )
Inventor
李帆
Original Assignee
英华达(上海)科技有限公司
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
Grant date

Links

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

备份还原数据的方法 Data backup and restore process

技术领域 FIELD

[0001] 本发明是有关于一种备份数据的方法,且特别是有关于一种备份还原数据的方法。 [0001] The present invention relates to a method for backing up data, and more particularly to a method of data backup and restore.

背景技术 Background technique

[0002] 计算机在现代的社会里已是不可或缺的生活必需品的一,然而随着使用者安装软件的数目增加,或是从网络下载数据的频率提高,不可避免地会因为软件彼此间的抵触,或是网络病毒的破坏,而必须面对系统毁损或是系统需要重建的问题等。 [0002] The computer is indispensable necessities of life in a modern society, but with the increase in the number of users to install software, or increase the frequency of the network to download data, inevitably because the software among each other conflict, or network destruction of the virus, and must face the need to rebuild the system or system damage and other problems. 每次在重装计算机时必须进行安装操作系统,建立帐号,设定系统参数等繁杂的人工步骤。 Each time the operating system must be installed on the computer reloads, complicated manual steps to establish the account, setting system parameters. 若系统庞大,要安装的软件繁多,这些步骤实在是既费时又费心力。 If the system is large, the software you want to install many of these steps it is both time-consuming and expensive effort. 因此,目前便有针对系统重建的问题推出备分与还原的软件,使用者由这些软件,在系统刚建立完备的初期,即将正常工作的操作系统以及系统设定文件备份起来,待之后有需要时,再直接将操作系统以及系统设定文件还原,以省去安装系统以及参数设定等这些复杂的人工步骤。 Therefore, there is currently a problem for the system to launch reconstruction Backup and restore software, users of the software, just in the beginning of the establishment of a complete system, the upcoming operating system to work properly and the system is set up file backup, then there needs to be when, then directly to the operating system and restore the system setting file, to omit these complex manual steps to install the system and setup parameters.

[0003] 此外,随着电子科技蓬勃的发展,手持电子装置(handheld electronic device) 的功能越来越强大但系统的设定也越来越复杂。 [0003] In addition, with the vigorous development of electronic technology, handheld electronic device (handheld electronic device) is more powerful but also more complex set of systems. 举例来说,手持式电子装置的嵌入式系统(embedded operating system)可以执行使用者安装的软件以及读取使用者储存在储存装置的数据。 For example, the embedded system (embedded operating system) of the handheld electronic device may execute software for users to install and reading user data stored in the storage device. 当安装的软件或是储存的数据增加,同样地也会遭遇系统毁损或效能降低等问题,此时就必需进行系统重建的工作。 When increasing the data storage software, or installed, in the same manner will suffer damage, or system performance degradation problems, it is necessary to work the system at this time reconstruction.

[0004] 目前的备份及还原软件均仅支持在计算机上以高级技术附加(advanced technology attachment, ΑΤΑ)接口与硬盘连接,而通过此接口对硬盘进行系统数据备份的动作。 [0004] Current backup and restore software are supported only on computer advanced technology attachment (advanced technology attachment, ΑΤΑ) interfacing with a hard disk, and the data backup system is operated on a hard disk through this interface. 然而,对于以通用序列总线接口连接计算机的手持电子装置来说,由于连接接口及嵌入式操作系统并不支持这类指令,目前尚无备份软件可以有效地保存手持电子装置中嵌入式操作系统及其还原数据。 However, for a handheld electronic device universal serial bus interface connected to a computer, because the connection interface and embedded operating system does not support this type of instruction, there is no backup software can effectively preserve handheld electronic devices and embedded operating systems restore data. 唯一的作法则必须拆机将硬盘取出,再用ATA接口连接计算机, 才有可能进行数据备份或还原的动作,此做法不仅费时且费力。 The only way to disassemble must remove the hard drive, then the ATA interface connected to a computer operated data possible backup or restore, this approach is not only time-consuming and laborious.

发明内容 SUMMARY

[0005] 本发明提供一种备份还原数据的方法,可通过通用序列总线接口备份手持装置的储存装置上的还原数据。 [0005] The present invention provides a data backup and restore process to restore data on the storage device universal serial bus interface backup by handheld device.

[0006] 本发明提出一种备份还原数据的方法,适于备份手持式电子装置的储存装置中文件系统的还原数据。 [0006] The present invention proposes a method of data backup and restore, adapted to restore the file system backup data in the handheld electronic device storage device.

[0007] 本发明提供一种备份还原数据的方法,此方法包括下列步骤:通过通用序列总线口,将手持式电子装置连接至主机;主机取得还原数据的起始地址与结束地址;主机依据起始地址与结束地址定义储存装置中对应于还原数据的特定地址区段;主机通过通用序列总线接口读取储存装置的文件系统的文件分配表,并备份文件分配表;主机读取储存装置的特定地址区段,并备份起始地址、结束地址及特定地址区段的数据。 [0007] The present invention provides a method for the backup and restore data, the method comprising the steps of: the handheld electronic device connected to the host through a universal serial bus port; master obtaining the start address and end address of the restored data; basis from a host defined the beginning and ending addresses of the storage device to restore the data corresponding to the particular address segment; host through a universal serial file allocation table file system bus interface to read the storage device and the backup file allocation table; readable storage means a particular host address segment, and the backup start address, an end address and data of a specific address segment.

[0008] 依照本发明的较佳实施例所述的备份还原数据的方法,还包括由主机产生一笔数据集合,其中数据集合包括起始地址、结束地址以及特定地址区段的数据。 [0008] In accordance with the preferred method of restoring data backed up in the embodiment of the present invention, further comprising generating a packet of data set by the host, wherein the data set includes a start address, an end address and a specific data segment address.

[0009] 依照本发明的较佳实施例所述的备份还原数据的方法,其中在主机产生数据集合的步骤之后还包括由主机将数据集合封装为镜像文件。 After [0009], wherein the step of generating the data set in the host embodiment of the method according to the preferred embodiment of the data backup and restore of the present invention further includes a host data packaged as a set of image files.

[0010] 依照本发明的较佳实施例所述的备份还原数据的方法,其中数据集合还包括还原数据的文件目录结构。 [0010] In accordance with the preferred method of restoring data backed up in the embodiment of the present invention, wherein the data set further comprising restoring data file directory structure.

[0011] 依照本发明的较佳实施例所述的备份还原数据的方法,还包括由主机将数据集合还原回储存装置的特定地址区段。 [0011] In accordance with a preferred embodiment of the method of restoring data backed embodiment of the present invention, further comprising a set of host-specific address segment to restore the data back to the storage device.

[0012] 依照本发明的较佳实施例所述的备份还原数据的方法,其中将数据集合还原回储存装置的特定地址区段的步骤包括下列步骤:先由主机将备份的文件分配表写入储存装置的文件分配表;再由主机读取备份的起始地址与结束地址;以及由主机根据起始地址与结束地址,将备份的特定地址区段的数据写入储存装置的特定地址区段。 Step [0012] In accordance with the preferred method of restoring data backed up in the embodiment of the present invention, wherein the address segment to restore a specific set of data back to the storage device comprising the steps of: file allocation table first by writing backup host file allocation table storage means; re-read the backup start address and end address by the host; and a specific address segment according to the start address and end address, the backup data for a particular segment of the write address storage means by the host .

[0013] 本发明是通过通用序列总线接口备份手持电子装置的储存装置上的还原数据,依照嵌入式操作系统及一些系统设定文件在储存装置中的位置,由主机在储存装置中定义特定地址区段进行备份,在日后有需要时只需将备份的数据还原回此特定地址区段,即可恢复储存装置原先的设定及数据,十分便利。 [0013] The present invention is a handheld storage devices restore the data on the electronic device through a universal serial bus interface backup, define a specific address in storage means by the host in accordance with the embedded operating system and some of the system configuration file in the storage location means section to back up, just restore in future there is need to back up the data back to address this particular segment, you can restore the original setting and storage of data, very convenient.

附图说明 BRIEF DESCRIPTION

[0014] 为让本发明的上述特征和优点能更明显易懂,下文特举较佳实施例,并配合附图, 作详细说明如下,其中: [0014] In order to make the above features and advantages of the present invention can be more fully understood by reading the following preferred embodiments accompanied with figures are described in detail below, wherein:

[0015] 图1为依照本发明一较佳实施例所绘示的系统示意图。 [0015] FIG. 1 is a system diagram of the embodiment depicted in accordance with a preferred embodiment of the present invention.

[0016] 图2为依照本发明一较佳实施例所绘示的备份还原数据的方法的流程图。 [0016] FIG 2 is a flowchart of a method embodiment depicted backup and restore of data in accordance with a preferred embodiment of the present invention.

[0017] 图3为依照本发明另一较佳实施例所绘示的备份还原数据的方法的流程图。 [0017] FIG. 3 is a flowchart according to another preferred embodiment of the data backup and restore process depicted embodiment of the present invention.

[0018] 图4为依照本发明另一较佳实施例的备份还原数据接口的示意图。 [0018] FIG. 4 is an embodiment of the present invention in accordance with another preferred embodiment of the backup and restore data interface schematic.

具体实施方式 detailed description

[0019] 由于手持式电子装置的嵌入式操作系统或是储存的数据还是有毁损的可能性,所以手持式电子装置有必要进行备份,以供日后还原嵌入式操作系统和储存的数据之用。 [0019] Since the embedded operating system of the handheld electronic device or stored data or the possibility of damage, the handheld electronic device necessary for backup, for later reduced with the embedded operating system and data storage. 以下将以实施例来对手持式电子装置以通用序列总线连接至主机的备份还原数据的方法做说明。 The following examples will be described for a handheld electronic device connected to a host in a universal serial bus data backup and restore.

[0020] 图1为依照本发明一较佳实施例所绘示的系统示意图。 [0020] FIG. 1 is a system diagram of the embodiment depicted in accordance with a preferred embodiment of the present invention. 请参照图1,主机50包括通用序列总线接口52、控制装置54以及储存装置56。 Referring to FIG. 1, host 50 comprises a universal serial bus interface 52, device 54 and a storage device 56 controls. 手持式电子装置100包括通用序列总线接口110、控制装置120、高级技术附加接口130以及储存装置140。 The handheld electronic device 100 includes a universal serial bus interface 110, the control device 120, advanced technology attachment interface 130 and a storage device 140. 手持式电子装置100 可通过通用序列总线接口110连接至主机50的通用序列总线接口52。 The handheld electronic device 100 may be connected to the host computer universal serial bus interface 5250 through the universal serial bus interface 110. 控制装置120则可监控通用序列总线接口110与外界的连结,并可通过高级技术附加接口120来传送控制信号至储存装置140。 The control device 120 may monitor 110 connected to a universal serial bus interface with the outside world, and to transmit a control signal to the storage device 140 via interface 120 Advanced Technology Attachment. 储存装置140例如为与非门闪存(NAND FLASH)或是硬盘,可用来储存使用者的信息、嵌入式操作系统或是多媒体数据等等。 The storage device 140, for example, the NAND flash memory (NAND FLASH) or a hard disk, can be used to store user information, multimedia data embedded operating system or the like.

[0021] 图2为依照本发明一较佳实施例所绘示的备份还原数据的方法的流程图。 [0021] FIG 2 is a flowchart of a method embodiment depicted backup and restore of data in accordance with a preferred embodiment of the present invention. 请参照图1以及图2,首先通过通用序列总线110将手持式电子装置100连接至主机50(步骤S202),以让主机50来对手持式电子装置100进行备份的动作。 Referring to FIG. 1 and FIG. 2, the first connector 110 through a universal serial bus handheld electronic device 100 to the host 50 (step S202), to allow the host 50 to perform a backup operation of the hand-held electronic device 100. 之后,主机50取得还原数 After that, the host has made reducing the number of 50

4据的起始地址与结束地址(步骤S204)。 4, according to the start address and the end address (step S204). 接着,主机50依据起始地址与结束地址定义储存装置140中对应还原数据的一个特定地址区段。 Next, the host 50 corresponds to a specific address segment restore data in accordance with the starting and ending addresses of the storage device 140 is defined.

[0022] 对以文件分配表格(file allocation table, FAT)的文件系统来说,文件系统的最小单位是一个丛集(cluster),而一个丛集包含有多个扇区(sector),此扇区为磁盘的最小储存单位。 [0022] In the file allocation table of the (file allocation table, FAT) file system, the file system is the smallest unit of a single cluster (Cluster), and a cluster comprising a plurality of sectors (a SECTOR), this sector is the smallest unit of disk storage. 因此,在储存装置140中会储存有一文件分配表格,以记录文件在储存装置140中所配置的丛集位置,使得读取文件时能计算出磁盘中对应的实体地址。 Accordingly, in the storage unit 140 stores a file allocation table to record a file in the storage device 140 configured cluster position, so that the read file can calculate the physical address corresponding to the time of disk. 所以需要进行步骤S208,由主机50读取储存装置140的文件系统的文件分配表,并备份此文件分配表,以便于计算对应的地址关系,且可供日后进行还原时能将还原数据还原回对应的特定地址区段。 So the need for step S208, when read by the host capable of reducing the storage device 50 a file system file allocation table 140, and back up the file allocation table, in order to calculate the corresponding relationship between the address and data reduction for reduced back later corresponding to a specific address segment. 最后则由主机50读取储存装置140的特定地址区段的数据,并将起始地址、结束地址以及特定地址区段的数据备份起来。 Finally, the host 50 reads the data specified by the address segment of the storage apparatus 140, and the start address, end address and data back up the specific address segment.

[0023] 由上述的流程图可看出,本实施例的备份还原数据的方法不需要复杂的拆机,即可备份通过通用序列总线接口Iio与主机50连接的手持式电子装置100的储存装置140 上的数据。 [0023] As can be seen from the above flowchart, data backup and restore method of the present embodiment does not require complicated disassemble, to the backup storage means by the hand-held electronic device Iio universal serial bus interface 50 is connected with the host 100 140 data. 此外,本实施例的备份还原数据的方法还可依照嵌入式操作系统及一些系统设定文件在储存装置140中的位置,由主机50定义储存装置140的特定地址区段。 Further, the method according to the present embodiment of the backup and restore of data in accordance with further embodiment of the embedded operating system and some of the system setting file locations in storage device 140, the particular address segment 140 of the apparatus 50 is defined by the host storage. 在日后有需要时只需将备份的数据还原回特定地址区段,即可恢复储存装置原先的设定及数据,十分便利。 Simply restore the backed up data in future there is need to return to a specific address section, you can restore the original setting and storage of data, very convenient.

[0024] 此外,本发明还包括在备份还原数据时,将还原数据储存为镜像文件,当日后需要还原时,即可利用此镜射映像文件来还原特定地址区段的数据,以下则举另一较佳实施例来做说明。 [0024] Further, the present invention further comprises a backup and restore data at the time, to restore the data stored as an image file, you need to be restored after the day when, to use this mirror image file to restore the data of a specific address segment, the other is held It described a preferred embodiment to do.

[0025] 图3为依照本发明另一较佳实施例所绘示的备份还原数据的方法的流程图。 [0025] FIG. 3 is a flowchart according to another preferred embodiment of the data backup and restore process depicted embodiment of the present invention. 请参照图3,本实施例与前一实施例相类似,其相似处在此亦不再赘述,以下就两实施例差异处进行说明,且其系统架构可参考图1。 Referring to Figure 3, similar to the previous embodiment of the present embodiment, which is similar also goes omitted in the following two cases the differences will be described the embodiments, and the system architecture refer to Figure 1. 在步骤S310之后,可进行步骤S312,由主机50产生一笔数据集合,此数据集合可包括起始地址、结束地址以及特定地址区段的数据。 After step S310, the may be performed step S312, the sum of the data set is generated by the host 50, the data set may include a start address, an end address and a specific address segment data. 此外, 数据集合还可包括文件系统中的文件目录结构,其中文件目录结构可包含最底层的根目录(root directory) 0接着可进行步骤S314,由主机50将数据集合封装为一个镜像文件,以便于储存与管理。 Further, the data set may further include a file directory structure in the file system, the directory in which the file structure may include the bottom of the root directory (root directory) 0 can be followed step S314, the set of data from the host 50 encapsulates an image file, so that for storage and management.

[0026] 当遇到了系统毁损或是因为安装了某些软件而造成系统不稳或软件间的冲突时, 则可进行步骤S316,由主机50将数据集合还原回储存装置140的特定地址区段,例如以适当的还原工具读取镜像文件来进行还原的工作。 [0026] When the system encounters a damaged or because some software installation to prevent system instability or software conflicts when performed may step S316, the host computer 50 to restore the set of data back to the storage section 140 of the particular address , for example, suitable reducing tool reads the image file to restore the work. 步骤S316可包括子步骤S316a、S316b、 S316c。 Step S316 may include sub-steps S316a, S316b, S316c. 在步骤S316a中,由主机50将备份的文件分配表写入储存装置140的文件分配表。 In step S316a, the file allocation table by the host 50 writes the backup storage means 140 of the file allocation table. 接着进行步骤S316b,由主机50读取备份的起始地址与结束地址。 Followed by step S316b, the starting and ending addresses of the host 50 is read by the backup. 最后进行步骤S316c,主机50根据此起始地址与结束地址,将先前备分的特定地址区段的数据写入储存装置140中对应的特定地址区段。 Finally, in step S316c, the host 50 according to this starting and ending addresses of the data segment addresses previously prepared specific sub-address segment corresponding to a specific write in storage device 140. 此外,在另一实施例中,步骤S316c还可包括将备份的文件目录结构写入储存装置140的文件目录结构。 Further, in another embodiment, it may further comprise the step S316c backup file directory structure of the file directory structure written into the storage device 140.

[0027] 为了能更详细且清楚地说明本发明另一较佳实施例,以下将以一个备份还原数据的接口来说明上述的备分流程,而非用以限制本发明。 [0027] In order to more clearly illustrate the details and preferred embodiments of the present invention is a further embodiment, the following will be an interface to restore backup data to the Backup process described above, and not to limit the present invention. 图4为依照本发明另一较佳实施例所绘示的备份还原数据接口的示意图。 FIG 4 is a schematic diagram of another preferred embodiment of the present invention, backup and restore of data interface depicted. 请同时参照图1、图3以及图4,备份还原数据接口400包括读取目标选择区410、储存路径定义按钮(button)420、特定地址区段定义区430以及开始备份按钮440。 Referring to FIG 1 while FIG. 3 and FIG. 4, backup and restore data interface 400 includes a read target selection area 410, the path definition storage button (button) 420, a specific address section definition area 430, and button 440 starts a backup. 读取目标选择区410包括读取文件选择钮412以及读取储存装置选择钮414,此两种按钮可分别提供使用者选择是要备份一个文件中的特定地址区段或是储存装置140中的特定地址区段。 Select the read target file selection region 410 includes a read button 412 and the particular address storage means reading section selection buttons 414, these two buttons are available to the user to select a file or a backup storage device 140 address specific sector. 特定地址区段定义区430包括起始地址定义区432、结束地址定义区434以及数据长度定义区436。 Specific address section definition area defining area 430 includes a start address 432, the end address defining area defining area 434 and a data length 436.

[0028] 首先,使用者利用通用序列总线接口将手持式电子装置100连接至主机50。 [0028] First, the user connects to the host 50 by using the hand-held electronic device 100 universal serial bus interface. 接着, 使用者可定义读取目标选择区410,选择读取文件选择钮412或是选择读取储存装置选择钮414,以选择备份的来源。 Next, the user can define the read target selection area 410, selection button 412 to select the file to read or select button to select the storage device 414 reading, to select the backup source.

[0029] 在使用者决定好所要备份的特定地址区段之后,使用者可在特定地址区段定义区430做设定。 [0029] After the user decides to be a good back up a specific address section, the user can do is set a specific address section definition area 430. 其中,设定方式有以下两种:使用者可采用直接寻址的方式,也就是将起始地址输入至起始地址定义区432之后,再将结束地址输入结束地址定义区434 ;使用者亦可采用间接寻址的方式,也就是将起始地址输入至起始地址定义区432之后,再将数据长度输入数据长度定义区436,主机50经由计算起始地址加上数据长度的结果后而得到结束地址。 Wherein, there are two ways to set: the user may employ direct addressing mode, the start address is inputted to the start address after a defined area 432, and then ends the address entered defining area end address 434; user also after indirect addressing mode may be employed, i.e. the start address to the start address of the input area 432 is defined, then the data length of the input data length defining area 436, the result of adding the host 50 via a data length is calculated start address get the end of the address.

[0030] 接着,使用者可按下储存路径定义按钮420以指定镜射映像文件的储存路径与所要储存的格式。 [0030] Next, the user may press the storage button 420 to specify the path definition mirror image file and storing the path format to be stored. 再来,使用者按下开始备份按钮440,主机50便开始通过通用序列总线接口52读取储存装置140的特定地址区段的数据。 Again, back up the user presses the start button 440, the host 50 starts reading the address segment data for a particular storage device 140 via universal serial bus interface 52. 在主机50读取完毕之后,主机50将所读取的特定地址区段的数据、起始地址、结束位置所形成的数据集合封装为一镜像文件,并储存至所定义的路径。 After reading the host 50 is completed, the data segment address of a particular host will read 50, the start address, the end position of the formed package as a collection of image files, and to store the path defined. 在日后,若是储存装置140的特定地址区段有数据毁损时,即可运用此镜射映像文件来还原储存装置140的特定地址区段的数据内容。 In the future, if a particular address segment when the device 140 stores data corruption can use this mirror image file to restore the contents of a particular address segment data storage device 140.

[0031] 此外,在另一未绘示的实施例中,若使用者选择读取文件选择钮412,使用者可选择要读取的文件,以读取此文件的特定地址区段,再将此文件的特定地址区段备份起来,并转换为镜像文件储存至所定义的路径。 [0031] Further, in another embodiment not shown in the embodiment, if the user selects selection button 412 to read a file, the user can select a file to be read, to read a specific address segment of this file, then specific address segment back up this file and convert the image file to store the path defined. 其中,在使用者根据需求决定要备份的特定地址区段后,亦可如前述设定特定地址区段定义区430的方式来定义所要备份的特定地址区段, 在此不再赘述。 Wherein, when the user determines the specific address segment needs to be backed up, a particular embodiment may be set as the address of a section definition area 430 to define a specific address sector to be backed up, which is not repeated herein in accordance with.

[0032] 综上所述,本发明可通过通用序列总线接口备份手持装置的储存装置上的数据而不需费时的拆机过程,因此十分便利。 [0032] In summary, the present invention may be time-consuming without the data storage means on the universal serial bus interface backup process disassemble the handheld device, and therefore is very convenient. 此外,本发明可依照嵌入式操作系统及一些系统设定文件在储存装置中的位置,由主机定义储存装置的特定地址区段进行备份,在日后有需要时只需将备份的数据还原回特定地址区段,即可恢复储存装置原先的设定及数据,而不需将整个储存装置都备份下来,因此备份的效率佳。 Further, the present invention can, backed up by a specific host address storage means in accordance with the section definition embedded operating system and some of the system configuration file in the storage means in a position, in future simply necessary to revert back to a specific backup data address segment, the storage device to restore the original data set and without requiring the entire storage device are backed up, the backup so good efficiency. 另外,本发明还可备份任意文件的特定地址区段的数据,并储存为镜像文件,因此,对于一个占据大容量的文件来说,可将此文件依地址来分段或进行差异备份,而节省储存所需的空间。 Further, the present invention may also backup data of any file in a particular segment address, and stored as an image file, therefore, occupies a large-capacity file, the file may be in accordance with this address segment or differential backup, and saving space required for storage. 在此文件的特定地址区段的数据有毁损或是需要还原回备份时的数据内容时,只需回复特定地址区段的数据,而能够快速地复原原始文件。 When the address data in a particular section of this file are damaged or need to restore data back to the contents of the backup, simply reply to address sector-specific data, and can quickly restore the original file.

[0033] 虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明,任何所属技术领域中具有通常知识者,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,因此本发明的保护范围当视后附的申请专利范围所界定的为准。 [0033] While the present invention has been disclosed above by the preferred embodiments, they are not intended to limit the present invention, any skilled in the art having ordinary knowledge in the present invention without departing from the spirit and scope, it is intended that the alterations and modifications, and therefore the scope of the present invention when appended claims which are defined by the scope of equivalents.

6 6

Claims (10)

  1. 1. 一种备份还原数据的方法,适于备份一手持式电子装置的一储存装置中一文件系统的一还原数据,其特征在于,该方法包括下列步骤:通过一通用序列总线接口,将该手持式电子装置连接至一主机;该主机取得该还原数据的一起始地址与一结束地址;该主机依据该起始地址与该结束地址定义该储存装置中对应于该还原数据的一特定地址区段;该主机通过该通用序列总线接口读取该储存装置的该文件系统的一文件分配表,并备份该文件分配表;以及该主机读取该储存装置的该特定地址区段,并备份该起始地址、该结束地址及该特定地址区段的数据。 CLAIMS 1. A method for reducing the backup data, adapted to restore a backup data storage means a a handheld electronic device a file system, wherein the method comprises the steps of: a universal serial bus interface, the the handheld electronic device is connected to a host; the host to obtain a start address and a data reduction end address; starting address of the host according to the definition of a particular address region corresponding to the storage device to restore the data to the end address section; reading the storage device to the host through the universal serial bus interface of the file system is a file allocation table, and back up the file allocation table; and the particular host reads the address section of the storage device and the backup start address and the end address of the particular data segment address.
  2. 2.如权利要求1所述的备份还原数据的方法,其特征在于,其中还包括:该主机产生一数据集合,其中该数据集合包括该起始地址、该结束地址以及该特定地址区段的数据。 2. The method of restoring data backed up according to claim 1, characterized in that, further comprising: generating a data set of the host, wherein the data set includes the start address, end address, and the address of the particular segment data.
  3. 3.如权利要求2所述的备份还原数据的方法,其特征在于,其中在该主机产生该数据集合的步骤之后还包括:该主机将该数据集合封装为一镜像文件。 The method according to backup and restore data as claimed in claim 2, characterized in that, after the host wherein the step of generating the data set further comprises: encapsulating the data set to the host a mirror file.
  4. 4.如权利要求2所述的备份还原数据的方法,其特征在于,其中该数据集合还包括该还原数据的一文件目录结构。 4. A method according to backup and restore data as claimed in claim 2, wherein, wherein the data set further includes a file directory structure of the restored data.
  5. 5.如权利要求2所述的备份还原数据的方法,其特征在于,其中还包括:该主机将该数据集合还原回该储存装置的该特定地址区段。 5. A method according to backup and restore data as claimed in claim 2, characterized in that, further comprising: the host computer to revert back to the data set address of the specific section of the storage device.
  6. 6.如权利要求5所述的备份还原数据的方法,其特征在于,其中将该数据集合还原回该储存装置的该特定地址区段的步骤包括:该主机将备份的该文件分配表写入该储存装置的该文件分配表;该主机读取备份的该起始地址与该结束地址;以及该主机根据该起始地址与该结束地址,将备份的该特定地址区段的数据写入该储存装置的该特定地址区段。 6. The method according to claim backup and restore of data, wherein, wherein the set of data back to the step of reducing specific address segment storage apparatus comprising: the file allocation table to write the backup host the file allocation table of the storage device; host reads the start address and the end address of the backup; and the host according to the start address and the end address of the segment data of the particular address is written to the backup the particular address segment storage means.
  7. 7.如权利要求1所述的备份还原数据的方法,其特征在于,其中该结束地址为该起始地址加上一数据长度。 7. The method according to backup and restore data as claimed in claim 1, wherein, where the end address plus a starting address for the data length.
  8. 8.如权利要求1所述的备份还原数据的方法,其特征在于,其中该储存装置包括通过一高级技术附加接口与该手持式电子设备连接。 8. The method according to backup and restore data as claimed in claim 1, wherein, wherein the storage device comprises an advanced technology attachment via an interface with the handheld electronic device.
  9. 9.如权利要求1所述的备份还原数据的方法,其特征在于,其中该储存装置包括一与非门闪存。 9. The method of restoring data backed up according to claim 1, wherein, wherein the storage means comprises a NAND flash.
  10. 10.如权利要求1所述的备份还原数据的方法,其特征在于,其中该还原数据包括一嵌入式操作系统。 10. The method according to backup and restore data as claimed in claim 1, wherein, wherein the data comprises reducing an embedded operating system.
CN 200710041985 2007-06-11 2007-06-11 Method of data backup and reduction 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 true 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 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 (1)

* 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

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 Type
CN101324857A (en) 2008-12-17 application

Similar Documents

Publication Publication Date Title
US20100042773A1 (en) Flash memory storage system and data writing method thereof
US6944758B2 (en) Backup method for interface BIOS by making backup copy of interface BIOS in system BIOS and executing backup interface BIOS in system BIOS if error occurs
US20070038802A1 (en) System and method for configuration and management of flash memory
US6016536A (en) Method for backing up the system files in a hard disk drive
US6378031B1 (en) Data processing apparatus and file management method therefor
US20070043924A1 (en) Method for controlling memory card and method for controlling nonvolatile semiconductor memory
US20050036372A1 (en) Data storing apparatus
US20050080985A1 (en) Data storage device
US7818160B2 (en) Data backup devices and methods for backing up data
US20080140969A1 (en) Method and system for dividing a hard disk drive into multiple host access spaces
US20100268871A1 (en) Non-volatile memory controller processing new request before completing current operation, system including same, and method
JPH10154101A (en) Data storage system and cache controlling method applying to the system
US20070185923A1 (en) Database recovery method applying update journal and database log
US20040268070A1 (en) Method and apparatus for backing up data in virtual storage medium
US20100058007A1 (en) Information processing apparatus and memory management method
JP2007193883A (en) Data recording device and method, data reproducing device and method, and data recording and reproducing device and method
US20030187887A1 (en) Fast data copy using a data copy track table
US20090175075A1 (en) Flash memory storage apparatus, flash memory controller, and switching method thereof
CN101814044A (en) Method and device for processing metadata
JP2001325128A (en) Method for managing file and recording or reproducing device
US20060047889A1 (en) Memory device and controlling method for nonvolatile memory
CN101840362A (en) Method and device for achieving copy-on-write snapshot
JP2005078378A (en) Data storage device and data writing method in non-volatile memory
JP2002099390A (en) Disk controller
CN1343917A (en) Method for adding additional memory function to periphrals of computer and its architecture

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted