TWI263895B - Data protection device and method - Google Patents

Data protection device and method Download PDF

Info

Publication number
TWI263895B
TWI263895B TW93126996A TW93126996A TWI263895B TW I263895 B TWI263895 B TW I263895B TW 93126996 A TW93126996 A TW 93126996A TW 93126996 A TW93126996 A TW 93126996A TW I263895 B TWI263895 B TW I263895B
Authority
TW
Taiwan
Prior art keywords
area
backup
magnetic
data
unit
Prior art date
Application number
TW93126996A
Other languages
Chinese (zh)
Other versions
TW200609732A (en
Inventor
Kwok-Yan Leung
Original Assignee
Kwok-Yan Leung
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 Kwok-Yan Leung filed Critical Kwok-Yan Leung
Priority to TW93126996A priority Critical patent/TWI263895B/en
Publication of TW200609732A publication Critical patent/TW200609732A/en
Application granted granted Critical
Publication of TWI263895B publication Critical patent/TWI263895B/en

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a data protection device, which is used to protect data stored in a storage device. The data protection device comprises an allocation unit, an index creation unit and a backup unit. The allocation unit allocates all of the plurality of sectors within the storage device to a working area, an index area and a backup area. The index creation unit records a sector status in the index area while the data is written into a specific sector of the working area. The sector status represents the status of whether the data has been written into the corresponding sector. The backup unit backups the sector with the written data of the working area and the sector status of the index area in the backup area according to the sector status recorded in the index area.

Description

1263895 九、發明說明: 【發明所屬之技術領域】 尤指保護儲存於儲存裝 本發明係關於一種資料保護裝置與方法, 置中的資料之保護裝置。 【先前技術】 =華民國公告號第侧84號專利「保護硬碟#料的電路」所揭 路的技術,乃-鋪由硬_方趣_存於畴裝膽即硬 碟麻術。喊主細懈於,-姆_介面和 匯流排狀.裝此翻_露的妓後,即可硬體方式直 赫取儲存裝置晴包含的資料。因此,對於任何作業系統而 言’加裝此技術的硬碟和普通辦更碟並沒有什麼差異。所以,此 技術不但不會影響原有的資料存取效率,更不需要額外加裝驅動 程式,料會增加作靠_貞擔,卻航軟體方式提供更高效 率的資料保護手段。 由於此技減天上硬體_制,必姻時_可以支援兩個 實體上或兩個邏輯上的電子集成驅動器(Integ加ed1263895 IX. Description of the invention: [Technical field to which the invention pertains] In particular, protection stored in a storage device The present invention relates to a data protection device and method, and a protection device for the data. [Prior Art] = The technology disclosed in the No. 84 patent of the Republic of China Announcement No. 84, "Protecting the Circuit of the Hard Disk #Material", is laid out by the hard--------------------------------------- Shouting the master is neat, and the _ _ interface and the bus bar. After loading the _ 露 露 露 露 露 露 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装 装Therefore, for any operating system, there is no difference between a hard disk with this technology and a regular disk. Therefore, this technology will not only affect the original data access efficiency, but also does not need to add additional drivers. It is expected to increase the efficiency of data protection by providing a more efficient way. Because this technology reduces the hardware _ system, you can support two physical or two logical electronic integrated drivers (Integ plus ed

DriveDrive

Electronics,IDE)介面,如此才能使除了主資料空間、虛擬資 料空間外剩下的剩餘空間,藉著使剩餘空間劃分成邏輯磁碟,而 1263895 被使用者_到這部分的磁碟空間。但是,如此卻會導致此先前 技術已無法應用於僅能支援單一硬碟的新一代的儲存媒體介面 (亦即無法在另外劃分出邏輯磁碟),如:SATA。因此,此先前技 術確有必要顏破其架_及運作方式,叫能支援現在以及 未來的儲存媒體介面。 另外,由於此先前猶在運作方式的缺陷,導致必顯等地(亦 即儲存空間大小對等)配置工作區域(亦即先前技術所稱的主資 料空間)和備份區域(亦即先前技術所稱的虛擬資料空間)。雖 然’這是最料完成設計的賴,但是,由於縣儲存在工作區 域的資料並不會賴的,因此,若單純地完整地將讀區域複製 到備份區域’這種做法是非常浪f備份區域的儲存空㈤,且也因 在備份程序中額外嚐試抓取在工作區域中無資料的磁區 (sector),更是降低了備份程序的效率。 此外’也由於此先前技術缺乏彈性的備份架構設計,導致只能— 對-的f料健’亦即只能從其虛擬資贼間將資料還原回主資 地提供多個倾節點,使得㈣者在備份或 還原操作時有彈性的選擇。 1263895 【發明内容】 本發明之主要目的在提供—種㈣保護裝置與方法,藉著全新的 存取貝料的&式’得以支援任—種的儲存裝置的介面。 本發明之主要目的在提供—種資料保難置與方法,藉著於指標 區域所紀錄每個魏的磁區狀態,大幅減少備份時所需的磁碟空 間,同時也大幅提高備份效率。 本發明之主要目的在提供—髓料傾裝置與方法,藉著於指標 區酬紀縣個魏_區狀態,錢基於此顧狀態所進行的 再次備份、還原’而彈性地提供乡個保護節點,使得使用者在備 份或還原操作時有彈性的選擇。 基於上述發明目的,本發明係關於一種資料保護裝置,乃用以保 濩儲存於儲存裝置中的資料。此資料紐裝置包含配置單元、指 才示建立單70和備份單元。配置單元乃將儲存裝置所含有的複數個 磁區,配置成工倾域、減區域和備份區域。減建立單元乃 於資料寫人作區域中特定磁_同時,將磁區狀態紀錄於指標 區域。磁區狀態為其相對應的磁區是否已寫入資料的狀態。備份 單元乃依據指標區域所紀錄的磁區狀態,將於工作區域中有寫入 貢料的磁區,以及指標區域中的磁區狀態,備份於備份區域。 關於本發明之優點與精神可以藉由以下的發明詳述及所附圖式得 1263895 到進一步的瞭解。 【實施方式】 請參閱第1圖,第1圖為本發明第一實施例之示意圖。如第i圖 所示,本發明資料保護裝置10乃由配置單元18、指標建立單元 20和備份單元22所構成,並由其主機連接介面12連接資料傳輸 線(未顯示),使作業系統得以存取與其另外藉著儲存裝置介面Μ 所連接的儲存裝置16。 簡略而言,本發明資料保護裝置1〇所進行的保護方式,乍看之下 與先前技術十分相似,但實際上,將會因為配置單元18針對儲存 裝置16的複數個磁區(sector)所做的配置程序,而產生革命性的 變化,且能大幅改善先前技術的問題。然後,以概念上相似的備 份或還原程序,達成保護儲存於儲存裝置16中的資料。 凊參閱第2圖’第2圖為本發明磁碟空間配置之示意圖。配置單 元18乃依據可能由使用者藉著操作介面所發出的配置命令,將儲 存裝置16整個磁碟空間(亦由複數個磁區所構成的儲存空間)分 別配置成如第2圖所示之工作區域3〇、指標區域31和備份區域 34並且同時指疋各個區域所佔用的磁區數量,亦即指定所佔用 的磁碟空間。須特別注意的是,資料保護裝置10存取工作區域 1263895 請參閱第3圖,第3圖為本發日紅倾域和指標區域之示音、圖。 如第3圖所示,作業系統在工作區域3〇中已在磁區30a至磁區30e 刀別寫入FF」、「GG」⑽表示未寫人任何資料)、「15」、「A1」、「B0」, 但如磁區3Gf至磁g 3〇丨則尚未有資料寫入。 為了大巾田減少備份時所需的磁碟空間,同時也大幅提高備份效 率’當作業系統將資料寫入工作區域3〇中如磁區施的同時,指 枯建立單元20會將磁區3〇a的磁區狀態32紀錄於指標區域31 中。在如第3圖所示之指標區域31中磁區狀態、32意指,此磁區 30a至磁區3〇f疋否已寫入資料的狀態。因此,若如前所述於磁區 3〇a寫入「FF」時,則以「1」表示有資料已寫入磁區30a,但如 磁區30b沒有寫入任何資料時,則會在指標區域31中相對於磁區 3〇b的磁區狀態32中設定為「〇」。 睛參閱第4圖’第4圖為本發明備份區域之示意圖。當需要開始 進行備份程序時(可能類似於先前技術般,有個操作介面可以選擇 進行),備份單元22乃依據如第3圖所示之指標區域31所紀錄的 磁區狀態32,將如第3圖所示之工作區域30中有寫入資料的磁區 (亦即不將如第3圖中磁區狀態為〇的磁區30b寫入備份區域 1263895 34),以及指標區域31中的磁區狀態32,如第4騎示備份於備 份區域34巾。鱗耻意献,本伽縣限定必彡魏備份指標 區域31中的磁區狀態32或工作區域3G中有寫人資料的磁區。 綜上所述’本發明資料保護裝置1〇採用磁碟空間不必然對等的工 作區域3和備份_34,柯_絲技賴_賴磁碟的方 式達成存取剩餘區域。所以,採用本發明全新的存取㈣的模式, 因不限制必須獅能域私轉的介面,而得以紐任一種的 齡裝置的介面。此外,本發日賴料保難錢更是藉著指標建 立早7L 2G所在指標區域31同步建立砸絲32,而可以避免在 備份時將如第3圖所示之磁區鳥寫入如第4圖所示之備份區域 3[而大幅減少備份時所需的磁碟空間,也因減少備份沒有資料 的^區也大中田提南備份效率。另外,減少在備份時所需空間, 也疋達成上述不必然對等的卫作區域3和備份區域%的主要原因 之—° 請參閱第5圖’第5圖為本翻第二實施例之示意圖。如第5圖 所不,本發明資料保護裝置1〇另包含還原(_⑽)單元24。當 工作區域3〇中所儲存的資料帥題時,或是被電腦病毒入侵時, 使用者得以藉著此還原單元24將備份於備份區域34中的資料還 原回工作區域30。 1263895 當需要進行還原程序時,還原單元24乃基於備份單元22備份於 如第4圖所示的指標區域31中的磁區狀態32,將備份單元22所 備於同樣如第4圖所示之備份區域34中,原本在工作區域30中 的磁區30a、3〇c、3〇d、30e,還原回工作區域30相對應的磁區中。 不過,由於備份的指標區域31顯示,磁區30b先前並未儲存任何 資料’所以,為了能忠實地還原原先在工作區域30的資料,因此, 還原單元24在進行還原程序時,會刻意於磁區3〇b寫入空白資料 「00」。 4 清參閱第6圖,第6圖為本發明第三實施例之示意圖。若如第3 圖所示的工作區域30中的磁區30f至磁區30i,分別依序寫入「14」 「15」「〇〇」「17」,亦即磁區3此並沒有寫入資料。因此,在指標 區域中將除了第一實施例中紀錄的磁區狀態32,額外建立一組為-1、1、〇、1的磁區狀態40。所以,此時使用者需要額外建立另一 保護節點時,備份單元22將依據指標區域31中的磁區狀態犯、^ 40,再次將於工作區域30中有寫入資料的磁區3〇a至3〇i,以及 指標區域31中的磁區狀態32、40,額外備份於備份區域34,如 第6圖所示。同樣的道理’若需要還原時,還原單元%乃基於備 份單元22所額外備份的指標區域31中的磁區狀態32、4〇,將備 份單兀22所額外備份於備份區域34中的磁區,還原回工作區域 30相對應的磁區中,以及將備份單元22所備份於備份區域如中 11 1263895 的磁區狀態32、40,還原回指標區域中。 請參閱第7圖,第7圖為本發明第四實施例之示意圖。如第7圖 所不,本發明資料保護裝置10另外包含磁碟空間單元7〇,此礤磲 空間單元70乃取得工作區域30、指標區域31和備份區域34其中 之一所佔用或所剩餘的磁碟空間。所以,當備份單元22欲將資料 備份於備份區域34前,可先藉著磁碟空間單元7〇確認備份區域 34所剩餘的磁碟空間是否仍可以再寫入欲備份的資料,以避免傷 份區域34設定的磁碟空間過小而又強硬寫入資料,所導致的系统 錯亂。此外,也可讓使用者藉著磁碟空間單元7〇 了解工作區域 30、指標區域31和備份區域34每個區域的磁碟空間所佔用或所 剩餘分布情況。 請參閱第8圖,第8圖為本發明第五實施例之示意圖。如第8圖 所示,本發明資料保護裝置10另外包含備份介面26,此備份介面 26乃用以與備份裝置28連接後,使資料保護裝置1〇得以存取備 份裝置28。若配置單元18將備份裝置26所含有的複數個磁區配 置成備份區域34後,備份單元22所備份的資料為備份於備份裝 置28中。 備伤”面26係選至小型電腦介面(gmaH⑺师此江SystemThe Electronics, IDE) interface, in order to make the remaining space except the main data space and the virtual data space, by dividing the remaining space into logical disks, and 1263895 is the user_to this part of the disk space. However, this will prevent this prior art from being applied to a new generation of storage media interfaces that can support only a single hard disk (that is, it cannot be divided into logical disks), such as SATA. Therefore, this prior art does have to be smashed and operated in a way that supports current and future storage media interfaces. In addition, due to the shortcomings of the previous operation mode, the work area (that is, the main data space referred to in the prior art) and the backup area (that is, the prior art office) must be configured (i.e., the size of the storage space is equal). Called virtual data space). Although 'this is the most complete design, but because the county's information stored in the work area does not depend, so if you simply copy the read area to the backup area' this practice is very wave backup The area is empty (5), and it also reduces the efficiency of the backup program by additionally trying to capture the sector with no data in the work area. In addition, due to the lack of flexible backup architecture design of this prior art, it is only possible to restore the data back to the main capital from multiple virtual thieves, so that (4) Have a flexible choice when backing up or restoring operations. 1263895 SUMMARY OF THE INVENTION The main object of the present invention is to provide a (four) protection device and method for supporting an interface of any storage device by means of a new & The main object of the present invention is to provide a data-preserving method and method for minimizing the disk space required for backup by greatly recording the disk space state of each Wei recorded in the indicator area, and also greatly improving the backup efficiency. The main object of the present invention is to provide a pulping device and method, and to provide a rural protection node elastically based on the status of the Wei_ district in the county of the county, the money is backed up and restored based on the state of the state. , allowing users to have a flexible choice in backup or restore operations. Based on the above objects, the present invention relates to a data protection device for protecting data stored in a storage device. This data link device contains a configuration unit, an indicator display unit 70, and a backup unit. The configuration unit configures a plurality of magnetic regions contained in the storage device into a working area, a reduced area, and a backup area. The reduction creation unit records the magnetic zone status in the indicator area while the data is written by the person in the area. The state of the magnetic zone is the state in which the corresponding magnetic zone has been written to the data. The backup unit is based on the status of the magnetic zone recorded in the indicator area. The magnetic area in which the tribute is written in the working area and the status of the magnetic area in the indicator area are backed up in the backup area. The advantages and spirit of the present invention can be further understood from the following detailed description of the invention and the accompanying drawings. [Embodiment] Please refer to Fig. 1, which is a schematic view of a first embodiment of the present invention. As shown in the figure i, the data protection device 10 of the present invention is composed of the configuration unit 18, the index establishing unit 20 and the backup unit 22, and is connected to the data transmission line (not shown) by the host connection interface 12, so that the operating system can be saved. The storage device 16 is connected to the storage device interface Μ. Briefly, the protection mode performed by the data protection device 1 of the present invention is very similar to the prior art at first glance, but in practice, it will be because the configuration unit 18 is directed to a plurality of sectors of the storage device 16. The configuration process is done with revolutionary changes and can significantly improve the problems of prior art. The data stored in the storage device 16 is then protected by a conceptually similar backup or restore procedure. Referring to Fig. 2, Fig. 2 is a schematic view showing the space configuration of the disk of the present invention. The configuration unit 18 configures the entire disk space (also the storage space formed by the plurality of magnetic regions) of the storage device 16 as shown in FIG. 2 according to a configuration command that may be issued by the user through the operation interface. The working area 3, the indicator area 31 and the backup area 34 and at the same time refer to the number of magnetic areas occupied by each area, that is, the occupied disk space. It should be noted that the data protection device 10 accesses the working area. 1263895 Please refer to FIG. 3, and FIG. 3 is a sound and diagram of the red dip area and the indicator area. As shown in Fig. 3, the operating system has written FF" in the magnetic zone 30a to the magnetic zone 30e in the working area 3", "GG" (10) means that no data is written, "15", "A1" , "B0", but if the magnetic zone 3Gf to magnetic g 3〇丨, there is no data to be written. In order to reduce the disk space required for backup in the large towel field, it also greatly improves the backup efficiency. 'When the operating system writes the data into the working area 3〇, as the magnetic area is applied, the pointing unit 20 will display the magnetic area 3 The magnetic zone state 32 of 〇a is recorded in the index area 31. The magnetic zone state, 32 in the index area 31 as shown in Fig. 3 means that the magnetic zone 30a to the magnetic zone 3〇f are in a state in which data has been written. Therefore, if "FF" is written in the magnetic area 3A as described above, "1" indicates that data has been written to the magnetic area 30a, but if the magnetic area 30b is not written with any data, it will be In the index area 31, the magnetic area status 32 with respect to the magnetic area 3〇b is set to "〇". 4 is a schematic view of a backup area of the present invention. When it is necessary to start the backup process (may be similar to the prior art, there is an operation interface that can be selected), and the backup unit 22 is based on the magnetic zone state 32 recorded in the index area 31 as shown in FIG. In the work area 30 shown in FIG. 3, there is a magnetic area in which data is written (that is, the magnetic area 30b whose magnetic area is 〇 as in FIG. 3 is not written in the backup area 1263895 34), and the magnetic field in the index area 31. The zone status 32, such as the fourth ride, is backed up in the backup area 34. The scale is shameful, and the Benga County limits the Wei backup index. The magnetic area status 32 in the area 31 or the working area 3G has a magnetic area in which the person data is written. In summary, the data protection device 1 of the present invention uses the working area 3 and the backup_34 in which the disk space is not necessarily equal, and the access remaining area is achieved by the method of the disk. Therefore, with the novel access mode (4) of the present invention, it is possible to interface with a device of any age because it does not limit the interface that must be privileged by the lion energy domain. In addition, the money for the protection of the day is based on the indicator to establish the index area 31 of the 7L 2G in the early stage to establish the silk 32, and can avoid writing the magnetic bird as shown in Figure 3 during the backup. The backup area 3 shown in Figure 4 [has greatly reduced the disk space required for backup, and also reduces the backup efficiency of Dazhong Tiannan by reducing the area where there is no data for backup. In addition, the space required for backup is reduced, and the main reason for achieving the above-mentioned non-equivalent guard area 3 and backup area % is as follows - see FIG. 5 'Fig. 5 for the second embodiment. schematic diagram. As shown in Fig. 5, the data protection device 1 of the present invention further includes a reduction (_(10)) unit 24. When the data stored in the work area 3 is handsome, or is invaded by a computer virus, the user can restore the data backed up in the backup area 34 back to the work area 30 by the restore unit 24. 1263895 When the restoration process is required, the restoration unit 24 backs up the magnetic domain state 32 in the index area 31 as shown in FIG. 4 based on the backup unit 22, and prepares the backup unit 22 as shown in FIG. In the backup area 34, the magnetic areas 30a, 3〇c, 3〇d, 30e originally in the working area 30 are restored back to the magnetic area corresponding to the working area 30. However, since the index area 31 of the backup shows that the magnetic area 30b has not previously stored any data 'so, in order to faithfully restore the data originally in the work area 30, the restoration unit 24 deliberately magnetizes when performing the restoration process. The area 3〇b is written with the blank data "00". 4 See Fig. 6, which is a schematic view of a third embodiment of the present invention. If the magnetic zone 30f to the magnetic zone 30i in the work area 30 as shown in FIG. 3, "14", "15", "〇〇" and "17" are sequentially written, that is, the magnetic zone 3 is not written. data. Therefore, in addition to the magnetic zone state 32 recorded in the first embodiment, a magnetic zone state 40 of -1, 1, 〇, 1 is additionally established in the index area. Therefore, when the user needs to additionally establish another protection node, the backup unit 22 will commit the data according to the magnetic domain status in the index area 31, and will again have the magnetic area 3写入a in the working area 30. Up to 3 〇 i, and the magnetic zone states 32, 40 in the indicator area 31, are additionally backed up in the backup area 34, as shown in FIG. By the same token, if the restoration is required, the restoration unit % is based on the magnetic domain status 32, 4 in the index area 31 additionally backed up by the backup unit 22, and the backup unit 22 is additionally backed up in the magnetic area in the backup area 34. Reverting back to the corresponding magnetic area of the working area 30, and restoring the magnetic area status 32, 40 backed up by the backup unit 22 to the backup area, such as 11 1263895, back to the indicator area. Please refer to FIG. 7, which is a schematic view of a fourth embodiment of the present invention. As shown in FIG. 7, the data protection device 10 of the present invention additionally includes a disk space unit 7 that takes up or remains of one of the work area 30, the indicator area 31, and the backup area 34. Disk space. Therefore, when the backup unit 22 wants to back up the data in the backup area 34, the disk space unit 7 can be used to confirm whether the disk space remaining in the backup area 34 can still be written to the data to be backed up, so as to avoid injury. The volume of the disk space set in the area 34 is too small and the data is hard to write, resulting in a system disorder. In addition, the user can also know the distribution or remaining distribution of the disk space of each of the work area 30, the indicator area 31, and the backup area 34 by the disk space unit 7〇. Please refer to FIG. 8. FIG. 8 is a schematic view showing a fifth embodiment of the present invention. As shown in Fig. 8, the data protection device 10 of the present invention additionally includes a backup interface 26 for connecting the backup device 28 to enable the data protection device 1 to access the backup device 28. If the configuration unit 18 configures the plurality of magnetic regions included in the backup device 26 into the backup area 34, the data backed up by the backup unit 22 is backed up in the backup device 28. The wounded "face 26 series is selected to the small computer interface (gmaH (7) division this Jiang System

InterfaCe,SCSI)、光纖通道介面(Fibre Channel Interface, 12 1263895 FC)、周邊零件連接介面(Peripheral Component Interconnect, PCI)、快閃記憶卡介面、串列式儲存架構(seriai storage Architecture,SSA)、電子集成驅動器(integrated Drive Electronics,IDE)、通用序列匯流排(universai Serial Bus, USB)、IEEE1394、個人電腦存儲卡國際協會(pers〇nai Computer Memory Card International Association, PCMCIA)介面、Serial ATA (SATA) 'Parallel ATA (PATA)或其他適當的匯流排介面。 而備伤裝置28係選至更碟、光學燒錄機、ZIp軟碟機、μ◦、磁帶 機和讀卡機其中之-。因此,還可抽換備份裝£28而達到以日期 或時間為備份點的方式備份儲存裝置16中的資料。不過,須特別 注意的是,備份區域34的磁碟空間大小將會在抽換後自動地依據 備份裝置28的磁碟空間大小,自動調整備份區域%所佔的磁碟 空間。 綜上所述,本發明保護裝置1〇可藉著於指標區域31所紀錄每個 磁區的砸狀態32、4G,以及基於此磁區狀態32、4()所進行的再 次備份、還原,而雜地提供多悔護節點,使得者在備份 或還原操作時有彈性的選擇。甚至,還可藉由抽換備份裝置28而 達到以時間或日期為更具彈性的備份方法。 藉由以上紐频實施狀詳述,鱗望缺加清楚描述本發明 13 1263895 之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發 明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具 相等性的安排於本發明所欲申請之專利範圍的範#内。 【圖式簡單說明】 第1圖為本發明第一實施例之示意圖。 第2圖為本發明磁碟空間配置之示意圖。 第3圖為本發明工作區域和指標區域之示意圖。 第4圖為本發明備份區域之示意圖。 第5圖為本發明第二實施例之示意圖。 第6圖為本發明第三實施例之示意圖。 第7圖為本發明第四實施例之示意圖。 · 第8圖為本發明第五實施例之示意圖。 【主要元件符號說明】 10資料保護裝置 12主機連接介面 14儲存裝置介面 14 1263895 16儲存裝置 18配置單元 20指標建立單元 22備份單元 24還原單元 26備份介面 28備份裝置 30工作區域 31指標區域 34備份區域 32、40磁區狀態 30a〜30e磁區 70磁碟空間單元InterfaCe, SCSI), Fibre Channel Interface (12 1263895 FC), Peripheral Component Interconnect (PCI), flash memory card interface, seria storage architecture (SSA), electronics Integrated Drive Electronics (IDE), Universal Serial Bus (USB), IEEE1394, Persnai Computer Memory Card International Association (PCMCIA) interface, Serial ATA (SATA) ' Parallel ATA (PATA) or other suitable bus interface. The preparation device 28 is selected from the group consisting of a disc, an optical burner, a ZIp floppy disk drive, a μ◦, a tape drive, and a card reader. Therefore, it is also possible to replace the backup device 28 to back up the data in the storage device 16 in the manner of a date or time as a backup point. However, it is important to note that the disk space size of the backup area 34 will automatically adjust the disk space occupied by the backup area % according to the disk space size of the backup device 28 after the swapping. In summary, the protection device 1 of the present invention can record the 砸 state 32, 4G of each magnetic zone by the index area 31, and perform the backup and restore again based on the magnetic zone status 32, 4(). The miscellaneous ground provides multiple remorse nodes, making it a flexible choice for backup or restore operations. Even a more flexible backup method with time or date can be achieved by swapping the backup device 28. The details of the present invention are not limited by the above-described preferred embodiments, and the scope of the present invention is not limited by the above-described preferred embodiments. On the contrary, the intention is to cover various changes and equivalent arrangements within the scope of the patent application of the invention. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic view showing a first embodiment of the present invention. Figure 2 is a schematic diagram showing the space configuration of the disk of the present invention. Figure 3 is a schematic view of the working area and the indicator area of the present invention. Figure 4 is a schematic diagram of a backup area of the present invention. Figure 5 is a schematic view of a second embodiment of the present invention. Figure 6 is a schematic view of a third embodiment of the present invention. Figure 7 is a schematic view of a fourth embodiment of the present invention. Fig. 8 is a schematic view showing a fifth embodiment of the present invention. [Main component symbol description] 10 data protection device 12 host connection interface 14 storage device interface 14 1263895 16 storage device 18 configuration unit 20 index establishment unit 22 backup unit 24 restore unit 26 backup interface 28 backup device 30 work area 31 indicator area 34 backup Area 32, 40 magnetic zone state 30a~30e magnetic zone 70 disk space unit

Claims (1)

1263895 十、申請專利範固·· 1·種^㈣❹置’係用以保護儲存於—儲存裝置 的貝料°亥儲存裝置含有複數個磁區(sector), 該資料保護裝置包含·· 配置單元,該配置單元乃依據一配置命令,將 该儲存裝置所含有的複數個磁區,配置成一 工作區域、一指標區域和一備份區域; 才曰枯建立單元,該指標建立單元乃於資料寫入 該工作區域中特定磁區的同時,將一磁區狀 悲紀錄於該指標區域,該磁區狀態為其相對 應的磁區是否已寫入資料的狀態;以及 一備份單元,該備份單元乃依據該指標區域所紀 錄的该磁區狀態,將於該工作區域中有寫入 資料的該磁區,以及該指標區域中的該磁區 狀態,備份於該備份區域。 2·如申請專利範圍第1項所述之資料保護裝置,該資 料保護裝置進一步包含: 一還原(restore)單元,該還原單元乃基於該備 份單元所備份的該指標區域中的該磁區狀 態,將該備份單元所備份於該備份區域中的 16 1263895 A磁區’還原回該工作區域相對應的該磁區 中’以及將该備份單元所備份於該備份區域 中的該磁區狀態,還原回該指標區域中。 3. 如申請專利範圍第!項所述之資料保護裝置,其中 -使用者可以透過-操作介面發出該配置命令,分 別指定該工作區域、該指標區域和該備份區域所佔 用的磁區數量。 4. 如申請專利範圍第1項所述之資料保護裝置,其中 =備份單元乃依據該指標區域所紀錄的該磁區狀 態’再次將於該王作區域中有寫人資料的該磁區, 以及該指標區域中的該麵狀態,額外備份於該備 份區域。 5. 如申請專利範圍第丨項所述之資料保護裝置,其中 該還原單元73基於該備份單元所❸卜備份的該指標 區域中的該磁區狀態,將該備份單开於〜, W仿早70所額外備份於 備份區域中的該磁區,還原回該 作^域相對應的 該磁區中,以及將該備份單摘額外備份於該備份 區域中的該磁區狀態,還原回該指標區域中。 6. 如申請專利範圍第丨項所述之資料保護裳置,士次 料保護裝置進一步包含: 九 ^貝 17 1263895 一備份介面,該倍办人π _1263895 X. Patent application Fan Gu··1· species^(4)❹' is used to protect the bedding stored in the storage device. The storage device contains a plurality of sectors, and the data protection device includes·· The configuration unit configures the plurality of magnetic regions included in the storage device into a working area, an indicator area, and a backup area according to a configuration command; the unit is built up, and the indicator establishing unit writes the data. Simultaneously in the specific magnetic zone of the working area, a magnetic zone is recorded in the indicator area, the state of the magnetic zone is a state in which the corresponding magnetic zone has written data; and a backup unit, the backup unit is According to the state of the magnetic zone recorded in the indicator area, the magnetic zone in which the data is written in the working area and the state of the magnetic zone in the indicator area are backed up in the backup area. 2. The data protection device according to claim 1, wherein the data protection device further comprises: a restore unit, wherein the restore unit is based on the magnetic region status in the indicator area backed up by the backup unit Recovering the 16 1263895 A magnetic region backed up in the backup area to the corresponding magnetic area of the working area and the state of the magnetic area backed up by the backup unit in the backup area, Restore back to this indicator area. 3. For the data protection device described in the scope of the patent application, wherein the user can issue the configuration command through the operation interface to specify the working area, the indicator area and the number of magnetic areas occupied by the backup area. 4. The data protection device according to item 1 of the patent application, wherein the backup unit is based on the magnetic domain state recorded in the indicator area, and the magnetic area in which the person data is written in the king area is again And the status of the face in the indicator area, and an additional backup to the backup area. 5. The data protection device of claim 2, wherein the restoring unit 73 opens the backup sheet based on the status of the magnetic area in the index area backed up by the backup unit. The earlier 70 additional backups in the magnetic area in the backup area are restored back to the magnetic area corresponding to the processing area, and the backup unit is additionally backed up to the magnetic area status in the backup area, and is restored back to the magnetic area. In the indicator area. 6. If the data protection protection device mentioned in the scope of the patent application scope is applied, the equipment protection device further includes: IX ^ 贝 17 1263895 A backup interface, the double π _ 以與一備份裝置連 淳以存取該備份裝 份裝置所含有的複 域後,該備份單元 置’若該配置單元將該備份裝 數個磁區配置成該備份區域後 所備份的資料為備份於該備份裝置中 如申請專利範圍第1項所述之資料保護裝3 料保護裝置進^一步包含·· 該磁碟空間單元乃取得該工作_ 一磁碟空間單元 區域、該指標區域和該備份區域其中之一所 佔用或所剩餘的磁碟空間。 8·如申清專利範圍第7項所述之資料保護裝置,其中 當該備份單元欲將資料備份於該備份區域前,先藉 著磁碟空間單元確認該備份區域所剩餘的磁碟空間 是否仍可以再寫入欲備份的資料。 9·如申請專利範圍第6項所述之資料保護裝置,該備 份介面係選至一小型電腦介面(Smal丨c〇mputer System Interface,SCSI)、一 光纖通道介面(Fibre Channel Interface,FC)、一周邊零件連接介面 (Peripheral Component Interconnect, PCI)、 一 快閃記憶卡介面、一串列式儲存架構(Serial 18 1263895 Storage Architecture, SSA)、一電子集成驅動器 (Integrated Drive Electronics,IDE)、一通用序 列匯流排(Universal Serial Bus, USB)、 IEEE1394、一個人電腦存儲卡國際協會(personai Computer Memory Card International Association, PCMCIA)介面、Serial ATA (SATA) 、Parallel ATA (PATA)或其他適當的匯流排介面。 1 〇·如申請專利範圍第6項所述之資料保護裝置,該 備份裝置係選至一硬碟、一光學燒錄機、一 ζιρ軟碟 機、一M0、一磁帶機和一讀卡機其中之一。 11· 一種資料保護方法,係用以保護儲存於一儲存裝 置中的貧料,該儲存裝置含有複數個磁區,該資料 保護方法包含: 將該儲存裝置所含有的複數個磁區,配置成一工 作區域、一指標區域和一備份區域; 於貝料寫入該工作區域中特定磁區的同時,將一 磁區狀態紀錄於該指標區域,該磁區狀態為 其相對應的磁區是否已寫入資料的狀態;以 及 依據該指標區域所紀錄的該磁區狀態,將於該工 19 ^263895 作區域中有寫入資料的該磁區,以及該指標 區域中的該磁區狀態,備份於該備份區域。 1 •如申睛專利範圍第11項所述之資料保護方法,該 資料保護方法進一步包含: 基於備份於該指標區域中的該磁區狀態,將備份 於備份區域中的該磁區,還原回該工作區域 相對應的該磁區中,以及將備份於該備份區 域中的該磁區狀態,還原回該指標區域中。 13·如申請專利範圍第11項所述之資料保護方法,其 中一使用者可以透過一操作介面發出該配置命令, 分別指定該工作區域、該指標區域和該備份區域所 佔用的磁區數量。 14·如申請專利範圍第11項所述之資料保護方法,依 據4心彳示£域所紀錄的該磁區狀態,再次將於該工 作區域中有寫入資料的該磁區,以及該指標區域中 的該磁區狀態,額外備份於該備份區域。 15·如申請專利範圍第14項所述之資料保護方法,其 中基於額外備份的該指標區域中的該磁區狀態,將 額外備份於備份區域中的該磁區,還原回該工作區 域相對應的該磁區中,以及將額外備份於該備份區 20 1263895 域中的該磁區狀態,還原回該指標區域中。 16 ·、如申請專利範圍第11項所述之資料保護方法,當 :將資料備份於該備份區域前,先確認該備份區域 料。 l間疋否仍可以再寫入欲備份的資After being connected to a backup device to access the complex domain included in the backup package device, the backup unit sets the data backed up after the configuration unit configures the backup to install the plurality of magnetic regions into the backup region. Backed up in the backup device, as described in claim 1, the data protection device 3 protection device further includes: · the disk space unit obtains the work _ a disk space unit area, the indicator area and The disk space occupied or left by one of the backup areas. 8. The data protection device of claim 7, wherein the backup unit first confirms the remaining disk space of the backup area by the disk space unit before backing up the data to the backup area. The data to be backed up can still be written. 9. If the data protection device described in claim 6 is applied, the backup interface is selected to a small computer interface (Smal丨c〇mputer System Interface, SCSI), a Fibre Channel Interface (FC), Peripheral Component Interconnect (PCI), a flash memory card interface, Serial 18 1263895 Storage Architecture (SSA), an integrated drive electronics (IDE), a universal Serial Serial Bus (USB), IEEE1394, personal computer memory card International Association (PCMCIA) interface, Serial ATA (SATA), Parallel ATA (PATA) or other appropriate bus interface. 1 〇 · The data protection device described in claim 6 of the patent scope, the backup device is selected to a hard disk, an optical burning machine, a floppy disk drive, a M0, a tape drive and a card reader one of them. 11. A data protection method for protecting a poor material stored in a storage device, the storage device comprising a plurality of magnetic regions, the data protection method comprising: arranging the plurality of magnetic regions contained in the storage device into one a working area, an indicator area, and a backup area; while the bead material is written into the specific magnetic area in the working area, a magnetic zone state is recorded in the indicator area, and the magnetic zone state is whether its corresponding magnetic zone has The status of the data to be written; and the status of the magnetic area recorded in the indicator area, the magnetic area in which the data is to be written in the area of the work, and the status of the magnetic area in the indicator area, back up In the backup area. 1 • The data protection method according to Item 11 of the scope of the patent application, the data protection method further comprises: restoring the magnetic area backed up in the backup area based on the state of the magnetic area backed up in the indicator area The magnetic zone corresponding to the working area and the state of the magnetic zone backed up in the backup area are restored back to the indicator area. 13. The data protection method according to claim 11, wherein a user can issue the configuration command through an operation interface to specify the working area, the indicator area, and the number of magnetic regions occupied by the backup area. 14. If the data protection method described in item 11 of the patent application scope is based on the state of the magnetic zone recorded in the field of 4, the magnetic area in which the data is written in the work area, and the indicator are again The status of the volume in the area is additionally backed up in the backup area. The data protection method according to claim 14, wherein the magnetic area in the backup area is additionally backed up and corresponding to the working area based on the status of the magnetic area in the indicator area of the additional backup. In the magnetic zone, and the state of the magnetic zone that is additionally backed up in the backup zone 20 1263895, is restored back to the indicator zone. 16 · If you apply for the data protection method described in item 11 of the patent application, when the data is backed up in the backup area, confirm the backup area. l If you still can write the information you want to back up 21 1263895 七、指定代表圖: (一) 本案指定代表圖為:第(1 )圖。 (二) 本代表圖之元件符號簡單說明: 10資料保護裝置 12主機連接介面 14儲存裝置介面 16儲存裝置 18配置單元 20指標建立單元 22備份單元 八、本案若有化學式時,請揭示最能顯示發明 特徵的化學式:21 1263895 VII. Designated representative map: (1) The representative representative of the case is: (1). (2) Brief description of the components of the representative figure: 10 data protection device 12 host connection interface 14 storage device interface 16 storage device 18 configuration unit 20 indicator establishment unit 22 backup unit 8. If there is a chemical formula in this case, please reveal the best display Chemical formula of the inventive feature:
TW93126996A 2004-09-07 2004-09-07 Data protection device and method TWI263895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW93126996A TWI263895B (en) 2004-09-07 2004-09-07 Data protection device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW93126996A TWI263895B (en) 2004-09-07 2004-09-07 Data protection device and method

Publications (2)

Publication Number Publication Date
TW200609732A TW200609732A (en) 2006-03-16
TWI263895B true TWI263895B (en) 2006-10-11

Family

ID=37967203

Family Applications (1)

Application Number Title Priority Date Filing Date
TW93126996A TWI263895B (en) 2004-09-07 2004-09-07 Data protection device and method

Country Status (1)

Country Link
TW (1) TWI263895B (en)

Also Published As

Publication number Publication date
TW200609732A (en) 2006-03-16

Similar Documents

Publication Publication Date Title
US20080140969A1 (en) Method and system for dividing a hard disk drive into multiple host access spaces
US20090157756A1 (en) File System For Storing Files In Multiple Different Data Storage Media
TW200929224A (en) Data writing method for flash memory and controller thereof
TWI456389B (en) Method for updating control program of physical storage device in storage virtualization system and storage virtualization controller and system thereof
KR20020061176A (en) Host protected area (hpa) duplication process
JP2006059347A (en) Storage system using journaling
JPH06349064A (en) Optical disk and method for preventing unfairness use of relevant optical disk
TW200844744A (en) Near instantaneous backup and restore of disc partitions
JP4713951B2 (en) Virtual tape library system and virtual tape writing method
JP5729479B2 (en) Virtual tape device and control method of virtual tape device
TWI263895B (en) Data protection device and method
US9235352B2 (en) Datastore for non-overwriting storage devices
JP2004213365A (en) Hard disk drive unit, data recording device, backup device, restore device, backup method, and computer program executable in computer for making computer function as back up device
JP6171616B2 (en) Storage control device and storage control program
JP4667225B2 (en) Control device and copy control method
JP2891877B2 (en) Recording medium and electronic publication utilization system and processing method
US7266657B2 (en) Data protection device and method of securing data
JP2001109665A (en) Recording medium and recording medium recording record read program for data
US20080281992A1 (en) Method for detecting order of attached devices and computer readable storage media storing program thereof
US7567980B2 (en) Removable recording medium and file control method therefor
JP2010152781A (en) Backup server device, backup/restore program, and backup/restore method
KR20100009330A (en) The data elimination method using a mobile type storage system
JP4731870B2 (en) Data protection apparatus and method
JP7409196B2 (en) Storage control device, storage system, and storage control program
JP4288929B2 (en) Data storage apparatus and data storage method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees