JPH1063557A - Distributed file synchronization system - Google Patents

Distributed file synchronization system

Info

Publication number
JPH1063557A
JPH1063557A JP8239853A JP23985396A JPH1063557A JP H1063557 A JPH1063557 A JP H1063557A JP 8239853 A JP8239853 A JP 8239853A JP 23985396 A JP23985396 A JP 23985396A JP H1063557 A JPH1063557 A JP H1063557A
Authority
JP
Japan
Prior art keywords
file
computer
change
management table
local computer
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP8239853A
Other languages
Japanese (ja)
Other versions
JP3042600B2 (en
Inventor
Hidekazu Saikaichi
秀和 西開地
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP8239853A priority Critical patent/JP3042600B2/en
Publication of JPH1063557A publication Critical patent/JPH1063557A/en
Application granted granted Critical
Publication of JP3042600B2 publication Critical patent/JP3042600B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the occurrence of futile data transfer for the change, etc., of a file name at the time of synchronizing the file and to store the file only on a center side. SOLUTION: Extension file managing tables 16 and 26 identify the substance of the file by the identifier and manages a new file, the change of contents, erasing, storing, etc., as the state of the substance of the file. Extension file operating means 15 and 25 detect file operating instruction from high-order programs 11 and 21 and reflects the state change of files 14 and 24 to the tables 16 and 26. A synchronizing client 17 and a synchronizing server 27 obtain the contents of the tables 16 and 26 of a center computer 1 and a local computer 2 through communication means 18 and 28 to compare, decides processing for synchronizing the state change of the files 14 and 24 and executed only necessitated data exchange through the means 18 and 28.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は分散ファイルの同期
方式に関し、特にファイルの集合全体を管理するセンタ
コンピュータと、センタコンピュータと間欠的に接続さ
れ一部分のファイルのコピーを分散して持つローカルコ
ンピュータとで構成され、それぞれで非同期に更新され
るファイルについて接続時に更新内容を相互に反映し不
整合が生じないようにする分散ファイルの同期方式に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for synchronizing distributed files, and more particularly, to a center computer for managing an entire set of files, and a local computer intermittently connected to the center computer and having a distributed copy of a part of files. The present invention relates to a distributed file synchronization method for mutually updating the contents of files that are updated asynchronously when connected and preventing inconsistency from occurring.

【0002】[0002]

【従来の技術】従来の分散ファイルの同期方式では、セ
ンタコンピュータとローカルコンピュータとが接続され
た時点で全ファイルを転送して同期化するか、その方式
では転送量が膨大になる可能性があるので、転送量を抑
制するために、ファイルの更新状態を通常のファイル管
理システムが保持しているファイルの最終更新日時の情
報をまず転送し、前回の同期化日時より新しいファイル
のみを転送するか、あるいはファイル毎に前回の同期化
以降の更新差分を管理し、その差分のみを転送する方式
が採られていた。
2. Description of the Related Art In a conventional distributed file synchronization method, all files are transferred and synchronized when a center computer and a local computer are connected, or the transfer amount may be enormous in this method. Therefore, in order to reduce the amount of transfer, whether to transfer the last update date and time information of the file whose file update status is held by the normal file management system first, and to transfer only the file newer than the previous synchronization date and time Alternatively, a method of managing the update difference after the previous synchronization for each file and transferring only the difference is adopted.

【0003】なお、この種の分散ファイルの同期方式に
関連する従来技術の文献としては、例えば、特開平4−
305751号公報,特開平5−73393号公報等が
挙げられる。
A prior art document relating to this kind of distributed file synchronization method is disclosed in, for example,
Japanese Patent No. 305751 and Japanese Patent Application Laid-Open No. 5-73393.

【0004】[0004]

【発明が解決しようとする課題】上述した従来の分散フ
ァイルの同期方式では、いずれもファイル名をキーとし
ていたので、ファイルの削除,名前変更,ディレクトリ
移動などの構成の変更についての情報が欠落するという
問題点があった。例えば、ローカルコンピュータ側で、
あるファイル実体のファイル名をAからBに変更したと
すると、同期処理時にセンタコンピュータ側でファイル
Bのファイル実体の新規作成(ローカルコンピュータか
らセンタコンピュータへのファイル実体の転送を伴う)
と既存のファイル名Aのファイル実体の削除とに置き換
えられ、同期処理で無駄なデータ転送が発生するという
問題点があった。
In the above-mentioned conventional distributed file synchronization methods, the file name is used as a key, and therefore information about changes in the configuration such as file deletion, name change, and directory movement is lost. There was a problem. For example, on the local computer,
Assuming that the file name of a certain file entity is changed from A to B, a new file entity of file B is created on the center computer side during the synchronization process (including the transfer of the file entity from the local computer to the center computer).
And the deletion of the existing file entity with the file name A, causing a problem that unnecessary data transfer occurs in the synchronization processing.

【0005】さらに、従来の分散ファイルの同期方式で
は、ローカルコンピュータでは不要だがセンタコンピュ
ータで保持する必要のあるファイルを、ローカルコンピ
ュータでは削除してセンタコンピュータでのみ保持して
おく(以下、この状態を保管という)ようにすると、ロ
ーカルコンピュータ側で非同期にファイルを削除してお
き、同期処理時にセンタコンピュータ側で一致しないフ
ァイルを実際に削除してよいかどうかを操作者に問い合
わせるようにしなければならず、操作者が同期処理時ま
でそのファイルをセンタコンピュータ側から削除してよ
いファイルなのかセンタコンピュータ側で保管しなれば
ならないファイルなのかを覚えておかなければならない
という問題点があった。このため、実際には、ローカル
コンピュータ側でファイル実体を保持しておかざるを得
ず、削除できないという問題点があった。
Further, in the conventional distributed file synchronization method, a file which is unnecessary on the local computer but needs to be retained on the center computer is deleted on the local computer and retained only on the center computer (hereinafter, this state is referred to as "this state"). In this case, it is necessary to delete files asynchronously on the local computer side and ask the operator as to whether the center computer side can actually delete the unmatched files during the synchronous processing. However, there is a problem in that the operator must remember whether the file is a file that can be deleted from the center computer or a file that must be stored on the center computer until the synchronization process. For this reason, there is a problem that the file entity has to be actually retained on the local computer side and cannot be deleted.

【0006】本発明の目的は、ファイルの同期化にあた
ってファイル名の変更等に対しても無駄なデータ転送が
発生しない分散ファイルの同期方式を提供することにあ
る。
An object of the present invention is to provide a method of synchronizing distributed files in which useless data transfer does not occur even when a file name is changed in synchronizing files.

【0007】また、本発明の他の目的は、ファイル容量
が少ないローカルコンピュータにおいてファイルを削除
し、センタコンピュータ側でのみ保管しておける分散フ
ァイルの同期方式を提供することにある。
Another object of the present invention is to provide a method of synchronizing a distributed file in which a file is deleted in a local computer having a small file capacity and stored only on a center computer.

【0008】[0008]

【課題を解決するための手段】本発明の分散ファイルの
同期方式では、ファイルの集合全体を管理するセンタコ
ンピュータと、このセンタコンピュータと間欠的に接続
され一部分のファイルのコピーを分散して持つローカル
コンピュータとからなるファイル管理システムにおい
て、両コンピュータ上に、スタンドアロン用のファイル
操作手段と、ファイル管理テーブルとに加えて、ファイ
ル実体の一つ一つを識別するための識別子をファイル名
に対応させ、そのファイル実体の状態として、新規,内
容変更,パス名変更,削除,保管等を管理する拡張ファ
イル管理テーブルと、上位プログラムからのファイル操
作指示を検出し、ファイルの状態変化を拡張ファイル管
理テーブルに反映する拡張ファイル操作手段とを設け
る。識別子はファイルの新規作成毎に生成され、同期化
により同じファイル実体に対しては、常にセンタコンピ
ュータおよびローカルコンピュータで同じ識別子が対応
する。同期化の実際の処理には、センタコンピュータと
ローカルコンピュータとを接続する通信手段と、両コン
ピュータの拡張ファイル管理テーブルの内容を通信手段
を通して入手して比較し、相互のファイルの状態変更を
同期させるための処理を決定し、必要なだけのデータ交
換を通信手段を通して実行する同期処理手段をセンタコ
ンピュータとローカルコンピュータとに分散して設け、
互いに連携して実行する。
According to the distributed file synchronization method of the present invention, a center computer for managing an entire set of files and a local computer which is intermittently connected to the center computer and has a distributed copy of a part of the files. In a file management system comprising a computer, on both computers, in addition to a file operation means for a stand-alone, a file management table, an identifier for identifying each file entity is associated with a file name, An extended file management table that manages new, content change, path name change, deletion, storage, etc. as the file entity status, and a file operation instruction from a higher-level program is detected, and a change in the file status is stored in the extended file management table. There is provided an extended file operation means for reflecting the information. An identifier is generated each time a new file is created, and the same identifier always corresponds to the same file entity between the center computer and the local computer due to synchronization. In the actual process of synchronization, the communication means for connecting the center computer and the local computer and the contents of the extended file management table of both computers are obtained and compared through the communication means, and the state changes of the mutual files are synchronized. And a central processing unit and a local computer, which are provided with synchronous processing means for executing necessary data exchange through the communication means.
Execute in cooperation with each other.

【0009】[0009]

【発明の実施の形態】次に、本発明について図面を参照
して詳細に説明する。
Next, the present invention will be described in detail with reference to the drawings.

【0010】図1は、本発明の一実施の形態に係る分散
ファイルの同期方式が適用されたコンピュータシステム
の構成を示すブロック図である。このコンピュータシス
テムは、センタコンピュータ1と、ローカルコンピュー
タ2とから、その主要部が構成されている。
FIG. 1 is a block diagram showing a configuration of a computer system to which a distributed file synchronization system according to an embodiment of the present invention is applied. The main part of this computer system is composed of a center computer 1 and a local computer 2.

【0011】センタコンピュータ1は、上位プログラム
11と、ファイル操作手段12と、ファイル管理テーブ
ル13と、ファイル14と、拡張ファイル操作手段15
と、拡張ファイル管理テーブル16と、同期クライアン
ト17と、通信手段18とを含んで構成されている。
The center computer 1 includes a host program 11, a file operation unit 12, a file management table 13, a file 14, and an extended file operation unit 15.
, An extended file management table 16, a synchronization client 17, and a communication unit 18.

【0012】ローカルコンピュータ2は、上位プログラ
ム21と、ファイル操作手段22と、ファイル管理テー
ブル23と、ファイル24と、拡張ファイル操作手段2
5と、拡張ファイル管理テーブル26と、同期サーバ2
7と、通信手段28とを含んで構成されている。
The local computer 2 includes a host program 21, a file operation unit 22, a file management table 23, a file 24, and an extended file operation unit 2.
5, the extended file management table 26, and the synchronization server 2
7 and communication means 28.

【0013】ファイル管理テーブル13および23は、
パス名,属性,更新日時,位置の各フィールドから構成
されている。パス名には、ディレクトリ構造についての
リンク情報も含むファイル名を格納する。また、属性に
は、アクセス権(リード/ライト/実行可否)等を格納
する。さらに、更新日時には、ファイル14の更新日時
を格納する。位置には、ファイル14のファイル装置
(図示せず)内での先頭位置,ファイルサイズ等を格納
する。
The file management tables 13 and 23 include:
It consists of fields of path name, attribute, update date and time, and position. The path name stores a file name including link information about the directory structure. The attribute stores an access right (read / write / executability) and the like. Further, the update date and time stores the update date and time of the file 14. The position stores the head position of the file 14 in the file device (not shown), the file size, and the like.

【0014】拡張ファイル管理テーブル16および26
は、パス名,状態,保管属性,更新日時の各フィールド
から構成されている。パス名には、ディレクトリ構造に
ついてのリンク情報も含むファイル名を格納する。ま
た、状態には、「未使用」, 「新規」, 「変更なし」,
「パス名変更」, 「パス名+内容変更」, 「削除」を管
理する。さらに、保管属性には、「新規保管」, 「保管
中」, 「保管解除」を管理する。さらにまた、更新日時
には、状態の設定時の日時を記録する。
Extended file management tables 16 and 26
Is composed of fields of a path name, a status, a storage attribute, and an update date and time. The path name stores a file name including link information about the directory structure. The status can be "Unused", "New", "No change",
Manage "change path name", "change path name + contents", "delete". Furthermore, “new storage”, “during storage”, and “storage release” are managed as storage attributes. Furthermore, the update date and time records the date and time when the state was set.

【0015】図2は、通常のファイル操作時(ファイル
操作手段15および25経由)の拡張ファイル操作手段
15および25での状態の変更処理による拡張ファイル
管理テーブル16および26のエントリの状態遷移を示
す図である。
FIG. 2 shows the state transition of the entries in the extended file management tables 16 and 26 by the state change processing in the extended file operation means 15 and 25 during normal file operation (via the file operation means 15 and 25). FIG.

【0016】図3は、拡張ファイル操作手段15および
25での保管属性の変更処理による拡張ファイル管理テ
ーブル16および26のエントリの状態遷移を示す図で
ある。
FIG. 3 is a diagram showing the state transition of the entries in the extended file management tables 16 and 26 by the storage attribute changing process in the extended file operating means 15 and 25.

【0017】図4を参照すると、同期サーバ27の処理
は、操作者指示入力待ちステップS101と、指示判定
ステップS102と、保管属性表示/変更処理実行ステ
ップS103と、同期クライアント接続ステップS10
4と、拡張ファイル管理テーブル参照/更新ならびにフ
ァイル管理テーブルおよびファイル実体参照/更新ステ
ップS105と、接続解除ステップS106とからな
る。
Referring to FIG. 4, the processing of the synchronization server 27 includes an operator instruction input waiting step S101, an instruction determination step S102, a storage attribute display / change processing execution step S103, and a synchronous client connection step S10.
4, an extended file management table reference / update, a file management table and file entity reference / update step S105, and a connection release step S106.

【0018】図5を参照すると、同期クライアント17
の処理は、操作者指示入力待ちステップS201と、指
示判定ステップS202と、保管属性表示/変更処理実
行ステップS203と、同期サーバ接続ステップS20
4と、ローカルコンピュータ側各新規状態エントリに対
する処理ステップS205と、センタコンピュータ側各
新規状態エントリに対する処理ステップS206と、セ
ンタコンピュータ側各使用中エントリに対する処理ステ
ップS207と、接続解除ステップS208とからな
る。
Referring to FIG. 5, the synchronization client 17
The processing of step S201 of waiting for an operator's instruction input, instruction determination step S202, storage attribute display / change processing execution step S203, and synchronization server connection step S20
4, a processing step S205 for each new status entry on the local computer side, a processing step S206 for each new status entry on the center computer side, a processing step S207 for each busy entry on the center computer side, and a connection release step S208.

【0019】図6は、同期クライアント17がステップ
207で行う状態に応じた処理を決定するための表であ
る。
FIG. 6 is a table for determining a process according to the state that the synchronization client 17 performs in step 207.

【0020】図7は、同期クライアント17がステップ
207で行う保管属性に応じた処理を決定するための表
である。
FIG. 7 is a table for determining a process according to the storage attribute performed by the synchronization client 17 in step 207.

【0021】次に、このように構成された本実施の形態
に係る分散ファイルの同期方式の動作について説明す
る。
Next, the operation of the distributed file synchronization system according to the present embodiment configured as described above will be described.

【0022】(1) まず、センタコンピュータ1およ
びローカルコンピュータ2のそれぞれで非同期に行われ
るファイル操作時の動作について説明する。なお、ファ
イル操作時の動作は、センタコンピュータ1およびロー
カルコンピュータ2ともに同様なので、センタコンピュ
ータ1側のみについて説明する。
(1) First, an operation at the time of file operation performed asynchronously by each of the center computer 1 and the local computer 2 will be described. Since the operation at the time of file operation is the same for both the center computer 1 and the local computer 2, only the center computer 1 will be described.

【0023】上位プログラム11は、従来からのスタン
ドアロンシステムと同じ方法で、ファイル操作手段12
を通してファイル操作を指示する。
The upper-level program 11 operates in the same manner as a conventional stand-alone system by using the file operation means 12.
Direct file operations through.

【0024】すると、ファイル操作手段12は、ファイ
ル操作指示に基づいてファイル14を操作し、ファイル
管理テーブル13を更新する。
Then, the file operation means 12 operates the file 14 based on the file operation instruction and updates the file management table 13.

【0025】また、拡張ファイル操作手段15は、ある
時点でファイル管理テーブル13上に管理されているフ
ァイル14の実体毎に、拡張ファイル管理テーブル16
で識別子としてid(エントリ番号)を割り振り、状態
を管理する。そして、拡張ファイル操作手段15は、フ
ァイル操作手段12の操作を検出し、パス名をキーに拡
張ファイル管理テーブル16のエントリを特定して更新
する。例えば、同期を実行した以降、内容変更されたフ
ァイル14は、その更新日時については、拡張ファイル
管理テーブル16に管理される。
Further, the extended file operation means 15 stores the extended file management table 16 for each entity of the file 14 managed on the file management table 13 at a certain point in time.
Assigns an id (entry number) as an identifier, and manages the state. Then, the extended file operation unit 15 detects the operation of the file operation unit 12 and specifies and updates the entry of the extended file management table 16 using the path name as a key. For example, the file 14 whose contents have been changed after the synchronization is executed is managed in the extended file management table 16 with respect to the update date and time.

【0026】詳しくは、拡張ファイル操作手段15は、
ファイル操作手段12の操作を検出すると、図2に示す
ように、現在の状態が「変更なし」であれば、拡張ファ
イル管理テーブル16の当該ファイル名のエントリの状
態を「内容変更」に設定し、更新日時を設定する。
More specifically, the extended file operation means 15
When the operation of the file operation means 12 is detected, as shown in FIG. 2, if the current state is "no change", the state of the entry of the file name in the extended file management table 16 is set to "content change". , Update date and time.

【0027】また、ファイル14が新規作成された場合
は、拡張ファイル操作手段15は、拡張ファイル管理テ
ーブル16に新たなエントリを割り付け、拡張ファイル
管理テーブル16の状態に「新規」として登録し、更新
日時を設定する。新規に作成されたファイル14は、同
期実行までの間に変更されても「新規」の状態を保ち、
削除指示が出れば、拡張ファイル管理テーブル15およ
びファイル管理テーブル13からエントリが直ちに削除
される(状態が「未使用]とされる)。
When the file 14 is newly created, the extended file operation means 15 allocates a new entry to the extended file management table 16, registers the new entry in the state of the extended file management table 16, and updates the state. Set the date and time. The newly created file 14 remains in the "new" state even if it is changed before the synchronization is executed.
When a deletion instruction is issued, the entry is immediately deleted from the extended file management table 15 and the file management table 13 (the state is set to “unused”).

【0028】ファイル名の変更やディレクトリの移動な
どのパス名変更指示に対しては、ファイル操作手段12
は、ファイル管理テーブル13のパス名を更新するのみ
で更新日時は更新しない。
In response to a path name change instruction such as file name change or directory movement, the file operation means 12
Only updates the path name in the file management table 13 and does not update the update date and time.

【0029】一方、拡張ファイル操作手段15は、パス
名変更指示を検出すると、当該パス名を変更し、拡張フ
ァイル管理テーブル16の状態に「パス名変更」を設定
し、更新日時を設定する。また、現在の状態が「新規」
以外であれば、拡張ファイル操作手段15は、状態を
「パス名変更」に設定し、更新日時を設定する。
On the other hand, upon detecting the path name change instruction, the extended file operation means 15 changes the path name, sets "change path name" in the state of the extended file management table 16, and sets the update date and time. Also, if the current status is "New"
Otherwise, the extended file operation unit 15 sets the status to “change path name” and sets the update date and time.

【0030】ファイル14の削除指示に対しては、ファ
イル操作手段12は、ファイル管理テーブル13からエ
ントリを削除し(状態を「未使用」とし)、対象のファ
イル14を通常のスタンドアロン処理と同様に抹消す
る。
In response to the instruction to delete the file 14, the file operation means 12 deletes the entry from the file management table 13 (changes the status to "unused") and sets the target file 14 in the same manner as in the normal stand-alone processing. Delete.

【0031】一方、拡張ファイル操作手段15は、ファ
イル14が抹消されると、拡張ファイル管理テーブル1
6にエントリを残し、現在の状態が「新規」以外であれ
ば、状態を「削除」に設定し、更新日時を設定する。ま
た、現在の状態が「新規」であれば、拡張ファイル操作
手段15は、拡張ファイル管理テーブル26から該当す
るエントリを削除する。
On the other hand, when the file 14 is deleted, the extended file operation means 15
6, if the current state is other than "new", the state is set to "delete" and the update date and time are set. If the current state is “new”, the extended file operation unit 15 deletes the corresponding entry from the extended file management table 26.

【0032】また、操作者からセンタコンピュータ1で
のみ保管しローカルコンピュータ2から抹消したいファ
イル14のファイル保管属性操作があると(ステップS
101およびS102)、同期クライアント17および
同期サーバ27は、独立動作のときでも、操作者のファ
イル保管属性操作指示に基づき、ファイル管理テーブル
13および23はそのままに、拡張ファイル操作手段1
5および25を経由して、図3に示すように、拡張ファ
イル管理テーブル16および26のエントリの保管属性
に保管指示が出たことを記録する(ステップS10
3)。
Further, if there is a file storage attribute operation of the file 14 to be stored only at the center computer 1 and deleted from the local computer 2 by the operator (step S)
101 and S102), even when the synchronization client 17 and the synchronization server 27 are operating independently, the extended file operation unit 1 is kept intact with the file management tables 13 and 23 based on the operator's file storage attribute operation instruction.
As shown in FIG. 3, the fact that a storage instruction has been issued is recorded in the storage attributes of the entries in the extended file management tables 16 and 26 via steps 5 and 25 (step S10).
3).

【0033】(2) 次に、同期時の動作について説明
する。
(2) Next, the operation at the time of synchronization will be described.

【0034】センタコンピュータ1とローカルコンピュ
ータ2とでファイル14とファイル24とを同期化する
際には、操作者が同期クライアント17および同期サー
バ27に同期指示を与える(ステップS101およびS
201)。
When synchronizing the file 14 and the file 24 between the center computer 1 and the local computer 2, the operator gives a synchronization instruction to the synchronization client 17 and the synchronization server 27 (steps S101 and S101).
201).

【0035】すると、同期クライアント17および同期
サーバ27は、操作者からの指示が同期操作であると判
定すると(ステップS102およびS202)、通信手
段18および28を利用してセンタコンピュータ1とロ
ーカルコンピュータ2とを接続する(ステップS104
およびS204)。
When the synchronization client 17 and the synchronization server 27 determine that the instruction from the operator is a synchronization operation (steps S102 and S202), the center computer 1 and the local computer 2 are communicated using the communication means 18 and 28. (Step S104)
And S204).

【0036】次に、同期サーバ27は、同期クライアン
ト17からの要求に応じて、拡張ファイル操作手段25
経由で拡張ファイル管理テーブル26の参照/更新を行
い、ファイル操作手段22経由でファイル管理テーブル
23およびファイル24の実体の参照/更新を行う(ス
テップS105)。
Next, in response to a request from the synchronization client 17, the synchronization server 27
The extension file management table 26 is referred / updated via the file operation unit 22 and the entities of the file management table 23 and the file 24 are referred / updated via the file operation unit 22 (step S105).

【0037】続いて、同期サーバ27は、通信手段28
による同期クライアント17との接続を解除する(ステ
ップS106)。
Subsequently, the synchronization server 27 communicates with the communication means 28
The connection with the synchronization client 17 is released (step S106).

【0038】一方、同期クライアント17は、同期指示
であれば、通信手段18による同期サーバ27との接続
後(ステップS204)、ローカルコンピュータ2側の
状態が「新規」の各エントリに対して、センタコンピュ
ータ1およびローカルコンピュータ2の同時未使用のエ
ントリを予約し(id=m)、ローカルコンピュータ2
側の新規ファイル24の実体をセンタコンピュータ1側
にも新規ファイル14として登録し、センタコンピュー
タ1およびローカルコンピュータ2ともに拡張ファイル
管理テーブル16および26の予約エントリ(id=
m)に登録変更し、状態を「変更なし]とする(ステッ
プS205)。
On the other hand, if the synchronization instruction is a synchronization instruction, the synchronization client 17 connects to the synchronization server 27 by the communication unit 18 (step S204), and then sends the center entry to the local computer 2 for each entry whose status is "new". Reserving simultaneous unused entries of the computer 1 and the local computer 2 (id = m)
The entity of the new file 24 on the side is also registered as a new file 14 on the side of the center computer 1, and both the center computer 1 and the local computer 2 make reservation entries (id =
The registration is changed to m), and the state is set to "no change" (step S205).

【0039】次に、同期クライアント17は、センタコ
ンピュータ1側の状態が「新規」の各エントリ(id=
m)に対し、センタコンピュータ1側の新規ファイル1
4の実体をローカルコンピュータ2側にも新規ファイル
24として登録し、ローカルコンピュータ2側の拡張フ
ァイル管理テーブル26のエントリ(id=m)に登録
変更し、センタコンピュータ1およびローカルコンピュ
ータ2ともに状態を「変更なし」とする(ステップS2
06)。
Next, the synchronization client 17 checks each entry (id =
m), the new file 1 on the center computer 1 side
4 is also registered as a new file 24 on the local computer 2 side, the registration is changed to an entry (id = m) of the extended file management table 26 on the local computer 2 side, and the state of both the center computer 1 and the local computer 2 is changed to “ No change "(Step S2
06).

【0040】続いて、同期クライアント17は、センタ
コンピュータ1側の各使用中エントリに対して、同一i
dのセンタコンピュータ1およびローカルコンピュータ
2の両拡張ファイル管理テーブル16および26のエン
トリの状態に応じて、図6によって決定される処理を実
行してセンタコンピュータ1およびローカルコンピュー
タ2ともに状態を「変更なし」とし、同様に保管属性に
応じて図7によって決定される処理を実行する(ステッ
プS207)。
Subsequently, the synchronization client 17 assigns the same i to each in-use entry on the center computer 1 side.
In accordance with the states of the entries in the extended file management tables 16 and 26 of both the center computer 1 and the local computer 2d, the processing determined by FIG. Similarly, the processing determined by FIG. 7 according to the storage attribute is executed (step S207).

【0041】ここで、図6によって決定される処理につ
いて詳しく説明すると、同期クライアント17は、セン
タコンピュータ1側のエントリの状態が「変更なし」の
ときは、ローカルコンピュータ2側のエントリの状態が
「変更なし」であれば何もせず、「内容変更」, 「内容
+パス名変更」および「パス名変更」であれば変更をセ
ンタコンピュータ1側に反映し、「削除」であればセン
タコンピュータ1側およびローカルコンピュータ2側と
もにファイルを抹消する。また、センタコンピュータ1
側のエントリの状態が「内容変更」, 「内容+パス名変
更」および「パス名変更」のときは、ローカルコンピュ
ータ2側のエントリの状態が「変更なし」であれば変更
をローカルコンピュータ2側に反映し、「内容変更」,
「内容+パス名変更」および「パス名変更」であれば更
新日時の新しい方をもう一方に反映し、「削除」であれ
ば更新日時を比較し、削除側が新しければセンタコンピ
ュータ1側およびローカルコンピュータ2側ともにファ
イルを抹消し、そうでなれば変更をもう一方に反映す
る。さらに、センタコンピュータ1側のエントリの状態
が「削除」のときは、ローカルコンピュータ2側のエン
トリの状態が「変更なし」であればセンタコンピュータ
1側およびローカルコンピュータ2側ともにファイルを
抹消し、「内容変更」, 「内容+パス名変更」および
「パス名変更」であれば更新日時を比較し、削除側が新
しければセンタコンピュータ1側およびローカルコンピ
ュータ2側ともにファイルを抹消し、そうでなれば変更
をもう一方に反映し、「削除」であればセンタコンピュ
ータ1側およびローカルコンピュータ2側ともにファイ
ルを抹消する。
Here, the processing determined by FIG. 6 will be described in detail. When the status of the entry on the center computer 1 is “no change”, the synchronization client 17 changes the status of the entry on the local computer 2 to “unchanged”. If "no change", nothing is performed. If "content change", "content + path name change" or "path name change", the change is reflected on the center computer 1 side. The file is deleted from both the local computer 2 and the local computer 2. The center computer 1
If the status of the entry on the local computer 2 side is "change contents", "content + change path name" and "change path name", if the state of the entry on the local computer 2 side is "no change", the change is made on the local computer 2 side Reflected in the "content change",
In the case of "content + path name change" and "path name change", the latest update date and time is reflected on the other side. In the case of "delete", the update date and time are compared. The file is deleted on both the local computer 2 side, and if so, the change is reflected on the other side. Further, when the status of the entry on the side of the center computer 1 is “delete”, if the status of the entry on the side of the local computer 2 is “no change”, the files are deleted on both the side of the center computer 1 and the side of the local computer 2. If "content change", "content + path name change" or "path name change", compare the update date and time. If the deletion side is newer, delete the files on both center computer 1 and local computer 2 side. The change is reflected on the other side, and if "delete", the file is deleted on both the center computer 1 side and the local computer 2 side.

【0042】また、図7によって決定される処理につい
て詳しく説明すると、同期クライアント17は、センタ
コンピュータ1側のエントリの保管属性が「保管なし」
のときは、ローカルコンピュータ2側のエントリの保管
属性が「保管なし」, 「保管中」および「保管解除」で
あれば何もせず、「新規保管」であればローカルコンピ
ュータ2側のファイル24の実体を削除し、センタコン
ピュータ1側およびローカルコンピュータ2側ともに保
管属性を「保管中」に変更する。また、センタコンピュ
ータ1側のエントリの保管属性が「新規保管」のとき
は、ローカルコンピュータ2側のエントリの保管属性が
「保管なし」および「新規保管」であればローカルコン
ピュータ2側のファイル24の実体を削除し、センタコ
ンピュータ1側およびローカルコンピュータ2側ともに
保管属性を「保管中」に変更し、「保管中」および「保
管解除」であれば何もしない。さらに、センタコンピュ
ータ1側のエントリの保管属性が「保管中」のときは、
ローカルコンピュータ2側のエントリの保管属性が「保
管なし」,「新規保管」および「保管中」であれば何も
せず、「保管解除」であればローカルコンピュータ2側
にセンタコンピュータ1側にあるファイル14の実体を
コピーしてファイル24として登録し、センタコンピュ
ータ1側およびローカルコンピュータ2側ともに保管属
性を「保管なし」に変更する。さらにまた、センタコン
ピュータ1側のエントリの保管属性が「保管解除」のと
きは、ローカルコンピュータ2側のエントリの保管属性
が「保管なし」および「新規保管」であれば何もせず、
「保管中」および「保管解除」であればローカルコンピ
ュータ2側にセンタコンピュータ1側にあるファイル1
4の実体をコピーしてファイル24として登録し、セン
タコンピュータ1側およびローカルコンピュータ2側と
もに保管属性を「保管なし」に変更する。
The processing determined by FIG. 7 will be described in detail. The synchronization client 17 determines that the storage attribute of the entry on the center computer 1 is “no storage”.
When the storage attribute of the entry on the local computer 2 side is “no storage”, “during storage”, and “storage release”, nothing is performed. The entity is deleted, and the storage attribute of both the center computer 1 and the local computer 2 is changed to “during storage”. Further, when the storage attribute of the entry on the center computer 1 is “new storage”, if the storage attribute of the entry on the local computer 2 is “no storage” and “new storage”, the file 24 of the local computer 2 is stored. The entity is deleted, and the storage attributes of both the center computer 1 and the local computer 2 are changed to “storage”. If “storage” or “storage release”, nothing is performed. Further, when the storage attribute of the entry on the center computer 1 side is “in storage”,
If the storage attribute of the entry on the local computer 2 is “no storage”, “new storage” or “in storage”, nothing is performed, and if “storage release”, the file on the local computer 2 side in the center computer 1 is stored. The entity 14 is copied and registered as a file 24, and the storage attribute of both the center computer 1 and the local computer 2 is changed to "no storage". Furthermore, when the storage attribute of the entry on the center computer 1 side is "cancel storage", if the storage attribute of the entry on the local computer 2 side is "no storage" and "new storage", nothing is performed.
If “in storage” or “unstored”, the file 1 in the local computer 2 is located in the center computer 1
4 is copied and registered as a file 24, and the storage attribute of both the center computer 1 and the local computer 2 is changed to "no storage".

【0043】最後に、同期クライアント17は、同期サ
ーバ27との接続を解除する(ステップS208)。
Finally, the synchronization client 17 releases the connection with the synchronization server 27 (step S208).

【0044】[0044]

【発明の効果】以上説明したように、本発明によれば、
ファイル実体をファイル名ではなく識別子で識別してい
るので、ファイル名の変更に対しても、ファイル実体の
無駄なデータ転送を無くし、ファイル名の書き替えだけ
で処理できるという効果がある。
As described above, according to the present invention,
Since the file entity is identified by the identifier instead of the file name, there is an effect that even when the file name is changed, unnecessary data transfer of the file entity can be eliminated and the file entity can be processed only by rewriting the file name.

【0045】さらに、センタコンピュータで保管されて
いればよいファイルや本当に不要なファイルはローカル
コンピュータで保管指示も削除も管理できるので、セン
タコンピュータおよびローカルコンピュータともに非同
期な状態で操作者が指示でき、操作者が同期処理時まで
削除してよいファイルを覚えておく必要がなくなるた
め、ローカルコンピュータではファイルを実際に削除で
き、ファイル容量の節約もできるという効果がある。
Further, since it is possible to manage storage instructions and deletion of files that need only be stored on the center computer and files that are not really needed on the local computer, the operator can give instructions in an asynchronous state with both the center computer and the local computer. This eliminates the need for the user to remember the files that can be deleted until the synchronization process, so that the local computer can actually delete the files and save the file capacity.

【0046】また、上位プログラムからは、従来のスタ
ンドアロンのファイル管理システムと同様にアクセスで
きるため、通常の処理に影響を与えないという副次的な
効果もある。
Further, since a higher-level program can access like a conventional stand-alone file management system, there is a secondary effect that normal processing is not affected.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例に係る分散ファイルの同期方
式が適用されたコンピュータシステムの構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration of a computer system to which a distributed file synchronization method according to an embodiment of the present invention is applied.

【図2】通常のファイル操作時(ファイル操作手段経
由)の拡張ファイル操作手段での状態の変更処理による
拡張ファイル管理テーブルのエントリの状態遷移を示す
図である。
FIG. 2 is a diagram showing a state transition of an entry in an extended file management table by a state change process in an extended file operation unit during a normal file operation (via a file operation unit).

【図3】拡張ファイル操作手段での保管属性の変更処理
による拡張ファイル管理テーブルのエントリの状態遷移
を示す図である。
FIG. 3 is a diagram showing a state transition of an entry of an extended file management table by a storage attribute changing process by an extended file operation unit.

【図4】図1中の同期サーバの処理を示すフローチャー
トである。
FIG. 4 is a flowchart showing processing of a synchronization server in FIG. 1;

【図5】図1中の同期クライアントの処理を示すフロー
チャートである。
FIG. 5 is a flowchart showing processing of a synchronization client in FIG. 1;

【図6】図1中の同期クライアントが図5中のステップ
207で行う状態に応じた処理を決定するための表であ
る。
FIG. 6 is a table for determining a process according to a state performed by the synchronization client in FIG. 1 in step 207 in FIG. 5;

【図7】図1中の同期クライアントが図5中のステップ
207で行う保管属性に応じた処理を決定するための表
である。
FIG. 7 is a table for determining a process according to a storage attribute performed by a synchronization client in FIG. 1 in step 207 in FIG. 5;

【符号の説明】 1 センタコンピュータ 2 ローカルコンピュータ 11,21 上位プログラム 12,21 ファイル操作手段 13,23 ファイル管理テーブル 14,24 ファイル 15,25 拡張ファイル操作手段 16,26 拡張ファイル管理テーブル 17 同期クライアント 18,28 通信手段 27 同期サーバ[Description of Signs] 1 Center computer 2 Local computer 11, 21 Host program 12, 21 File operating means 13, 23 File management table 14, 24 File 15, 25 Extended file operating means 16, 26 Extended file management table 17 Synchronous client 18 , 28 Communication means 27 Synchronization server

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ファイルの集合全体を管理するセンタコ
ンピュータと、このセンタコンピュータと間欠的に接続
され一部分のファイルのコピーを分散して持つローカル
コンピュータとからなり、前記センタコンピュータおよ
び前記ローカルコンピュータ上にスタンドアロン用のフ
ァイル操作手段とファイル管理テーブルとを備え、前記
センタコンピュータおよび前記ローカルコンピュータの
それぞれでファイルの生成,更新および削除を非同期に
行うコンピュータシステムにおいて、 ファイル実体の一つ一つを識別するために識別子を付
け、そのファイル実体の状態として新規,内容変更,パ
ス名変更,削除,保管等を管理する拡張ファイル管理テ
ーブルと、 上位プログラムからのファイル操作指示を検出し、ファ
イルの状態変化を前記拡張ファイル管理テーブルに反映
する拡張ファイル操作手段と、 前記センタコンピュータと前記ローカルコンピュータと
を接続する通信手段と、 前記センタコンピュータおよび前記ローカルコンピュー
タの前記拡張ファイル管理テーブルの内容を前記通信手
段を通して入手して比較し、相互のファイルの状態変更
を同期させるための処理を決定し、必要なだけのデータ
交換を前記通信手段を通して実行する同期処理手段とを
有することを特徴とする分散ファイルの同期方式。
1. A center computer that manages an entire set of files, and a local computer that is intermittently connected to the center computer and has a distributed copy of a part of the files. In a computer system comprising a stand-alone file operation means and a file management table, wherein each of the center computer and the local computer asynchronously generates, updates and deletes a file, to identify each file entity An extension file management table for managing new, contents change, path name change, deletion, storage, etc. as the status of the file entity, and a file operation instruction from a higher-level program is detected. Extension Extended file operation means for reflecting in the file management table; communication means for connecting the center computer and the local computer; and acquiring the contents of the extension file management table of the center computer and the local computer through the communication means. Synchronizing means for comparing and determining a process for synchronizing a change in the status of the files with each other, and executing a necessary data exchange through the communication means.
【請求項2】 前記同期処理手段が、前記拡張ファイル
管理テーブルの保管属性が保管のときにファイルを削除
し、保管属性はそのまま残す請求項1記載の分散ファイ
ルの同期方式。
2. The distributed file synchronization method according to claim 1, wherein said synchronization processing means deletes the file when the storage attribute of said extended file management table is storage, and leaves the storage attribute as it is.
JP8239853A 1996-08-22 1996-08-22 Distributed file synchronization method Expired - Fee Related JP3042600B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8239853A JP3042600B2 (en) 1996-08-22 1996-08-22 Distributed file synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8239853A JP3042600B2 (en) 1996-08-22 1996-08-22 Distributed file synchronization method

Publications (2)

Publication Number Publication Date
JPH1063557A true JPH1063557A (en) 1998-03-06
JP3042600B2 JP3042600B2 (en) 2000-05-15

Family

ID=17050856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8239853A Expired - Fee Related JP3042600B2 (en) 1996-08-22 1996-08-22 Distributed file synchronization method

Country Status (1)

Country Link
JP (1) JP3042600B2 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001306376A (en) * 2000-04-26 2001-11-02 Nikon Corp Recording medium for managing data file, data file management device, method for transmitting picture data, and method for transmitting data
KR20020033275A (en) * 2000-10-30 2002-05-06 정정호 Synchronize push service method and system for synchronizing of a data file between a local terminal and a server
JP2002312215A (en) * 2001-04-10 2002-10-25 Fujitsu Ltd Data linking device and data linking program
JP2003516586A (en) * 1999-12-13 2003-05-13 インクトミ コーポレイション Content collection
JP2005321922A (en) * 2004-05-07 2005-11-17 Nec Corp Information sharing system and information sharing program
JP2008015637A (en) * 2006-07-04 2008-01-24 Nec Corp File data management method and its system
JP2009528617A (en) * 2006-03-03 2009-08-06 マイクロソフト コーポレーション Identifying media device content changes
US7693846B2 (en) 2003-06-13 2010-04-06 Sony Corporation Data management system and method for data synchronization
JP2010211815A (en) * 2010-04-12 2010-09-24 Nikon Corp Recording medium for data file management and data file management device
US8051041B2 (en) 2007-08-17 2011-11-01 Nec Corporation Apparatus and method for file difference management
US8730349B2 (en) 2000-04-26 2014-05-20 Nikon Corporation Recording medium for data file management, apparatus for data file management, handling apparatus for image data, and image capturing system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09265424A (en) * 1996-03-27 1997-10-07 Nec Corp Synchronization system and method for distributed file

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09265424A (en) * 1996-03-27 1997-10-07 Nec Corp Synchronization system and method for distributed file

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003516586A (en) * 1999-12-13 2003-05-13 インクトミ コーポレイション Content collection
JP2010003311A (en) * 1999-12-13 2010-01-07 Yahoo Inc Collecting contents
JP2012079350A (en) * 1999-12-13 2012-04-19 Yahoo Inc Content collection
JP4568954B2 (en) * 2000-04-26 2010-10-27 株式会社ニコン Data file management recording medium, data file management apparatus, image data transmission method, and data transmission method
US8730349B2 (en) 2000-04-26 2014-05-20 Nikon Corporation Recording medium for data file management, apparatus for data file management, handling apparatus for image data, and image capturing system
JP2001306376A (en) * 2000-04-26 2001-11-02 Nikon Corp Recording medium for managing data file, data file management device, method for transmitting picture data, and method for transmitting data
KR20020033275A (en) * 2000-10-30 2002-05-06 정정호 Synchronize push service method and system for synchronizing of a data file between a local terminal and a server
JP2002312215A (en) * 2001-04-10 2002-10-25 Fujitsu Ltd Data linking device and data linking program
US7693846B2 (en) 2003-06-13 2010-04-06 Sony Corporation Data management system and method for data synchronization
JP2005321922A (en) * 2004-05-07 2005-11-17 Nec Corp Information sharing system and information sharing program
JP2009528617A (en) * 2006-03-03 2009-08-06 マイクロソフト コーポレーション Identifying media device content changes
US8769033B2 (en) 2006-03-03 2014-07-01 Microsoft Corporation Identifying changes to media-device contents
JP2008015637A (en) * 2006-07-04 2008-01-24 Nec Corp File data management method and its system
US8051041B2 (en) 2007-08-17 2011-11-01 Nec Corporation Apparatus and method for file difference management
JP2010211815A (en) * 2010-04-12 2010-09-24 Nikon Corp Recording medium for data file management and data file management device

Also Published As

Publication number Publication date
JP3042600B2 (en) 2000-05-15

Similar Documents

Publication Publication Date Title
US7107294B2 (en) Method and apparatus for interrupting updates to a database to provide read-only access
JP4414381B2 (en) File management program, file management apparatus, and file management method
US7870099B2 (en) Computer readable recording medium having stored therein database synchronizing process program, and apparatus for and method of performing database synchronizing process
JP4237354B2 (en) Transaction processing method and transaction processing system
US6341308B1 (en) Input/output device information management system for multi-computer system
US7801855B2 (en) Method and apparatus for merging log entries in a database management system
KR101573965B1 (en) Atomic multiple modification of data in a distributed storage system
JP3042600B2 (en) Distributed file synchronization method
JP4046893B2 (en) Database copying apparatus, database copying method, and computer-readable recording medium recording a database copying program
JPH0785020A (en) Document managing method
US7194486B2 (en) Method and system for data processing with data replication for the same
JP2004318288A (en) Method and device for processing data and its processing program
JPH11120057A (en) File backup method
JP2830826B2 (en) Distributed file synchronization system and method
JP2002222107A (en) Data synchronizing device
JP3484440B2 (en) Distributed database update method
JP4286857B2 (en) Internode shared file control method
JP2004341926A (en) Database management system and database management program
JP2006004024A (en) Program for execution by directory server
JP3330006B2 (en) Network system including information storage system, input system of the system, and
JP2000322306A (en) Inter-node shared file control system
JP4434117B2 (en) Replica volume resynchronization system and method, storage apparatus, computer, and program
JPH07175641A (en) Distributed program development integration update managing system
JPH113262A (en) Simple distributed fa data base management system
JPH11120058A (en) File management device, computer system, file managing method, and recording medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080310

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090310

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090310

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100310

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees