201013399 九、發明說明: 【發明所屬之技術領域】 本發明係關於一種備份與還原資料的方法及可被電 腦讀取之物品,尤其是一種自動備份及還原資料之方法 及可被電腦讀取之物品。 【先前技術】 Φ 藉由電腦處理來提升工作效率,幾乎是現今各行各 業使用電腦的主要理由。電腦的用途包括處理工作物 件、文書處理、設計美工、搜尋資料及方便世界各地的 聯繫等等,因而有許多的統計資料、繪圖資料或文書處 理等等都是藉由電腦處理。 由於現在許多工作都仰賴電腦,因此資料(電腦檔案) 備份的工作就變的很重要。尤其像是許多軟體工程師都 參 有過的慘痛經驗’那就是當程式寫到快要完工時,卻發 生電腦當機,而檔案又沒有儲存或備份,導致於軟體工 程師必須重新撰寫程式。同樣的情況亦有可能發生在其 他的工作,例如利用文書檔案處理論文報告,在未完成 論文報告之前,縱使已經儲存檔案,若未備份檔案,電 腦當機仍常常造成無法回復檔案。 因此’目前市面上出現多種電腦(檔案/系統)備份軟 體,使電腦操作者可避免發生如上的惨痛經驗。然而, 目前備份軟體都需要由使用者自行選擇欲備份的來源檔 5 201013399 案以及指定欲儲存的 須對電腦的檔案位=位置,如此一來’使用者就必 錯裝置進行備份。了解,否則使用者很可能會選 位置,亦可^因^ 由於使用者不熟習儲存的槽案 . 導致操作錯誤而還原到錯誤的檔案版 i行=成”之遺失。目前市面上的備份軟體,在 可处描通吊會顯示所有的儲存裝置,然而使用者 槽案備份在其中—或二種裝置,如此一來, 很谷易造成使用者混淆之虞。 【發明内容】 次本發明之主要目的係在於提供一種自動備份及還原 -貝料之方法及可被電腦讀取之物品,其可自動偵測可能 之備份方式與相關設定。 本發明之另一目的係在於提供一種可防止使用者操 作錯誤之備份及還原資料之方法。 為達到上述之目的,本發明提供一種自動備份及還 原了資料之方法,其係將該資料從一來源裝置複製備份 至複數目的地裝置的至少其中之一,以及將該資料從複 製備份之該目的地裝置還原至該來源裝置,本發明之方 法包括: 步驟S11 :在進行該資料複製備份時,擷取至少一特 徵值,該特徵值係進行複製備份之該目的地裝置之特徵 值; 6 201013399 步驟S12:依據所擷取的特徵值,建立一設定檔 (profile),並將該設定檔儲存在該來源裝置及進行複製備 份之該目的地裝置;以及 步驟S13 :依據該來源裝置之該設定檔,判斷該來源 裝置是否有連接至儲存有該設定檔之目的地裝置,以自 動地備份一更新資料或還原該資料。 本發明之特徵值包括但不限於至少下列其中任一: p —序號(serial number)、一型號(model number)及一媒體 存取控制位址(MAC address)。再者,序號則可以是一硬 碟實體序號(HDD serial number)、一 USB 序號、一 iPOD 序號或一 SmartPhone序號。 在一較佳實施例中,在判斷該來源裝置是否有連接 至儲存有該設定檔之目的地裝置的步驟,若判斷為 「是」,則更包含: 步驟S14:顯示儲存有該設定檔的目的地裝置,以供 @ 使用者選取進行備份一更新資料或還原該資料。 步驟S15 :比對該更新資料與該資料,找出該更新資 料與該資料之間的差異,以自動地備份該更新資料與該 資料之間的該差異。 若判斷為「否」,則為步驟S16 :則顯示一訊息,以 提醒使用者將該來源裝置連接至儲存有該設定檔的目的 地裝置。 由於上述之方法最好以電腦程式完成,因此本發明 7 201013399 之方法可以以電腦程式寫於載有電腦可使用之媒介,譬 如硬碟,積體電路,光碟及其他可記錄電腦程式之物品。 【實施方式】 為讓本發明之上述和纟他目❺、特徵和優點能更明 顯易懂,下文特舉出較佳實施例,並配合所附圖式 詳細說明如下。 请參考圖1’本發明提供一種自動備份及還原一資料 之方法’使用者可將來源裝置i的資料n、12、13複製 !份至目的地裝置2、3、4至少其中之一。若有需要進 行還原作業,亦可從所備份的目的地裝置2、3或4將資 料還原至來源裝置1。例如使用者可選擇USB 2、硬碟3 或網路磁碟4作為目的地裝置,以進行複製備份來源裝 置1的資料11、12、13,使用者可以選擇單一目的地裝 置(例如僅選擇USB 2),亦可以選擇多個目的地裝置(例 如選擇USB 2、硬碟3及網路磁碟4)同時進行複製備份 來源裝置1的資料11、12、13。 清參考圖2,其顯示本發明之方法流程: 步驟sii :在進行資料u、12及/或13的複製備份 時,擷取至少一特徵值,且該特徵值係進行複製備份之 目的地裝置之特徵值。舉例而言,若使用者僅選擇USB 2 作為目的地裝置,則擷取USB 2的特徵值,像是序號 (serial number)或型號(m〇del number),也就是 usB 2 的 序號及/或或型號。 8 201013399 換言之,本發明之特徵值包括但不限於至少下列其 中任一:一序號(serial number)、一型號(model number) 及一媒體存取控制位址(MAC address)。再者,序號則可 以是一硬碟實體序號(HDD serial number)、一 USB序號、 一 iPOD 序號或一 SmartPhone 序號。 接下來為步驟S12:依據所擷取的特徵值,建立一設 定檔(profile),並將該設定檔儲存在來源裝置及進行複製 備份之目的地裝置。例如,圖1的使用者選擇USB 2作 為目的地裝置時,依據所摘取的特徵值(像是USB 2的序 號及/或或型號),建立可供辨識的設定檔,並將設定檔儲 存在來源裝置1(例如本機磁碟)及進行複製備份之目的地 裝置2 (例如USB)。 再來是步驟S13 :依據設定檔,判斷來源裝置是否有 連接至儲存有該設定檔之目的地裝置’以自動地備份更 新資料或還原資料。例如,當使用者再次啟動欲進行備 份或還原時,本發明即可依據設定檔,判斷來源裝置(例 如本機磁碟1)是否有連接至儲存有設定檔之目的地裝置 (例如USB 2),若判斷為「是」,則將來源裝置(例如本 機磁碟1)的更新資料複製備份至目的地裝置(例如USB 2),或者將目的地裝置(例如USB 2)的資料11、12或13 還原至來源裝置(例如本機磁碟1)。 請先參考圖3’判斷來源裝置是否有連接至儲存有該 設定檔之目的地裝置的步驟S13,實質上是在比對來源裝 置1與目的地裝置2、3、4的設定檔。因此可進一步進 行步驟S131-133 ··檢查USB特徵值S131、檢查硬碟特徵 9 201013399 值S132及檢查網路磁碟特徵值S133。 請回到圖2,若步驟S13的判斷為「否」,則來到步 驟S16 ·則顯示一訊息,以提醒使用者將該來源裝置連接 至儲存有該設定檔的目的地裝置,以進行備份或還原資 料。由於在螢幕上顯示訊息的方式有許多,且為熟習本 項技術者在閱讀本說明書之後,當可理解者,故未在此 多贅述。 ❹ β清參考圖4,在一較佳實施例中,在判斷該來源裝置 疋否有連接至儲存有該設定檔之目的地裝置的步驟 S13 ’若判斷為「是」,則更包含: 步驟S14·顯示儲存有設定檔的目的地裝置,以供使 用者選取進行備份一更新資料或還原該資料。例如,判 斷結果為本機磁碟1是有連接至儲存有設定檔之USB 2 時,則顯示USB 2的圖像,以供使用者選取進行備份或 還原資料。因此,可避免使用者選錯欲複製備份的目的 ❹ 裝置’亦可避免造成使用者混淆。 步驟S15 :若是進行複製備份時,比對來源裝置i 的更新資料與先前備份的資料(可能複製備份在目的地裝 置2、3或4),找出更新資料與先前儲存的資料之間的差 異,以自動地複製差異部份,也就是備份更新資料與原 資料(先前儲存的資料)之間的差異。如此一來即可省去許 多等待儲存的時間,以提高效率。 ° 由於上述之方法最好以電腦程式完成,因此本發明 之方法可以以電腦程式寫於載有電腦可使用之媒介,譬 201013399 如硬碟’積體電路’光碟及其他可記錄m程式之物品〇 更進步而言,本發明之自動備份及還原資料之方 μ可以電腦程式語言寫成以便執行而電腦程式可以 ^於任何微處理單元可以辨識、解讀之紀錄媒體,或 03有該紀錄媒體之物品及裝置。其不限為任何形式, ,物曰品較佳為⑶’^^’勘’軟碟磁片’硬碟磁片, 」日片或任何熟悉此項技藝者所可使用之包含有該紀錄 • 品…由於本發明之防止惡意連線通訊之方法已 攀揭露凡整’任何熟悉電腦程式語言者閱讀本發明說明書 即知如何撰寫電腦軟體程式,故㈣電腦軟體程式 部分不在此贅述。 雖然本發明已以較佳實施例揭露如上,然其並非用 以限定本發明,任何熟習此技藝者,在不脫離^發明之 精神和範圍内,當可作些許之更動與潤飾,因此本 之保護範圍當視後附之申請專利範圍所界定者為準。 ❹ 【圖式簡單說明】 置與目的地 料之方法流 圖1係在備份及還原資料時,顯示其來源裝 裝置之架構示意圖。 ^ 圖2係依據本發明’顯示自動備份及還原資 程圖。 圖3係依據圖2,顯示其判斷步驟之方法流程圖 201013399 圖4係依據本發明之一較佳實施例,顯示自動備份及還 原資料之方法流程圖。 【主要零件符號說明】 來源裝置1 資料11、12、13 目的地裝置2、3、4201013399 IX. Description of the invention: [Technical field of invention] The present invention relates to a method for backing up and restoring data and articles that can be read by a computer, in particular, a method for automatically backing up and restoring data and being readable by a computer article. [Prior Art] Φ Using computer processing to improve work efficiency is almost the main reason why computers are used in various industries. The use of computers includes handling work items, word processing, designing art, searching for information and facilitating connections around the world, etc., so many statistics, drawing materials or clerical processing are handled by computers. Since many jobs now rely on computers, the task of backing up data (computer files) becomes very important. In particular, many software engineers have experienced the painful experience. That is, when the program is about to be completed, the computer crashes and the files are not stored or backed up, causing the software engineer to rewrite the program. The same situation may occur in other work, such as using paper files to process paper reports. Even before the papers are reported, even if the files have been stored, if the files are not backed up, the computer often fails to reply to the files. Therefore, there are a variety of computer (file/system) backup software available on the market, so that computer operators can avoid the painful experience as above. However, at present, the backup software needs to be selected by the user to select the source file to be backed up, and the file location = location of the computer to be stored, so that the user must back up the device. Understand, otherwise the user is likely to choose the location, or ^ because the user is not familiar with the stored slot case. The operation error is restored to the wrong file version i line = "loss". Currently on the market backup software The storage device can display all the storage devices, but the user slot file is backed up in the same - or two devices, so that the user is confused by the user. [Summary of the Invention] The main purpose is to provide a method for automatically backing up and restoring - bedding materials and articles that can be read by a computer, which can automatically detect possible backup methods and related settings. Another object of the present invention is to provide a preventable use. For the purpose of the above, the present invention provides a method for automatically backing up and restoring data by copying the data from a source device to at least one of the plurality of destination devices. And reverting the data from the destination device that copies the backup to the source device, the method of the present invention comprises: Step S11: When the data is copied and backed up, at least one feature value is obtained, and the feature value is a feature value of the destination device for copying and backuping; 6 201013399 Step S12: establishing a profile according to the extracted feature value. And storing the configuration file in the source device and the destination device for performing copy backup; and step S13: determining, according to the configuration file of the source device, whether the source device is connected to a destination where the configuration file is stored The device automatically backs up an update data or restores the data. The feature values of the present invention include, but are not limited to, at least one of the following: p - serial number, model number, and a media access control bit Further, the serial number may be a hard disk serial number (HDD serial number), a USB serial number, an iPOD serial number or a SmartPhone serial number. In a preferred embodiment, it is determined whether the source device is There is a step of connecting to the destination device storing the configuration file. If the determination is YES, the method further includes: Step S14: displaying that the configuration file is stored Ground means for @ a user to select backup or restore data to update the information. Step S15: Find the difference between the updated data and the data by comparing the updated data with the data to automatically back up the difference between the updated data and the data. If the determination is "NO", then in step S16: a message is displayed to remind the user to connect the source device to the destination device in which the profile is stored. Since the above method is preferably implemented by a computer program, the method of the present invention 7 201013399 can be written in a computer program such as a hard disk, an integrated circuit, a compact disk or other recordable computer program. [Embodiment] The above-described and other features, features and advantages of the present invention will become more apparent from the description of the appended claims. Referring to FIG. 1 ', the present invention provides a method for automatically backing up and restoring a material. The user can copy the data n, 12, 13 of the source device i to at least one of the destination devices 2, 3, 4. If there is a need for a restore operation, the data can also be restored to the source device 1 from the backup destination device 2, 3 or 4. For example, the user can select USB 2, hard disk 3 or network disk 4 as the destination device to copy the data 11, 12, 13 of the backup source device 1, and the user can select a single destination device (for example, only select USB) 2) It is also possible to select a plurality of destination devices (for example, select USB 2, hard disk 3, and network disk 4) to simultaneously copy the data 11, 12, and 13 of the backup source device 1. 2, which shows the flow of the method of the present invention: Step sii: At the time of performing a copy backup of the data u, 12 and/or 13, at least one feature value is captured, and the feature value is a destination device for copying and backuping Characteristic value. For example, if the user only selects USB 2 as the destination device, the feature value of the USB 2 is captured, such as a serial number or a model number (m〇del number), that is, the serial number of the usB 2 and/or Or model number. 8 201013399 In other words, the feature values of the present invention include, but are not limited to, at least one of the following: a serial number, a model number, and a media address control address (MAC address). Furthermore, the serial number can be a hard disk serial number (HDD serial number), a USB serial number, an iPOD serial number or a SmartPhone serial number. Next, in step S12, a profile is created based on the extracted feature values, and the profile is stored in the source device and the destination device for copying and backuping. For example, when the user of FIG. 1 selects USB 2 as the destination device, based on the extracted feature values (such as the serial number and/or model of USB 2), a profile that can be recognized is established, and the profile is stored. The source device 1 (for example, a local disk) and the destination device 2 (for example, USB) that performs copy backup. Then, in step S13, it is judged based on the profile that the source device is connected to the destination device storing the profile file to automatically back up the update data or restore the data. For example, when the user starts up again to perform backup or restore, the present invention can determine whether the source device (for example, the local disk 1) is connected to the destination device (for example, USB 2) storing the profile according to the profile. If the judgment is "Yes", copy the updated data of the source device (such as the local disk 1) to the destination device (for example, USB 2), or the data of the destination device (for example, USB 2) 11, 12 Or 13 Restore to the source device (for example, local disk 1). Referring first to Fig. 3', it is judged whether or not the source device is connected to the destination device storing the profile, substantially in the configuration file of the source device 1 and the destination devices 2, 3, 4. Therefore, steps S131-133 can be further performed. - Check the USB feature value S131, check the hard disk feature 9 201013399 value S132, and check the network disk feature value S133. Returning to FIG. 2, if the determination in step S13 is "NO", then the process proceeds to step S16. A message is displayed to remind the user to connect the source device to the destination device storing the profile for backup. Or restore the data. Since there are many ways to display a message on the screen, and those who are familiar with the present technology are understandable after reading this specification, they are not described here. Referring to FIG. 4, in a preferred embodiment, in the step S13 of determining whether the source device is connected to the destination device storing the profile, if the determination is YES, the method further includes: S14· Display the destination device storing the configuration file, so that the user selects to perform backup to update the data or restore the data. For example, if the result of the determination is that the local disk 1 is connected to the USB 2 storing the profile, the image of the USB 2 is displayed for the user to select to back up or restore the data. Therefore, it is possible to prevent the user from selecting the purpose of copying the backup device ’ to avoid confusion. Step S15: If the copy backup is performed, compare the update data of the source device i with the previously backed up data (possibly copying the backup at the destination device 2, 3 or 4) to find the difference between the updated data and the previously stored data. To automatically copy the difference, which is the difference between the backup update data and the original data (previously stored data). This saves you the time to wait for storage to increase efficiency. ° Since the above method is preferably completed by a computer program, the method of the present invention can be written in a computer-readable medium, such as a hard disk 'integrated circuit' CD and other items capable of recording m programs. In terms of progress, the automatic backup and restore data of the present invention can be written in a computer programming language for execution and the computer program can be used by any micro processing unit to identify and interpret the recording medium, or 03 with the recording medium. And equipment. It is not limited to any form, and the article is preferably (3) '^^' surveyed 'floppy disk' hard disk disk, "Japanese film or any person familiar with the art can use the record" The method for preventing malicious connection communication of the present invention has been disclosed. Anyone who is familiar with the computer programming language will read the instructions of the present invention and know how to write the computer software program. Therefore, the computer software program part is not described here. Although the present invention has been disclosed in the above preferred embodiments, it is not intended to limit the invention, and those skilled in the art can make some modifications and refinements without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application attached. ❹ [Simple diagram of the diagram] Method flow for setting and destination materials Figure 1 shows the architecture of the source device when backing up and restoring data. ^ Figure 2 shows an automatic backup and restore resource diagram in accordance with the present invention. 3 is a flow chart showing a method for determining a step according to FIG. 2. FIG. 4 is a flow chart showing a method for automatically backing up and restoring data according to a preferred embodiment of the present invention. [Main part symbol description] Source device 1 Data 11, 12, 13 Destination devices 2, 3, 4