CN1677355B - Method system and apparatus for synchronous update of files - Google Patents

Method system and apparatus for synchronous update of files Download PDF

Info

Publication number
CN1677355B
CN1677355B CN 200410026773 CN200410026773A CN1677355B CN 1677355 B CN1677355 B CN 1677355B CN 200410026773 CN200410026773 CN 200410026773 CN 200410026773 A CN200410026773 A CN 200410026773A CN 1677355 B CN1677355 B CN 1677355B
Authority
CN
China
Prior art keywords
file
synchronization
data processing
host
backup
Prior art date
Application number
CN 200410026773
Other languages
Chinese (zh)
Other versions
CN1677355A (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 CN 200410026773 priority Critical patent/CN1677355B/en
Publication of CN1677355A publication Critical patent/CN1677355A/en
Application granted granted Critical
Publication of CN1677355B publication Critical patent/CN1677355B/en

Links

Abstract

The invention is a method of automatically updating data backup between data processing host machine and mobile storage device connected with it, where the invention arranges application software in the data processing host machine or mobile storage device and establishes synchronous files or at least a synchronous folder corresponding to the mobile storage device in the data processing host machine according to the set backup mechanism, as well as make synchronous data backing-up between the data processing host machine and the connected mobile storage device by the application software according to the modification conditions of the appointed synchronous files or folders.

Description

文件同步更新的方法、系统及装置 Updating file synchronization method, system and apparatus

技术领域 FIELD

[0001] 本发明涉及数据存储领域,并特别涉及一种移动存储装置的数据存储方法系统及 [0001] The present invention relates to the field of data storage, and in particular to a system for mobile data storage method and storage device

装置。 Device. 背景技术 Background technique

[0002] 随着USB技术的成熟,USB闪存盘的市场需求越来越多;在人们的使用过程中,闪存盘的作用大都是作为一种移动数据存储装置。 [0002] With the maturity of USB technology, market demand for more and more of the USB flash drive; in people's use, the effect is large flash disk as a mobile data storage device. 习惯于用USB闪存盘在不同的数据处理主机之间搬运数据。 Used to transfer data between different data processing host with a USB flash drive.

[0003] 伴随着USB2. 0标准的出现,USB闪存盘的存储速度的瓶颈已经被打破;闪存盘的 . [0003] With the advent of USB2 0 standard, the bottleneck of memory speed USB flash drive has been broken; flash drive

存储容量也取得了突破性进展,也由最初的十几兆几十兆变成目前的几个G,乃至更高的存 Storage capacity also made a breakthrough, has become more than ten trillion from the initial tens of megabytes currently several G, as well as higher deposit

储容量。 Storage capacity. 闪存盘也从最初的单纯数据移动存储的功用逐渐地兼有数据备份的功能,当闪存 Both have gradually flash disk data backup function from a simple function of the initial data stored in the movement, when a flash memory

盘的数据存储的容量变的越来越大时,作为一个备份数据的产品,闪存盘的内容也需要经 Data storage disk capacity becomes more and more content products, flash drive as a backup data needs by

常更新,以适应适时存储的需要,同时用户也需要把闪存盘中的内容从一个电脑上备份到 Often updated to meet the needs of timely storage, and you also need to back up the contents of flash drives from one computer to

另外一个电脑上,这些所有的操作目前都需要用户从操作系统进行,而闪存盘所备份的数 Further a computer, all of these operations currently require the user from the operating system, and the number of backed-up flash disk

据容量越大,用户只能从PC或闪存盘中找出相关的文件进行备份操作,或者对全部文件进 According to the greater capacity, the user can find the relevant files from the PC or flash disk for backup operations, or for all files into

行备份,无论寻找相关的文件还是对全部的文件进行备份均需要较长的时间。 Line backup, whether to find relevant files or all files are backed up to require a longer period of time.

[0004] 此外,大容量的数据的更新备份,完全由人工进行操作也可能产生遗漏或误操作。 [0004] In addition, a large-capacity backup data update, fully operated by the manual may produce erroneous or missing.

发明内容 SUMMARY

[0005] 为了克服现有的移动存储装置的内容的更新均需手工操作的缺陷,本发明因而提供一种对移动存储装置备份的数据能进行自动更新的方法及系统。 [0005] To overcome the defect required to manually update the content of existing mobile storage devices, the present invention thus provides a removable memory device to the data backup system and a method capable of automatically updated.

[0006] 本发明要解决的另一技术问题是提供一种具有对其存储的数据进行自动更新的移动存储装置。 [0006] Another technical problem to be solved by the present invention is to provide a mobile storage device to automatically update its stored data has.

[0007] 本发明解决技术问题的技术方案是提供一种在数据处理主机和与其连接的移动存储装置之间对备份的数据进行自动更新的方法,其中,在数据处理主机或移动存储装置中设置应用软件,并在数据处理主机上根据设定的备份机制建立与移动存储装置之间相对应的同步文件,由应用软件在数据处理主机和与其连接的移动存储装置之间根据移动存储装置指定的源文件的修改状况对指定的同步文件进行同步备份,将发生修改的源文件与相应的同步文件进行比较,若两者不一致,则用发生修改的源文件覆盖相应的同步文件;若没有发现所述相应的同步文件则复制所述发生修改的源文件。 [0007] The present invention for solving the technical problem is to provide an aspect of a method of automatically updating data backup between a host and a data processing device connected thereto a removable storage, wherein a data processing host or a mobile storage device application software, files and establish synchronization with the mobile storage device corresponding to the backup mechanism in accordance with the set on a data processing host, by the application software designated memory device according to the mobile data processing between the host and the mobile storage device connected thereto modify the status of the specified source file synchronization backup synchronization file, the source file modifications will occur compared to the corresponding synchronization file, if both do not match, the synchronization file is overwritten with the corresponding source file is modified; if not found to said corresponding synchronization of the source file is modified files are copied.

[0008] 提供一种在数据处理主机和与其连接的移动存储装置之间对备份的数据进行自动更新的系统,包括一个数据处理主机,和一个与其连接的移动存储装置,其特征在于,在移动存储装置中设置应用软件,用于检测设定的备份机制类型,如果所设定备份机制为移动存储装置备份机制,则在数据处理主机或上根据所述设定的备份机制建立与移动存储装置之间相对应的同步文件,由应用软件在数据处理主机和与其连接的移动存储装置之间根据移动存储装置指定的源文件的修改状况自动对数据处理主机中指定的同步文件进行同步备份,将移动存储装置中发生修改的源文件与数据处理主机中相应的同步文件进行比较,若两者不一致,则用发生修改的源文件覆盖所述数据处理主机中相应的同步文件;若没有发现所述相应的同步文件于数据处理主机中,则将所 [0008] to provide a data processing performed between the mobile host and the storage device connected thereto for automatically updating data backup system comprising a data processing host, and a removable storage device connected thereto, characterized in that in a mobile application storage means is provided for detecting the type of backup mechanism is set, if the backup mechanism is set to a removable storage device backup mechanism, the data processing host to establish or removable memory device according to the setting of the backup mechanism between corresponding synchronization file, the application software by the modified conditions specified in the data processing between the host and the storage device connected thereto mobile removable memory device according to the source file in the host data processing automatically specified synchronization file synchronization backups, corresponding synchronous data files source files modified host processing occurs in the mobile storage device comparison, if both do not match, then the data processing host to cover the corresponding synchronization file with source file is modified; if not found the synchronization file corresponding to a data processing host, then the 述移动存储装置中发生修改的源文件复制至数据处理主机中。 Copying the source file modification occurred in the mobile storage device to said data processing host.

[0009] 以及,如果所设定备份机制为主机备份,则则在移动存储装置上根据设定的备份机制建立与数据处理主机上源文件夹中的源文件相对应的至少一个同步文件夹,由应用软件在数据处理主机上根据指定源文件的修改状况对移动存储装置上的同步文件夹下同步文件进行同步备份,将数据处理主机上发生修改的源文件与移动存储装置上相应的同步文件夹下的同步文件进行比较,若两者不一致,则用发生修改的源文件覆盖相应的同步文件; 若没有发现所述相应的同步文件则将所述发生修改的源文件复制至相应同步文件夹下;若没有发现相应的同步文件夹则新建同步文件夹,再将所述发生修改的源文件复制至相应同步文件夹下。 [0009] and, if the backup set for the host backup mechanism, then the mobile storage unit on the source file established on a data processing host source folder corresponding to the at least one synchronization folder backup mechanism in accordance with the set, by the application software on a data processing host to synchronize files on a removable storage device folder synchronization file according to the modified conditions specified source file synchronizes the backup, the corresponding sync folder on the source file modification occurs on a data processing host and the mobile storage device synchronizing folder under comparison, if both do not match, the synchronization file is overwritten with the corresponding source file is modified; if not found then the synchronization file of the respective modified source file copied to the appropriate folder synchronization occurs under; if synchronization is found, the corresponding folder is the new folder synchronization, the source file is modified and then copied to the appropriate file folder synchronization.

[0010] 提供一种对其存储的数据进行自动更新的移动存储装置,其与一种数据处理主机相连接,用于数据存储,其特征在于,根据设定的备份机制建立移动存储装置与所述数据处理主机之间相对应的同步文件,在移动存储装置中设置应用软件,用于检测所设定的备份机制类型,如果所设定的备份机制为移动存储装置备份机制,则该应用软件在数据处理主机和与其连接的移动存储装置之间根据指定的源文件的修改状况自动对指定的同步文件进行同步备份,将移动存储装置中发生修改的源文件与数据处理主机中相应的同步文件进行比较,若两者不一致,则用发生修改的源文件覆盖相应的同步文件;若没有发现所述相应的同步文件于所述数据处理主机中则将所述移动存储装置中发生修改的源文件复制至数据处理主机中。 [0010] thereof to provide a data storage means for automatically storing mobile updating, which is connected to a data processing host computer for storing data, wherein establishing the mobile storage device and the backup mechanism in accordance with the set said data processing between the host corresponding to the synchronization file, the storage device provided in a mobile application, the type of backup mechanism for detecting the set, the set if the backup mechanism is a removable storage device backup mechanism, the software application automatically synchronizing the specified backup synchronization file according to the modified conditions specified source file between the data processing host and mobile storage device connected thereto, the source file modification occurs in a removable storage device and the host data processing corresponding synchronization file comparison, if both do not match, the synchronization file is overwritten with the corresponding source file is modified; if synchronization is found, the corresponding source files modifications made to a mobile storage device of the data processing host then the copying to the data processing host.

[0011] 以及,如果所设定备份机制为主机备份,以及,如果所述备份机制为主机备份,则则在移动存储装置上根据设定的备份机制建立与数据处理主机上源文件夹中的源文件相对应的至少一个同步文件夹,由应用软件在数据处理主机上根据指定源文件的修改状况对移动存储装置上的同步文件夹下同步文件进行同步备份,将数据处理主机上发生修改的源文件与移动存储装置上相应的同步文件夹下的同步文件进行比较,若两者不一致,则用发生修改的源文件覆盖相应的同步文件;若没有发现所述相应的同步文件则将所述发生修改的源文件复制至相应同步文件夹下;若没有发现相应的同步文件夹则新建同步文件夹,再将所述发生修改的源文件复制至相应同步文件夹下。 [0011] and, if the backup set for the host backup mechanism, and, if the backup mechanism is a backup master, then the mobile storage unit on the source file established on a data processing host folder backup mechanism in accordance with the set source file corresponding to at least a sync folder, the application software to synchronize files on a removable storage device folder synchronization synchronize files backed up according to the modified conditions specified source file on a data processing host, modifications will occur on a data processing host synchronization file corresponding sync folder on the source file are compared with the mobile storage unit, if both do not match, the synchronization file is overwritten with the corresponding source file is modified; if not found then the synchronization file of the corresponding copying the source file is modified to the corresponding synchronous folder; if synchronization is found, the corresponding folder is the new folder synchronization, then the modified source file is copied to the occurrence of the corresponding sync folder.

[0012] 相对于现有技术,本发明有益效果是:所有备份都是自动进行,用户只要在第一次使用之前进行一些简单的设置,以后只要将移动存储装置插上电脑,所有备份工作都会自动进行,解决现有移动存储装置只能进行手工备份的不足,提高了备份的率效、降低操作失误、增加了数据备份的安全。 [0012] with respect to the prior art, the beneficial effects of the present invention is: All backups are performed automatically, as long as some simple user provided before the first use, after the mobile storage unit as long as the plug in the computer, all the backup job will automatically, the mobile storage unit to solve the conventional manual backup only insufficient to improve the efficiency of backup and reduce operational errors, increasing the security of data backup.

附图说明 BRIEF DESCRIPTION

[0013] 图1是本发明文件同步更新的备份机制的原理框图; [0014] 图2是本发明文件同步更新的应用软件执行流程图。 [0013] FIG. 1 is a schematic block diagram of a backup mechanism of the present invention, file synchronization update; [0014] FIG 2 is a flowchart of the implementation of the present invention, file synchronization update application software. 具体实施方式 Detailed ways

[0015] 请参阅图1,本发明的所述的文件同步更新的方法适用于数据处理主机200及与其相连接的设备400之间。 [0015] Referring to FIG 1, the method of the present invention is applicable to the updated file synchronization 400 between host 200 and data processing device connected thereto.

[0016] 本发明同步更新移动存储装置文件的方法是通过在数据处理主机200或设备400 端设置特定的应用软件,由应用软件自动对指定的文件或文件夹在数据处理主机200和与其相连接的设备400之间进行数据的同步备份,所述的数据可在数据处理主机200或设备400进行更新操作,也就是数据操作的位置不受同步备份的限制。 [0016] The method of the present invention, the synchronization update the mobile storage device file is performed by setting a specific application software 400 ends the data processing host 200 or the device, by the application software automatically for a specified file or folder in the data processing host 200 and connected thereto device 400 for synchronization between the backup data, the data can be updated in the data processing operation of the host device 200 or 400, the operation is restricted is not synchronized position data backup.

[0017] 数据处理主机200泛指各种有数据处理能力及其操作系统支持外部设备接入的电子设备,包括但不限于各种个人计算机、小型计算机、数据处理工作站以及各种具有外存储功能的专用数据处理系统。 [0017] The host computer 200 refers to the various data processing with a data processing capability of the electronic device and the operating system supports access to external devices, including but not limited to various personal computers, minicomputers, workstations, and various data processing functions of an external storage having the specific data processing system.

[0018] 所述设备400是指接入数据处理主机200的移动存储装置,通常包括但不限于基于Flash介质的闪存盘和各种FLASH移动存储卡,如压縮闪存卡(CompactFlash卡)、小型智能介质存储卡(SmartFlash卡)、多媒体卡(Multimedia Card)、安全数字卡(Secure Digital Card)和记忆棒(MemoryStick)等,以及基于其他存储介质的移动硬盘,所述存储介质包括磁阻性随机存取存储器(MRAM) 、 DRAM、 SDRAM、 EPROM、 EEPROM或SRAM等。 [0018] The mobile device 400 refers to a data processing device to access the host memory 200, typically including but not limited to disk-based flash Flash FLASH media and various removable memory cards, such as a compact flash memory card (CompactFlash card), small smart media memory cards (SmartFlash card), a multimedia card (multimedia card), a secure Digital card (secure Digital card), and memory stick (MemoryStick) and the like, and based on the movement of other hard disk storage medium, said storage medium comprising a magnetoresistive random access memory (MRAM), DRAM, SDRAM, EPROM, EEPROM or SRAM and the like. [0019] 现以闪存盘作为设备400为例对本发明的同步更新方法进行说明,本发明关于闪存盘的文件同步更新的备份机制包括以闪存盘作为备份目标机、采用主机作为备份目标机以及根据文件产生的时间判断备份目标机。 [0019] is to flash drive as the apparatus 400 as an example of the synchronization update process of the present invention will be described, documents present invention relates to flash disk synchronization update backup mechanism comprises according to the flash drive as the backup target, using the host as a backup target and Analyzing the backup file generation time of the target machine. 根据设置在闪存盘中的应用软件的设定,用户可以选择其中的一种机制或几种机制作文件同步更新的方式。 Depending on the setting in the application software to set flash drive, the user can choose the way in which a mechanism or machine made several file synchronization updates. 下面就该三种备份机制分别进行说明。 In respect of the following three backup mechanisms are described separately.

[0020] 采用闪存盘作为备份机制是指用户经常在与主机相连接的闪存盘上对文件进行数据操作、更新文件,采用这种备份机制,闪存盘中内置的应用软件就会默认闪存盘上的文件为最新文件,称为源文件,只要闪存盘上的文件发生了修改,经与主机中存储的相应的同步文件进行比较,闪存盘中存储的源文件与主机存储的同步文件不一致,则用闪存盘上的源文件覆盖主机上同步文件或同步文件夹下的该相应的文件。 [0020] The flash disk as a backup mechanism often refers to the file user data operation on a flash disk connected to the host, the update file, use this backup mechanism, flash drive built-in application software will default flash disk the file is the latest file, called the source file, as long as the files on the flash drive have changes, inconsistencies synchronize files by comparing source files stored in flash disk with the host stored in the corresponding synchronization with the host file storage, then covering the corresponding file on the host file synchronization or sync folder in a source file on the flash drive. 若闪存盘中的文件是新建文件,经比较,在主机中没有发现相应的同步文件,应用软件直接执行一个复制操作,将该新文件复制至主机中相应的同步文件夹下进行存储,如没有同步文件夹,则提示用户新建同步文件夹,进行存储。 If the flash drive file is a new file, by comparison, are not found in the host synchronization file, the application performs a direct copy operation to copy the new file to the host in the corresponding synchronization folder for storing, as no synchronize folders, synchronize the user is prompted to create a new folder for storage.

[0021] 采用主机作为备份的机制,其备份的机制与闪存盘备份的机制相反,最主要的区 [0021] The host as a backup mechanism, a flash mechanism that is opposite to its backup disk backup, the most important region

别在于,采用主机作为备份的机制,闪存盘中内置的应用软件会默认主机上的文件为最新 Do that, using the host as a backup mechanism, flash drive built-in application software will default file on the host for the latest

文件,称源文件,用户对主机上的同步文件或同步文件夹下的任一文件做出修改时,只要用 File, said the source file, any file the user synchronize files or synchronize files under the folder on the host to make changes, as long as

户将闪存盘插上主机,闪存盘中内置的应用软件就会去检测主机中的同步文件或同步文件 Host families will plug in flash drive, flash drive built-in application software will synchronize files to detect the host or synchronize files

夹下的相应的文件,经与闪存盘中存储的相应的同步文件进行比较,若发现已经被修改,则 The appropriate folder, compare and synchronize files through the appropriate flash disk storage, if found to have been modified,

应用软件就会执行一个复制操作,用主机中经修改的新文件覆盖闪存盘中的旧文件,对主 Application software will perform a copy operation, overwrite the old file flash drive with a new host file, as amended, for the Lord

机中的同步文件进行备份。 Machine synchronization files are backed up. 若主机中的文件是新建文件,经比较,在闪存盘中没有发现相应 If the hosts file is a new file, by comparison, did not find the appropriate flash drive

的同步文件,应用软件直接执行一个复制操作,将该新文件复制至闪存中进行存储。 File synchronization, application software directly execute a copy operation to copy the new files to the flash memory for storage.

[0022] 在前述两种备份机制中,应用程序对同步文件的检测可以采用比对文件产生的时 [0022] In the foregoing two backup mechanism, the application detects the generation of the synchronization file than the file may be employed

间、文件内容或文件的大小方式来判断同步文件与比对文件是否有差别。 Between the contents of the file or the file's size to determine whether to synchronize files and documents than there are differences.

[0023] 采用时间作为备份的机制,该机制是利用电脑中,所有文件的建立及修改都有时 [0023] using time as a backup mechanism, which mechanism is the use of computers, there are the establishment and modification of all files

6间标志,文件的时间都是以最后修改的时间作为最新时间,通过应用软件可以去检查文件的修改时间,确认最新文件,采用该机制,闪存盘中内置的应用软件不再默认的闪存盘中与主机中哪个文件是新文件,而是将对闪存盘中的文件与主机中的相应的同步文件进行比较,以最新产生的文件取代先前产生的相应的同步文件。 Time 6 logo file are in the last modified time as the latest time, you can go check the file modification time by the application software, check the latest file, using this mechanism, flash drive built-in application software is no longer the default flash drive with which the host file is a new file, but the file will flash drives and host of the corresponding sync files are compared to the latest document produced instead of the corresponding sync files previously generated. 若应用软件在闪存盘中或主机中发现一个文件,而在主机或闪存盘中没有发现相应的同步文件时,则应用软件直接执行一个复制操作,对该文件进行复制。 If the application software finds a file in a flash disk or the host, but did not find a corresponding file on the host or synchronous flash disk, the application software directly execute a copy operation, the file is copied.

[0024] 请参阅图2,本发明的文件同步更新方法是利用在闪存盘中设置一个特定的应用软件去自动执行,当在步骤102用户将设置有该应用软件的闪存盘第一次插入主机系统时,在步骤103,该应用程序会自动执行检测主机中是否进行了配置工作,即检测是否有同步文件或同步文件夹,如果应用程序在主机中没有发现相应的同步文件夹,便在步骤104 提示用户进行配置,即选定一个或创建一个新的文件夹作为设备的同步文件夹,并配置相应的备份机制。 [0024] Referring to FIG. 2, the file update method of the present invention is the use of synchronization is provided in a specific application to automatically execute flash drive, at step 102 when the user of the application software is provided with the first flash drive plugged into a host when the system, in step 103, the application automatically performs detection host whether or not the configuration work, that is, whether there is synchronization file or a sync folder, if the application is not found in the host corresponding sync folder, then at step 104 prompts the user to configure, that is, selecting one or create a new folder as a sync folder on your device, and configure the backup mechanism.

[0025] 同步文件或同步文件夹的设定无需特殊要求,只需要给设置在闪存盘中的应用软件在主机的存储空间中指定访问路径及文件或文件夹名即可,该指定的访问路径及文件或文件夹名被应用程序保存,便于应用程序根据该指定的路径及文件名或文件夹识别该同步文件或同步文件夹。 [0025] is set to synchronize files or synchronize folders without special requirements, just give in to set flash drive storage space is specified in the application software in the host and the access path to the file or folder name, the designated access path and a file or folder name is saved application, ease of application and according to the path to the specified file or folder name identifies the synchronization file or folder synchronization.

[0026] 如果应用软件发现主机已经进行了同步文件的配置,则应用软件检测相应同步文件或同步文件夹的备份机制,应用软件首先在步骤105判断是否采用闪存作为备份机制, 如果该同步文件或同步文件夹是采用闪存作为备份机制,则在步骤106检测文件是否被修改,如果文件被修改,则在步骤107将闪存盘上文件复制至主机上的同步文件夹下。 [0026] If the application software finds the host has been configured synchronization file, the software detects the backup mechanism corresponding synchronization files or synchronized folder, the application software first if employed at step 105 determines a flash memory as a backup mechanism, if the synchronization files or folder is synchronized using flash memory as a backup mechanism, is modified at step 106 whether the file is detected, if the file is modified, then 107 copied to the synchronous folder file on the host disk file on the flash step. [0027] 如果应用软件检测得到相应同步文件或同步文件夹不是采用闪存盘作为备份机制,则在步骤108检测该同步文件或同步文件夹是否采用主机作为备份机制,如果该同步文件或同步文件夹是采用主机作为备份机制,则在步骤109检测文件是否被修改,如果文件被修改,则在步骤110将主机上同步文件的文件复制至闪存盘中。 [0027] If the application software is detected to give the corresponding sync file or sync folders instead of using the flash drive as the backup mechanism, then in step 108 detects the synchronization file or a sync folder is using the host as a backup mechanism, if the synchronization files or sync folders host is employed as a backup mechanism, it is modified at step 109 whether the file is detected, if the file is modified, the file is copied to the flash disk synchronization file at step 110 host.

[0028] 如果应用软件检测得到的相应同步文件或同步文件夹不是采用主机作为备份机制,则在步骤lll检测该同步文件或同步文件夹是否采用以文件产生的时间作为备份机制,如果在步骤111判断出不是采用以文件产生的时间作为备份机制,则在步骤113应用程序检测结束,如果在步骤111该同步文件或同步文件夹是采用以文件产生的时间作为备份机制,则在步骤112进一步比较闪存盘中的文件与主机的同步文件,以新产生的文件取代旧的文件。 [0028] If appropriate synchronization file application software to detect obtained or sync folder instead of using a host as a backup mechanism, at step lll detects the synchronization file or a sync folder is employed to time the resulting file as a backup mechanism, if at step 111 is judged not employed to time the resulting file as a backup mechanism, the application detecting step 113 ends, if at step 111 the synchronization file or a sync folder is the use of time resulting file as a backup mechanism, a further comparison step 112 flash drive files and synchronize files host to produce a new document to replace the old file.

[0029] 以上是关于图2的应用软件的执行流程只是本发明中的应用软件一个具体的执行流程,应用软件对同步文件或同步文件夹的备份机制的检测不限于以上所述的顺序,也就是应用软件可以对以上三种备份机制以任一种顺序进行检测,需要说明的是在前述的应用软件检测的过程中,同步文件或同步文件夹只是选择设定了三种备份机制中的其中一种,当然应用软件也可以只设定一种备份机制,提供用户选定。 [0029] The above process is executed on the application software of FIG. 2 in the present invention is merely a specific application execution flow, detects the backup application software mechanism for synchronizing the synchronization file or folder limited to the order described above, but also is the application software for the above three backup mechanism for detecting either order, to be noted that in the process of the application software to detect, the synchronization sync file or folder only a selected set of three backup mechanism wherein one of course, the application software can be set only one backup mechanism to provide user-selected.

[0030] 再请参阅图l,本发明关于文件同步更新的备份机制可以以多种方式共存,对于以多种文件备份机制的共存时,除了在主机200中根据不同的备份机制建立不同的同步文件夹之外,如闪存盘备份区210、主机备份区220及最新文件备份区230,还要在闪存盘400中建立与主机同步文件夹相对应的同步文件夹:闪存盘备份区410、主机备份区420及最新文件备份区430。 [0030] Referring again to FIG. L, the present invention relates to a backup file synchronization mechanisms can coexist updated in various ways, in respect to the coexistence of multiple file backup mechanisms, in addition to the establishment of different backup mechanism in accordance with the different sync host 200 outside the folder, such as flash drives backup area 210, area 220 and the latest backup host file backup area 230, but also to establish the flash disk 400 in sync with the host folder corresponding sync folder: flash drive backup area 410, the host District 420 and the latest backup file backup area 430.

[0031] 图1所示的是以三种备份机制共存的实施方式,根据应用软件所提供的同步更新的备份机制,用户可以选定上述三种备份机制中的任意两种进行组合。 Is [0031] shown in FIG. 1 embodiment coexist three backup mechanism, the synchronization mechanism according to the backup application software update is provided, the user can select any two of the three backup mechanism in combination. 采用多种备份机制共存可以为用户提供更宽的选择余地。 Using a variety of backup mechanisms can coexist provide a wider choice for the user.

[0032] 对于闪存盘中有多个同步文件夹时,应用软件根据闪存盘中所设的同步文件夹对主机中各对应的同步文件夹根据图2所示的应用软件的执行流程依次进行检测,并判断各同步文件夹的备份机制。 [0032] respect to the memory key, a plurality of synchronized folder, the host application software corresponding to each file folder synchronization detecting process according to the execution of the application shown in FIG. 2 sequentially flash drive according to the established sync folder and judge each backup mechanism synchronized folder.

[0033] 所述应用软件对同步文件的检测可以由手工激活应用程序对同步文件进行检测与备份,此外,应用软件对同步文件的检测还可以设定一定的时间间隔为周期,对同步文件进行周期的检测与备份。 [0033] The application software for detecting synchronization file may be manually activated by the application of synchronous detection and backup files, in addition, the detection of the synchronization software application files may also set a certain period of time interval, the synchronization file detecting backup cycle.

[0034] 所述应用软件还设有软开启的功能,当用户不需同步备份的时,可关掉应用软件, 当应用软件被关掉后,该闪盘存与现有的闪存盘一样,不能对相应的文件进行同步的更新或备份。 [0034] The application software also provided with a soft open function, when the user does not synchronize backup application software can be switched off, when the application is turned off, the flash memory as in the conventional flash drive, not to synchronize or backup to update the appropriate files.

[0035] 通过在闪存盘中设置特定的应用软件满足了用户对文件进行同步备份的需求,縮 [0035] meets the needs of users to synchronize backup files by setting a specific software application in flash disk, shrink

短了用户手工操作的时间,有效地提高了工作效率,降低了误操作的可能。 Short time a user manual operation, effectively improve the efficiency and reduce the possibility of misuse.

[0036] 以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人 [0036] The above are only preferred embodiments of the present invention, it should be noted that, for the person of ordinary skill in the art

员来说,在不脱离本发明原理的前提下,还可以作出若干改进和变形,这些改进和变形也应 Members, in the present invention without departing from the principles of the premise, but also a number of modifications and variations may be made, such modifications and variations should be

视为落入本发明的保护范围。 Considered to fall within the scope of the present invention.

8 8

Claims (13)

  1. 一种在数据处理主机和与其连接的移动存储装置之间对备份的数据进行自动更新的方法,其中,在所述移动存储装置中设置应用软件;在所述数据处理主机和所述移动存储设备中建立至少一个源文件夹,在所述源文件夹上建立至少一个源文件;检测所设定的备份机制类型,如果所述备份机制为移动存储装置备份机制,则在数据处理主机根据设定的备份机制建立与所述移动存储装置相应的一同步文件,由应用软件根据移动存储装置上指定的源文件的修改状况对数据处理主机上该指定的同步文件进行同步备份;将移动存储装置上发生修改的源文件与数据处理主机上相应的同步文件进行比较,若两者不一致,则用发生修改的源文件覆盖相应的同步文件;若没有发现所述相应的同步文件则复制所述发生修改的源文件。 For performing data processing between a mobile host and the storage device connected thereto for automatically updating data backup method, wherein the application software is provided in the mobile storage means; and data processing in the mobile host and said storage device establishing at least one source folder, establishing at least a source in the source file folder; mechanism for detecting the type of backup set, if the backup mechanism is a removable storage device backup mechanism, is set in accordance with the data processing host corresponding to the established mobile device a synchronization file storage backup mechanism, synchronized on a data processing host backup the synchronization file specified by the application software according to the modified conditions specified on the mobile storage device of the source file; on the removable storage device the source file is modified compared to the corresponding synchronization file on a data processing host, if both do not match, the synchronization file is overwritten with the corresponding source file is modified; if not found the corresponding modifying the synchronization file replication occurs the source files.
  2. 2. 根据权利要求1所述的数据自动更新的方法,其特征在于:如果所述备份机制为主机备份机制,则在移动存储装置上根据设定的备份机制建立与数据处理主机上源文件夹中的源文件相对应的至少一个同步文件夹,由应用软件在数据处理主机上根据指定源文件的修改状况对移动存储装置上的同步文件夹下同步文件进行同步备份,将数据处理主机上发生修改的源文件与移动存储装置上相应的同步文件夹下的同步文件进行比较,若两者不一致,则用发生修改的源文件覆盖相应的同步文件;若没有发现所述相应的同步文件则将所述发生修改的源文件复制至相应同步文件夹下;若没有发现相应的同步文件夹则新建同步文件夹,再将所述发生修改的源文件复制至相应同步文件夹下。 The method of automatically updating data according to claim 1, wherein: the backup mechanism if the host backup mechanism, then the mobile storage means to establish the source file on a data processing host folder backup mechanism in accordance with the set in the source file corresponding to at least a sync folder, the application software synchronize files on a removable storage device folder synchronization synchronize files backed up according to the modified conditions specified source file on a data processing host, occurs on a data processing host modified source file on a file in synchronization with a removable storage device corresponding synchronization folder comparison, if both do not match, the synchronization file is overwritten with the corresponding source file is modified; if synchronization is found, the corresponding file will be modifying the source file is copied to the occurrence of the corresponding sync folder; if synchronization is found, the corresponding folder is the new folder synchronization, then the modified source file is copied to the occurrence of the corresponding sync folder.
  3. 3. 根据权利要求1或2所述的数据自动更新的方法,其特征在于:所设定的备份机制包括移动存储装置备份机制、主机备份机制和/或文件产生的时间备份机制。 3. The method of automatically updating data of claim 1 or claim 2, wherein: the set backup time the backup mechanism comprises a mechanism for moving the storage means backup mechanism, host backup mechanism and / or the resulting file.
  4. 4. 根据权利要求3所述的数据自动更新的方法,其特征在于:在移动存储装置备份机制与主机备份机制中,判断同步文件需要更新的方式包括比对同步文件产生的时间、文件内容或文件的大小。 4. The method of automatic updating data according to claim 3, wherein: the backup mechanism to the removable storage device backup mechanism in the host, determines the way to update the synchronization file comprises a file generated than the time synchronization, the contents of the file, or size of the file.
  5. 5. 根据权利要求1或2所述的数据自动更新的方法,其特征在于:所述应用软件对同步文件修改状况的检测方法包括:由手工激活应用程序对同步文件或同步文件夹进行检测与备份,以及根据设定时间周期对同步文件或同步文件夹进行周期的检测与备份。 5. The method of automatically updating data of claim 1 or claim 2, wherein: said application software to modify the state of the file synchronization detecting method comprising: manually activating an application to synchronize files or folders for synchronization detection and backup, the backup synchronization and detecting synchronization files or folders cycle according to the set time period.
  6. 6. —种在数据处理主机和与其连接的移动存储装置之间对备份的数据进行自动更新的系统,包括一个数据处理主机,和一个与其连接的移动存储装置,其特征在于,在移动存储装置中设置应用软件;用于检测设定备份机制类型;所述数据处理主机和所述移动存储设备包括至少一个源文件夹,在所述源文件夹上包括至少一个源文件;如果所述备份机制为移动存储装置备份机制,在数据处理主机上根据设定的备份机制建立与移动存储装置之间相对应的同步文件,由应用软件在数据处理主机上根据移动存储装置上指定的源文件的修改状况自动对数据处理主机指定的同步文件进行同步备份,将移动存储装置中发生修改的源文件与数据处理主机中相应的同步文件进行比较,若两者不一致,则用移动存储装置中发生修改的源文件覆盖数据处理主机中相应的同步 6. - kind of data in the backup data processing is performed between the mobile host and the storage device connected thereto automatic update system, including a data processing host, and a removable storage device connected thereto, characterized in that the mobile storage device software is provided; the type of backup mechanism for detecting the setting; said data processing host and the mobile device comprises at least one source storage folder, comprising at least one source in the source file folder; if the backup mechanism backup mechanism for mobile storage devices, establish synchronization with the mobile storage device file corresponding to the backup mechanism in accordance with the set on a data processing host, by the application software on a data processing host according to a modification of the mobile storage unit specified source file automatic data processing condition specified by the host synchronize synchronization file backup, the source file modification occurred in the mobile storage device is compared with the corresponding data processing host synchronization file, if the two are inconsistent, then the mobile storage unit with the modified occurring covering the source file in the host data processing corresponding synchronization 件;若没有发现所述相应的同步文件在数据处理主机中,则将所述移动存储装置中发生修改的源文件复制至移动存储装置中。 Member; if not found in the file of the corresponding synchronous data processing host, copy the source file modification occurs to the mobile storage device of the mobile storage device.
  7. 7. 根据权利要求6所述的数据自动更新的系统,其特征在于:如果所述备份机制为主机备份机制,在移动存储装置上根据设定的备份机制建立与数据处理主机之间相对应的至少一个同步文件夹,由应用软件在数据处理主机上根据指定的源文件夹下源文件的修改状况对指定同步文件夹进行同步备份,将数据处理主机中发生修改的源文件与移动存储装置中相应的同步文件夹下的同步文件进行比较,若两者不一致,则用数据处理主机中发生修改的源文件覆盖移动存储装置中相应的同步文件;若在所述移动存储装置中没有发现所述相应的同步文件,则将所述数据处理主机中发生修改的源文件复制至所述移动存储装置中相应同步文件夹下;若移动存储装置中没有发现相应的同步文件夹则在所述移动存储装置中新建同步文件夹,再将所述数据处理主机中发生修改 The system automatically updates data according to claim 6, wherein: the backup mechanism if the host backup mechanism, established between the data processing host and the corresponding set of backup mechanism in accordance with the mobile storage unit at least one synchronization folder, by the application software on a data processing host folder modify conditions of the source file according to the specified source file specified sync folder synchronization backup, the source file modification occurs a data processing host and the mobile storage device corresponding synchronization synchronization file folder under the comparison, if the two are inconsistent, then the mobile storage unit to cover the corresponding source file synchronization file modifications made by a data processing host; if the mobile is not found in said storage means the respective synchronization file, copy the change to the corresponding source file sync folder in the mobile storage device of the data processing host then occurs; if the mobile storage device is not found in the corresponding sync folder is stored in the mobile New folder synchronization device, is modified, then the host data processing 的源文件复制至移动存储装置中新建的同步文件夹下。 Copy the source file to the mobile storage device under the new synchronized folder.
  8. 8. 根据权利要求6或7所述的数据自动更新的系统,其特征在于:所设定的备份机制包括移动存储装置备份机制、主机备份机制和/或文件产生的时间备份机制。 8. The system automatically updates the data of 6 or claim 7, wherein: the set backup time the backup mechanism comprises a mechanism for moving the storage means backup mechanism, host backup mechanism and / or the resulting file.
  9. 9. 根据权利要求8所述的数据自动更新的系统,其特征在于:在移动存储装置备份机制与主机备份机制中,判断同步文件需要更新的方式包括比对同步文件产生的时间、文件内容或文件的大小。 9. The data is automatically updated according to claim 8, wherein: the backup mechanism to the removable storage device backup mechanism in the host, determines the way to update the synchronization file comprises a file generated than the time synchronization, the contents of the file, or size of the file.
  10. 10. —种对其存储的数据进行自动更新的移动存储装置,其与一种数据处理主机相连接,用于数据存储,其特征在于,在移动存储装置中设置应用软件,用于检测备份机制类型; 所述数据处理主机和所述移动存储设备包括至少一个源文件夹,所述源文件夹包括至少一个源文件;如果所述备份机制为移动存储装置备份机制,则在数据处理主机中根据设定的备份机制建立与所述移动存储装置之间相对应的同步文件;该应用软件在数据处理主机上根据与其连接的移动存储装置上源文件的修改状况自动对指定的同步文件进行同步备份, 将移动存储装置中发生修改的源文件与数据处理主机中相应的同步文件进行比较,若两者不一致,则用移动存储装置中发生修改的源文件覆盖数据处理主机中相应的同步文件;若没有发现所述相应的同步文件在数据处理主机中 10. - kind of mobile storage means for automatically updating its data store, which is connected to a data processing host computer for storing data, wherein the application software is provided in the mobile storage device, for detecting a backup mechanism type; said data processing host and the mobile device comprises at least one source storage folder, the source folder comprises at least one source file; if the backup mechanism is a mechanism for moving the backup storage device, the data processing based on the host set file backup mechanism to establish synchronization between the mobile device corresponding to storage; the specified application software is automatically synchronizes the backup synchronization file according to the modified conditions for a removable storage device connected thereto a source file on a data processing host , the source file modification occurs in a removable storage device and the host data processing corresponding synchronization file comparison, if both do not match, then the data processing host to cover the corresponding source file synchronization file modifications made by a mobile storage device; if We did not find the corresponding synchronization file in the data processing host 则将移动存储装置中发生修改的源文件复制到数据处理主机中。 Copy the source file modification will occur in a removable storage device to a data processing host.
  11. 11. 根据权利要求10所述的移动存储装置,其特征在于:如果所述备份机制为主机备份机制,则根据设定的备份机制建立与所述数据处理主机之间相对应的至少一个同步文件夹,应用软件在数据处理主机上根据指定的源文件夹下源文件的修改状况自动对指定的同步文件夹进行同步备份,将数据处理主机中发生修改的源文件与移动存储装置中相应的同步文件夹下的同步文件进行比较,若两者不一致,则用数据处理主机中发生修改的源文件覆盖移动存储设备中相应的同步文件;若没有发现所述相应的同步文件则将所述发生修改的源文件复制至相应同步文件夹下;若移动存储装置中没有发现相应的同步文件夹则新建同步文件夹,再将所述数据处理主机中发生修改的源文件复制至移动存储装置中相应的同步文件夹下。 11. The mobile storage device according to claim 10, wherein: the backup mechanism, if a backup mechanism for the host, at least one synchronization is established between the data processing host file corresponding to the set of backup mechanism in accordance with folder, the application software on a data processing host folder modify conditions of the source file according to the specified source file automatically specified sync folder synchronization backup, the source file with the mobile storage means for modifying the occurrence of a data processing host corresponding synchronization synchronization file folder under comparison, if both do not match, then the mobile storage device covers a corresponding source file synchronization file modifications made by a data processing host; if not found in the corresponding file will modify the synchronization occurs source files copied to the corresponding synchronous folder; If the mobile storage device is not found in the corresponding sync folder is a new synchronized folder, the copy source file modification occurs then the data processing host to the mobile storage device corresponding sync folder.
  12. 12. 根据权利要求10或11所述的移动存储装置,其特征在于:所设定的备份机制包括移动存储装置备份机制、主机备份机制和/或文件产生的时间备份机制。 12. The mobile storage device 10 or claim 11, wherein: the set backup time the backup mechanism comprises a mechanism for moving the storage means backup mechanism, host backup mechanism and / or the resulting file.
  13. 13. 根据权利要求12所述的移动存储装置,其特征在于:在移动存储装置备份机制与主机备份机制中,判断同步文件需要更新的方式包括比对同步文件产生的时间、文件内容或文件的大小。 13. The mobile storage device according to claim 12, wherein: the backup mechanism to the removable storage device backup mechanism in the host, determines the way to update the synchronization file comprises a file generated than the time synchronization, the contents of the file or file size.
CN 200410026773 2004-03-31 2004-03-31 Method system and apparatus for synchronous update of files CN1677355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410026773 CN1677355B (en) 2004-03-31 2004-03-31 Method system and apparatus for synchronous update of files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410026773 CN1677355B (en) 2004-03-31 2004-03-31 Method system and apparatus for synchronous update of files

Publications (2)

Publication Number Publication Date
CN1677355A CN1677355A (en) 2005-10-05
CN1677355B true CN1677355B (en) 2010-05-26

Family

ID=35049887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410026773 CN1677355B (en) 2004-03-31 2004-03-31 Method system and apparatus for synchronous update of files

Country Status (1)

Country Link
CN (1) CN1677355B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100511166C (en) 2006-02-21 2009-07-08 杭州华三通信技术有限公司 High-speed storage device and method for high-speed updating data
CN100465911C (en) 2006-04-13 2009-03-04 华为技术有限公司 Backpu method
US7945734B2 (en) * 2007-08-10 2011-05-17 Eastman Kodak Company Removable storage device with code to allow change detection
US9355100B2 (en) 2008-09-22 2016-05-31 Qualcomm Incorporated Methods and apparatus for reconciling versions of media context lists in communications networks
CN102123048A (en) * 2011-02-14 2011-07-13 浪潮通信信息系统有限公司 Processing method for automatically discovering disaster-tolerant relationships of telecommunication equipment
US8676227B2 (en) * 2011-05-23 2014-03-18 Transcend Information, Inc. Method of performing a data transaction between a portable storage device and an electronic device
CN102231163B (en) * 2011-06-30 2014-09-03 北京金山软件有限公司 System and method for synchronously and preferentially updating specified file
CN102855246A (en) * 2011-06-30 2013-01-02 镇江雅迅软件有限责任公司 Method for automatically pushing electronic files and based on web service
CN102314512A (en) * 2011-09-16 2012-01-11 北京理工大学 Synchronous storage system and method of data file based on Bluetooth technology
CN102821155B (en) * 2012-08-14 2015-08-26 福建伊时代信息科技股份有限公司 Data synchronization means and data synchronization method
CN103226603A (en) * 2013-04-27 2013-07-31 南京信息工程大学 File synchronization update method and system based on portable storage device
CN104699565A (en) * 2013-12-10 2015-06-10 光阳工业股份有限公司 File backup method for motorcycle tachograph
CN103679068B (en) * 2013-12-25 2017-02-01 北京云巢动脉科技有限公司 Method and apparatus for secure processing U disk, system
CN103763087A (en) * 2014-01-20 2014-04-30 联想(北京)有限公司 Information processing method and electronic devices
CN105446575B (en) * 2014-06-03 2019-06-25 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105808564A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN105279047A (en) * 2015-11-02 2016-01-27 广东欧珀移动通信有限公司 Data backup device and method and data recovery method and device
CN105549988A (en) * 2015-12-02 2016-05-04 联想(北京)有限公司 Data processing method, controller and application

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1262481A (en) 1999-01-27 2000-08-09 电话通有限公司 Method and device for synchronizing multiple data base
US6324544B1 (en) 1998-10-21 2001-11-27 Microsoft Corporation File object synchronization between a desktop computer and a mobile device
US20030079038A1 (en) 2001-10-22 2003-04-24 Apple Computer, Inc. Intelligent interaction between media player and host computer
US20030110371A1 (en) 2001-12-08 2003-06-12 Yongzhi Yang Methods and apparatus for storing, updating, transporting, and launching personalized computer settings and applications
CN1426190A (en) 2001-12-13 2003-06-25 互慧科技股份有限公司 Data synchronizing system and method
CN1436413A (en) 2000-04-10 2003-08-13 捷讯研究有限公司 System and method for pushing information from host system to mobile data communication device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324544B1 (en) 1998-10-21 2001-11-27 Microsoft Corporation File object synchronization between a desktop computer and a mobile device
CN1262481A (en) 1999-01-27 2000-08-09 电话通有限公司 Method and device for synchronizing multiple data base
CN1436413A (en) 2000-04-10 2003-08-13 捷讯研究有限公司 System and method for pushing information from host system to mobile data communication device
US20030079038A1 (en) 2001-10-22 2003-04-24 Apple Computer, Inc. Intelligent interaction between media player and host computer
US20030110371A1 (en) 2001-12-08 2003-06-12 Yongzhi Yang Methods and apparatus for storing, updating, transporting, and launching personalized computer settings and applications
CN1426190A (en) 2001-12-13 2003-06-25 互慧科技股份有限公司 Data synchronizing system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2000-76112A 2000.03.14

Also Published As

Publication number Publication date
CN1677355A (en) 2005-10-05

Similar Documents

Publication Publication Date Title
CN1147812C (en) Database system having at least two host databases and a remote database, and method of synchronizing such databases
CN100573476C (en) Flash memory medium data management method
EP1693757B1 (en) System and method for using a file system to automatically backup a file as a generational file
CN100369005C (en) Method and system for performing a copy operation
US6647473B1 (en) Kernel-based crash-consistency coordinator
DK2580662T3 (en) Selective processing of the file system objects for image-level backups
US6108759A (en) Manipulation of partitions holding advanced file systems
KR101086116B1 (en) Database data recovery system and method
CN100394405C (en) Method and apparatus for morphing memory compressed machines
US6167494A (en) Method and system for recovering from operating system failure
US8266365B2 (en) Ruggedized memory device
TWI258663B (en) Writable file system snapshot with ditto address feature
JP2008257725A (en) Read/write for implementation to top of backup data, and multi-version control file system
JP2010191647A (en) File sharing system, file server, and method for managing file
JP2009289252A (en) Remote replication in hierarchical storage system
CN1752939A (en) Method and system for synthetic backup and restore
KR20090110823A (en) System for automatically shadowing data and file directory structures that are recorded on a computer memory
JP2001306407A (en) Method for managing snapshot and computer system
CN100437568C (en) Transaction consistent copy-on-write database
US8005797B1 (en) File-level continuous data protection with access to previous versions
JP2004280779A5 (en)
CN101566959B (en) Using volume snapshots to prevent file corruption in failed restore operations
KR100819022B1 (en) Managing a relationship between one target volume and one source volume
JP5138530B2 (en) Fault Management for storage capacity virtualization technology
CN102567136B (en) A computer backup system, the reduction method, apparatus and computer systems

Legal Events

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