TWI789984B - Method, system and computer-readable storage medium for synthetic incremental data backup - Google Patents

Method, system and computer-readable storage medium for synthetic incremental data backup Download PDF

Info

Publication number
TWI789984B
TWI789984B TW110141665A TW110141665A TWI789984B TW I789984 B TWI789984 B TW I789984B TW 110141665 A TW110141665 A TW 110141665A TW 110141665 A TW110141665 A TW 110141665A TW I789984 B TWI789984 B TW I789984B
Authority
TW
Taiwan
Prior art keywords
backup
data
incremental
synthetic
nth
Prior art date
Application number
TW110141665A
Other languages
Chinese (zh)
Other versions
TW202248856A (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
Application filed by 威聯通科技股份有限公司 filed Critical 威聯通科技股份有限公司
Priority to US17/558,657 priority Critical patent/US20220398169A1/en
Priority to CN202210149043.0A priority patent/CN115470038A/en
Publication of TW202248856A publication Critical patent/TW202248856A/en
Application granted granted Critical
Publication of TWI789984B publication Critical patent/TWI789984B/en

Links

Images

Abstract

A method for synthetic incremental data backup, a corresponding system and a corresponding computer-readable storage medium are provided. The method is executed by a data device and a backup device and includes: generating an incremental backup data and an incremental block change record (BCR) of an N-th backup according to a current data of the data device of an M-th backup and a current data of the data device of the N-th backup, wherein N is an integer greater than or equal to three and M is a positive integer less than N; generating a synthetic backup data and a synthetic BCR of the N-th backup according to a synthetic backup data and a synthetic BCR of the M-th backup and the incremental backup data and the incremental BCR of the N-th backup; and storing the synthetic backup data and the synthetic BCR of the N-th backup in the backup device.

Description

合成增量資料備份方法、系統及電腦可讀取儲存媒體 Synthetic incremental data backup method, system and computer-readable storage medium

本發明係有關一種資料備份技術,且特別係有關一種利用完整備份與增量備份進行合成備份的合成增量資料備份方法、系統及電腦可讀取儲存媒體。 The present invention relates to a data backup technology, and in particular to a synthetic incremental data backup method, system and computer-readable storage medium using full backup and incremental backup for composite backup.

隨著資料儲存技術的進步,例如硬碟等的資料儲存裝置的容量持續增長,有時會將資料儲存裝置的儲存空間劃分為多個資料卷,以便於使用與管理,例如在微軟公司的視窗(Windows)作業系統,可將一個硬碟機的儲存空間劃分為C槽、D槽和E槽等多個資料卷,其中,每個資料卷包括多個用於儲存資料的區塊(block)。 With the advancement of data storage technology, the capacity of data storage devices such as hard disks continues to increase, and sometimes the storage space of the data storage device is divided into multiple data volumes for easy use and management, such as in Microsoft Windows (Windows) operating system can divide the storage space of a hard drive into multiple data volumes such as C slot, D slot and E slot, wherein each data volume includes multiple blocks (blocks) for storing data .

為了避免人為疏失、病毒破壞或硬體故障等因素而導致資料損毀,使用者通常會定期備份資料卷中的資料。目前常用的資料備份方式有完整備份(full backup)、增量備份(incremental backup)與差分備份(differential backup)。 In order to avoid data damage caused by factors such as human error, virus damage, or hardware failure, users usually back up the data in the data volume on a regular basis. Currently commonly used data backup methods include full backup, incremental backup, and differential backup.

完整備份係指每一次備份均將資料卷中已使用的區塊全部傳送至提供資料備份服務的伺服器。當需要還原資料卷中的資料時,可自伺服器取得 先前備份的資料以供還原,但若因為版本控制等需求,而需要儲存歷次完整備份的資料,則需要大量儲存空間。 A full backup means that each backup sends all the used blocks in the data volume to the server that provides data backup services. When it is necessary to restore the data in the data volume, it can be obtained from the server Previously backed up data can be restored, but if it is necessary to store previous full backup data due to version control and other requirements, a large amount of storage space is required.

另一方面,增量備份僅在第一次備份時做完整備份,在後續的每一次備份時,僅將前次備份之後新增與修改的區塊傳送至伺服器即可,而不需要傳送所有已使用的區塊。藉此,增量備份所需的儲存空間明顯小於完整備份,然而增量備份必須儲存歷次備份的資料,才能在需要還原資料時回溯備份歷史以重建資料,因此如果備份歷史中有任何一次備份的資料損毀,就無法重建資料,造成備份時的困擾。 On the other hand, incremental backup only makes a full backup in the first backup, and in each subsequent backup, only the newly added and modified blocks after the previous backup are sent to the server without sending All used blocks. In this way, the storage space required for incremental backup is significantly smaller than that of full backup. However, incremental backup must store the data of previous backups, so that the backup history can be traced back to rebuild the data when the data needs to be restored. Therefore, if there is any backup in the backup history If the data is damaged, the data cannot be reconstructed, causing troubles during backup.

又一方面,差分備份僅在第一次備份時做完整備份,在後續的每一次備份時,則將第一次的完整備份之後新增與修改的區塊傳送至伺服器。因此,僅需要第一次完整備份的資料與最近一次差分備份的資料,即可還原資料卷中的資料,惟差分備份的優點與缺點係介於完整備份與增量備份之間。 On the other hand, the differential backup only performs a full backup in the first backup, and in each subsequent backup, the newly added and modified blocks after the first full backup are sent to the server. Therefore, only the data of the first full backup and the data of the latest differential backup are needed to restore the data in the data volume, but the advantages and disadvantages of differential backup are between full backup and incremental backup.

為解決上述問題,本發明提供一種合成增量資料備份方法,存在於由資料裝置與備份裝置所組成之合成增量資料備份系統,包括:由該資料裝置根據第M次備份及第N次備份之該資料裝置的當下資料進行增量備份,以產生該第N次備份之增量備份資料及增量區塊變更記錄;由該備份裝置根據該第M次備份之合成區塊變更記錄及該第N次備份之該增量區塊變更記錄產生該第N次備份之合成區塊變更記錄;由該備份裝置根據該第M次備份之合成備份資料、該第N次備份之該增量備份資料、該第M次備份之該合成區塊變更記錄、以及該第N次備份之該增量區塊變更記錄,產生該第N次備份之合成備份資料;以 及由該合成增量資料備份系統將該第N次備份之該合成備份資料與該合成區塊變更記錄儲存於該備份裝置。 In order to solve the above-mentioned problems, the present invention provides a method for synthesizing incremental data backup, which exists in a synthetic incremental data backup system composed of a data device and a backup device, including: the data device according to the Mth backup and the Nth backup The current data of the data device is incrementally backed up to generate the incremental backup data and incremental block change records of the Nth backup; the backup device is based on the synthetic block change records and the The incremental block change record of the Nth backup generates the synthetic block change record of the Nth backup; the backup device is based on the synthetic backup data of the Mth backup, the incremental backup of the Nth backup data, the synthetic block change record of the M-th backup, and the incremental block change record of the N-th backup, to generate the synthetic backup data of the N-th backup; And the synthetic incremental data backup system stores the synthetic backup data of the Nth backup and the synthetic block change record in the backup device.

本發明另提供一種電腦可讀取儲存媒體,應用於備份裝置中,係儲存有指令,以執行上述之合成增量資料備份方法。 The present invention also provides a computer-readable storage medium, which is used in a backup device and stores instructions to execute the above method for synthesizing incremental data backup.

本發明又提供一種合成增量資料備份系統,包括:資料裝置,用於根據第M次備份及第N次備份之該資料裝置的當下資料進行增量備份,以產生該第N次備份之增量備份資料及增量區塊變更記錄;以及備份裝置,用於儲存該第N次備份之合成備份資料及合成區塊變更記錄,其中,該第N次備份之該合成區塊變更記錄係由該備份裝置根據該第M次備份之合成區塊變更記錄及該第N次備份之該增量區塊變更記錄而產生者,且該第N次備份之該合成備份資料係由該備份裝置根據該第M次備份之合成備份資料、該第N次備份之該增量備份資料、該第M次備份之該合成區塊變更記錄、以及該第N次備份之該增量區塊變更記錄而產生者。 The present invention also provides a synthetic incremental data backup system, including: a data device for performing incremental backups based on the current data of the data device in the M-time backup and the N-time backup, so as to generate the incremental data of the N-time backup Quantitative backup data and incremental block change records; and a backup device for storing the synthetic backup data and synthetic block change records of the Nth backup, wherein the synthetic block change records of the Nth backup are created by The backup device is generated according to the synthetic block change record of the M-time backup and the incremental block change record of the N-time backup, and the synthetic backup data of the N-time backup is generated by the backup device according to The synthetic backup data of the M-th backup, the incremental backup data of the N-th backup, the synthetic block change records of the M-th backup, and the incremental block change records of the N-th backup, producer.

本發明提供之合成增量資料備份方法與系統所需的儲存空間小於完整備份,不需要如同增量備份回溯整個備份歷史以重建資料,且比差分備份更具效率。 The synthetic incremental data backup method and system provided by the present invention require less storage space than full backup, do not need to go back to the entire backup history to rebuild data like incremental backup, and are more efficient than differential backup.

10:合成增量資料備份系統 10: Synthetic incremental data backup system

11:資料裝置 11: Data device

12:備份裝置 12: Backup device

30:資料卷 30: Data volume

31:快照 31: snapshot

32:卷位元圖 32:Volume Bitmap

33:區塊資料 33: Block data

34:雜湊函數 34: hash function

35:雜湊值表 35: hash value table

B0~B6:區塊 B 0 ~B 6 : block

C-DATAN:當下資料 C-DATA N : current data

F-DATA:完整備份資料 F-DATA: complete backup data

I-BCRN:增量區塊變更記錄 I-BCR N : incremental block change record

I-DATAN:增量備份資料 I-DATA N : Incremental backup data

S-BCRM,S-BCRN:合成區塊變更記錄 S-BCR M , S-BCR N : synthetic block change record

S-DATAM,S-DATAN:合成備份資料 S-DATA M , S-DATA N : synthetic backup data

圖1為根據本發明一實施例的一種合成增量資料備份系統的方塊圖。 FIG. 1 is a block diagram of a synthetic incremental data backup system according to an embodiment of the present invention.

圖2為根據本發明一實施例的一種合成增量資料備份方法的流程示意圖。 FIG. 2 is a schematic flowchart of a method for backing up synthetic incremental data according to an embodiment of the present invention.

圖3為圖2的合成增量資料備份方法中產生區塊雜湊值的流程示意圖。 FIG. 3 is a schematic flow chart of generating block hash values in the method for synthesizing incremental data backup in FIG. 2 .

圖4為圖2的合成增量資料備份方法中合成備份的範例示意圖。 FIG. 4 is a schematic diagram of an example of synthetic backup in the method for synthesizing incremental data backup in FIG. 2 .

圖5為圖2的合成增量資料備份方法中去資料複製的示意圖。 FIG. 5 is a schematic diagram of deduplication of data in the synthetic incremental data backup method of FIG. 2 .

圖6及圖7為圖2的合成增量資料備份方法中合成備份失敗的示意圖。 FIG. 6 and FIG. 7 are schematic diagrams of synthetic backup failures in the method for synthesizing incremental data backup in FIG. 2 .

圖8至圖10為圖2的合成增量資料備份方法中還原資料的示意圖。 8 to 10 are schematic diagrams of restoring data in the synthetic incremental data backup method of FIG. 2 .

圖11為圖2的合成增量資料備份方法中還原資料的範例示意圖。 FIG. 11 is a schematic diagram of an example of restoring data in the synthetic incremental data backup method of FIG. 2 .

以下藉由特定的具體實施例說明本發明之實施方式,在本技術領域具有通常知識者可由本說明書所揭示之內容輕易地瞭解本發明之其他優點及功效。 The implementation of the present invention will be described below through specific specific examples. Those with ordinary knowledge in the technical field can easily understand other advantages and effects of the present invention from the contents disclosed in this specification.

圖1為根據本發明一實施例的一種合成增量資料備份系統10的方塊圖,合成增量資料備份系統10包括資料裝置11與備份裝置12,其中,資料裝置11與備份裝置12可通過有線或無線方式互相連接,以互相傳送資料。 1 is a block diagram of a synthetic incremental data backup system 10 according to an embodiment of the present invention. The synthetic incremental data backup system 10 includes a data device 11 and a backup device 12, wherein the data device 11 and the backup device 12 can be connected via a cable. Or connect to each other wirelessly to transmit data to each other.

在一實施例中,資料裝置11可為智慧型手機、電腦、伺服器、或任何其他種類的具有資料處理功能的電子裝置,而備份裝置12可為智慧型手機、電腦、伺服器、網路附加儲存裝置(network attached storage,NAS)、或任何其他種類的具有資料儲存功能的電子裝置。 In one embodiment, the data device 11 can be a smart phone, a computer, a server, or any other type of electronic device with data processing functions, and the backup device 12 can be a smart phone, a computer, a server, a network Additional storage device (network attached storage, NAS), or any other kind of electronic device with data storage function.

在一實施例中,資料裝置11包括至少一個資料儲存裝置,該至少一個資料儲存裝置包括至少一個資料卷,例如微軟公司的視窗作業系統的資料卷,該資料卷包括多個區塊,而備份裝置12可為該資料卷提供資料備份與還原服務。 In one embodiment, the data device 11 includes at least one data storage device, and the at least one data storage device includes at least one data volume, such as a data volume of Microsoft's Windows operating system, the data volume includes a plurality of blocks, and the backup The device 12 can provide data backup and restoration services for the data volume.

圖2為根據本發明一實施例的一種合成增量資料備份方法的流程示意圖,該合成增量資料備份方法可由如圖1所示之合成增量資料備份系統10的資料裝置11與備份裝置12合作執行。 FIG. 2 is a schematic flow chart of a method for synthesizing incremental data backup according to an embodiment of the present invention. The method for synthesizing incremental data backup can be composed of the data device 11 and the backup device 12 of the synthetic incremental data backup system 10 shown in FIG. 1 Cooperative execution.

首先,在第一次備份時,資料裝置11對該資料卷中的當下資料進行完整備份。該當下資料為該資料卷中的全部已使用區塊所組成的集合,該完整備份係將該資料卷中的全部已使用區塊合併為完整備份資料,再將該完整備份資料傳送至備份裝置12。備份裝置12自資料裝置11接收該完整備份資料,以將該完整備份資料儲存於備份裝置12。 First, during the first backup, the data device 11 fully backs up the current data in the data volume. The current data is a collection of all used blocks in the data volume. The full backup is to combine all the used blocks in the data volume into a complete backup data, and then send the complete backup data to the backup device 12. The backup device 12 receives the full backup data from the data device 11 to store the full backup data in the backup device 12 .

然後,在第二次備份時,資料裝置11對該資料卷中的當下資料進行增量備份,以產生第二次備份的增量備份資料I-DATA2及增量區塊變更記錄I-BCR2,再將第二次備份的增量備份資料I-DATA2及增量區塊變更記錄I-BCR2傳送至備份裝置12。 Then, during the second backup, the data device 11 performs incremental backup on the current data in the data volume to generate the incremental backup data I-DATA 2 and the incremental block change record I-BCR for the second backup 2. Send the incremental backup data I-DATA 2 and the incremental block change record I-BCR 2 of the second backup to the backup device 12.

第二次備份的增量區塊變更記錄I-BCR2係比對第一次備份的該當下資料中各區塊的雜湊值及第二次備份的該當下資料中各區塊的雜湊值而產生(細節後述),且第二次備份的增量區塊變更記錄I-BCR2包括該資料卷中的區塊自第一次備份後至第二次備份的新增、修改、刪除等變更記錄。 The incremental block change record I-BCR 2 of the second backup is compared with the hash value of each block in the current data of the first backup and the hash value of each block in the current data of the second backup. Generated (details will be described later), and the incremental block change record I-BCR 2 of the second backup includes changes such as addition, modification, and deletion of blocks in the data volume from the first backup to the second backup Record.

第二次備份的增量備份資料I-DATA2包括第二次備份的增量區塊變更記錄I-BCR2中的全部新增區塊及全部已修改區塊,換言之,I-DATA2包括自第一次備份後至第二次備份期間的全部新增區塊及全部已修改區塊。 The incremental backup data I-DATA 2 of the second backup includes all new blocks and all modified blocks in the incremental block change record I-BCR 2 of the second backup, in other words, I-DATA 2 includes All new blocks and all modified blocks from the first backup to the second backup.

備份裝置12自資料裝置11接收第二次備份的增量備份資料I-DATA2及增量區塊變更記錄I-BCR2,以將第二次備份的增量備份資料I-DATA2及增量區塊變更記錄I-BCR2直接做為第二次備份的合成備份資料S-DATA2與合成區塊變更記錄S-BCR2,再將第二次備份的合成備份資料S-DATA2與合成區塊變更記錄S-BCR2儲存於備份裝置12。 The backup device 12 receives the incremental backup data I-DATA 2 and the incremental block change record I-BCR 2 of the second backup from the data device 11, so that the incremental backup data I-DATA 2 of the second backup and the incremental The block change record I-BCR 2 is directly used as the synthetic backup data S-DATA 2 of the second backup and the synthetic block change record S-BCR 2 , and then the synthetic backup data S-DATA 2 of the second backup is combined with The composite block change record S-BCR 2 is stored in the backup device 12 .

圖3為圖2的合成增量資料備份方法中產生區塊雜湊值的流程示意圖。在每一次備份時,資料裝置11均可依此流程產生其資料卷30中的當下資料的各區塊的雜湊值。 FIG. 3 is a schematic flow chart of generating block hash values in the method for synthesizing incremental data backup in FIG. 2 . During each backup, the data device 11 can generate the hash value of each block of the current data in the data volume 30 according to this process.

首先,產生資料卷30的快照(snapshot)31,快照31亦可稱為陰影副本(shadow copy)。 First, a snapshot 31 of the data volume 30 is generated. The snapshot 31 can also be called a shadow copy.

接著,自快照31讀取資料卷30的卷位元圖(volume bitmap)32。資料卷30的每個區塊在卷位元圖32中均對應一個位元,該位元指示對應的該區塊是否已使用或未使用。 Next, a volume bitmap 32 of the data volume 30 is read from the snapshot 31 . Each block of the data volume 30 corresponds to a bit in the volume bitmap 32, and the bit indicates whether the corresponding block is used or unused.

接著,根據卷位元圖32,讀取資料卷30中所有已使用區塊的資料33。如圖3所示之一實施例中,卷位元圖32指示區塊B0、B2及B5已被使用,故讀取區塊B0、B2及B5的資料33,未使用的區塊則不需讀取。 Next, read the data 33 of all used blocks in the data volume 30 according to the volume bitmap 32 . In an embodiment as shown in FIG. 3 , the volume bitmap 32 indicates that the blocks B 0 , B 2 and B 5 have been used, so the data 33 of the blocks B 0 , B 2 and B 5 are read and unused. The block does not need to be read.

接著,使用預設的雜湊函數(hash function,例如SHA-256)34計算資料卷30中每個已使用區塊的資料33的雜湊值(hash value),以產生雜湊值表(hash directory)35。雜湊值表35包括該當下資料中每個區塊的編號及其資料的 雜湊值。例如圖3所示,區塊B0的資料的雜湊值為c6c5876(十六進位制),依此類推。 Next, use a preset hash function (hash function, such as SHA-256) 34 to calculate the hash value (hash value) of the data 33 of each used block in the data volume 30 to generate a hash value table (hash directory) 35 . The hash value table 35 includes the serial number of each block in the current data and the hash value of the data. For example, as shown in FIG. 3 , the hash value of the data in block B 0 is c6c5876 (hexadecimal), and so on.

資料裝置11在每一次備份時均會產生並儲存當下資料的雜湊值表。在每一次備份時,資料裝置11比對此次備份和前次備份的雜湊值表,即可獲知這兩次備份之間,資料卷30中有哪些區塊被新增、修改或刪除,以產生此次備份的增量區塊變更記錄。 The data device 11 generates and stores a hash value table of the current data during each backup. During each backup, the data device 11 compares the hash value table of this backup with the previous backup, and can know which blocks in the data volume 30 have been added, modified or deleted between the two backups, so as to Generate the incremental block change records for this backup.

然後,請一併參照圖2與圖4,在第三次備份及後續的每一次備份(以下稱為第N次備份,N為大於或等於三的整數)時,資料裝置11根據先前的第M次備份(M為小於N的正整數,若第N次備份之前最近一次的備份未發生資料損毀,則M等於N-1)的該當下資料及第N次備份的該當下資料進行增量備份,以產生第N次備份的增量備份資料I-DATAN及增量區塊變更記錄I-BCRN,再將第N次備份的增量備份資料I-DATAN及增量區塊變更記錄I-BCRN傳送至備份裝置12。 Then, please refer to FIG. 2 and FIG. 4 together. During the third backup and each subsequent backup (hereinafter referred to as the Nth backup, N is an integer greater than or equal to three), the data device 11 Increment the current data of M backups (M is a positive integer less than N, if the latest backup before the Nth backup has no data damage, then M is equal to N-1) and the current data of the Nth backup Backup to generate incremental backup data I-DATA N and incremental block change records I-BCR N for the Nth backup, and then change the incremental backup data I-DATA N and incremental blocks for the Nth backup The record I- BCRN is sent to the backup device 12 .

第N次備份的增量區塊變更記錄I-BCRN係比對第M次備份的該當下資料中各區塊的雜湊值及第N次備份的該當下資料中各區塊的雜湊值而產生,且第N次備份的增量區塊變更記錄I-BCRN包括資料卷30中的區塊自第M次備份後至第N次備份的新增、修改、刪除等變更記錄。 The incremental block change record I-BCR N of the Nth backup is compared with the hash value of each block in the current data of the Mth backup and the hash value of each block in the current data of the Nth backup. Generated, and the incremental block change record I-BCR N of the Nth backup includes change records such as addition, modification, and deletion of blocks in the data volume 30 from the Mth backup to the Nth backup.

第N次備份的增量備份資料I-DATAN包括第N次備份的增量區塊變更記錄I-BCRN中的全部新增區塊及全部已修改區塊。 The incremental backup data I-DATA N of the Nth backup includes all newly added blocks and all modified blocks in the incremental block change record I-BCR N of the Nth backup.

接著,備份裝置12自資料裝置11接收第N次備份的增量備份資料I-DATAN及增量區塊變更記錄I-BCRN,進行合成備份。該合成備份係根據第M次備份的合成區塊變更記錄S-BCRM及第N次備份的增量區塊變更記錄I- BCRN產生第N次備份的合成區塊變更記錄S-BCRN,且根據第M次備份的合成備份資料S-DATAM、第N次備份的增量備份資料I-DATAN、第M次備份的合成區塊變更記錄S-BCRM、以及第N次備份的增量區塊變更記錄I-BCRN,產生第N次備份的合成備份資料S-DATAN,再將S-DATAN以及S-BCRN儲存於備份裝置12。本發明不限定產生S-DATAN及S-BCRN的相對順序,在不同實施例中,備份裝置12可以先產生S-DATAN再產生S-BCRN,或先產生S-BCRN再產生S-DATANNext, the backup device 12 receives the incremental backup data I-DATA N and the incremental block change record I- BCRN of the Nth backup from the data device 11, and performs synthetic backup. The synthetic backup is based on the synthetic block change record S-BCR M of the M backup and the incremental block change record I-BCR N of the N backup to generate the synthetic block change record S-BCR N of the N backup , and according to the synthetic backup data S-DATA M of the Mth backup, the incremental backup data I-DATA N of the Nth backup, the synthetic block change record S- BCRM of the Mth backup, and the Nth backup Incremental block change record I- BCRN to generate the synthetic backup data S-DATA N of the Nth backup, and then store S-DATA N and S- BCRN in the backup device 12 . The present invention does not limit the relative order of generating S-DATA N and S-BCR N. In different embodiments, the backup device 12 may first generate S-DATA N and then generate S-BCRN, or generate S-BCR N first and then generate S-DATA N.

第M次備份的合成區塊變更記錄S-BCRM包括資料裝置11的資料卷30中的區塊自前次完整備份(例如,在此實施例中為第一次備份)後至第M次備份的新增、修改、刪除等變更記錄。如圖4所示之一實施例中,S-BCRM記錄在前次完整備份至第M次備份期間,區塊B0及B1被新增,且區塊B2及B3被修改。 The composite block change record S-BCR M of the Mth backup includes the blocks in the data volume 30 of the data device 11 from the previous full backup (for example, the first backup in this embodiment) to the Mth backup Addition, modification, deletion and other change records. In an embodiment as shown in FIG. 4 , the S- BCRM records that blocks B 0 and B 1 are added, and blocks B 2 and B 3 are modified during the period from the previous full backup to the M-th backup.

第N次備份的增量區塊變更記錄I-BCRN包括資料卷30中的區塊自第M次備份後至第N次備份的新增、修改、刪除等變更記錄。如圖4所示之一實施例中,I-BCRN記錄自第M次備份後至第N次備份期間,區塊B4被新增,區塊B0被修改,且區塊B2被刪除。 The incremental block change record I-BCR N of the Nth backup includes change records such as addition, modification, and deletion of blocks in the data volume 30 from the Mth backup to the Nth backup. In one embodiment as shown in Figure 4, the I-BCR N record is from the Mth backup to the Nth backup period, block B4 is added, block B0 is modified, and block B2 is delete.

第N次備份的合成區塊變更記錄S-BCRN係為將第N次備份的增量區塊變更記錄I-BCRN併入第M次備份的合成區塊變更記錄S-BCRM所得的區塊變更記錄,因此,第N次備份的合成區塊變更記錄S-BCRN包括資料卷30中的區塊自前次完整備份後至第N次備份的新增、修改、刪除等變更記錄。如圖4所示之一實施例中,S-BCRN記錄自前次完整備份後至第N次備份期間,區塊B0、B1及B4被新增,區塊B3被修改,且區塊B2被刪除。 The synthetic block change record S-BCR N of the Nth backup is obtained by merging the incremental block change record I-BCR N of the Nth backup into the synthetic block change record S-BCR M of the Mth backup Block change record, therefore, the synthetic block change record S-BCR N of the Nth backup includes change records such as addition, modification, and deletion of blocks in the data volume 30 from the previous full backup to the Nth backup. In an embodiment as shown in FIG. 4 , the S-BCR N records that blocks B 0 , B 1 and B 4 are added, block B 3 is modified, and Block B 2 is deleted.

第N次備份的合成備份資料S-DATAN包括第N次備份的合成區塊變更記錄S-BCRN中的全部新增區塊及全部已修改區塊,換言之,S-DATAN包括自前次完整備份後至第N次備份期間的全部新增區塊及全部已修改區塊。如圖4所示之一實施例中,S-DATAN包括S-BCRN所記錄的新增區塊B0、B1、B4及已修改區塊B3,其中,區塊B1及B3來自S-DATAM,區塊B0及B4則來自I-DATANThe synthetic backup data S-DATA N of the Nth backup includes all new blocks and all modified blocks in the synthetic block change record S-BCR N of the Nth backup. All new blocks and all modified blocks between the full backup and the Nth backup. In one embodiment shown in Figure 4, S-DATA N includes newly added blocks B 0 , B 1 , B 4 and modified blocks B 3 recorded by S-BCR N , wherein, blocks B 1 and B 3 is from S-DATA M , and blocks B 0 and B 4 are from I-DATA N .

從圖4可看出S-DATAN的產生規則,詳言之,對於S-BCRN中記錄為新增或修改的每一個區塊,若I-DATAN包括該區塊,則自I-DATAN將該區塊複製到S-DATAN,否則自S-DATAM將該區塊複製到S-DATAN。另外,對於S-BCRN中記錄為刪除的區塊,則不將該些區塊複製到S-DATANAs can be seen from Figure 4, the generation rules of S-DATA N , in detail, for each block recorded as new or modified in S-BCR N , if I-DATA N includes this block, then from I-DATA N DATA N copies the block to S-DATA N , otherwise copies the block from S-DATA M to S-DATA N . In addition, for the blocks recorded as deleted in S- BCRN , these blocks are not copied to S-DATA N .

在每一次備份後,備份裝置12可對歷次備份時儲存於備份裝置12的完整備份資料及合成備份資料進行去複製資料(deduplication),以節省儲存空間。如圖5所示之一實施例中,備份裝置12在第N次備份時產生的合成備份資料S-DATAN包括區塊B0~B3。在第N+1次備份前,區塊B0被刪除,所以備份裝置12在第N+1次備份時產生的合成備份資料S-DATAN+1僅包括區塊B1~B3。在第N+2次備份前,區塊B1被刪除,所以備份裝置12在第N+2次備份時產生的合成備份資料S-DATAN+2僅包括區塊B2及B3。為了儲存這三次備份的合成備份資料,儲存裝置12需要儲存一份區塊B0、兩份區塊B1、三份區塊B2及三份區塊B3,總共需要9個區塊的儲存空間。 After each backup, the backup device 12 can deduplicate the complete backup data and the composite backup data stored in the backup device 12 during previous backups to save storage space. In an embodiment as shown in FIG. 5 , the synthetic backup data S-DATA N generated by the backup device 12 during the N-time backup includes blocks B 0 -B 3 . Before the N+1th backup, the block B 0 is deleted, so the synthetic backup data S-DATA N+1 generated by the backup device 12 during the N+1th backup only includes blocks B 1 -B 3 . Before the N+2th backup, the block B1 is deleted, so the synthetic backup data S-DATA N+2 generated by the backup device 12 during the N+2th backup only includes the blocks B2 and B3 . In order to store the synthetic backup data of these three backups, the storage device 12 needs to store one block B 0 , two blocks B 1 , three blocks B 2 and three blocks B 3 , and a total of 9 blocks are required. storage space.

進行去複製資料後,則區塊B0~B3僅需要各儲存一份。例如,備份裝置12僅儲存S-DATAN的區塊B0~B3,S-DATAN+1的區塊B1~B3可分別用指向S-DATAN的區塊B1~B3的指標代替,S-DATAN+2的區塊B2及B3亦可分別用 指向S-DATAN的區塊B2及B3的指標代替,藉此,總共僅需要4個區塊的儲存空間,可以大幅降低備份裝置12的儲存空間需求。 After the data is deduplicated, only one copy of each block B 0 -B 3 needs to be stored. For example, the backup device 12 only stores the blocks B 0 ~ B 3 of S-DATA N , and the blocks B 1 ~ B 3 of S-DATA N+1 can be respectively used to point to the blocks B 1 ~ B 3 of S-DATA N The index of the block B 2 and B 3 of S-DATA N+2 can also be replaced by the index pointing to the block B 2 and B 3 of S-DATA N respectively, so that a total of only 4 blocks are needed The storage space can greatly reduce the storage space requirement of the backup device 12 .

此外,如果資料裝置11所儲存的某一次備份的雜湊值表因為意外損毀而導致無法進行下一次備份,或備份裝置12所儲存的該次備份的完整備份資料或合成備份資料因為意外損毀而導致無法進行下一次備份且無法還原該次備份的資料裝置11的當下資料,則該次備份可稱為失敗。反之,如果未發生上述的資料損毀,則該次備份可稱為成功。對於備份失敗的意外事件,有以下兩種可選的處理方式。 In addition, if the hash value table of a certain backup stored in the data device 11 is accidentally damaged and the next backup cannot be performed, or the complete backup data or synthetic backup data of the backup stored in the backup device 12 is caused by accidental damage. If the next backup cannot be performed and the current data of the data device 11 cannot be restored, the backup can be called a failure. On the contrary, if the above-mentioned data damage does not occur, the backup can be called successful. For unexpected events of backup failure, there are the following two optional handling methods.

第一種處理方式為在失敗備份的下一次備份時進行完整備份,例如圖6所示,第N+1次備份失敗,因此,在第N+2次備份時不進行合成備份,而是重新進行完整備份,如同圖2所示的第一次備份,後續的第N+3次和第N+4次備份就分別如同圖2所示的第二次和第三次備份,依此類推。 The first processing method is to perform a full backup at the next backup of the failed backup. For example, as shown in Figure 6, the N+1th backup fails. Carry out a complete backup, as shown in Figure 2 for the first backup, the subsequent N+3th and N+4th backups are respectively like the second and third backups shown in Figure 2, and so on.

第二種處理方式為當前次備份失敗時,不用前次備份的完整備份資料或合成備份資料進行合成備份,而是用最近一次成功備份的完整備份資料或合成備份資料進行合成備份。例如圖7所示,第N+1次備份失敗,因此,在第N+2次備份時,不用第N+1次備份的合成備份資料進行合成備份,而是用第N次備份的合成備份資料進行合成備份。再舉一例,在圖4的範例中,若第N-1次備份未發生資料損毀,則圖4中的第M次備份即為第N-1次備份,否則,第M次備份為第N次備份之前的最近一次成功備份,即最近一次無資料損毀的備份。 The second processing method is that when the current backup fails, the complete backup data or synthetic backup data of the previous backup is not used for synthetic backup, but the complete backup data or synthetic backup data of the last successful backup is used for synthetic backup. For example, as shown in Figure 7, the N+1th backup failed. Therefore, during the N+2th backup, the synthetic backup of the N+1th backup is not used for synthetic backup, but the synthetic backup of the Nth backup The data is backed up synthetically. To give another example, in the example in Figure 4, if no data damage occurs in the N-1th backup, then the M-th backup in Figure 4 is the N-1th backup, otherwise, the M-th backup is the Nth The last successful backup before the last backup, that is, the latest backup without data corruption.

接著,請參照圖8至圖10,係為圖2的合成增量資料備份方法中還原資料的示意圖。 Next, please refer to FIG. 8 to FIG. 10 , which are schematic diagrams of restoring data in the method for synthesizing incremental data backup in FIG. 2 .

當需要還原第一次備份的資料裝置11的當下資料時,如圖8所示,備份裝置12可直接將第一次備份的完整備份資料傳送至資料裝置11,以供資料裝置11還原其資料卷30中的當下資料。 When it is necessary to restore the current data of the data device 11 backed up for the first time, as shown in FIG. Current material in Volume 30.

當需要還原第二次備份的資料裝置11的當下資料時,如圖9所示,備份裝置12根據第一次備份的完整備份資料,以及第二次備份的合成備份資料與合成區塊變更記錄,還原第二次備份的當下資料,再將第二次備份的當下資料傳送至資料裝置11,以供資料裝置11還原其資料卷30中的當下資料。 When it is necessary to restore the current data of the data device 11 backed up for the second time, as shown in FIG. , restore the current data backed up for the second time, and then send the current data backed up for the second time to the data device 11 for the data device 11 to restore the current data in its data volume 30 .

當需要還原第三次備份的資料裝置11的當下資料時,如圖10所示,備份裝置12根據第一次備份的完整備份資料,以及第三次備份的合成備份資料與合成區塊變更記錄,還原第三次備份的當下資料,再將第三次備份的當下資料傳送至資料裝置11,以供資料裝置11還原其資料卷30中的當下資料。 When it is necessary to restore the current data of the data device 11 backed up for the third time, as shown in FIG. , restore the current data backed up for the third time, and then send the current data backed up for the third time to the data device 11 for the data device 11 to restore the current data in its data volume 30 .

鑒於完整備份資料的重要性,在一實施例中,備份裝置12可在第一次備份時將完整備份資料複製為至少兩份並儲存於備份裝置12。當需要還原其後的某一次備份的資料裝置11的當下資料時,備份裝置12先檢查該些完整備份資料是否有損毀,再根據其中一份無損毀的完整備份資料還原該次備份的當下資料。 In view of the importance of the complete backup data, in one embodiment, the backup device 12 can copy the complete backup data into at least two copies and store them in the backup device 12 during the first backup. When it is necessary to restore the current data of the data device 11 in a subsequent backup, the backup device 12 first checks whether the complete backup data is damaged, and then restores the current data of the backup according to one of the undamaged complete backup data .

請參照圖11,係為圖2的合成增量資料備份方法中還原資料的範例示意圖,且圖11的範例對應圖4的範例。如圖11所示,當需要還原第N次備份(N為大於或等於三的整數)的資料裝置11的當下資料C-DATAN時,備份裝置12根據第一次備份的完整備份資料F-DATA,及第N次備份的合成備份資料S-DATAN與合成區塊變更記錄S-BCRN,以還原第N次備份的當下資料C- DATAN,再將第N次備份的當下資料C-DATAN傳送至資料裝置11,以供資料裝置11還原其資料卷30中的當下資料。 Please refer to FIG. 11 , which is a schematic diagram of an example of restoring data in the synthetic incremental data backup method in FIG. 2 , and the example in FIG. 11 corresponds to the example in FIG. 4 . As shown in Figure 11, when it is necessary to restore the current data C-DATA N of the data device 11 backed up for the Nth time (N is an integer greater than or equal to three), the backup device 12 is based on the complete backup data F-DATA N of the first backup. DATA, and the synthetic backup data S-DATA N of the Nth backup and the synthetic block change record S-BCR N to restore the current data C- DATA N of the Nth backup, and then restore the current data C of the Nth backup - DATA N is sent to the data device 11 for the data device 11 to restore the current data in its data volume 30 .

從圖11可看出C-DATAN的產生規則,詳言之,係將S-BCRN中記錄為新增或修改的區塊自S-DATAN複製到C-DATAN,以及將存在於F-DATA中且不存在於S-DATAN中且於S-BCRN中未記錄為刪除的區塊自F-DATA複製到C-DATAN。亦即,對於S-BCRN中記錄為刪除的區塊,則不將該些區塊複製到C-DATAN。如圖11所示之實施例中,C-DATAN中的區塊B0、B1、B3及B4來自S-DATAN,且C-DATAN中的區塊B5及B6來自F-DATA。 It can be seen from Figure 11 that the generation rules of C-DATA N , in detail, is to copy the block recorded as new or modified in S-BCR N from S-DATA N to C-DATA N , and will exist in Blocks in F-DATA that do not exist in S-DATA N and are not recorded as deleted in S-BCR N are copied from F-DATA to C-DATA N . That is, for the blocks recorded as deleted in S- BCRN , these blocks are not copied to C-DATA N . In the embodiment shown in Figure 11, blocks B 0 , B 1 , B 3 and B 4 in C-DATA N are from S-DATA N , and blocks B 5 and B 6 in C-DATA N are from F-DATA.

本發明不限於上述之合成增量資料備份系統與方法,在一實施例中,本發明亦提供一種電腦可讀取儲存媒體,例如記憶體、軟碟、硬碟或光碟。該電腦可讀取儲存媒體可應用於備份裝置12中且儲存有指令,以令備份裝置12執行上述之合成增量資料備份方法。 The present invention is not limited to the above-mentioned synthetic incremental data backup system and method. In one embodiment, the present invention also provides a computer-readable storage medium, such as a memory, a floppy disk, a hard disk or an optical disk. The computer-readable storage medium can be used in the backup device 12 and stores instructions to make the backup device 12 execute the above method for synthesizing incremental data backup.

綜上所述,本發明之合成增量資料備份方法、系統及電腦可讀取儲存媒體在第一次完整備份的後續備份時,僅需要儲存該完整備份後新增或修改的區塊,因此所需的儲存空間小於傳統的完整備份。 In summary, the synthetic incremental data backup method, system, and computer-readable storage medium of the present invention only need to store the newly added or modified blocks after the first full backup, and therefore Requires less storage space than traditional full backups.

另外,本發明之合成增量資料備份方法、系統及電腦可讀取儲存媒體在還原某一次備份的當下資料時,僅需要第一次備份的完整備份資料與該次備份的合成備份資料,即可重建該次備份的當下資料,而不需要回溯整個備份歷史以重建當下資料,因此比傳統的增量備份具有更高的效率與容錯率。 In addition, when the synthetic incremental data backup method, system and computer-readable storage medium of the present invention restore the current data of a certain backup, only the complete backup data of the first backup and the synthetic backup data of the backup are needed, that is The current data of the backup can be reconstructed without going back to the entire backup history to reconstruct the current data, so it has higher efficiency and fault tolerance than traditional incremental backup.

再者,本發明之合成增量資料備份方法、系統及電腦可讀取儲存媒體僅需將與上一次完整備份或增量備份的差異資料取出,而不需要將與前一次完整備份的差異資料取出,因此取出的資料量會遠小於差分備分,本發明相異 於差分備份之處是根據第一次的完整備份與本次備份之間的資料差異做增量備份,因此本發明之合成增量資料備份方法會比傳統的差分備份更具效率。 Furthermore, the synthetic incremental data backup method, system, and computer-readable storage medium of the present invention only need to take out the difference data from the last full backup or incremental backup, and do not need to take out the difference data from the previous full backup. Take out, so the amount of data taken out will be much smaller than the differential backup, the present invention is different In differential backup, incremental backup is performed based on the data difference between the first full backup and this backup, so the synthetic incremental data backup method of the present invention is more efficient than traditional differential backup.

此外,本發明之合成增量資料備份方法、系統及電腦可讀取儲存媒體係採用區塊層次(block-level)的資料備份與還原,故其效能優於傳統的檔案層次(file-level)的資料備份與還原。 In addition, the synthetic incremental data backup method, system and computer-readable storage medium of the present invention adopt block-level data backup and restoration, so its performance is better than traditional file-level data backup and restoration.

再者,本發明之合成增量資料備份方法、系統及電腦可讀取儲存媒體可藉由視窗作業系統的卷陰影副本服務(Volume Shadow Copy Service)達成應用程式一致(application-consistent)備份。換言之,本發明之合成增量資料備份方法、系統及電腦可讀取儲存媒體可在備份時凍結應用程式的磁碟操作,接著再進行資料備份,以保證於資料還原後應用程式能繼續正常執行,因此優於傳統的當機一致(crash-consistent)備份。 Furthermore, the synthetic incremental data backup method, system and computer-readable storage medium of the present invention can achieve application-consistent backup through the Volume Shadow Copy Service of the Windows operating system. In other words, the synthetic incremental data backup method, system and computer-readable storage medium of the present invention can freeze the disk operation of the application program during backup, and then perform data backup to ensure that the application program can continue to execute normally after the data is restored , thus outperforming traditional crash-consistent backups.

上述實施形態僅例示性說明本發明之原理及其功效,而非用於限制本發明。任何在本技術領域具有通常知識者均可在不違背本發明之精神及範疇下,對上述實施形態進行修飾與改變。因此,本發明之權利保護範圍,應如後述之申請專利範圍所列。 The above-mentioned embodiments are only illustrative to illustrate the principles and effects of the present invention, and are not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can modify and change the above embodiments without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the rights of the present invention should be listed in the scope of the patent application described later.

10:合成增量資料備份系統 10: Synthetic incremental data backup system

11:資料裝置 11: Data device

12:備份裝置 12: Backup device

Claims (11)

一種合成增量資料備份方法,藉著由資料裝置與備份裝置所組成之合成增量資料備份系統而實現,包括:由該資料裝置根據第M次備份之該資料裝置的當下資料及第N次備份之該資料裝置的當下資料進行增量備份,以產生該第N次備份之增量備份資料及增量區塊變更記錄,其中,N為大於或等於三之整數,M為小於N之正整數,且該第M次備份為該第N次備份之前最近一次無資料損毀的備份;由該備份裝置根據該第M次備份之合成區塊變更記錄及該第N次備份之該增量區塊變更記錄產生該第N次備份之合成區塊變更記錄,其中,該第M次備份之該合成區塊變更記錄包括該資料裝置之一資料卷中的區塊自前次完整備份後至該第M次備份之變更記錄,該第N次備份之該增量區塊變更記錄包括該資料卷中的區塊自該第M次備份後至該第N次備份之變更記錄,且該第N次備份之該合成區塊變更記錄包括該資料卷中的區塊自該前次完整備份至該第N次備份之變更記錄;由該備份裝置根據該第M次備份之合成備份資料、該第N次備份之該增量備份資料、該第M次備份之該合成區塊變更記錄、以及該第N次備份之該增量區塊變更記錄,產生該第N次備份之合成備份資料;以及由該合成增量資料備份系統將該第N次備份之該合成備份資料與該合成區塊變更記錄儲存於該備份裝置。 A synthetic incremental data backup method, realized by a synthetic incremental data backup system composed of a data device and a backup device, comprising: the current data of the data device backed up by the data device according to the Mth time and the Nth time Incremental backup is performed on the current data of the data device to be backed up to generate incremental backup data and incremental block change records of the Nth backup, wherein, N is an integer greater than or equal to three, and M is a positive number less than N Integer, and the Mth backup is the latest backup without data damage before the Nth backup; the backup device changes the record according to the synthetic block of the Mth backup and the incremental area of the Nth backup A block change record generates a synthetic block change record of the Nth backup, wherein the synthetic block change record of the Mth backup includes blocks in a data volume of the data device from the previous full backup to the The change record of the M backup, the incremental block change record of the N backup includes the change record of the block in the data volume from the M backup to the N backup, and the N backup The synthetic block change record of the backup includes the change record of the blocks in the data volume from the previous full backup to the Nth backup; the incremental backup data of the second backup, the synthetic block change record of the M-th backup, and the incremental block change record of the N-th backup to generate the synthetic backup data of the N-th backup; and The synthetic incremental data backup system stores the synthetic backup data and the synthetic block change record of the Nth backup in the backup device. 如請求項1所述之合成增量資料備份方法,其中,該第N次備份之該增量區塊變更記錄係比對該第M次備份之該當下資料中各區塊的雜湊值及該第N次備份之該當下資料中各區塊的雜湊值而產生,且該第N次備份之該 增量備份資料包括該第N次備份之該增量區塊變更記錄中的全部新增區塊及全部已修改區塊。 The method for synthesizing incremental data backup as described in claim 1, wherein, the incremental block change record of the Nth backup is compared with the hash value of each block in the current data of the Mth backup and the The hash value of each block in the current data of the Nth backup is generated, and the Nth backup The incremental backup data includes all newly added blocks and all modified blocks in the incremental block change record of the Nth backup. 如請求項1所述之合成增量資料備份方法,復包括:由該備份裝置自該資料裝置接收該前次完整備份之完整備份資料,以將該完整備份資料儲存於該備份裝置,其中,該完整備份資料包括該前次完整備份之該資料裝置的該資料卷中之全部已使用區塊。 The method for synthesizing incremental data backup as described in Claim 1 further includes: the backup device receives the full backup data of the previous full backup from the data device, so as to store the full backup data in the backup device, wherein, The full backup data includes all used blocks in the data volume of the data device of the previous full backup. 如請求項3所述之合成增量資料備份方法,復包括:由該備份裝置自該資料裝置接收該前次完整備份之下次備份的增量備份資料及增量區塊變更記錄,以將該下次備份的該增量備份資料及該增量區塊變更記錄直接做為該下次備份之合成備份資料與合成區塊變更記錄,再將之儲存於該備份裝置。 The method for synthesizing incremental data backup as described in claim item 3 further includes: receiving the incremental backup data and incremental block change records of the next backup of the previous full backup by the backup device from the data device, so as to The incremental backup data and the incremental block change record of the next backup are directly used as the synthetic backup data and the synthetic block change record of the next backup, and then stored in the backup device. 如請求項3所述之合成增量資料備份方法,復包括:由該備份裝置對歷次備份時儲存於該備份裝置之該完整備份資料及該些合成備份資料進行去複製資料。 The synthetic incremental data backup method as described in claim 3 further includes: the backup device deduplicates the full backup data and the synthetic backup data stored in the backup device during previous backups. 如請求項3所述之合成增量資料備份方法,復包括:由該備份裝置根據該完整備份資料,及該第N次備份之該合成備份資料與該合成區塊變更記錄,還原該第N次備份之該當下資料;以及由該備份裝置將該第N次備份之該當下資料傳送至該資料裝置。 The synthetic incremental data backup method as described in Claim 3 further includes: the backup device restores the N-th backup data according to the complete backup data, the synthetic backup data of the N-th backup, and the synthetic block change record the current data of the Nth backup; and the current data of the Nth backup is sent to the data device by the backup device. 如請求項3所述之合成增量資料備份方法,復包括:由該備份裝置將該完整備份資料複製為至少兩份資料,以將該至少兩份資料儲存於該備份裝置; 由該備份裝置根據該至少兩份資料中之無損毀者,還原該第N次備份之該當下資料;以及由該備份裝置將該第N次備份之該當下資料傳送至該資料裝置。 The synthetic incremental data backup method as described in Claim 3 further includes: copying the complete backup data into at least two copies of data by the backup device, so as to store the at least two copies of data in the backup device; Restoring the current data of the Nth backup by the backup device according to the undamaged one of the at least two copies of data; and sending the current data of the Nth backup to the data device by the backup device. 一種電腦可讀取儲存媒體,係儲存有指令,該指令由該資料裝置及該備份裝置讀取以執行如請求項1至7之任一者所述之合成增量資料備份方法。 A computer-readable storage medium stores instructions, and the instructions are read by the data device and the backup device to execute the synthetic incremental data backup method described in any one of claims 1 to 7. 一種合成增量資料備份系統,包括:資料裝置,用於根據第M次備份之該資料裝置的當下資料及第N次備份之該資料裝置的當下資料進行增量備份,以產生該第N次備份之增量備份資料及增量區塊變更記錄,其中,N為大於或等於三之整數,M為小於N之正整數,且該第M次備份為該第N次備份之前最近一次無資料損毀的備份;以及備份裝置,用於儲存該第N次備份之合成備份資料及合成區塊變更記錄,其中,該第N次備份之該合成區塊變更記錄係由該備份裝置根據該第M次備份之合成區塊變更記錄及該第N次備份之該增量區塊變更記錄而產生者,該第M次備份之該合成區塊變更記錄包括該資料裝置之一資料卷中的區塊自前次完整備份後至該第M次備份之變更記錄,該第N次備份之該增量區塊變更記錄包括該資料卷中的區塊自該第M次備份後至該第N次備份之變更記錄,該第N次備份之該合成區塊變更記錄包括該資料卷中的區塊自該前次完整備份至該第N次備份之變更記錄,且該第N次備份之該合成備份資料係由該備份裝置根據該第M次備份之合成備份資料、該第N次備份之該增量備份資料、該第M次備份之該合成區塊變更記錄、以及該第N次備份之該增量區塊變更記錄而產生者。 A synthetic incremental data backup system, comprising: a data device, used to perform incremental backup according to the current data of the data device backed up for the Mth time and the current data of the data device for the Nth time backup, to generate the Nth time Incremental backup data and incremental block change records of the backup, where N is an integer greater than or equal to three, M is a positive integer less than N, and the Mth backup is the last time there is no data before the Nth backup a damaged backup; and a backup device used to store the synthetic backup data and synthetic block change records of the Nth backup, wherein the synthetic block change records of the Nth backup are generated by the backup device according to the Mth generated from the synthetic block change record of the second backup and the incremental block change record of the N-th backup, the synthetic block change record of the M-th backup includes blocks in a data volume of the data device Change records from the last full backup to the M-th backup, the incremental block change records of the N-th backup include blocks in the data volume from the M-th backup to the N-th backup Change record, the synthetic block change record of the Nth backup includes the change record of the block in the data volume from the previous full backup to the Nth backup, and the synthetic backup data of the Nth backup It is based on the synthetic backup data of the M-th backup, the incremental backup data of the N-th backup, the synthetic block change record of the M-th backup, and the incremental backup of the N-th backup by the backup device. Generated by volume block change records. 如請求項9所述之合成增量資料備份系統,其中,該第N次備份之該增量區塊變更記錄係比對該第M次備份之該當下資料中各區塊的雜湊值及該第N次備份之該當下資料中各區塊的雜湊值而產生,且該第N次備份之該增量備份資料包括該第N次備份之該增量區塊變更記錄中的全部新增區塊及全部已修改區塊。 Synthetic incremental data backup system as described in claim 9, wherein, the incremental block change record of the Nth backup is compared with the hash value of each block in the current data of the Mth backup and the Generated by the hash value of each block in the current data of the Nth backup, and the incremental backup data of the Nth backup includes all newly added areas in the incremental block change record of the Nth backup block and all modified blocks. 如請求項9所述之合成增量資料備份系統,其中,該備份裝置自該資料裝置接收該前次完整備份之完整備份資料後,將該完整備份資料儲存於該備份裝置,其中,該完整備份資料包括該前次完整備份之該資料裝置的該資料卷中之全部已使用區塊。 The composite incremental data backup system as described in Claim 9, wherein, after the backup device receives the full backup data of the previous full backup from the data device, the full backup data is stored in the backup device, wherein the full The backup data includes all used blocks in the data volume of the data device of the last full backup.
TW110141665A 2021-06-11 2021-11-09 Method, system and computer-readable storage medium for synthetic incremental data backup TWI789984B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/558,657 US20220398169A1 (en) 2021-06-11 2021-12-22 Method, system and computer-readable medium for synthetic incremental data backup
CN202210149043.0A CN115470038A (en) 2021-06-11 2022-02-18 Method, system and computer readable storage medium for backup of synthetic incremental data

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US202163209408P 2021-06-11 2021-06-11
US63/209,408 2021-06-11

Publications (2)

Publication Number Publication Date
TW202248856A TW202248856A (en) 2022-12-16
TWI789984B true TWI789984B (en) 2023-01-11

Family

ID=85793559

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110141665A TWI789984B (en) 2021-06-11 2021-11-09 Method, system and computer-readable storage medium for synthetic incremental data backup

Country Status (1)

Country Link
TW (1) TWI789984B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021132A (en) * 2013-12-08 2014-09-03 郑州正信科技发展股份有限公司 Method and system for verification of consistency of backup data of host database and backup database
US10585857B2 (en) * 2010-12-01 2020-03-10 International Business Machines Corporation Creation of synthetic backups within deduplication storage system by a backup application
CN111966529A (en) * 2020-07-14 2020-11-20 上海浩霖汇信息科技有限公司 Method and system for real-time incremental synchronous backup of database files
TW202107317A (en) * 2019-04-30 2021-02-16 美商克魯密爾公司 Deduplication in a cloud-based data protection service
CN112685219A (en) * 2019-10-17 2021-04-20 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for backing up data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10585857B2 (en) * 2010-12-01 2020-03-10 International Business Machines Corporation Creation of synthetic backups within deduplication storage system by a backup application
CN104021132A (en) * 2013-12-08 2014-09-03 郑州正信科技发展股份有限公司 Method and system for verification of consistency of backup data of host database and backup database
TW202107317A (en) * 2019-04-30 2021-02-16 美商克魯密爾公司 Deduplication in a cloud-based data protection service
CN112685219A (en) * 2019-10-17 2021-04-20 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for backing up data
CN111966529A (en) * 2020-07-14 2020-11-20 上海浩霖汇信息科技有限公司 Method and system for real-time incremental synchronous backup of database files

Also Published As

Publication number Publication date
TW202248856A (en) 2022-12-16

Similar Documents

Publication Publication Date Title
US11429305B2 (en) Performing backup operations using replicas
US11693740B2 (en) Dynamic triggering of block-level backups based on block change thresholds and corresponding file identities
US11263173B2 (en) Transaction log index generation in an enterprise backup system
US11799956B2 (en) Network storage backup using distributed media agents
US8924354B2 (en) Block level data replication
US20210334002A1 (en) Redundant distributed data storage system
US7552358B1 (en) Efficient backup and restore using metadata mapping
US20200192899A1 (en) Query caching during backup within an enterprise information management system
US8285957B1 (en) System and method for preprocessing a data set to improve deduplication
US9092374B2 (en) Method of and system for enhanced data storage
US7797279B1 (en) Merging of incremental data streams with prior backed-up data
US7650341B1 (en) Data backup/recovery
US20190340081A1 (en) Client managed data backup process within an enterprise information management system
US20190340082A1 (en) Multi-tiered backup indexing
US8732128B2 (en) Shadow copy bookmark generation
US11659064B2 (en) Data storage system with rapid restore capability
US10628298B1 (en) Resumable garbage collection
US20190340084A1 (en) Backup-based media agent configuration
US20200293498A1 (en) Dynamically-adjustable deduplication order of operations
US20220237084A1 (en) Concurrent transmission of multiple extents during backup of extent-eligible files
US20220318199A1 (en) Seamless migration of stubs and data between different filer types
EP3785135A1 (en) Client managed data backup process within an enterprise information management system
TWI789984B (en) Method, system and computer-readable storage medium for synthetic incremental data backup
US20220398169A1 (en) Method, system and computer-readable medium for synthetic incremental data backup
CN113728302B (en) Cloud layered garbage collection for de-duplication