TW201020820A - System and method for data synchronization - Google Patents

System and method for data synchronization Download PDF

Info

Publication number
TW201020820A
TW201020820A TW97145295A TW97145295A TW201020820A TW 201020820 A TW201020820 A TW 201020820A TW 97145295 A TW97145295 A TW 97145295A TW 97145295 A TW97145295 A TW 97145295A TW 201020820 A TW201020820 A TW 201020820A
Authority
TW
Taiwan
Prior art keywords
file
folder
synchronization
storage device
data
Prior art date
Application number
TW97145295A
Other languages
Chinese (zh)
Inventor
Su-Cheong Mca
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to TW97145295A priority Critical patent/TW201020820A/en
Publication of TW201020820A publication Critical patent/TW201020820A/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A system and method for data synchronization is disclosed to perform data synchronization between a first file folder of a first electronic device and a second file folder of a second electronic device, thereby upgrading synchronization speed and use convenience. The method comprises maintaining a first file table and a second file table for respectively recording the file updating information of the first and second file folders, and storing a backup of the first and second file tables after synchronization when the Nth synchronization between the first and second file folders is executed, where the backup is kept unchanged before the (N+1)th synchronization between the first and second file folders is executed. When the (N+1)th synchronization between the first and second file folders is executed, the backup of the first file table is first copied to an intermediary storage device to generate a third file table, which is then compared with the current first file table so as to execute the synchronization between the first file folder and the intermediary storage device. Next, the synchronization between the intermediary storage device and the second file folder and the re-synchronization between the intermediary storage device and the first file folder is executed in order to complete the (N+1)th synchronization.

Description

201020820 六、發明說明: 【發明所屬之技術領域】 ’尤指一種可提升同步 統及方法。 本發明係有關於資料同步技術 化速度及使用便利性的資料同步系 【先前技術】 ❹201020820 VI. Description of the invention: [Technical field to which the invention pertains] ‘especially a method for improving synchronization and methods. The present invention relates to a data synchronization system for data synchronization technology speed and ease of use [Prior Art] ❹

辦公的使用者而言,例如-台電腦在 同步化以丨0豕常需要在這兩台電腦間執行資料的 使用者可能將其工作上所使用的電腦 檔案集u成_資做,相鱗在 =為:r存裂置,來進行兩台 碟in圖所示。在第1圖中,使用者先將隨身 =與電腦11執賴步,此時隨身碟13上即儲存有整 :資,夾的内容’接著再將隨身碟13與電腦12執行同 =,最後將隨身仙與電腦„再執侧步,以完成電腦 11、12之資料夾間的同步動作。 前述的有許多缺點。首先,若資料爽的内 :龐大,隨身碟13的容量也需要很大;其次,如果使用 臨時找不到或遺失隨輕U,就需另外再找一個隨身 :’再將所有資料夹_容複製過去,若資料夾内容龐 ’就會耗費許多時間;最後,若使用者_有多個隨身 碟,就必須記得哪個隨身碟是用於資料同步的,而增添使 用上的不便。 4 201020820 【發明内容】 有鑑於此’本發明之-目的,在於提供-種資料 同步系統與方法’其可提升同步化速度及使用便利 性,並節省中介儲存裝置的儲存空間。 ❺ ❹ #發明揭露-種資料同步系統,包含:一第一電 子裝置’儲存有一第一資料失,並維持該第-資料夾 之-第-檔案表’以記錄該第一資料夾之播案更新資 訊;-第二電子裳置,儲存有一第二資料夹,並維持 該第二資料夾之一第二播案表,以記錄該第二資料爽 之播案更新資訊;以及一中介儲存裝置;其中,於該 第一資料夾與該第二資料夾之第N次同步化執行時, 該第-電子裝置與該第二電子裝置分別將同步後之該 第一檔案表與該第二檔案表另存-備份,其中N為一 正整數,該備份之第一檔案表與第二楷案表於該第一 資料夾與該第二資料夾之第N+1次同步化執行之前保 持不變,其中,於該第一資料夹與該第二資料爽之第 N+1次同步化執行時’該第一電子裝置將該備份之第 -檔案表複製至該中介館存裝置,以產生—第三楷案 表,接著比對該第三檔案表與目前之該第一播案表, 以發現該第-資料夾令需更新至該中介儲存襄置之至 ^第-檔案,再將該第一槽案複製至該中介儲存裝 置’並對應地更新該第三槽案表;接著該第二電子 展置比對該第三檔案表與目前之該第二槽案表,以發 現該中介儲存裝置中需更新至該第二資料夹之至少一 第二標案,再將該第二檔案從該中介館存裝置複製或 201020820 移動至該第二資料夾’並對應地更新該第二檔案表。 本發明另揭露一種資料同步方法,用以對一第一 電子裝置之一第一資料夾與一第二電子裝置之一第二 資料央的内容執行同步化。該資料同步方法包含:維 持該第一資料夾之一第一檔案表與該第二資料夾之一 第二槽案表,該第一檔案表與該第二檔案表分別記錄 該第一資料夾與該第二資料夹之檔案更新資訊;以及 於執行該第一資料夾與該第二資料夾之第2^次同步化 時,分別將同步後之該第一檔案表與該第二檔案表另 存一備份,其中N為一正整數,該備份之第一檔案表 與第二檔案表於執行該第一資料夾與該第二資料夾之 第N+1次同步化之前保持不變;其令,該第一資料夾 與該第二資料夾之第N+1次同步化包含下列步驟:(幻 將該備份之第一檔案表複製至一中介儲存裝置中,以 產生一第二檔案表;(b)比對該第三檔案表與目前之 該第一檔案表,以發現該第一資料夾中需更新至該中 介儲存裝置之至少一第一擋案;(c)將該第一檔案從 該第一資料夾複製至該中介儲存裝置,並對應地更新 該第三檔案表;(d)比對該第三檔案表與目前之該第 二檔案表,以發現該中介儲存裝置中需更新至該第二 資料夾之至少一第二檔案;以及(e)將該第二檔案從 該中介儲存裝置複製或移動至該第二資料夾,並對應 地更新該第二檔案表。 201020820 【實施方式】 第2圖係本發明之資料同步系統20之一實施例的 方塊圖,其包含一第一電子裝置21、一第二電子裝置 22及一中介儲存裝置23。第一電子裝置21儲存有一 第一資料夾211,並維持第一資料夾211所對應之一 第一檔案表212 ’以記錄第一資料夾211所包含的檔 案與相關之檔案更新資訊。第二電子裝置22儲存有一 第二資料夾221,並維持第二資料夾221所對應之一 ❹ 第二檔案表222,以記錄第二資料夹221所包含的檔 案與相關之檔案更新資訊。只要第一資料夾211(或第 二資料夾221)内之檔案有任何更新,就會對應地記錄 在第一檔案表212(或第二檔案表222)之檔案更新資訊 中。在第一電子裝置21與第二電子裝置22間無法連 線以進行通訊時,資料同步系統20可利用中介儲存裝 置23作為傳輸媒介’對第一資料夹211與第二資料夾 ❾ 21的内容執行同步化。不過,第一電子裝置21與第 〜電子裝置22間是否可連線並不影響本發明之實 施,困此也不限制本發明之專利範圍。第一電子裝置 =,第二電子裝置22可為個人電腦,中介儲存裝置 可為隨身碟、記憶卡或外接式硬碟等。 第一依據第一資料夾211與第二資料夾221間是否為For the users of the office, for example, the computer that synchronizes with the computer often needs to execute data between the two computers, and the user may use the computer file set used for the work. In the case of =: r, the two discs are shown in the figure. In the first figure, the user first walks with the computer = and the computer 11 is stalked. At this time, the memory 13 is stored with the entire contents, and the contents of the folder 'follow the flash drive 13 and the computer 12 are executed. The portable computer and the computer will be used to complete the synchronization between the folders of the computer 11 and 12. The above has many shortcomings. First, if the information is cool: the size of the flash drive 13 needs to be large. Secondly, if you can't find or lose the light U, you need to find another one: 'Copy all the folders again, if the contents of the folder' will take a lot of time; Finally, if you use _With multiple flash drives, you must remember which flash drive is used for data synchronization and increase the inconvenience of use. 4 201020820 [Invention] In view of the present invention, the object is to provide data synchronization. System and method 'which can improve the synchronization speed and ease of use, and save the storage space of the intermediary storage device. ❺ ❹ #发明揭露- Kind of data synchronization system, comprising: a first electronic device 'storage has a first capital Lost, and maintain the first-folder-first-file list to record the first folder's broadcast update information; - the second electronic display, store a second folder, and maintain the second data a second broadcast list for recording the second information update schedule information; and an intermediary storage device; wherein, when the first folder and the second folder are synchronized with the Nth time The first electronic device and the second electronic device respectively save and synchronize the first file table and the second file table after synchronization, wherein N is a positive integer, the first file table and the second file of the backup The schedule remains unchanged until the N+1th synchronization of the first folder and the second folder is performed, wherein the first folder and the second data are synchronized to the N+1th synchronization When executed, the first electronic device copies the backup-file list of the backup to the intermediary storage device to generate a third file table, and then compares the third file table with the current first broadcast table. To find that the first-folder order needs to be updated to the mediation storage device to the ^-file And copying the first slot to the intermediate storage device and correspondingly updating the third slot table; then the second electronic display is compared to the third file list and the current second slot table, In order to find that the intermediate storage device needs to be updated to at least one second standard of the second data folder, and then copy the second file from the intermediary storage device or 201020820 to the second data folder and update correspondingly The second file table. The invention further discloses a data synchronization method for synchronizing the content of the first data folder of one of the first electronic devices and the second data center of one of the second electronic devices. The method includes: maintaining a first file table of one of the first folders and a second slot table of the second folder, wherein the first file table and the second file table respectively record the first folder and the first file The file update information of the second folder; and when the second folder of the first folder and the second folder are synchronized, respectively, the synchronized first file table and the second file table are separately saved as a backup , where N is a positive The first file table and the second file table of the backup remain unchanged until the first N+1 synchronization of the first folder and the second folder is performed; the first folder and the first folder are The N+1th synchronization of the second folder includes the following steps: (magic copying the first file table of the backup to an intermediary storage device to generate a second file table; (b) comparing the third file file And the current first file list to find at least one first file in the first folder to be updated to the media storage device; (c) copying the first file from the first folder to the Intermediary storage device, and correspondingly updating the third file list; (d) comparing the third file table with the current second file table to find that at least the intermediate storage device needs to be updated to the second data folder And a second file; and (e) copying or moving the second file from the media storage device to the second folder, and correspondingly updating the second file table. [Embodiment] FIG. 2 is a block diagram of an embodiment of a data synchronization system 20 of the present invention, which includes a first electronic device 21, a second electronic device 22, and an intermediate storage device 23. The first electronic device 21 stores a first folder 211 and maintains a first file table 212' corresponding to the first folder 211 to record the file included in the first folder 211 and related file update information. The second electronic device 22 stores a second folder 221 and maintains a second file table 222 corresponding to the second folder 221 to record the file included in the second folder 221 and related file update information. As long as there is any update to the file in the first folder 211 (or the second folder 221), it will be correspondingly recorded in the file update information of the first file table 212 (or the second file table 222). When the first electronic device 21 and the second electronic device 22 are disconnected for communication, the data synchronization system 20 can use the intermediate storage device 23 as the transmission medium to the contents of the first folder 211 and the second folder 21 Perform synchronization. However, whether the connection between the first electronic device 21 and the first electronic device 22 does not affect the implementation of the present invention does not limit the scope of the patent of the present invention. The first electronic device =, the second electronic device 22 can be a personal computer, and the intermediate storage device can be a flash drive, a memory card or an external hard disk. First, whether the first folder 211 and the second folder 221 are

次執行同步化,資料同步系統20的同步過程也不 太相回 m I 步系 因此,以下分成兩種情形,分另1J詳述資料同 、繞20如何執行第一資料失211與第二資料夾π 的同步化: 7 201020820 次執f 211與第二資料夹-間係第 ρβ^ 先’第一資料夾211與中介儲存裝置23 執打同步化:由於第一資料夾211與第二資料夾221 曾執行過同步化,第—電子裝置21需將第一資 寻夹211之全部内容及第一槽案表212複製至中介儲 ,置23,以產生一第三槽案表(在本發明令,於進行 同步化時所複製至中介儲存裝置23Synchronization is performed once, and the synchronization process of the data synchronization system 20 is not quite related to the m I step system. Therefore, the following is divided into two cases, and the details of the data are the same as that of the second data. Synchronization of the clip π: 7 201020820 The second file f 211 and the second folder - the first ρβ ^ first 'the first folder 211 and the intermediate storage device 23 to perform synchronization: due to the first folder 211 and the second data The folder 221 has been synchronized, and the first electronic device 21 needs to copy the entire contents of the first search folder 211 and the first slot table 212 to the intermediate storage, and set 23 to generate a third slot table (in this case). The invention is copied to the intermediate storage device 23 during synchronization

為第三槽案表,圖中並未顯示)。因此,此 表係與第-槽案表212同步,且中介儲存裝置23健存 了第一資料夾211之全部内容。另外,第一電子裝置 21還將第-檔案表212另存以作為備份。 (1-2)接著,中介儲存裝置23與第二資料夾η 間執行同步化··第二電子裝置22比對第三槽案表與目 前之第二檔案表222,以發現中介储存裝置Μ中需更 新至第二資料夾221之至少一播案(為便於行文,下文 稱為第二檔案)或者發現第二資料夾221中需更新至中 介儲存裝置23之至少—職(下文稱為第三檔案),亦 即’該第二檔案是中介儲存褒置23有而第二資料夾 221沒有的檔案,或者是中介儲存裝置幻與第二資料 夾221皆有,但中介儲存裝置23中的第二檔案比第二 資料夹221中的還新;而該第三檔案是第二資料夾 221有而中介儲存裝置23沒有的檔案,或者是中介儲 存裝置23與第二資料夾221皆有,但第二資料夾221 中的第三檔案比中介儲存裝置23中的還新。 201020820 若前述比對結果未發現任何第二檔案或第三襠 案,則表示第三檔案表(此時代表第一資料夾211的内 容)與目前之第二檔案表222(其代表第二資料夾221的 内容)同步,因此不需進行第一資料夾211與第二資料 夾221之同步化;若比對結果發現有第二檔案,則第 二電子裝置22將所發現之第二檔案從中介儲存裝置 23移動(或複製)至第二資料夹221,並對應地更新第 二播案表222;若比對結果發現有第三檔案,則第二 〇 電子裝置22將所發現之第三檔案從第二資料夾221複 製至中介儲存裝置23,並對應地更新第三檔案表。執 行完所有第二檔案與第三檔案的更新後,可使第二檔 案表222與第三檔案表同步,接著,第二電子裝置22 將同步後之第二檔案表222另存,以作為備份之第二 檔案表(若是先前已有備份之第二檔案表,則是將該備 份之第二檔案表更新為同步後之第二檔案表222)。 請注意’若前述比對結果僅發現有第二檔案而未 ❹ 發現第三檔案,則表示第二資料夾221中未有需更新 至第一資料夾211的檔案,因此在第二電子裝置22將 所發現之第二檔案更新至第二資料夾221後,即已完 成第一資料夾211與第二資料夹221之同步化;而若 比對結果發現有第三檔案,則不論有無發現第二檔 案,皆需進行以下之(1-3),以將所發現之第三檔案更 新至第一資料夾211。 請注意,當第二電子裝置22將第二檔案從中介儲 存裝置23移動至第二資料夾221時,雖然此時第二播 201020820 案係從中介儲存裝置23被刪除,但中介儲存裝置23 中之第二檔案表並不做對應的變動,以使第三檔案表 能與第二資料失221之第二檔案表222保持同步。 G-3)最後,中介儲存裝置23與第一資料夾211 間再執行同步化:第一電子裝置21比對第三檔案表與 目前之第一檔案表212,以發現中介儲存裝置23中需 更新至第一資料夾211之至少-播案(下文稱為第四檔 案’亦即前述(1-2)中存於中介儲存裝置23之第三檔 案)’再將該第四檔案從中介儲存裝置23複製或移動 至第一資料夾211,並對應地更新第一檔案表212,使 第一檔案表212可與第三檔案表同步(亦即,可與第二 檔案表222同步),接著,第一電子裝置21將先前所 備份之第一檔案表更新為同步後之第一檔案表212。 至此,第一資料夾211與第二資料夾221之同步化即 办Λ、 7L 成0 請注意’前述(1-3)係假設第一資料夾211之檔案 在前述(1·1)執行後未做更新。若已做過更新,則(1_3) 除了執行前述將第四檔案更新至第一資料夾211的動 作外,亦須將第一資料夾211中已做過更新的槽案更 新至中介儲存裝置23,並對應地更新第三檔案表,接 著再跳回(1-2)重新執行,如此反覆執行(1-2)與(1_3)直 至第一檔案表212與第二檔案表222同步為止。 在第一檔案表212與第二檔案表222達成同步之 後’前述所備份之第一檔案表與第二檔案表在下一次 執行第一資料夾211與第二資料夾221間之同步化前 201020820 將保持不變(後文會再詳述原因)。 (2)第一資料夹211與第二資料央221間係第N 次執行同步化,其t N大於一: (2_1)首先’第一資料夾21】與令介儲存裝置23 間執行同步化:由於第一資料夾211與第二資料夾221 曾執行過同步化,所以第一電子裝置21與第二電子裝 置22分別存有前一次同步化完成時所備份之第一檔 案表與第二檔案表。第一電子裝置21將該備份之第一 檔案表複製至中介儲存裝置23,以作為第三檔案表, 接著比對目前之第一檔案表212與該第三檔案表,以 發現目前之第一資料夾211 _需更新至中介儲存裝置 23之至少一檔案(下文稱為第一檔案乂,再將該第一檔 案複製至中介儲存裝置23,並對應地更新第三槽案 表,以使第三檔案表與第一檔案表212同步。 ' 由於第三檔案表為前一次同步化完成時所備份之 第一檔案表,其代表前一次同步化完成之時第一資料 夾211的播案更新狀態,因此由前述第一槽案表Μ〗 與第三檔案表的比對結果,即可知第一資料夾211從 前一次同步化完成後更新了哪些檔案,而因為前一次 同步化完成後,第一資料夾211與第二資料夾221具 有相同的内容,因此只需將第一資料夾211從前一次 同步化完成後有更新的檔案複製至中介儲存裝置23 即可,而不需將所有第-資料夾211的内容皆複製至 中介儲存裝置23。如此,可節省同步化執行所需之時 間與儲存空間。 201020820 此外’也由於第一電子裝置21與第二電子裝置 22分别保留了前一次同步化時所備份之第一檔案表與 第二檔案表,中介儲存裝置23亦可替換為任何其他未 曾參與執行第一資料夾211與第二資料夾221之同步 化的儲存裝置,以使資料同步系統2〇在運作上更具彈 性。換s之,當使用者在執行第一資料夾211與第二 資料央221之第N次同步化時(N>1),不一定要藉由 之前同步化所使用之中介儲存裝置23,而可以選擇手 邊任何可用之隨身碟、記憶卡或外接式硬碟等儲存裝 置來進行,如此更便於同步化的執行。 (2-2)接著,中介儲存裝置23與第二資料夾221 間執行同步化:這部分與(1_2)相同,此處不再贅述。 (2-3)最後,中介儲存裝置23與第一資料夾211 間再執行同步化:這部分亦與(1-3)相同,此處不再贅 述0 前述(M)至(1-3)(或(叫至阳))的過程亦可反過 來,從第一電子裝置22開始執行,亦即,第二資料夾 221先與中介儲存裝置23間執行同步化,過程細節與 (M)(或(2-1))近似;接著’中介儲存裝置與第一資 料夾211間執行同步化,過程細節與(12)(或(2 2))近 似,最後,中介儲存裝置23與第二資料央221間再執 行同步化,過程細節與(1_3)(或(2_3))近似。 在一較佳實施例中,第一檔案表212所記錄之檔 案更新資訊包含第一資料夾211之各播案的名稱、最 近更新者與最近更新版本代碼,而第二槽案表222所 12 201020820 記錄之檔案更新資訊包含第二資料夾221之各檔案的 名稱、最近更新者與最近更新版本代碼。第3圖係以 一實例顯示第一檔案表212與第二檔案表222的内 容’其中,最近更新者為第一電子裝置21(以A代表) 或第二電子裝置22(以B代表),最近更新版本代碼為 總體(global)版本代碼,亦即,若某一檔案在某一更新 者進行更新後之版本代碼為η,則同一資料夾内由同 一更新者進行下一次檔案更新時,不論所更新之檔案 為何,更新後的檔案之版本代碼為η+1,而不同更新 者所產生之更新版本代碼則分別累計。以第3圖為 例,若第一電子裝置21對file2進行更新(亦即,更新 者為A),則由於第一檔案表212中更新者為a之最高 版本代碼為7,所以file2之最近更新版本代碼需改為 8’最近更新者仍維持為A;若第二電子裝置22對仞斜 進行更新(亦即,更新者為B),則由於第二檔案表222 中更新者為B之最高版本代碼為2 , fjie2之最近更新 版本代碼需改為3,最近更新者則改為b。 在前述(1-1)至(1-3)與(2-1)至(2_3)的過程中,於進 行兩個播案表間之比對時,是要找出就同—個播案而 δ ’哪個槽案表巾之槽案比較新^在此較佳實施例中, 就同-個觀而言,若兩個職表巾之最近更新者相 同’則最近更贿本代姐較高的,即為麟的播案, 例如’若比較第3圖中兩個檔案表,則可發現第一檔 案表212之腕較第二播案表222之filel為新;另 -方面,就同-個權案而言,若兩個播案表中之最近 201020820 更新者不相同,則有兩種情形: (-)可判斷何者較新:例如在第3圖中第一播 案表212之me2之最近更新者為A,而第二槽案表從 之fik2 t最近更新者為B,兩者的最近更新者不相 同。不過’由於第二標案表222中更新者為A的最高 版本為5(即制),其大於第一槽案表212中贴的 最新版本(即4),這表示版本為4之咖f在第二播 案表222上出現過,所以,第二槽案表拉之磁比 Ο 第一襠案表212之file2為新。 (二)不能判斷何者較新:例如,若前述(一)所舉 的例子中,第二檔案表222中更新者為A的最高版本 _ 3,而小於第-檔案表212 +贴的最新版本(即 4) ’則無法判斷哪個檔案表之_比較新。此時,資 制步祕20可同時顯示兩_案表之file2,由使用 者來決定哪個比較新或者決定要保留哪一個。 請注意’第3圖所示之檔案更新資訊的格式僅為 ❹ -實施例’其他種檔案更新資訊的格式,只要能藉由 其比較兩個檔案表中之同-個槽案哪個較新,就不脫 離本發明之範圍。 在另一較佳實施例中,在執行第一資料夾211與 第二資料夾221之第一次同步化時,第一電子裝置21 會儲存一第一同步資訊’其包含第一電子裝置Μ與第 二電子裝置22之識別碼、第一資料夾211與第二資料 夾221之名稱以及一第一指標(p〇inter),該第一指標用 以指向所備份之第一檔案表;第二電子裝置22會儲 201020820 存-第二同步資訊’其包含第—電子裝置21與第二電 子裝置22之識別碼、第一資料夾211與第二資料爽 221之名稱以及-第二指標,該第二指標用以指向所 備份之第二儲表。第1步資訊與第二同步資訊除 了分別提供第-電子裝置21與第二電子裝置22進行 管理之用’亦可用於第-資料夾211與第二資料爽221 的同步化過程。例如,麵述㈣巾1 —電子裝置 2」係第一同步資訊中之第-指標,以找到 刖一次同步化時所備份之第—财表,再將其複製至 中介儲存裝置23中。 丹册兵複策至 在前述所有實施例中,第一電子 子裝置22所執行的各個動 興弟一電 軟體來實現,料執行—資料同步 軟體來實S対_錢體謂存 21與第二電子裝置22、或是 *冤千裝置 用以自動化地執行第一資料夾2;裝置23中,可 的同步化。 #枓夾211與第二資料夾22! 第4圖係本發明之資料同步方法之 的流程圓’其用以對第一電子裝置 211與第二電子裝置22第· 之第一貝料失 _ . 之第一資料夾221的内容勃并 同步化。錄_步杨包含T列步驟. 步驟:判斷是否為第-次執行同步化,若是 :繼續執行步驟4G2,否舰至步驟 步驟402 :將第一資料决 資料夾211之全部内容及第一 槽案表212複製至中介儲存裝置23, 2〇1〇2〇82〇 以產生第三檔案表,並將目前之第一 檔案表212另存以作為備份。接著, 跳至步驟407。 步驟403 :將前一次同步化時所備份之第一檔案 表複製至中介儲存裝置23,以作為第 三檔案表。 步驟404:比對第三檔案表與目前之第一檔案表 D 212。 、 步碌405 :判斷是否發現第一資料夾中需更 新至中介儲存裝置23之至少一第一 檔案,若是則繼續執行步驟4〇6,否 則跳至步驟407。 步驟406 :將該第一檔案從第一資料夾211複製 至中介儲存裝置23,且對應地更新第 二檔案表,並將所備份之第一檔案表 〇 更新為目前之第一槽案表212。 步驟407·比對第三檔案表與目前之第二播案表 222。 步驟408:判斷是否發現中介儲存裝置23中需更 新至第二資料夾221之至少一第二播 案’若是則繼績步驟409,否則跳至步 驟 410。 步驟409 :將該第二檔案從中介儲存裝置23複製 或移動至第二資料失221,且對應地更 新第二檔案表222,並將更新後之第二 16 檔案表222另存以作為備份。 步驟410:判斷是否發現第二資料夾221中需更 新至中介儲存裝置23之至少一第三檔 案,若是則繼續步驟411,否則跳至步 驟 417。 步驟411 :將該第三檔案從第二資料夾221複製 至中介儲存裝置23,並對應地更新第 三播案表。 步驟412 :比對第三檔案表與目前之第一檔案表 212。 步驟413 :判斷是否發現中介儲存裝置23中需更 新至第一資料夾211之至少一第四檔 案,若是則繼續步驟414,否則跳至步 驟 415 〇 步驟414 :將該第四檔案從中介儲存裝置23複製 或移動至第一資料夾211,且對應地更 新第一檔案表212,並將所備份之第一 檔案表更新為更新後之第一檔案表 212。 步驟415 :判斷是否發現第一資料夾2U中需更 新至中介儲存裝置23之至少一第五 檔案,若是則繼續步驟416,否則跳 至步驟417。 步驟416 :將該第五檔案從第一資料夾211複製 至中介儲存裝置23,並對應地更新第 201020820 三檔案表,再跳回步驟407。 步驟417 :結束流程》 以上所述係利用較佳實施例詳細說明本發明,而 非限制本發明之範圍。凡熟知此類技藝人士皆能明 瞭,可根據以上實施例之揭示而做出諸多可能變化, 仍不脫離本發明之精神和範園。 【圖式簡單說明】It is the third slot table, which is not shown in the figure). Therefore, the watch is synchronized with the first slot table 212, and the mediation storage device 23 stores the entire contents of the first folder 211. In addition, the first electronic device 21 also saves the first file table 212 as a backup. (1-2) Next, the intermediate storage device 23 performs synchronization with the second folder η. The second electronic device 22 compares the third slot table with the current second file table 222 to find the intermediate storage device. At least one broadcast to be updated to the second folder 221 (hereinafter referred to as the second file), or to find at least the second folder 221 to be updated to the intermediate storage device 23 (hereinafter referred to as the first The third file), that is, the second file is an archive storage device 23 and the second folder 221 does not have the file, or the intermediate storage device and the second folder 221, but the intermediate storage device 23 The second file is newer than the second folder 221; and the third file is the file that the second folder 221 has and the media storage device 23 does not have, or both the media storage device 23 and the second folder 221. However, the third file in the second folder 221 is newer than in the media storage device 23. 201020820 If the second comparison file or the third file is not found in the foregoing comparison result, it indicates that the third file table (which represents the content of the first folder 211 at this time) and the current second file table 222 (which represents the second data) The content of the folder 221 is synchronized, so that synchronization of the first folder 211 and the second folder 221 is not required; if the comparison result is found to have a second file, the second electronic device 22 will discover the second file found. The intermediate storage device 23 moves (or copies) to the second folder 221 and updates the second broadcast table 222 correspondingly; if the comparison result finds that there is a third file, the second electronic device 22 will find the third file. The file is copied from the second folder 221 to the intermediate storage device 23, and the third file table is updated correspondingly. After the update of all the second file and the third file is performed, the second file table 222 can be synchronized with the third file table, and then the second electronic device 22 saves the synchronized second file table 222 as a backup. The second file table (if the second file table has been previously backed up, the second file table of the backup is updated to the second file table 222 after synchronization). Please note that if the foregoing comparison result only finds the second file and the third file is not found, it means that there is no file in the second folder 221 that needs to be updated to the first folder 211, so the second electronic device 22 After updating the found second file to the second folder 221, the synchronization between the first folder 211 and the second folder 221 is completed; and if the comparison result is found to have a third file, the presence or absence of the discovery For the second file, the following (1-3) are required to update the found third file to the first folder 211. Please note that when the second electronic device 22 moves the second file from the intermediate storage device 23 to the second folder 221, although the second broadcast 201020820 is deleted from the intermediate storage device 23, the intermediate storage device 23 is The second file table does not make corresponding changes, so that the third file table can be synchronized with the second file table 222 of the second data loss 221 . G-3) Finally, the intermediate storage device 23 performs synchronization with the first folder 211: the first electronic device 21 compares the third file table with the current first file table 212 to find the intermediate storage device 23 Updating to at least the first folder 211 (hereinafter referred to as the fourth file 'that is, the third file stored in the intermediate storage device 23 in the foregoing (1-2)) and then storing the fourth file from the intermediary The device 23 copies or moves to the first folder 211, and correspondingly updates the first file table 212 so that the first file table 212 can be synchronized with the third file table (ie, can be synchronized with the second file table 222), and then The first electronic device 21 updates the previously archived first file table to the synchronized first file table 212. So far, the synchronization between the first folder 211 and the second folder 221 is as follows: 7L is 0. Please note that the above (1-3) assumes that the file of the first folder 211 is executed after the above (1·1) is executed. No updates have been made. If the update has been made, (1_3), in addition to performing the foregoing operation of updating the fourth file to the first folder 211, the slot file in the first folder 211 that has been updated must also be updated to the intermediate storage device 23. And correspondingly update the third file table, and then jump back (1-2) to re-execute, thus repeatedly executing (1-2) and (1_3) until the first file table 212 is synchronized with the second file table 222. After the first file table 212 and the second file table 222 are synchronized, the first file table and the second file table backed up before the next execution of the synchronization between the first folder 211 and the second folder 221 will be 201020820. Stay the same (more on this later). (2) The first data folder 211 and the second data center 221 are synchronized for the Nth time, and the t N is greater than one: (2_1) First, the synchronization between the first data folder 21 and the media storage device 23 is performed. Since the first folder 211 and the second folder 221 have been synchronized, the first electronic device 21 and the second electronic device 22 respectively store the first file table and the second file that were backed up when the previous synchronization was completed. File list. The first electronic device 21 copies the first file list of the backup to the intermediate storage device 23 as a third file table, and then compares the current first file table 212 with the third file table to find the first one. The folder 211_ needs to be updated to at least one file of the mediation storage device 23 (hereinafter referred to as the first file file, and then the first file is copied to the intermediate storage device 23, and the third slot table is updated correspondingly to enable The third file table is synchronized with the first file table 212. ' Since the third file table is the first file table that was backed up when the previous synchronization was completed, it represents the broadcast of the first folder 211 when the previous synchronization was completed. State, therefore, by comparing the foregoing first slot table 与 with the third file table, it can be known that the first folder 211 is updated after the previous synchronization is completed, and because the previous synchronization is completed, the first A folder 211 has the same content as the second folder 221, so that it is only necessary to copy the first folder 211 from the archive after the previous synchronization is completed to the intermediate storage device 23, without having to - The contents of the folder 211 are copied to the intermediate storage device 23. Thus, the time and storage space required for synchronization execution can be saved. 201020820 In addition, since the first electronic device 21 and the second electronic device 22 respectively retain the previous time When the first file table and the second file table are backed up during synchronization, the mediation storage device 23 can also be replaced with any other storage device that has not participated in the synchronization of the first folder 211 and the second folder 221 to enable the data. The synchronization system 2 is more flexible in operation. In other words, when the user performs the Nth synchronization of the first folder 211 and the second data center 221 (N>1), it is not necessary to The intermediate storage device 23 used for synchronization can be selected, and any storage device such as a flash drive, a memory card or an external hard disk can be selected at hand, which is more convenient for synchronization execution. (2-2) Next, the intermediate storage Synchronization is performed between the device 23 and the second folder 221: this portion is the same as (1_2) and will not be described here. (2-3) Finally, the mediation storage device 23 performs synchronization with the first folder 211: This part The points are also the same as (1-3), and the process of (M) to (1-3) (or (to the yang)) may be reversed from the first electronic device 22, That is, the second folder 221 is first synchronized with the intermediate storage device 23, and the process details are approximated by (M) (or (2-1)); then the 'intermediary storage device is synchronized with the first folder 211. The process details are approximated by (12) (or (2 2)). Finally, the intermediate storage device 23 and the second data center 221 are synchronized again, and the process details are approximated by (1_3) (or (2_3)). In the preferred embodiment, the file update information recorded by the first file table 212 includes the names of the first files of the first folder 211, the latest updater and the latest update version code, and the second slot table 222 is 12 201020820 records. The file update information includes the names of the files of the second folder 221, the latest updater and the latest update version code. Figure 3 shows the contents of the first file table 212 and the second file table 222 by an example, wherein the most recent updater is the first electronic device 21 (represented by A) or the second electronic device 22 (represented by B), The most recent update version code is the global version code, that is, if a version file is updated after an updater has a version code of η, then the same folder is updated by the same updater in the same folder, regardless of The updated file has a version code of η+1, and the updated version code generated by different updaters is accumulated separately. Taking FIG. 3 as an example, if the first electronic device 21 updates file2 (that is, the updater is A), since the highest version code of the updater in the first file table 212 is 7, the recent file2 is The updated version code needs to be changed to 8', the latest updater remains at A; if the second electronic device 22 updates the skew (ie, the updater is B), since the updater in the second archive table 222 is B The highest version code is 2, the most recent update code for fjie2 needs to be changed to 3, and the most recent updater is changed to b. In the process of (1-1) to (1-3) and (2-1) to (2_3), when comparing the two broadcast forms, it is to find out the same--a broadcast And δ ' which groove case towel case is relatively new ^ In this preferred embodiment, in the same view, if the two recent watches are the same as the latest update, then the recent bribe High, that is, the broadcast of Lin, for example, 'If you compare the two file tables in Figure 3, you can find that the wrist of the first file table 212 is newer than the filel of the second broadcast form 222; For the same case, if the most recent 201020820 updaters in the two broadcast schedules are different, there are two cases: (-) It can be judged which is newer: for example, in the first broadcast table 212 in FIG. The most recent update of me2 is A, and the second schedule is the latest update from fik2 t to B, the latest update of the two is not the same. However, since the highest version of the updater A in the second list 222 is 5 (that is, the system), which is larger than the latest version (ie 4) posted in the first slot table 212, this indicates that the version is 4 Appeared on the second playlist 222, so the magnetic ratio of the second slot table is new to file2 of the first file table 212. (2) It is impossible to judge which is newer: For example, in the example given in (a) above, the updater in the second file table 222 is the highest version of A_3, and is smaller than the latest version of the second file table 212+ (ie 4) 'You can't judge which file table is newer. At this point, the resource step 20 can simultaneously display the file2 of the two _ case tables, and the user decides which one is newer or decides which one to keep. Please note that the format of the file update information shown in Figure 3 is only the format of the "Others" file update information, as long as it can compare which of the two files in the two file tables is newer. Without departing from the scope of the invention. In another preferred embodiment, when the first synchronization of the first folder 211 and the second folder 221 is performed, the first electronic device 21 stores a first synchronization information that includes the first electronic device. And the identifier of the second electronic device 22, the names of the first folder 211 and the second folder 221, and a first indicator (p〇inter), the first indicator is used to point to the first file table that is backed up; The second electronic device 22 stores the 201020820 storage-second synchronization information, which includes the identification codes of the first electronic device 21 and the second electronic device 22, the names of the first data folder 211 and the second data storage 221, and the second indicator. The second indicator is used to point to the second table that is backed up. The first step information and the second synchronization information may be used for the synchronization of the first folder 211 and the second data 221, respectively, in addition to providing the first electronic device 21 and the second electronic device 22 for management. For example, the face (four) towel 1 - the electronic device 2" is the first indicator in the first synchronization information to find the first fiscal table backed up in one synchronization, and then copied to the intermediate storage device 23. In addition to all the foregoing embodiments, the first electronic sub-device 22 implements each of the dynamics of the electronic software to implement, and the implementation of the data synchronization software to implement the S対_钱体存存21 and The two electronic devices 22, or *1000 devices, are used to automatically execute the first data folder 2; in the device 23, the synchronization is possible. #枓夹211 and the second folder 22! Fig. 4 is a flow circle of the data synchronization method of the present invention, which is used to defeat the first electronic device 211 and the second electronic device 22 The content of the first folder 221 is synchronized. Recording _Step Yang includes the T column step. Step: Determine whether it is the first execution synchronization, if yes: continue to perform step 4G2, no ship to step step 402: the first content of the first data folder 211 and the first slot The table 212 is copied to the intermediary storage device 23, 2〇1〇2〇82〇 to generate a third file list, and the current first file table 212 is saved as a backup. Then, go to step 407. Step 403: Copy the first file table backed up during the previous synchronization to the intermediate storage device 23 as the third file table. Step 404: Align the third file table with the current first file list D 212. Step 405: Determine whether it is found that at least one first file of the first folder needs to be updated to the intermediate storage device 23. If yes, proceed to step 4〇6, otherwise skip to step 407. Step 406: Copy the first file from the first folder 211 to the mediation device 23, and correspondingly update the second file table, and update the backed up first file table to the current first slot table 212. . Step 407: Align the third file list with the current second play form 222. Step 408: Determine whether the at least one second broadcast to be updated to the second folder 221 in the intermediate storage device 23 is found. If yes, the process proceeds to step 409. Otherwise, the process proceeds to step 410. Step 409: Copy or move the second file from the intermediate storage device 23 to the second data loss 221, and correspondingly update the second file table 222, and save the updated second 16 file table 222 as a backup. Step 410: Determine whether it is found that the second folder 221 needs to be updated to at least one third file of the intermediate storage device 23. If yes, proceed to step 411; otherwise, skip to step 417. Step 411: Copy the third file from the second folder 221 to the intermediate storage device 23, and update the third broadcast table correspondingly. Step 412: Align the third file table with the current first file table 212. Step 413: Determine whether the intermediate storage device 23 needs to be updated to at least one fourth file of the first folder 211, and if yes, proceed to step 414, otherwise, go to step 415, step 414: the fourth file from the intermediate storage device 23 copies or moves to the first folder 211, and correspondingly updates the first file table 212, and updates the backed up first file table to the updated first file table 212. Step 415: Determine whether it is found that at least one fifth file of the first folder 2U needs to be updated to the intermediate storage device 23. If yes, proceed to step 416; otherwise, skip to step 417. Step 416: Copy the fifth file from the first folder 211 to the intermediate storage device 23, and correspondingly update the third file table of 201020820, and then jump back to step 407. Step 417: End of Flow The above is a detailed description of the present invention by way of preferred embodiments without limiting the scope of the invention. It will be apparent to those skilled in the art that many variations are possible in light of the above embodiments without departing from the spirit and scope of the invention. [Simple description of the map]

第1圖係顯不透過隨身碟來進行兩台電腦間之同 步化的示意圓^ 第2圖係本發明之資料同步系統之一實施例的方 塊圓。 第3圖係以-實例顯示第2圖之第一標案表與第 二構案表的内容》 第4圖係本發明之資料同步方法之一較佳實施例 的流程圖。 ❹ 【主要元件符號說明】 11、12 :電腦 20 :資料同步系統 211 :第一資料夾 22 :第二電子裝置 222 :第二檔案表 13 :隨身碟 21 :第一電子裝置 212 :第一檔案表 221 :第二資料夾 23 :中介儲存裝置 4〇1 417.資料同步方法之—較佳實施例的流程Fig. 1 shows a schematic circle for synchronizing between two computers without a flash drive. Fig. 2 is a block circle of an embodiment of the data synchronization system of the present invention. Fig. 3 is a flow chart showing a preferred embodiment of the data synchronizing method of the present invention by - example showing the contents of the first and second configuration tables of Fig. 2. ❹ [Main component symbol description] 11, 12: computer 20: data synchronization system 211: first folder 22: second electronic device 222: second file table 13: flash drive 21: first electronic device 212: first file Table 221: Second Folder 23: Intermediary Storage Device 4〇1 417. Data Synchronization Method - Flow of the Preferred Embodiment

Claims (1)

201020820 七、申請專利範圍: 1.種資料同步方法,用以對一第一電子裝置之一第 一資料夾與一第二電子裝置之一第二資料夾的内容 執行同步化,該資料同步方法包含: 維持該第一資料夾之一第一檔案表與該第二資料夾 之一第二檔案表,該第一檔案表與該第二檔案表 分別記錄該第一資料夾與該第二資料夾之檔案更 新資訊;以及 ❾於執行該第-資料夾與該第二資料夾之第N次同步 化時,分別將同步後之該第一檔案表與該第二檔 絲另存-備份,其中N為一正整數,該備份之 第一檔案表與第二檔案表於執行該第一資料夾與 該第二資料夹之第N+1次同步化之前保持不變; 其中’該第—資料夹與該第二資料夾之第N+1次同 步化包含下列步驟: ❹ 0)將該備份之第一檔案表複製至一中介儲存裝 置中’以產生一第三檔案表; 〇>)比對該第三檔案表與目前之該第一檔案表, 以發現該第一資料夾中需更新至該令介儲存 裝置之至少一第一檔案; (C)將該第一檔案從該第一資料夾複製至該中介 儲存襞置,並對應地更新該第三檔案表; (d)比對該第三檔案表與目前之該第二檔案表, 以發現該中介儲存裝置_需更新至該第二資 料夾之至少一第二檔案;以及 19 201020820 (e) 將該第二檔案從該中介儲存裝置複製或移動 至該第二資料夾,並對應地更新該第二槽案 表。 2.如申請專利範圍第1項所述之資料同步方法,其 中’當步驟(d)發現該第二資料夾中需更新至該中介 儲存裝置之至少一第三檔案時,該第一資料夾與該 第二資料夾之第N+1次同步化更包含下列步驟: (f) 將該第三檔案從該第二資料夾複製至該中介 儲存裝置’並對應地更新該第三檔案表; (g) 比對該第三檔案表與目前之該第一檔案表, 以發現該中介儲存裝置中需更新至該第一資 料夾之至少一第四檔案;以及 (h) 將該第四檔案從該中介儲存裝置複製或移動 至該第一資料夾,並對應地更新該第—槽案 表。 3·如申請專利範圍第2項所述之資料同步方法,其 中,當步驟(g)發現該第一資料夾中需更新至該中介 儲存裝置之至少一第五檔案時,該第一資料失與該 第一資料夾之第N+1次同步化更包含下列步驟: (1)將該第五檔案從該一資料夾複製至該中介儲 存裝置,並對應地更新該第三檔案表;以及 ϋ)執行步驟⑷與(e)。 4·如申請專利範圍第!或2項所述之資料同步方法, 其中步驟⑷包含將該備份之第-㈣表更新為目 前之該第-播案表,步驟⑹包含將該備份之第二押 20 201020820 案表更新為更新後之該第二檔案表。 5.如申請專利範圍第4項所述之資料同步方法,其中 步驟(h)包含將該備份之第一檔案表更新為更新後 之該第一檔案表。 6.如申請專利範圍第2項所述之資料同步方法其中 當N=1時’該第一資料夾與該第二資科夹之第^^次 同步化包含下列步驟: 將該第一資料夾之内容及該第一檔案表複製至該中 介儲存裝置,以產生該第三檔案表;以及 執行步驟(d)與(e)。 7.如申請專利範圍第1項所述之資料同步方法其 中’於執行該第一資料夾與該第二資料夾之第1^次 同步化時’分別產生-第-同步資訊與—第二同步 資訊’該第i步資訊包含-第―指標,以指向該 備伤之第一播案表,該第二同步資訊包含一第二指 標,以指向該備份之第二檔案表。201020820 VII. Patent application scope: 1. A data synchronization method for synchronizing the content of a first folder of a first electronic device and a second folder of a second electronic device, the data synchronization method The method includes: maintaining a first file table of one of the first folders and a second file table of the second folder, wherein the first file table and the second file table respectively record the first folder and the second file The file update information of the folder; and when the N-th synchronization of the first folder and the second folder is performed, respectively, the synchronized first file table and the second file are separately saved and backed up, wherein N is a positive integer, and the first file table and the second file table of the backup remain unchanged until the N+1th synchronization of the first folder and the second folder is performed; wherein the first data item The N+1th synchronization of the folder and the second folder includes the following steps: ❹ 0) copying the first file list of the backup to an intermediary storage device to generate a third file table; 〇 > Compared to the third file list and current a first file table to discover that at least one first file of the first folder needs to be updated to the media storage device; (C) copying the first file from the first folder to the mediation storage device, And correspondingly updating the third file list; (d) comparing the third file table with the current second file table to find that the media storage device needs to be updated to at least one second file of the second folder And 19 201020820 (e) copying or moving the second file from the intermediary storage device to the second folder, and correspondingly updating the second slot table. 2. The data synchronization method according to claim 1, wherein the first folder is found when the second folder is updated to at least one third file of the intermediary storage device. The N+1th synchronization with the second folder further includes the following steps: (f) copying the third file from the second folder to the mediation device and correspondingly updating the third file table; (g) comparing the third file list with the current first file list to find that at least one fourth file of the first data folder is to be updated in the media storage device; and (h) the fourth file Copying or moving from the intermediate storage device to the first folder, and correspondingly updating the first slot table. 3. The data synchronization method of claim 2, wherein when the step (g) finds that the first folder needs to be updated to at least one fifth file of the intermediary storage device, the first data is lost. The N+1th synchronization with the first folder further includes the following steps: (1) copying the fifth file from the folder to the intermediary storage device, and correspondingly updating the third file table; ϋ) Perform steps (4) and (e). 4. If you apply for a patent scope! Or the data synchronization method according to 2, wherein the step (4) comprises updating the (-)th table of the backup to the current first-cast list, and the step (6) comprises updating the backup second 20102020 table to the update. The second file list. 5. The data synchronization method of claim 4, wherein the step (h) comprises updating the first file list of the backup to the updated first file list. 6. The data synchronization method of claim 2, wherein when N=1, the synchronization of the first folder and the second asset folder comprises the following steps: Copying the contents of the folder and the first file table to the intermediary storage device to generate the third file table; and performing steps (d) and (e). 7. The data synchronization method according to claim 1, wherein 'when performing the first synchronization of the first folder and the second folder' respectively generates - the first synchronization information and the second The synchronization information 'the i-th step information includes a -th indicator to point to the first broadcast form of the injury, the second synchronization information includes a second indicator to point to the second file list of the backup. 8·如申請專利範圍帛7項所述之資料同步方法其中 步觸⑻包含查詢該第-时資訊之該第—指標’,以 找到該備份之第一檔案表。 9·如申請專利範圍第7項所述之資料同步方法,其 該第-同步資訊與該第二同步資訊還各分別包 綠Ϊ第—電子裝置與該第二電子裝置之識別碼以及 1 b第一資料夾與該第二資料夾之名稱。 1〇·如申請翻範圍S 1項職之資料同步方法,其中 該第-資料夾之播案更新資訊包含該第一資料夹 21 20102082ο 之·各檔案之一最近更新者,而該第二資料夹之槽案 更新資訊包含該第二資料夾之各檔案之一最近更 新'者。 〇 Q U.如申請專利範圍第1項所述之資料同步方法,其中 _第一資料夾之檔案更新資訊包含該第一資料失 之各權案之一最近更新版本代碼,而該第二資料夹 之槽案更新資訊包含該第二資料夾之各播案之一 最近更新版本代碼。 12·如申請專利範圍第1項所述之資料同步方法,其中 該中介儲存裝置係一隨身碟、一記憶卡或一外接 硬碟。 13·一種資料同步系統,包含: 一第一電子裝置,儲存有一第一資料央,並維持該 第一資料夾之一第一檔案表,以記錄該第一資料 失之檔案更新資訊; 一第二電子裝置,儲存有一第二資料夾,並維持該 第二資料夾之一第二檔案表,以記錄該第二資料 失之檔案更新資訊;以及 一中介儲存裝置; 其中’於該第一資料夾與該第二資料夾之第N次同 步化執行時,該第一電子裝置與該第二電子裝置 分別將同步後之該第一檔案表與該第二檔案表 另存一備份,其中N為一正整數,該備份之第一 檔案表與第二檔案表於該第一資料夾與該第二 資料夾之第N+1次同步化執行之前保持不變; 22 201020820 其中’於該第一資料夾與該第二資料夾之第N+1 次同步化執行時,該第一電子裝置將該備份之第 一檔案表複製至該中介儲存裝置,以產生一第三 檔案表’接著比對該第三檔案表與目前之該第一 檔案表,以發現該第一資料夾中需更新至該中介 儲存裝置之至少一第一檔案,再將該第一檔案複 製至該中介儲存裝置,並對應地更新該第三檔案 表;接著’該第二電子裝置比對該第三檔案表與 目前之該第二檔案表,以發現該中介儲存裝置中 需更新至該第二資料夾之至少一第二檔案,再將 該第二播案從該中介儲存裝置複製或移動至該 第二資料夾,並對應地更新該第二檔案表。 14.如申請專利範圍第13項所述之資料同步系統,其 中”於該第一資料夾與該第二資料夾之幕N+1次同 步化執行時,若該第二電子裝置於比對該第三檔案 表與目前之該第二檔案表時,發現該第二資料夾中 需更新至該中介儲存裝置之至少一第三檔案,則該 第二電子裝置將該第三檔案複製至該中介儲存裝 置,並對應地更新該第三檔案表,接著該第一電子 裝置比對該第三檔案表與目前之該第一檔案表,以 發現該中介儲存裝置中需更新至該第一資料夾之 至少一第四檔案,再將該第四檔案從該中介儲存裝 置複製或移動至該第一資料夾’並對應地更新該第 一稽案表。 15·如申請專利範圍第π或14項所述之資料同步系 23 201020820 統’於該第一資料夾與該第二資料夾之第 :化執行時,該第一電子裝置在該第二電 子進仃該第二播案表與該第二槽案表的比對 之刖’將該備份之第-職表更新為目前之該第一 播案表’該第二電子裝置在對應地更新該第二播案 表之後’將該備份之第二檔案表更新為更新後 第二檔案表。 %如申請專利範圍第15項所述之資料时系統,其 ❹ t,該第-電子裝置在對應地更軸第—檔案表之 後’將該備份之第-檔案表更新鍵新後之該第一 檔案表。 17·如申請專利範圍第14項所述之資料同步系統 中若N=卜則於該第一資料夾與該第二資料夹之第 N次同步化執行時,該第一電子裝置將該第一資料 夾之内容及該第一檔案表複製至該中介儲存裝 置,以產生該第三檔案表,接著該第二電子裝置比 © 對該第三檔案表與目前之該第二檔案表,以發現該 中介儲存裝置中需更新至該第二資料夾之至少一 第二檐案,再將該第二檔案從該中介儲存裝置複製 或移動至該第二資料夾,並對應地更新該第二檔案 表。 18.如申請專利範圍第13項所述之資料同步系統,其 中,於執行該第一資料夾與該第二資料夾之第\次 同步化時,該第一電子裝置儲存一第一同步資訊, 其包含一第一指標,以指向該備份之第一檔案表; 24 201020820 該第二電子裝置儲存―第二同步資M,其包含一第 二指標,以指向該備份之第二檔案表 i9.=利f園第18項所述之資料同步系統,其 持該第4料夾與該第二資料夹之第_次同8. The method for synchronizing data as described in claim 7 wherein step (8) includes querying the first indicator of the first-time information to find the first file list of the backup. 9. The method for synchronizing data according to claim 7 , wherein the first synchronization information and the second synchronization information respectively comprise an identification code of the first electronic device and the second electronic device, and 1 b The name of the first folder and the second folder. 1〇·If you apply for the data synchronization method of the S1 position, the first-folder update information includes the first folder 21 20102082ο, one of the files is recently updated, and the second data The folder update information includes one of the files of the second folder recently updated. 〇Q U. The method for synchronizing data according to claim 1, wherein the file update information of the first folder includes a newly updated version code of one of the rights of the first data, and the second data The slot update information includes a recently updated version code of one of the broadcasts of the second folder. 12. The method of synchronizing data according to claim 1, wherein the intermediate storage device is a flash drive, a memory card or an external hard drive. 13. A data synchronization system, comprising: a first electronic device storing a first data center and maintaining a first file list of the first data folder to record the first data lost file update information; a second electronic device storing a second folder and maintaining a second file list of the second folder to record the second data missing file update information; and an intermediary storage device; wherein 'the first data When the folder and the second folder are synchronized, the first electronic device and the second electronic device respectively save the synchronized first file table and the second file table with a backup, wherein N is a positive integer, the first file table and the second file table of the backup remain unchanged until the N+1th synchronization of the first folder and the second folder is performed; 22 201020820 where 'the first When the data folder is synchronized with the N+1th synchronization of the second folder, the first electronic device copies the first file list of the backup to the mediation storage device to generate a third file table. The first The file table and the current first file table are used to find that the first file folder needs to be updated to at least one first file of the mediation storage device, and then the first file is copied to the mediation storage device, and correspondingly updated The third file list; then the second electronic device compares the third file table with the current second file table to find that the media storage device needs to be updated to at least one second file of the second folder And copying or moving the second broadcast from the intermediate storage device to the second folder, and updating the second file table correspondingly. 14. The data synchronization system of claim 13, wherein "if the first folder and the second folder are synchronized N+1 times, if the second electronic device is compared When the third file list and the current second file list are found to be updated to at least one third file of the media storage device, the second electronic device copies the third file to the third file Intermediary storage device, and correspondingly updating the third file table, and then the first electronic device compares the third file table with the current first file table to find that the media storage device needs to be updated to the first data file At least one fourth file of the folder, and then copying or moving the fourth file from the intermediate storage device to the first folder and correspondingly updating the first document table. 15. If the patent application scope is π or 14 The data synchronization system described in the item is in the first folder and the second folder. When the first electronic device is executed, the first electronic device enters the second broadcast table and the second electronic device. Comparison of the second trough table Updating the backup first job table to the current first broadcast list 'the second electronic device updates the second file list to the second after updating the second broadcast table correspondingly Archive file. % When applying the information mentioned in item 15 of the patent scope, the system, after the corresponding electronic device, after the corresponding axis-archive table, the new file-update file of the backup is updated. The first file list. 17. If the N=b in the data synchronization system described in claim 14 is performed in the Nth synchronization of the first folder and the second folder, The first electronic device copies the content of the first folder and the first file table to the intermediary storage device to generate the third file table, and then the second electronic device ratio is related to the third file table and the current The second file table is configured to discover that at least one second file of the second data folder needs to be updated in the media storage device, and then copy or move the second file from the intermediate storage device to the second data folder. And correspondingly updating the second file table. 18. The data synchronization system of claim 13, wherein the first electronic device stores a first synchronization information when performing the first synchronization of the first folder and the second folder. , the first indicator is included to point to the first file list of the backup; 24 201020820 The second electronic device stores a second synchronization resource M, which includes a second indicator to point to the second file table i9 of the backup .= The data synchronization system described in item 18 of the Lee Garden, which holds the fourth folder and the second folder 步化執行時,該第-電子裝置查詢該第—同步資訊 之該第一指標,以找到該備份之第一檔案表 20.如申請專利範圍第18項所述之資料同步系統其 中,該第-同步資訊與該第二同步資訊還各分別包 含該第-電子裝置與該第二電子褒置之識別瑪以 及該第一資料夾與該第二資料夾之名稱。 21·如申請專利範圍第13項所述之資料同步系統其 t該第-資料夾之構案更新資訊包含該第一資料 夾之各槽案之-最近更新者,而該第二資料央之播 案更新資訊包含該第二資料夹之各觀之一最近 更新者。 22·如申4專利範圍第13項所述之資料同步系統其 中該第-資料夾之檔案更新資訊包含該第一資料 夾之各播案之-最近更魏本代碼,而該第二資料 夾之播案更新資訊包含該第二資料夾之各播案之 一最近更新版本代碼。 3·如申明專利範圍第13項所述之資料同步系統,其 中該中介儲存裝置係—隨身碟、—記憶卡或一外接 式硬碟。 25When the step is executed, the first electronic device queries the first indicator of the first synchronization information to find the first file table of the backup. The data synchronization system according to claim 18, wherein the first The synchronization information and the second synchronization information further respectively include the identification of the first electronic device and the second electronic device and the names of the first folder and the second folder. 21. The data synchronization system as described in claim 13 of the patent application, wherein the information update information of the first-folder includes the latest update of each slot of the first folder, and the second data is The broadcast update information includes one of the recent updates of the views of the second folder. 22. The data synchronization system of claim 13, wherein the file update information of the first folder includes the first folder of the first folder - the most recent code, and the second folder The broadcast update information includes a recently updated version code of one of the broadcasts of the second folder. 3. A data synchronization system as claimed in claim 13 wherein the intermediate storage device is a flash drive, a memory card or an external hard drive. 25
TW97145295A 2008-11-24 2008-11-24 System and method for data synchronization TW201020820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97145295A TW201020820A (en) 2008-11-24 2008-11-24 System and method for data synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97145295A TW201020820A (en) 2008-11-24 2008-11-24 System and method for data synchronization

Publications (1)

Publication Number Publication Date
TW201020820A true TW201020820A (en) 2010-06-01

Family

ID=44832386

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97145295A TW201020820A (en) 2008-11-24 2008-11-24 System and method for data synchronization

Country Status (1)

Country Link
TW (1) TW201020820A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI489281B (en) * 2011-04-08 2015-06-21 Farstone Technology Inc A storage device with automatic backup and synchronization

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI489281B (en) * 2011-04-08 2015-06-21 Farstone Technology Inc A storage device with automatic backup and synchronization

Similar Documents

Publication Publication Date Title
US10289692B2 (en) Preserving file metadata during atomic save operations
US9141630B2 (en) Fat directory structure for use in transaction safe file system
US8655840B2 (en) Method, apparatus and computer program product for sub-file level synchronization
EP2756434B1 (en) Efficient data recovery
US8762344B2 (en) Method for managing information processing system and data management computer system
US8340795B2 (en) Small removable audio player that attaches to a host media player
TW200809552A (en) Bookmarked synchronization of files
JP2005322250A (en) Method and system for synchronizing data between electronic devices
US7979401B2 (en) Time based file system for continuous data protection
US9773059B2 (en) Tape data management
TWI502384B (en) File tracking methods and network communication devices using the same
US10467248B1 (en) Data synchronization using a composite clock
CN1972195A (en) Method and apparatus for synchronising multimedia content with device which supports multi-server environment
US20120095962A1 (en) Aggregating Media Content From Multiple Clients To A Server
KR20060041737A (en) Cross-pollination of multiple sync sources
EP2553613A1 (en) Method and apparatus for portable index on a removable storage medium
CN101578580A (en) Data backup for mobile device
US10838944B2 (en) System and method for maintaining a multi-level data structure
US9934240B2 (en) On demand access to client cached files
WO2012126195A1 (en) Method and apparatus for realizing electronic bookmarks
JP5020499B2 (en) Video data recording method and recording apparatus therefor
US20120185440A1 (en) Method and apparatus for providing address book restoration
US20080098034A1 (en) Method Of Updating Content Of A Portable Device
JP2009528617A (en) Identifying media device content changes
TW201020820A (en) System and method for data synchronization