JP4690839B2 - File synchronization method - Google Patents
File synchronization method Download PDFInfo
- Publication number
- JP4690839B2 JP4690839B2 JP2005279280A JP2005279280A JP4690839B2 JP 4690839 B2 JP4690839 B2 JP 4690839B2 JP 2005279280 A JP2005279280 A JP 2005279280A JP 2005279280 A JP2005279280 A JP 2005279280A JP 4690839 B2 JP4690839 B2 JP 4690839B2
- Authority
- JP
- Japan
- Prior art keywords
- synchronization
- file
- access
- application
- destination
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、ファイル同期方法に係り、特に、同期元の装置から同期先の装置に対してファイルをポロシーに従って選択して同期するファイルの同期に関するものである。 The present invention relates to a file synchronization method, and more particularly to file synchronization in which a file is selected from a synchronization source device to a synchronization destination device according to a policy and synchronized.
近年、デスクトップPCやタワー型PCなどのデスクトップ端末装置から、フラッシュメモリなどの記憶媒体やノートPCなどのモバイル端末装置に、ファイルを同期させ、持ち歩くという例が多く見られる。通常、同期先の記憶媒体やノートPCのストレージ容量は、同期元のデスクトップ端末装置のストレージ容量に比べて小さいので、同期元から同期先のファイルを選択して同期させている。同期元のファイルを選択することは、同期処理にかかる時間を抑える効果や、情報漏洩のリスクを抑える効果を期待できる。 In recent years, there are many examples in which files are synchronized and carried from a desktop terminal device such as a desktop PC or a tower type PC to a storage medium such as a flash memory or a mobile terminal device such as a notebook PC. Usually, since the storage capacity of the synchronization destination storage medium or notebook PC is smaller than the storage capacity of the synchronization source desktop terminal device, the synchronization destination file is selected from the synchronization source and synchronized. Selecting the synchronization source file can be expected to have an effect of reducing the time required for the synchronization process and an effect of reducing the risk of information leakage.
選択したファイルのみを同期させるには、同期させるファイルを選択するという処理が必要となる。これは、一般的に、ユーザ操作によりファイル単位に選択したり、あるいはディレクトリ単位に選択することにより行なわれている。しかし、ファイル単位に選択するのは面倒であり、またディレクトリ単位に選択するのは不要なファイルまで同期させてしまうので無駄が多いという問題がある。また、ファイルの選択にユーザ操作が介在すると、ユーザにとって操作が面倒という問題の他に、操作ミスをしてしまうという問題もある。 In order to synchronize only the selected file, it is necessary to select a file to be synchronized. This is generally performed by selecting a file unit or a directory unit by a user operation. However, selecting the file unit is troublesome, and selecting the directory unit has a problem that there is a lot of waste because unnecessary files are synchronized. Further, when a user operation is involved in file selection, there is a problem that an operation error is caused in addition to the troublesome operation for the user.
そのための一案として、特許文献1には、同期化サーバからモバイル装置に同期化すべきデータ項目を、ネットワーク管理者またはモバイル装置のユーザが、フレキシブルな1組のルールを指定することにより選択することが開示されている。なお、フレキシブルな1組のルールには、データの価値、同期化に関連付けられたコスト、各種セキュリティなどが考慮されている。 As a proposal for that, in Patent Document 1, a network administrator or a user of a mobile device selects data items to be synchronized from a synchronization server to a mobile device by specifying a flexible set of rules. Is disclosed. The flexible set of rules takes into account the value of data, costs associated with synchronization, various security, and the like.
特許文献1に開示された技術によれば、同期化すべきデータ項目を選択するルールは、主にデータ項目の内容に基づくものなので、ルールを様々なデータ項目の内容に対応させようとすると、そのユーザ操作は面倒になりがちである。
また、最近では、記憶媒体やモバイル端末装置が盗難にあったり紛失し、そこから重要データが漏洩するという、情報漏洩の問題が社会問題化している。
According to the technique disclosed in Patent Document 1, the rule for selecting the data item to be synchronized is mainly based on the content of the data item, so when trying to make the rule correspond to the content of various data items, User operations tend to be troublesome.
Recently, the problem of information leakage, in which storage media and mobile terminal devices are stolen or lost and important data leaks therefrom, has become a social problem.
そこで、本発明の目的は、ファイルの内容によらず、統一的なポリシーを設定することで同期元から同期先に同期させるファイルを選択するファイル同期方法、そのプログラム及びその媒体、並びにコンピュータシステムを提供することにある。 Accordingly, an object of the present invention is to provide a file synchronization method for selecting a file to be synchronized from a synchronization source to a synchronization destination by setting a unified policy regardless of the contents of the file, its program and its medium, and a computer system. It is to provide.
本発明に係るコンピュータシステムは、好ましくは、複数のファイルを記憶することができる記憶装置と、アプリケーションを含む複数のプログラムを実行することができるCPUを少なくとも有する第1の装置と、少なくとも第1の装置の記憶装置に記憶されたファイルを記憶することができ、インターフェースを介して第1の装置からアクセスすることができる記憶媒体を有するコンピュータシステムにおいて、アプリケーションによるファイルへのアクセスを監視し、同期対象となるファイルごとにアクセス数をカウントするアクセス監視手段(第1のアクセス監視手段)と、アクセス監視手段によってカウントされた同期元となる記憶装置内に記憶されるファイルのアクセス数、及び同期先となる記憶媒体に記憶されるファイルのアクセス数を参照し、同期すべきファイルを決定する同期ファイル決定手段と、同期ファイル決定手段によって同期すべきと決定された、記憶装置に記憶されたファイルを、記憶媒体に同期させて記憶するように制御するファイル同期手段と、を有して構成される。
好ましい例では、上記記憶装置は、同期対象となるファイルを指定する情報を登録する同期候補ディレクトリリストと、ファイルの種別とアプリケーションを対応させて登録するアプリケーション監視情報DBと、ファイルごとにカウントしたアクセス数を登録する同期元ファイルアクセス情報DBと、を記憶し、アクセス監視手段は、同期候補ディレクトリリスト及びアプリケーション監視情報DBの情報を参照して、アプリケーション監視情報DBに登録された対応以外のファイルへのアクセスをカウントせず、同期候補ディレクトリリストにより指定されたファイルに対するアクセス数をカウントし、同期元ファイルアクセス情報DBに登録されているアクセス数を更新する。
また、好ましくは、上記記憶装置は、同期すべきファイルを決定するための、同期元のファイルに関する指標と同期先のファイルに関する指標を登録する同期ポリシーリストを記憶し、同期ファイル決定手段は、同期ポリシーリストを参照して、ファイルの同期の優先度を求める。
また、好ましくは、上記記憶装置は、記憶装置から、許可する記憶媒体のみにファイルを同期するよう制御するための情報を登録する同期許可プログラムリストを記憶し、ファイル同期手段は、同期許可プログラムリストを参照することにより、許可されたプログラムを経由する同期のみを行なう。
また、好ましくは、更に、複数のファイルを記憶することができる記憶装置と、アプリケーションを含む複数のプログラムを実行するCPUを有し、インターフェースを介して記憶媒体にアクセスすることができる第2の装置を含む前記コンピュータシステムであって、第2の装置は、アプリケーションによる記憶媒体内のファイルへのアクセスを監視し、記憶媒体に含まれる情報の内容に従って、記憶媒体内のファイルごとにアクセス数をカウントする第2のアクセス監視手段を有する。
好ましい例では、第1の装置は、デスクトップPC、タワー型PC又はサーバであり、第2の装置は、ノートPC、PDA,又は携帯電話の如き携帯可能な端末であり、記憶媒体はフラッシュメモリ又はICカードであり、ファイルは、アプリケーションが使用するテキストファイル、画像ファイル、ドキュメントファイル又はWebキャッシュファイルである。
The computer system according to the present invention preferably has a storage device capable of storing a plurality of files, a first device having at least a CPU capable of executing a plurality of programs including applications, and at least a first In a computer system having a storage medium capable of storing a file stored in a storage device of a device and accessible from a first device via an interface, the access to the file by an application is monitored and the synchronization target An access monitoring unit (first access monitoring unit) that counts the number of accesses for each file, a file access number stored in a storage device that is a synchronization source counted by the access monitoring unit, and a synchronization destination A file stored on the storage medium Referring to the access number, the synchronous file determining means for determining the file to be synchronized and the file stored in the storage device determined to be synchronized by the synchronous file determining means are stored in synchronization with the storage medium. And file synchronization means for controlling.
In a preferred example, the storage device includes a synchronization candidate directory list for registering information specifying a file to be synchronized, an application monitoring information DB for registering a file type and an application in association with each other, and an access counted for each file. A synchronization source file access information DB for registering the number, and the access monitoring means refers to the information in the synchronization candidate directory list and the application monitoring information DB, and moves to a file other than the corresponding one registered in the application monitoring information DB. The number of accesses to the file specified by the synchronization candidate directory list is counted, and the number of accesses registered in the synchronization source file access information DB is updated.
Preferably, the storage device stores a synchronization policy list for registering an index regarding a synchronization source file and an index regarding a synchronization destination file for determining a file to be synchronized. Referring to the policy list, obtain the priority of file synchronization.
Preferably, the storage device stores a synchronization permission program list for registering information for controlling to synchronize the file only from the storage device to the permitted storage medium, and the file synchronization means includes the synchronization permission program list. By referring to, only synchronization via permitted programs is performed.
Preferably, the second apparatus further includes a storage device that can store a plurality of files and a CPU that executes a plurality of programs including applications, and can access the storage medium via the interface. The second apparatus monitors the access to the file in the storage medium by the application and counts the number of accesses for each file in the storage medium in accordance with the content of the information included in the storage medium. Second access monitoring means.
In a preferred example, the first device is a desktop PC, a tower PC or a server, the second device is a portable terminal such as a notebook PC, PDA, or mobile phone, and the storage medium is a flash memory or The file is an IC card, and the file is a text file, an image file, a document file, or a Web cache file used by the application.
本発明に係るファイル同期方法は、好ましくは、複数のファイルを記憶することができる記憶装置と、アプリケーションを含む複数のプログラムを実行することができるCPUを少なくとも有する第1の装置と、少なくとも第1の装置の記憶装置に記憶されたファイルを記憶することができ、インターフェースを介して第1の装置からアクセスすることができる記憶媒体を有するコンピュータシステムにおけるファイル同期方法であって、アプリケーションによるファイルへのアクセスを監視し、同期対象となるファイルごとにアクセス数をカウントするアクセス監視工程(第1のアクセス監視工程)と、アクセス監視手段によってカウントされた同期元となる記憶装置内に記憶されるファイルのアクセス数、及び同期先となる記憶媒体に記憶されるファイルのアクセス数を参照し、同期すべきファイルを決定する同期ファイル決定工程と、同期ファイル決定手段によって同期すべきと決定された、記憶装置に記憶されたファイルを、記憶媒体に同期させて記憶するように制御するファイル同期工程と、を有して構成される。
また、好ましくは、前記コンピュータシステムは、更に、複数のファイルを記憶することができる記憶装置と、アプリケーションを含む複数のプログラムを実行するCPUを有し、インターフェースを介して記憶媒体にアクセスすることができる第2の装置を含み、更に、アプリケーションによる記憶媒体内のファイルへのアクセスを監視し、記憶媒体に含まれる情報の内容に従って、記憶媒体内のファイルごとにアクセス数をカウントする第2のアクセス監視工程を有する。
本発明はまた、上記各工程を実現するための、CPUで実行されるプログラム、及びそのプログラムを格納する記憶媒体として把握される。
更に、本発明は、アクセス監視処理、ファイル決定処理、又は同期処理の各処理、及びそれらを行なうプログラムとしても把握される。
The file synchronization method according to the present invention preferably includes a storage device capable of storing a plurality of files, a first device having at least a CPU capable of executing a plurality of programs including applications, and at least a first device. A file synchronization method in a computer system having a storage medium capable of storing a file stored in a storage device of the first device and accessible from a first device via an interface, comprising: An access monitoring process (first access monitoring process) that monitors access and counts the number of accesses for each file to be synchronized, and a file stored in the storage device that is the synchronization source counted by the access monitoring means Recorded in the number of accesses and the storage medium to be synchronized A synchronization file determination step for determining a file to be synchronized with reference to the number of accesses of the file to be synchronized, and a file stored in the storage device determined to be synchronized by the synchronization file determination means to be synchronized with the storage medium And a file synchronization process for controlling to store them.
Preferably, the computer system further includes a storage device that can store a plurality of files and a CPU that executes a plurality of programs including applications, and can access the storage medium via the interface. A second device capable of monitoring the access to the file in the storage medium by the application and counting the number of accesses for each file in the storage medium according to the content of the information included in the storage medium. It has a monitoring process.
The present invention can also be understood as a program executed by the CPU and a storage medium for storing the program for realizing the above steps.
Furthermore, the present invention is grasped as each process of the access monitoring process, the file determination process, or the synchronization process, and a program for performing them.
本発明によれば、ファイルの内容によらず、統一的なポリシーを設定することにより、同期元から同期先に同期させるファイルを選択することができる。 According to the present invention, a file to be synchronized from a synchronization source to a synchronization destination can be selected by setting a unified policy regardless of the contents of the file.
以下、図面を参照しつつ、本発明を実施するための最良の形態について説明する。
図1は、一実施例によるファイル同期システムの全体構成図である。
このシステムは、デスクトップ端末装置100と、モバイル端末装置200と、記憶媒体300を含んで構成される。以下、これらの構成について順次説明する。
The best mode for carrying out the present invention will be described below with reference to the drawings.
FIG. 1 is an overall configuration diagram of a file synchronization system according to an embodiment.
This system includes a
デスクトップ端末装置100は、例えばデスクトップPCやタワー型PC、サーバなどのような、ユーザが利用する据え置き型の装置であり、少なくともCPU101と、メモリ102と、記憶装置103と、記憶媒体インタフェース104を有して構成される。記憶媒体インタフェース104は、例えばメモリスロットやUSBインタフェースなどの、記憶媒体300のインタフェース方式に対応したインタフェースであり、記憶媒体300と通信する。
記憶装置103は、例えばハードディスクやフラッシュメモリなどの、プログラムやデータを記憶する装置であり、プログラムとして少なくともファイルアクセス監視プログラム110と、同期ファイル決定プログラム120と、ファイル同期プログラム130と、アプリケーション140と、デバイスドライバ150を記憶している。また、データとして少なくとも同期候補ディレクトリリスト111と、アプリケーション監視情報DB112と、同期元ファイルアクセス情報DB113と、同期ポリシー係数リスト121と、最大同期ファイル総容量122と、同期許可プログラムリスト131と、ファイル160を記憶している。
The
The
ファイルアクセス監視プログラム110は、アプリケーション140がファイル160にアクセスするのを監視し、同期候補ディレクトリリスト111およびアプリケーション監視情報DB112の内容に従って、各ファイル160ごとにアクセス数をカウントするプログラムである。同期ファイル決定プログラム120は、同期元および同期先のファイルアクセス情報などによって、ファイル160のすべてから、記憶媒体300に同期すべきものを決定するプログラムである。ファイル同期プログラム130は、記憶装置103から記憶媒体300内に許可されたファイル160を同期するように制御するプログラムである。
The file
アプリケーション140は、例えばテキストエディタや画像ビューア、Webブラウザなどのようなユーザが利用するプログラムである。デバイスドライバ150は、記憶装置103に含まれる各種プログラムが記憶媒体インタフェース104を介して記憶媒体300と通信するために必要なプログラムをはじめ、ソフトウェアとハードウェアの仲立ちをするプログラムである。
上記の全てのプログラムは、メモリ102に読み込まれ、CPU101で実行されることによりそれぞれの処理機能が実現される。
The
All the above programs are read into the
同期候補ディレクトリリスト111は、ファイル160のうち、記憶媒体300に同期すべきものをディレクトリ単位に一つないし複数指定するためのデータである。なお、同期候補ディレクトリリスト111は、事前にユーザによって、入力装置(図示せず)より入力されてデスクトップ端末装置100に設定される。または、ファイルアクセス監視プログラム110をはじめとするプログラムをインストールする際などに、標準的なディレクトリが自動的に設定される。この同期候補ディレクトリリスト111の構成は、図2に示され、後述する。
The synchronization candidate directory list 111 is data for designating one or
アプリケーション監視情報DB112は、ファイルアクセス監視プログラム110が、カウントするに適切でないアプリケーション140によるファイル160へのアクセスがあっても、そのファイルへのアクセスをカウントしないためのデータである。なお、アプリケーション監視情報DB112は、事前にユーザによって、入力装置より入力されてデスクトップ端末装置100に設定される。または、ファイルアクセス監視プログラム110をはじめとするプログラムをインストールする際などに、標準的なアプリケーション情報が自動的に設定される。このアプリケーション監視情報DB112の構成は、図3に示される。
The application monitoring information DB 112 is data for preventing the file
同期元ファイルアクセス情報DB113は、ファイルアクセス監視プログラム110が各ファイル160ごとにカウントしたアクセス数を管理し、同期ファイル決定プログラム120がファイル160の中から同期すべきものを決定する際の指標の一つとして参照され、上記決定の結果を管理し、ファイル同期プログラム130が同期元ファイルアクセス情報DB113に管理されている上記結果をもとに、同期すべきファイル160を、記憶装置103と記憶媒体300とで同期させるためのデータである。なお、同期元ファイルアクセス情報DB113のレコードは、同期候補ディレクトリリスト111が設定、変更される際などに併せて追加、変更、削除される。この同期元ファイルアクセス情報DB113の構成は、図4に示される。
The synchronization source file
同期ポリシー係数リスト121は、同期ファイル決定プログラム120がファイル160の中から同期すべきものを決定する際の指標の一つとして参照されるデータである。なお、同期ポリシー係数リスト121は、事前にユーザによって、入力装置より入力されてデスクトップ端末装置100に設定される。または、同期ファイル決定プログラム120をはじめとするプログラムをインストールする際などに、標準的な値が自動的に設定される。または、遺伝的アルゴリズムやニューラルネットワークの仕組みを導入することにより、自動的あるいは半自動的に設定される。この同期ポリシー係数リスト121の構成は、図6に示される。
The synchronization
最大同期ファイル総容量122は、記憶装置103から、記憶媒体300に同期するファイル160の総容量の最大値であり、同期ファイル決定プログラム120がファイル160の中から同期すべきものを決定する際の指標の一つとして参照される。なお、最大同期ファイル総容量122は、事前にユーザによって、入力装置より入力されてデスクトップ端末装置100に設定される。または、同期ファイル決定プログラム120をはじめとするプログラムをインストールする際などに、標準的な値が自動的に設定される。
The maximum synchronous file total capacity 122 is the maximum value of the total capacity of the
同期許可プログラムリスト131は、ファイル同期プログラム130が、記憶装置103から、許可する記憶媒体300のみにファイル106を同期するよう制御するためのデータである。なお、同期許可プログラムリスト131は、事前にユーザによって、入力装置より入力されてデスクトップ端末装置100に設定される。または、ファイル同期プログラム130をはじめとするプログラムをインストールする際などに、標準的なプログラムが設定される。この同期許可プログラムリスト131の構成は、図7に示される。
ファイル160は、例えばテキストファイルや画像ファイル、ドキュメントファイル、Webキャッシュファイルなど、アプリケーション140などが使用するデータである。
The synchronization
The
上述のデスクトップ端末装置100の構成では、最大同期ファイル総容量122によって、記憶装置103から記憶媒体300に同期するファイル160の総容量を制限していたが、同期するファイル160の総数を制限する構成であってもよい。または、同期するファイル160の総容量および総数を制限する構成であってもよい。
In the configuration of the
また、上述のデスクトップ端末装置100の構成では、同期許可プログラムリスト131にデバイスドライバ150を登録することにより、その登録されたデバイスドライバ150に対応する記憶媒体300のみにファイル160を同期するよう制限しているが、同期許可プログラムリスト131に暗号プログラムを登録することにより、登録された暗号プログラムを介する同期のみに制限する構成としてもよい。または、同期許可プログラムリスト131にデバイスドライバ150と暗号プログラムを登録することにより、登録された暗号プログラムを介し、登録されたデバイスドライバ150に対応する記憶媒体300のみに同期するよう制限する構成としてもよい。
このように、同期許可プログラムリスト131を用いることにより、許可した種別の記憶媒体のみへの同期や、許可したプログラム経由のみの同期、または許可したプログラム経由のみで、許可した種別の記憶媒体のみへの同期に制限することを、ハードウェアやソフトウェアの別によらず統一的に行うことができる。
Further, in the configuration of the
In this way, by using the synchronization-permitted
次に、モバイル端末装置200の構成について説明する。
モバイル端末装置200は、例えばノートPCやPDA、携帯電話などのようなユーザが持ち歩いて利用する装置であり、少なくともCPU201と、メモリ202と、記憶装置203と、記憶媒体インタフェース204を有して構成される。記憶媒体インタフェース204は、記憶媒体インタフェース104と同様のものであり、記憶媒体300と通信する。記憶装置203は、記憶装置103と同様のものであり、プログラムとして少なくともファイルアクセス監視プログラム210と、アプリケーション240と、デバイスドライバ250と、を含み、データとして少なくともアプリケーション監視情報DB212を記憶する。
Next, the configuration of the mobile
The mobile
ファイルアクセス監視プログラム210は、アプリケーション240が、記憶媒体300に含まれるファイル360にアクセスするのを監視し、記憶媒体300に含まれる同期先情報332およびアプリケーション監視情報DB212の内容に従って、各ファイル360ごとにアクセス数をカウントするプログラムである。アプリケーション240は、アプリケーション140と同様のプログラムである。デバイスドライバ250は、デバイスドライバ150と同様のプログラムである。これらのプログラムは、メモリ202に読み込まれ、CPU201で実行されることにより、それぞれの処理機能が実現される。
The file
アプリケーション監視情報DB212は、ファイルアクセス監視プログラム210が、カウントするに適切でないアプリケーション240による、記憶媒体300に含まれるファイル360へのアクセスがあっても、そのファイルへのアクセスをカウントしないためのデータである。なお、アプリケーション監視情報DB212は、事前にユーザによって、モバイル端末装置200に入力装置(図示せず)より入力されて設定される。または、ファイルアクセス監視プログラム210をインストールする際などに、標準的なアプリケーション情報が自動的に設定される。または、記憶装置103に含まれるアプリケーション監視情報DB112が、記憶媒体300にコピーされ、ファイルアクセス監視プログラム210が記憶媒体300にコピーされたアプリケーション監視情報DB112を読み込み、アプリケーション240の内容に合わせて変更することにより設定される。このアプリケーション監視情報DB212の構成は、基本的にアプリケーション監視情報DB112と同様である。
The application
次に、記憶媒体300の構成について説明する。
記憶媒体300は、例えばフラッシュメモリやICカードなどのような、プログラムやデータを記憶する媒体であり、データとして少なくとも同期先ファイルアクセス情報DB313と、同期先情報332と、ファイル360を記憶する。
Next, the configuration of the
The
同期先ファイルアクセス情報DB313は、ファイルアクセス監視プログラム210が各ファイル360ごとにカウントしたアクセス数を管理し、同期ファイル決定プログラム120がファイル160の中から同期すべきものを決定する際の指標の一つとして参照されるデータである。なお、同期先ファイルアクセス情報DB313のレコードは、ファイル同期プログラム130によって記憶装置103と記憶媒体300との間でファイル同期が行われる際に追加、変更、削除される。この同期先ファイルアクセス情報DB313の構成は、図5に示され、後述する。
The synchronization destination file
同期先情報332は、記憶装置103から記憶媒体300に同期されるファイル360を、同期先情報332に示されるディレクトリに記憶させるためのデータである。なお、同期先情報332は、事前にユーザによって、デスクトップ端末装置100に入力装置より入力された後、記憶媒体インタフェース104を介して設定される。または、ファイル同期プログラム130をはじめとするプログラムがインストールされた後などに、標準的なディレクトリが、記憶媒体インタフェース104を介して、自動的に設定される。
ファイル360は、記憶装置103に記憶されるファイル160のうち、記憶媒体300に同期されるべきものが同期されたデータである。
The
The
以上、ファイル同期システムの構成例について説明した。ここで、幾つかの代替例について説明する。例えば、上記の同期システムにおいて、デスクトップ端末装置100は記憶媒体インタフェース104を含んでいるが、記憶媒体インタフェース104を省略し、デスクトップ端末装置100が、デスクトップ端末装置100に、図示しない通信インタフェースと、図示しない通信ネットワークと、モバイル端末装置200に図示しない通信インタフェースとを介して、モバイル端末装置200と接続し、モバイル端末装置200に含まれる記憶媒体インタフェース204を介して記憶媒体300と通信するような構成を持つシステムとしてもよい。上記システムでは、同期許可プログラムリスト131には、記憶装置203に含まれる各種プログラムも登録される。また、上記システムにおいて、デスクトップ端末装置100に替えてサーバベースコンピューティングのサーバなどとする構成のシステムも、本発明の範囲内である。上記システムでは、デスクトップ端末装置100で実行されていたプログラムがサーバで実行されるものの、サーバへのユーザ入力は、モバイル端末装置200に図示しない入力装置に入力されることによって行われ、サーバへのユーザ出力は、モバイル端末装置200に図示しない出力装置に出力されることによって行われる。
The configuration example of the file synchronization system has been described above. Here, some alternative examples will be described. For example, in the above synchronization system, the
また、図1のシステムの構成で、記憶媒体300に同期すべきものを、記憶装置103に含まれるファイル160のみならず、デスクトップ端末装置100に、図示しない通信インタフェースなどを介して接続する他の装置に含まれるファイルまでも含める構成のシステムとしてもよい。上記システムでは、同期候補ディレクトリリスト111には、他の装置のディレクトリ情報も登録される。
Further, in the system configuration of FIG. 1, what is to be synchronized with the
また、図1のシステムの構成で、デスクトップ端末装置100に含まれる記憶媒体インタフェース104と、モバイル端末装置200に含まれる記憶媒体インタフェース204と、記憶媒体300とを省略し、デスクトップ端末装置100が、デスクトップ端末装置100に、図示しない通信インタフェースと、図示しない通信ネットワークと、モバイル端末装置200に図示しない通信インタフェースとを介して、モバイル端末装置200と接続し、記憶装置103に記憶されるファイル160のうち同期されるべきものを記憶装置203に記憶させる構成のシステムも、本発明の範囲内である。上記システムでは、図1のシステムで記憶媒体300に含まれていた同期先ファイルアクセス情報DB313および同期先情報332が、記憶装置203に含まれる。なお、上記システムでは、同期許可プログラムリスト131に、記憶装置103に含まれる暗号プログラムを登録することが、セキュリティの観点から望ましい。
In the system configuration of FIG. 1, the storage medium interface 104 included in the
また、図1のシステムの構成で、ファイルアクセス監視プログラム210およびアプリケーション監視情報DB212は記憶装置203に含まれていたが、ファイルアクセス監視プログラム210およびまたはアプリケーション監視情報DB212が記憶媒体300に含まれる構成のシステムとしてもよい。上記システムでは、モバイル端末装置200と記憶媒体300とが記憶媒体インタフェース204を介して接続された際に、自動的に、またはユーザによってモバイル端末装置200に図示しない入力装置に入力されることにより、ファイルアクセス監視プログラム210およびまたはアプリケーション監視情報DB212がメモリ202に読み込まれる。これには、ファイルアクセス監視プログラム210を記憶装置203にインストールせずとも、このシステムを利用できるという特徴がある。
1, the file
次に、図2を参照して同期候補ディレクトリリスト111の構成について説明する。
ファイル160のうち、記憶媒体300に同期すべき候補をディレクトリ単位に一つないし複数、フルパス名で列挙する。なお、同期候補ディレクトリリスト111には、ファイル160のフルパス名も列挙することで、ファイル160を同期すべき候補としてもよい。また、ディレクトリ単位に指定する際に、ディレクトリの直下のもののみを同期すべき候補とするか、或いはディレクトリの配下すべてのものを同期すべき候補とするか指定できてもよい。その場合、同期候補ディレクトリリスト111には、指定を示す属性が、ディレクトリ単位に追加される。
Next, the configuration of the synchronization candidate directory list 111 will be described with reference to FIG.
In the
次に、図3は、アプリケーション監視情報DB112の構成を示す。
アプリケーション監視情報DB112は、レコードのフィールドとして少なくともアクセスカウントファイル種別112aと、アクセスカウントアプリケーション112bと、を含む。ファイルアクセス監視プログラム110は、各レコードのアクセスカウントファイル種別112aとアクセスカウントアプリケーション112bの組み合わせに一致するファイルアクセスのみをカウントする。なお、アクセスカウントファイル種別112aには、ファイル種別としてファイル160の拡張子を指定し、アクセスカウントアプリケーション112bには、アプリケーション140としてアプリケーション名ないしフルパス名を指定する。
Next, FIG. 3 shows the configuration of the application
The application
図4は、同期元ファイルアクセス情報DB113の構成を示す。
同期元ファイルアクセス情報DB113は、レコードのフィールドとして少なくとも同期候補ファイル113aと、前回アクセスウィンドウID113bと、同期元アクセスカウント数113cと、同期優先度113dと、同期要否113eと、を含む。
ここで、同期候補ファイル113aには、同期候補ディレクトリリスト111により指定される、同期候補のファイル160すべてを、フルパス名で列挙する。前回アクセスウィンドウID113bは、そのレコードの同期候補ファイル113aに示すファイル160について、前回、アプリケーション監視情報DB112のいずれかのレコードに一致するファイルアクセスがあった際に、そのファイルアクセスを行ったアプリケーション140のウィンドウIDを記憶させるフィールドである。なお、同一ファイル160への複数アプリケーション140からの同時アクセスに対応するためには、前回アクセスウィンドウID113bのフィールドを複数設けることが望ましい。また、前回アクセスウィンドウID113bに示すウィンドウが終了するときには、ファイルアクセス監視プログラム110が終了を検知し、前回アクセスウィンドウID113bをクリアすることが望ましい。
FIG. 4 shows the configuration of the synchronization source file
The synchronization source file
Here, in the synchronization candidate file 113a, all the synchronization candidate files 160 specified by the synchronization candidate directory list 111 are listed with full path names. The previous access window ID 113b indicates that the
同期元アクセスカウント数113cは、レコードの同期候補ファイル113aに示すファイル160について、アプリケーション監視情報DB112のいずれかのレコードに一致したファイルであり、かつ前回アクセスウィンドウID113bに記憶されているウィンドウIDでないアプリケーション140からのファイルアクセスのカウント数を、各日ごとに記憶させるフィールドである。例えば、0日前のアクセス数は113c0に、1日前のアクセス数は113c1に記憶するが如くして、30日前のアクセス数113c30まで記憶する。なお、同期元アクセスカウント数113cの構成では、ファイルアクセスのカウント数を各日ごとに記憶するが、例えば半日ごとや2日ごとに記憶してもよい。
The synchronization source access count 113c is a file that matches one of the records in the application
なお、日付が一日進んだとき、全てのレコードについて更新される。すなわち、30日前同期元アクセスカウント数113c30に29日前同期元アクセスカウント数113c29がコピーされることから始まり、1日前同期元アクセスカウント数113c1に0日前同期元アクセスカウント数113c0がコピーされ、0日前同期元アクセスカウント数113c0には0が記憶される。 When the date advances one day, all records are updated. That is, the 29-day-old synchronization source access count 113c29 is copied to the 30-day-old synchronization source access count 113c30, and the 0-day-old synchronization source access count 113c0 is copied to the 1-day-old synchronization source access count 113c1. 0 is stored in the synchronization source access count 113c0.
同期優先度113dは、レコードの同期候補ファイル113aに示すファイル160について、同期ファイル決定プログラム120がそのレコードの同期元ファイルアクセスカウント数113cなどをもとに算出した、ファイル160を同期させるべきか決定する尺度を記憶させるフィールドである。フィールドの値が高ければ高いほど、同期させるべきと決定される。
同期要否113eは、レコードの同期候補ファイル113aに示すファイル160について、同期ファイル決定プログラム120がそのレコードの同期優先度113dなどをもとに決定した、ファイル160を同期させるべきかの結果を記憶させるフィールドである。なお、同期要否113eには、ファイル160を同期させるべきときは、例えばtrueを、同期させるべきでないときは、例えばfalseを指定する。
The synchronization priority 113d determines whether to synchronize the
The necessity / unnecessity of synchronization 113e stores the result of whether or not the
図5は、同期先ファイルアクセス情報DB313の構成を示す。
同期先ファイルアクセス情報DB313は、レコードのフィールドとして少なくとも同期ファイル313aと、前回アクセスウィンドウID313bと、同期先アクセスカウント数313cと、を含む。
FIG. 5 shows the configuration of the synchronization destination file
The synchronization destination file
同期ファイル313aには、記憶媒体300に同期されている全てのファイル360を、フルパス名で列挙する。なお、同期ファイル313aには、同期元ファイルアクセス情報DB113に列挙されている同期候補ファイル113aに対応するものすべてを列挙してもよい。また、同期ファイル313aには、ファイル360には含まれないものの、以前ファイル360に含まれたもので、同期先アクセスカウント数313cに1以上のカウント数を持つものを列挙してもよい。
In the synchronization file 313a, all
前回アクセスウィンドウID313bは、前回アクセスウィンドウID113bと同様のフィールドであり、レコードの同期ファイル313aに示すファイル360について、前回、アプリケーション監視情報DB212のいずれかのレコードに一致するファイルアクセスがあった際に、そのファイルアクセスを行ったアプリケーション240のウィンドウIDを記憶させるフィールドである。なお、同一ファイル360への複数アプリケーション240からの同時アクセスに対応するためには、前回アクセスウィンドウID313bを複数設けることが望ましい。また、前回アクセスウィンドウID313bに示すウィンドウが終了するときには、ファイルアクセス監視プログラム210が終了を検知し、前回アクセスウィンドウID313bをクリアすることが望ましい。
The previous
同期先アクセスカウント数313cは、同期元アクセスカウント数113cと同様のフィールドであり、レコードの同期ファイル313aに示すファイル360について、アプリケーション監視情報DB212のいずれかのレコードに一致したファイルアクセスであり、かつ前回アクセスウィンドウID313bに記憶されているウィンドウIDでないアプリケーション240からのファイルアクセスのカウント数を、各日ごとに記憶させるフィールドである。例えば、0日前のアクセス数は313c0に、1日前のアクセス数は313c1にと記憶していき、30日前のアクセス数313c30まで記憶する。なお、同期先アクセスカウント数313cの構成では、ファイルアクセスのカウント数を各日ごとに記憶させていたが、例えば半日ごとや2日ごとに記憶させてもよい。
The synchronization destination access count number 313c is a field similar to the synchronization source access count number 113c, and is a file access corresponding to any record in the application
なお、日付が一日進んだとき、全てのレコードについて更新される。すなわち、30日前同期先アクセスカウント数313c30に29日前同期先アクセスカウント数313c29がコピーされることからはじまり、1日前同期先アクセスカウント数313c1に0日前同期先アクセスカウント数313c0がコピーされ、0日前同期先アクセスカウント数313c0には0が記憶される。 When the date advances one day, all records are updated. That is, starting from the fact that the 29-day-old synchronization destination access count number 313c29 is copied to the 30-day-old synchronization destination access count number 313c30, the 0-day-old synchronization destination access count number 313c0 is copied to the one-day-old synchronization destination access count number 313c1. 0 is stored in the synchronization destination access count number 313c0.
次に、図6は、同期ポリシー係数リスト121の構成を示す。
同期ポリシー係数リスト121は、同期元ポリシー係数121aと、同期先ポリシー係数リスト121bと、から構成され、同期ファイル決定プログラム120が同期優先度113dを算出する処理の際に参照される。
処理について言えば、例えば、同期ファイル決定プログラム120が、同期元ファイルアクセス情報DB113と、同期先ファイルアクセス情報DB313と、同期ポリシー係数リスト121と、を参照し、同期候補ファイル113aに示すファイル160それぞれについて、0日前同期元アクセスカウント数113c0と0日前同期元ポリシー係数121a0を乗じたもの、1日前同期元アクセスカウント数113c1と1日前同期元ポリシー係数121a1を乗じたものから、30日前同期元アクセスカウント数113c30と30日前同期元ポリシー係数121a30を乗じたものまで次々と加算し、さらに0日前同期先アクセスカウント数313c0と0日前同期先ポリシー係数121b0を乗じたもの、1日前同期先アクセスカウント数313c1と1日前同期先ポリシー係数121b1を乗じたものから、30日前同期先アクセスカウント数313c30と30日前同期先ポリシー係数121b30を乗じたものまで次々と加算した結果を、当該同期優先度113dに記憶させる。
Next, FIG. 6 shows the configuration of the synchronization
The synchronization
In terms of processing, for example, the synchronization
即ち、同期ポリシー係数リスト121とは、同期元アクセスカウント数113cと同期先ファイルアクセスカウント数313cから同期優先度113dを算出するための、各フィールドに対する重み付けである。例えば、0日前同期元ポリシー係数121a0の値が1で、30日前同期先ポリシー係数121b30が0.2のとき、0日前同期元アクセスカウント数113c0と30日前同期先アクセスカウント数313c30が同じ1回でも、同期優先度113dに与える影響は0日前同期元アクセスカウント数113c0の方が1/0.2=5倍大きい。なお、記憶媒体300に同期されていないファイル160に対する同期優先度113dの算出については、同期元アクセスカウント数113cと同期元ポリシー係数121aとからのみ算出する。また、同期元ファイルアクセス情報DB113の各レコードと、同期先ファイルアクセス情報DB313の各レコードとの対応付けは、両DBそれぞれに、対応するレコードに同じ値を記憶させるフィールドを設ければ、効率的に対応関係が把握できる。
In other words, the synchronization
図7は、同期許可プログラムリスト131の構成を示す。
前述の通り、ファイル同期プログラム130が、記憶装置103から、許可する記憶媒体300のみにファイル106を同期するよう制御するためのものであり、当該許可プログラムリスト131に、許可する記憶媒体300を読み書きするデバイスドライバ150を一つないし複数、プログラム名ないしフルパス名で列挙する。
FIG. 7 shows the configuration of the synchronization
As described above, the
次に、図8のフロー図を参照して、同期元ファイルアクセス監視処理動作について説明する。
ファイルアクセス監視プログラム110は、アプリケーション140がファイル160にアクセスするファイルアクセスを監視し、同期候補ディレクトリリスト111およびアプリケーション監視情報DB112の内容に従って、各ファイル160ごとにアクセス数をカウントする。
Next, the synchronization source file access monitoring processing operation will be described with reference to the flowchart of FIG.
The file
まず、ファイルアクセス監視プログラム110は、アプリケーション140がファイル160にアクセスするのを検知することにより、その実行を開始する(S111)。
ファイルアクセス監視プログラム110は、ファイル160直上のディレクトリのフルパス名が、記憶装置103から参照した同期候補ディレクトリリスト111に列挙されたフルパス名のいずれかに前方一致されるかチェックする(S112)。前方一致されないときにはS117に移り、前方一致されるときにはS113に移る。これには、同期候補ディレクトリリスト111により指定した、同期すべきファイル160のみに対し、アクセス数をカウントし、無駄なカウントを省く効果がある。
First, the file
The file
そして、ファイルアクセス監視プログラム110は、ファイル160と、そのファイル160にアクセスするアプリケーション140の組み合わせについて、ファイル160の拡張子とアプリケーション140のアプリケーション名ないしフルパス名の組み合わせが、記憶装置103から参照したアプリケーション監視情報DB112のレコードのいずれかに一致するかチェックする(S113)。このチェックの結果、一致しないときにはS117に移り、一致するときにはS114に移る。これには、アクセスカウントファイル種別112aに列挙されない拡張子のファイル160に対し、アクセス数をカウントせず、無駄なカウントを省く効果がある。例えば、デスクトップ端末装置100に関する各種設定を行うファイル160は、デスクトップ端末装置100とは別の装置には不要なため、ファイル160の拡張子はアクセスカウントファイル種別112aには列挙しないことにより、ファイルのアクセス数はカウントせず、無駄なカウントを省くことができる。また、アプリケーション監視情報DB112のいずれのレコードにも一致しないファイルアクセスに対し、アクセス数をカウントせず、無駄なカウントを省く効果がある。例えば、テキストファイルに対し、テキストエディタやテキストビューアからのアクセスであれば、アクセスをカウントし、ウィルスチェッカのような、ユーザがファイルの内容を確認、編集する目的以外のアプリケーション140からのアクセスであれば、アクセスをカウントしないことにより、ユーザがファイルの内容を確認、編集する目的のアプリケーション140からのアクセスのみをカウントできる。
Then, for the combination of the
次に、ファイルアクセス監視プログラム110は、ファイル160と、そのファイル160にアクセスするアプリケーション140のウィンドウIDについて、ウィンドウIDと、記憶装置103から参照した同期元ファイルアクセス情報DB113におけるファイル160に対応するレコードの前回アクセスウィンドウID113bとが一致するかチェックする(S114)。このチェックの結果、一致するときにはS117に移り、一致しないときにはS115に移る。これには、同一ウィンドウIDのアプリケーション140が、同一ファイル140に何度もアクセスしても、1回としかカウントせず、無駄なカウントを省く効果がある。例えば、テキストエディタでテキストファイルを開き、同一ウィンドウIDのウィンドウで編集しつつ、何度も上書き保存、または上書き自動保存しても、テキストファイルへのアクセス数は1回とカウントできる。
Next, the file
次に、ファイルアクセス監視プログラム110は、アプリケーション140にアクセスされたファイル160に対応するレコードの前回アクセスウィンドウID113bに、そのアプリケーション140のウィンドウIDを記憶する(S115)。これは、次のファイルアクセスの際のS114のチェックに必要である。
そして、ファイルアクセス監視プログラム110は、ファイルアクセスのファイル160に対応するレコードの0日前アクセスカウント数113cに1を加算して更新し、記憶する(S116)。以上の処理で同期元ファイルアクセス監視処理を終了し、その後のファイルアクセスを待機する(S117)。
Next, the file
Then, the file
なお、モバイル端末装置200において、ファイルアクセス監視プログラム210が、アプリケーション240がファイル360にアクセスするファイルアクセスを監視し、同期先情報332およびアプリケーション監視情報DB212の内容に従って、各ファイル360ごとにアクセス数をカウントする同期先ファイルアクセスの監視処理のフローは、図8に示した同期元ファイルアクセス監視処理のフローによる説明から類推して理解されるであろう。すなわち、図8に示した同期元ファイルアクセス監視処理のフローに対して、ファイルアクセス監視プログラム110をファイルアクセス監視プログラム210に、記憶装置103を記憶装置203に、同期候補ディレクトリリスト111を同期先情報332に、アプリケーション監視情報DB112をアプリケーション監視情報DB212に、同期元ファイルアクセス情報DB113を同期先ファイルアクセス情報DB313に、アプリケーション140をアプリケーション240に、ファイル160をファイル360に読み替えることで理解できるので、詳述は割愛する。ただし、同期先ファイルアクセス情報DB313、同期先情報332、およびファイル360は記憶媒体300に含まれ、記憶媒体300から参照し、記憶媒体300に書き込むことになる。
In the mobile
次に、図9を参照して、同期ファイル決定処理動作について説明する。
同期ファイル決定プログラム120は、同期元および同期先のファイルアクセス情報などによって、ファイル160の全てから記憶媒体300に同期すべきものを決定する。
Next, the synchronous file determination processing operation will be described with reference to FIG.
The synchronized
まず、同期ファイル決定プログラム120は、ファイル同期プログラム130によって送信された同期ファイル決定要求を受信することによりその動作が開始される(S211)。
同期ファイル決定プログラム120は、記憶装置103に記憶される同期ポリシー係数リスト121を参照し(S212)、記憶装置103に記憶される同期元ファイルアクセス情報DB113と、記憶媒体300に記憶される同期先ファイルアクセス情報DB313とを参照し(S213)、図6に示した算出方法に従って、同期元ファイルアクセス情報DB113の同期元アクセスカウント数113cと、同期先ファイルアクセス情報DB313の同期先アクセスカウント数313cと、同期ポリシー係数リスト121とから同期元ファイルアクセス情報DB113のすべてのレコードの同期優先度113dを算出して、その結果を書き込む(S214)。
First, the synchronization
The synchronization
そして、同期ファイル決定プログラム120は、記憶装置103に記憶される最大同期ファイル総容量122を参照し、同期元ファイルアクセス情報DB113の同期優先度113dの高いレコードから順にレコードの同期要否113eにtrueを書き込んでいき、それまでに同期要否113eにtrueを書き込んだレコードに対応するファイル160の総容量と、そのレコードに対応するファイル160の容量を合わせたものが最大同期ファイル総容量122を超えれば、それ以降すべてのレコードの同期要否113eにfalseを書き込むことにより、同期の要否を判定する(S215)。以上の処理で同期ファイル決定処理を終了する(S216)。
Then, the synchronization
次に、図10を参照してファイル同期処理動作について説明する。
ファイル同期プログラム130は、記憶装置103から、許可する記憶媒体300のみにファイル160を同期するよう制御する。
まず、ファイル同期プログラム130は、ユーザによって入力装置からデスクトップ端末装置100に入力されたファイル同期要求を受信することによりその動作が開始される(S311)。
Next, the file synchronization processing operation will be described with reference to FIG.
The
First, the
ファイル同期プログラム130は、同期ファイル決定プログラム120に同期ファイル決定要求を送信し(S312)、同期ファイル決定要求を受信した同期ファイル決定プログラム120は、図9に示した方法に従って、記憶媒体300に同期すべきファイル160を決定し、ファイル同期プログラム130に同期ファイル決定応答を返送する。ファイル同期プログラム130は、返送された同期ファイル決定応答を受信する(S313)。
The
そして、ファイル同期プログラム130は、記憶媒体300を読み書きするデバイスドライバ150が、記憶装置103から参照した同期許可プログラムリスト131の対象の同期かを判定する(S314)。すなわち、同期許可プログラムリスト131に登録されたプログラム名或いはフルパス名のいずれかに一致するかチェックする。チェックの結果、一致しないときにはS318に移る。一致したときには、ファイル同期プログラム130は、記憶装置103に記憶される同期元ファイルアクセス情報DB113を参照する(S315)。
Then, the
次に、ファイル同期プログラム130は、同期元ファイルアクセス情報DB113の同期要否113eがtrueであるレコードに対応するファイル160の全てを、記憶装置103から参照し、記憶媒体300に記憶される同期先情報332の内容に従って、記憶媒体300のファイル360として書き込む一方で、記憶媒体300に記憶されるファイル360のうち、同期元ファイルアクセス情報DB113の同期要否113eがfalseであるレコードに対応するものを削除する(S316)。例えば、同期元ファイルアクセス情報DB113の同期要否113eがtrueであるレコードの同期候補ファイル113aが/project/readme.txtで、同期先情報332が/sync/のとき、同期候補ファイル113aに対応するファイル160は、記憶媒体300に/sync/project/readme.txtのファイル360として記憶される。なお、同期先ファイルアクセス情報DB313を参照すれば、同期すべきファイル160が既にファイル360として同期されているのか確認でき、そのときはファイル360の書き込みは省略してもよい。
Next, the
次に、ファイル同期プログラム130は、S316のファイル同期の結果をもとに、記憶媒体300に記憶される同期先ファイルアクセス情報DB313を更新させる。S316の処理について説明した例の場合、同期先ファイルアクセス情報DB313には、同期ファイル313aが/sync/project/readme.txtであるレコードを追加する。また、S316のファイル同期の結果、削除されたファイル360に対応する同期先ファイルアクセス情報DB313のレコードも削除する。以上で、ファイル同期処理を終了する(S318)。
Next, the
なお、上述の図10に示したファイル同期処理動作フローでは、S316のファイル同期の結果、削除されたファイル360に対応する同期先ファイルアクセス情報DB313のレコードを、S317において削除していたが、同期先ファイルアクセス情報DB313に、レコードに対応するファイル360の存在有無を示すフィールドが追加されれば、削除しなくてもよい。また、同期先ファイルアクセス情報DB313に、レコードに対応するファイル360の存在有無を示すフィールドが追加されるのであれば、同期元ファイルアクセス情報DB113のレコードすべてに対応するレコードを、同期先ファイルアクセス情報DB313に登録してもよい。
In the file synchronization processing operation flow shown in FIG. 10 described above, the record of the synchronization destination file
以上のように、本実施例によれば、ファイルの内容にはよらず、統一的なポリシーを設定することにより同期元から同期先に同期させるファイルを選択することができる。また、許可した種別の記憶媒体のみへの同期や、許可したプログラム経由のみの同期、または許可したプログラム経由のみで、許可した種別の記憶媒体のみへの同期に制限することを、ハードウェアやソフトウェアの別によらず統一的に行うことができる。
なお、本発明を実施するための最良の形態について、その実施の形態に基づき具体的に説明したが、本発明は上記の形態に限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能である。
As described above, according to this embodiment, it is possible to select a file to be synchronized from the synchronization source to the synchronization destination by setting a unified policy regardless of the contents of the file. In addition, it is possible to limit the synchronization to only the permitted type of storage medium, the synchronization only via the permitted program, or the synchronization only to the permitted type of storage medium only via the permitted program. It can be performed uniformly regardless of the difference.
The best mode for carrying out the present invention has been specifically described based on the embodiment. However, the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the scope of the invention. Is possible.
100:デスクトップ端末装置、 200:モバイル端末装置、 300:記憶媒体、 103:記憶装置、 110:ファイルアクセス監視プログラム、 120:同期ファイル決定プログラム、 130:ファイル同期プログラム、 140:アプリケーション、 150:デバイスドライバ、
DESCRIPTION OF SYMBOLS 100: Desktop terminal device, 200: Mobile terminal device, 300: Storage medium, 103: Storage device, 110: File access monitoring program, 120: Synchronization file determination program, 130: File synchronization program, 140: Application, 150: Device driver ,
Claims (10)
該第1のアプリケーションによるファイルへのアクセスを監視し、該第1の記憶装置に記憶されている複数の同期元ファイルの各々について、該同期元ファイルに対する該第1のアプリケーションからのアクセス数をカウントする第1のアクセス監視手段と、
第1のアクセス監視手段によってカウントされた各同期元ファイルに対するアクセス数と当該同期元ファイルのパス名とを対応付けて記憶する同期元ファイルアクセス情報DBと、
該第2のアプリケーションによるファイルへのアクセスを監視し、該記憶媒体内に格納されている複数の同期先ファイルの各々について、該同期先ファイルに対する該第2のアプリケーションからのアクセス数をカウントする第2のアクセス監視手段と、
該第2のアクセス監視手段によってカウントされた各同期先ファイルに対するアクセス数と当該同期先ファイルのパス名とを対応付けて記憶する同期先ファイルアクセス情報DBと、
該同期元ファイルアクセス情報DBと該同期先ファイルアクセス情報DBとを用いて、同期元ファイルに対するアクセス数と当該同期元ファイルのパス名に対応するパス名を有する同期先ファイルに対するアクセス数とから、同期させるファイルを決定するための優先度である同期優先度を算出し、当該同期優先度に基づいて、同期対象となる同期元ファイルを該複数の同期元ファイルの中から選択する同期ファイル決定手段と、
該同期ファイル決定手段によって同期すべきと決定された同期元ファイルを、該記憶媒体に同期させて記憶するように制御するファイル同期手段と、を有することを特徴とするコンピュータシステム。 First storage unit capable of storing a plurality of files, the first device having at least a first CPU capable of executing a plurality of programs including a first application, at least the first device of the first storage file can be stored in the storage device, a storage media that can be accessed from the first device via the interface, a second that can store a plurality of files In a computer system having a storage device and a second device having a second CPU that executes a plurality of programs including a second application and capable of accessing the storage medium via an interface ,
The first monitor access to the file by the application, for each of a plurality of synchronization based on files stored in the first storage device, counting the number of accesses from the first application to said synchronization source file First access monitoring means for
A synchronization source file access information DB for storing the number of accesses to each synchronization source file counted by the first access monitoring means and the path name of the synchronization source file in association with each other;
The access to the file by the second application is monitored, and for each of a plurality of synchronization destination files stored in the storage medium, the number of accesses from the second application to the synchronization destination file is counted. Two access monitoring means;
A synchronization destination file access information DB for storing the number of accesses to each synchronization destination file counted by the second access monitoring means and the path name of the synchronization destination file in association with each other;
Using the synchronization source file access information DB and the synchronization destination file access information DB, from the number of accesses to the synchronization source file and the number of accesses to the synchronization destination file having a path name corresponding to the path name of the synchronization source file, calculates a synchronization priority with the priority to determine the files to be synchronized, the synchronization priority based synchronization file determining means for selecting the synchronization source file to be synchronized from among the plurality of synchronization source file When,
And a file synchronization means for controlling the synchronization source file determined to be synchronized by the synchronization file determination means to be stored in synchronization with the storage medium.
該同期元ファイルの種別とアプリケーションを対応させて登録するアプリケーション監視情報DBと、を記憶し、該第1のアクセス監視手段は、該同期候補ディレクトリリスト及び該アプリケーション監視情報DBの情報を参照して、該アプリケーション監視情報DBに登録された該同期元ファイルの種別とアプリケーションに一致しないファイルへのアクセスをカウントせず、該同期候補ディレクトリリストにより指定されたファイルに対するアクセス数をカウントし、該同期元ファイルアクセス情報DBに登録するアクセス数を更新することを特徴とする請求項1のコンピュータシステム。 The first storage device includes a synchronization candidate directory list for registering information designating a synchronous source file,
Stores, and application monitoring information DB to be registered in association with the type and application of the synchronization source file, said first access monitoring unit refers to the information of the synchronous candidate directory list and the application monitoring information DB And counting the number of accesses to the file specified by the synchronization candidate directory list without counting access to the file that does not match the application and the type of the synchronization source file registered in the application monitoring information DB. 2. The computer system according to claim 1, wherein the number of accesses registered in the file access information DB is updated.
該第1のアプリケーションによるファイルへのアクセスを監視し、該第1の記憶装置に記憶されている複数の同期元ファイルの各々について、該同期元ファイルに対する該第1のアプリケーションからのアクセス数をカウントする第1のアクセス監視工程と、The access to the file by the first application is monitored, and the number of accesses from the first application to the synchronization source file is counted for each of the plurality of synchronization source files stored in the first storage device. A first access monitoring step to:
該第2のアプリケーションによるファイルへのアクセスを監視し、該記憶媒体内に格納されている複数の同期先ファイルの各々について、該同期先ファイルに対する該第2のアプリケーションからのアクセス数をカウントする第2のアクセス監視工程と、The access to the file by the second application is monitored, and for each of a plurality of synchronization destination files stored in the storage medium, the number of accesses from the second application to the synchronization destination file is counted. Two access monitoring processes;
第1のアクセス監視工程によってカウントされた各同期元ファイルに対するアクセス数と当該同期元ファイルのパス名とを対応付けて記憶する同期元ファイルアクセス情報DBと該第2のアクセス監視工程によってカウントされた各同期先ファイルに対するアクセス数と当該同期先ファイルのパス名とを対応付けて記憶する同期先ファイルアクセス情報DBとを用いて、同期元ファイルに対するアクセス数と当該同期元ファイルのパス名に対応するパス名を有する同期先ファイルに対するアクセス数とから、同期させるファイルを決定するための優先度である同期優先度を算出し、当該同期優先度に基づいて、同期対象となる同期元ファイルを該複数の同期元ファイルの中から選択する同期ファイル決定工程と、The synchronization source file access information DB that stores the number of accesses to each synchronization source file counted in the first access monitoring step and the path name of the synchronization source file in association with each other and the second access monitoring step. Corresponding to the number of accesses to the synchronization source file and the path name of the synchronization source file using the synchronization destination file access information DB that stores the number of accesses to each synchronization destination file and the path name of the synchronization destination file in association with each other A synchronization priority that is a priority for determining a file to be synchronized is calculated from the number of accesses to the synchronization destination file having the path name, and the plurality of synchronization source files to be synchronized are calculated based on the synchronization priority. A sync file determination process to select from among the sync source files of
該同期ファイル決定工程によって同期すべきと決定された同期元ファイルを該記憶媒体に同期させて記憶するように制御するファイル同期工程と、を有することを特徴とするファイル同期方法。And a file synchronization step for controlling the synchronization source file determined to be synchronized by the synchronization file determination step to be stored in synchronization with the storage medium.
該第1のアプリケーションによるファイルへのアクセスを監視し、該第1の記憶装置に記憶されている複数の同期元ファイルの各々について、該同期元ファイルに対する該第1のアプリケーションからのアクセス数をカウントする第1のアクセス監視ステップと、The access to the file by the first application is monitored, and the number of accesses from the first application to the synchronization source file is counted for each of the plurality of synchronization source files stored in the first storage device. A first access monitoring step to:
第1のアクセス監視工程によってカウントされた各同期元ファイルに対するアクセス数と当該同期元ファイルのパス名とを対応付けて記憶する同期元ファイルアクセス情報DBと該第2のアプリケーションによるファイルへのアクセスを監視し、該記憶媒体内に格納されている複数の同期先ファイルの各々について、該同期先ファイルに対する該第2のアプリケーションからのアクセス数をカウントする第2のアクセス監視手段によってカウントされた各同期先ファイルに対するアクセス数と当該同期先ファイルのパス名とを対応付けて記憶する同期先ファイルアクセス情報DBとを用いて、同期元ファイルに対するアクセス数と当該同期元ファイルのパス名に対応するパス名を有する同期先ファイルに対するアクセス数とから、同期させるファイルを決定するための優先度である同期優先度を算出し、当該同期優先度に基づいて、同期対象となる同期元ファイルを該複数の同期元ファイルの中から選択する同期ファイル決定ステップと、The synchronization source file access information DB that stores the number of accesses to each synchronization source file counted in the first access monitoring step and the path name of the synchronization source file in association with each other, and access to the file by the second application Each synchronization counted by the second access monitoring means for monitoring and counting the number of accesses from the second application to the synchronization destination file for each of the plurality of synchronization destination files stored in the storage medium Using the synchronization destination file access information DB that stores the number of accesses to the destination file and the path name of the synchronization destination file in association with each other, the number of accesses to the synchronization source file and the path name corresponding to the path name of the synchronization source file Synchronize from the number of accesses to the synchronization destination file with Calculates a synchronization priority with the priority for determining Airu, based on the synchronization priority, a synchronization file determination step of selecting the synchronization source file to be synchronized from among the plurality of synchronization source file,
該同期ファイル決定ステップによって同期すべきと決定された同期元ファイルを該記憶媒体に同期させて記憶するように制御するファイル同期ステップと、を実行させることを特徴とする該第1のCPUで実行されるプログラム。A file synchronization step for controlling the synchronization source file determined to be synchronized by the synchronization file determination step to be stored in synchronization with the storage medium, and executed by the first CPU Program.
該同期元ファイルアクセスDBは、該第1のアプリケーションからのアクセス数を、該同期元ファイルごと、および所定の区切られた期間ごとに記憶し、該第1のアプリケーションによって前回カウントされた際の該第1のアプリケーションが該同期元ファイルにアクセスしたことを示す第1のウィンドウIDを該同期元ファイルに対応付けて記憶し、The synchronization source file access DB stores the number of accesses from the first application for each synchronization source file and for each predetermined divided period, and the count when the previous count was performed by the first application. Storing a first window ID indicating that the first application has accessed the synchronization source file in association with the synchronization source file;
該第1のアクセス監視工程において、該第1のCPUは、該第1のアプリケーションが該同期元ファイルにアクセスするのを検知し、該同期元ファイルが該カウント対象リストに指定されているか確認する第1の確認工程と、In the first access monitoring step, the first CPU detects that the first application accesses the synchronization source file, and checks whether the synchronization source file is specified in the count target list. A first confirmation step;
該第1の確認工程で該同期元ファイルが該カウント対象リストに指定されていることが確認されれば、該同期元ファイルのファイル種別と該第1のアプリケーションとの組み合わせが該同期元ファイルアクセスDBに記憶されているか確認する第2の確認工程と、If it is confirmed in the first confirmation step that the synchronization source file is specified in the count target list, a combination of the file type of the synchronization source file and the first application is the synchronization source file access. A second confirmation step for confirming whether the information is stored in the DB;
該第2の確認工程で該組み合わせが該同期元ファイルアクセスDBに記憶されていることが確認されれば、該同期元ファイルアクセスDBの該同期元ファイルに対応する第1のウィンドウIDが記憶されていないか確認する第3の確認工程と、If it is confirmed in the second confirmation step that the combination is stored in the synchronization source file access DB, a first window ID corresponding to the synchronization source file in the synchronization source file access DB is stored. A third confirmation process for confirming whether or not
該第3の確認工程で該同期元ファイルに対応する第1のウィンドウIDが記憶されていないことが確認されれば、該同期元ファイルアクセスDBの該同期元ファイルに対応する第1のウィンドウIDを該同期元ファイルアクセスDBに記憶させる第1の記憶工程と、If it is confirmed in the third checking step that the first window ID corresponding to the synchronization source file is not stored, the first window ID corresponding to the synchronization source file in the synchronization source file access DB A first storage step of storing the file in the synchronization source file access DB;
該同期元ファイルアクセスDBに記憶させた該第1のウィンドウIDに対応する同期元ファイルに対する該第1のアプリケーションからのアクセス数をインクリメントする第1アクセス監視工程と、A first access monitoring step of incrementing the number of accesses from the first application for the synchronization source file corresponding to the first window ID stored in the synchronization source file access DB;
を行なうことを特徴とする請求項6に記載のファイル同期方法。The file synchronization method according to claim 6, wherein:
該第2のアクセス監視工程において、該第2のCPUは、該第2のアプリケーションが該同期先ファイルにアクセスするのを検知し、該記憶媒体にあらかじめ記憶され、ファイルの同期先を示す同期先情報に該同期先ファイルが指定されているか確認する第4の確認工程と、In the second access monitoring step, the second CPU detects that the second application accesses the synchronization destination file, and is stored in advance in the storage medium and indicates the synchronization destination of the file. A fourth confirmation step for confirming whether the synchronization destination file is specified in the information;
該第4の確認工程で該同期先情報に該同期先ファイルが指定されていることが確認されれば、該同期先ファイルのファイル種別と該第2のアプリケーションとの組み合わせが該同期先ファイルアクセスDBに記憶されているか確認する第5の確認工程と、If it is confirmed in the fourth confirmation step that the synchronization destination file is designated in the synchronization destination information, the combination of the file type of the synchronization destination file and the second application is the synchronization destination file access. A fifth confirmation step for confirming whether the data is stored in the DB;
該第5の確認工程で組み合わせが該同期先ファイルアクセスDBに記憶されていることが確認されれば、該同期先ファイルアクセスDBの該同期先ファイルに対応する第2のウィンドウIDが記憶されていないか確認する第6の確認工程と、If it is confirmed in the fifth confirmation step that the combination is stored in the synchronization destination file access DB, the second window ID corresponding to the synchronization destination file in the synchronization destination file access DB is stored. A sixth confirmation step for confirming whether there is any;
該第6の確認工程で該同期先ファイルに対応する第2のウィンドウIDが記憶されていないことが確認されれば、該同期先ファイルアクセスDBの該同期先ファイルに対応する第2のウィンドウIDを該同期先ファイルアクセスDBに記憶させる第2の記憶工程と、If it is confirmed in the sixth confirmation step that the second window ID corresponding to the synchronization destination file is not stored, the second window ID corresponding to the synchronization destination file in the synchronization destination file access DB A second storage step of storing the file in the synchronization destination file access DB;
該同期先ファイルアクセスDBに記憶させた該第2のウィンドウIDに対応する同期先ファイルに対する該第2のアプリケーションからのアクセス数をインクリメントする第2アクセス監視工程と、A second access monitoring step of incrementing the number of accesses from the second application for the synchronization destination file corresponding to the second window ID stored in the synchronization destination file access DB;
を行なうことを特徴とする請求項6または8に記載のファイル同期方法。The file synchronization method according to claim 6 or 8, wherein:
該同期元ファイルアクセスDBは、該第1のアプリケーションからのアクセス数を、該同期元ファイルごと、および所定の区切られた期間ごとに記憶し、該同期優先度と、ファイルを同期させるべきか否かを示す同期要否指標とを該同期元ファイルに対応付けて記憶し、The synchronization source file access DB stores the number of accesses from the first application for each synchronization source file and for each predetermined period, and whether or not the synchronization priority should be synchronized with the file. And a synchronization necessity index indicating that is stored in association with the synchronization source file,
該同期先ファイルアクセスDBは、該第2のアプリケーションからのアクセス数を、該同期先ファイルごと、および所定の区切られた期間ごとに記憶し、The synchronization destination file access DB stores the number of accesses from the second application for each synchronization destination file and for each predetermined period,
該同期ファイル決定工程において、該同期元ファイルごとおよび該期間ごとの該第1のアプリケーションからのアクセス数に該同期元指標を乗じた第1の値と、該同期先ファイルごとおよび該期間ごとの該第2のアプリケーションからのアクセス数に該同期先指標を乗じた第2の値とを算出し、算出した該第1の値と該第2の値の和を求めることにより、該同期優先度を算出する算出工程と、In the synchronization file determination step, a first value obtained by multiplying the number of accesses from the first application for each synchronization source file and each period by the synchronization source index, and each synchronization destination file and each period By calculating a second value obtained by multiplying the number of accesses from the second application by the synchronization destination index, and calculating the sum of the calculated first value and the second value, the synchronization priority A calculation step of calculating
該算出工程において算出された該同期優先度を該同期元ファイルアクセスDBの該同期元ファイルに対応する同期優先度として記憶させる第3の記憶工程と、A third storage step of storing the synchronization priority calculated in the calculation step as a synchronization priority corresponding to the synchronization source file of the synchronization source file access DB;
該同期元ファイルアクセスDBに記憶された同期優先度のうち値の高い同期優先度の同期元ファイルに対応する同期要否指標から順に該同期要否指標にファイルを同期させるべきである旨を、該同期要否指標に対応する同期元ファイルの総量が該総量リストに示された最大量を超えるまで記憶させる第4の記憶工程と、The fact that the files should be synchronized with the synchronization necessity index in order from the synchronization necessity index corresponding to the synchronization source file having the higher synchronization priority value among the synchronization priorities stored in the synchronization source file access DB, A fourth storage step of storing until the total amount of synchronization source files corresponding to the synchronization necessity index exceeds the maximum amount shown in the total amount list;
を行うことを特徴とする請求項6、8、9のいずれか1項に記載のファイル同期方法。The file synchronization method according to claim 6, wherein the file synchronization method is performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005279280A JP4690839B2 (en) | 2005-09-27 | 2005-09-27 | File synchronization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005279280A JP4690839B2 (en) | 2005-09-27 | 2005-09-27 | File synchronization method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007094477A JP2007094477A (en) | 2007-04-12 |
JP4690839B2 true JP4690839B2 (en) | 2011-06-01 |
Family
ID=37980174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005279280A Expired - Fee Related JP4690839B2 (en) | 2005-09-27 | 2005-09-27 | File synchronization method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4690839B2 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5358920B2 (en) * | 2007-10-01 | 2013-12-04 | 富士ゼロックス株式会社 | Write control system |
JP5783301B1 (en) | 2014-06-11 | 2015-09-24 | 富士ゼロックス株式会社 | Communication terminal, communication system, and program |
JP6035363B2 (en) * | 2015-02-26 | 2016-11-30 | 株式会社日立製作所 | Management computer, computer system, and management method |
JP6767662B2 (en) | 2017-02-14 | 2020-10-14 | 株式会社バッファロー | Storage device, file replication system, file replication method, and computer program |
JP7114877B2 (en) * | 2017-10-25 | 2022-08-09 | 富士フイルムビジネスイノベーション株式会社 | Synchronization processor, file synchronization system and program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002014860A (en) * | 2000-06-28 | 2002-01-18 | Hitachi Ltd | Method for synchronizing plural data base |
JP2005130009A (en) * | 2003-10-21 | 2005-05-19 | Suntacs Co Ltd | Address book synchronizing method |
-
2005
- 2005-09-27 JP JP2005279280A patent/JP4690839B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002014860A (en) * | 2000-06-28 | 2002-01-18 | Hitachi Ltd | Method for synchronizing plural data base |
JP2005130009A (en) * | 2003-10-21 | 2005-05-19 | Suntacs Co Ltd | Address book synchronizing method |
Also Published As
Publication number | Publication date |
---|---|
JP2007094477A (en) | 2007-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4416821B2 (en) | A distributed file system that maintains a fileset namespace accessible to clients over the network | |
KR101137101B1 (en) | Cross-pollination of multiple sync sources | |
US7685177B1 (en) | Detecting and managing orphan files between primary and secondary data stores | |
US10191856B2 (en) | Method of managing web browser cache size using logical relationships and clustering | |
CN102667772B (en) | File level hierarchical storage management system, method, and apparatus | |
US8176061B2 (en) | Tracking digital assets on a distributed network | |
US9916390B2 (en) | Managing web browser cache for offline browsing | |
US9235589B2 (en) | Optimizing storage allocation in a virtual desktop environment | |
US8935473B2 (en) | System and method for a portable memory device to access and acquire additional memory from a remote location | |
US9317275B2 (en) | Computer system and program restoring method thereof | |
US20090150569A1 (en) | Synchronization system and method for mobile devices | |
US20090177721A1 (en) | Management of quality of services in storage systems | |
US20090282169A1 (en) | Synchronization programs and methods for networked and mobile devices | |
JP2005346717A (en) | Method, system and device for detecting and connecting data source | |
KR20070122274A (en) | Method and apparatus for managing file for portable device | |
JP4690839B2 (en) | File synchronization method | |
JP2011191862A (en) | File management apparatus, file management system, and file management program | |
KR101624005B1 (en) | Controlling access to software component state | |
US20110307525A1 (en) | Virtual storage device | |
US10389743B1 (en) | Tracking of software executables that come from untrusted locations | |
US20220129419A1 (en) | Method and apparatus for providing metadata sharing service | |
KR102214697B1 (en) | A computer program for providing space managrment for data storage in a database management system | |
JP6349682B2 (en) | Information management program, apparatus, and method | |
KR102227113B1 (en) | A file processing apparatus based on a shared file system | |
US20100036844A1 (en) | System and method of using conflicts to maximize concurrency in a database |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20071023 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100714 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100727 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100927 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101109 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110111 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110201 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110218 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140225 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |