JP6597315B2 - File synchronization system, terminal device, file synchronization method, and file synchronization program - Google Patents
File synchronization system, terminal device, file synchronization method, and file synchronization program Download PDFInfo
- Publication number
- JP6597315B2 JP6597315B2 JP2016000550A JP2016000550A JP6597315B2 JP 6597315 B2 JP6597315 B2 JP 6597315B2 JP 2016000550 A JP2016000550 A JP 2016000550A JP 2016000550 A JP2016000550 A JP 2016000550A JP 6597315 B2 JP6597315 B2 JP 6597315B2
- Authority
- JP
- Japan
- Prior art keywords
- file
- nas
- unit
- synchronization
- stored
- 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.)
- Active
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Description
本発明は、ファイル同期システム、端末装置、ファイル同期方法、及び、ファイル同期プログラムに関する。 The present invention relates to a file synchronization system, a terminal device, a file synchronization method, and a file synchronization program.
スマートフォンやタブレット端末等の普及に伴い、インターネットを利用してストレージサービスを提供するサービスプロバイダが増えている。このストレージサービスは、ユーザによって予め登録されたアカウント情報を用いてユーザ認証を行うことで、ユーザ毎に確保された記憶領域の利用が可能となるウェブサービスである。特許文献1及び特許文献2には、このようなストレージサービスを利用したシステムが記載されている。
With the spread of smartphones and tablet terminals, service providers that provide storage services using the Internet are increasing. This storage service is a web service that enables the use of a storage area reserved for each user by performing user authentication using account information registered in advance by the user.
特許文献1には、文書ファイル、音ファイル、画像ファイル、又は、動画ファイル等の各種ファイルを記憶するための記憶装置としての2つのNAS(Network Attached Storage)と、DDNS(Dynamic Domain Name System)サービスを提供するDDNSサーバと、ストレージサービスを提供するサービスサーバとがインターネットを介して接続されたシステムが記載されている。
特許文献1に記載されたシステムでは、DDNSサーバを利用して2つのNAS間で通信を行ってNAS間でのファイルの同期の準備が行われる。具体的には、DDNSサーバは、2つのNASの一方からIPアドレス等の通知を受けると、2つのNASの他方に対してこのIPアドレスを通知する。そして、このIPアドレスを利用して2つのNAS間での直接通信によって、ファイル同期の準備が行われる。
In the system described in
この準備の完了後は、2つのNASの一方に記憶されたファイルがサービスサーバに記憶され、サービスサーバに記憶されたこのファイルが2つのNASの他方により取得されて記憶されることで、ファイルの同期が行われる。 After completion of this preparation, the file stored in one of the two NASs is stored in the service server, and this file stored in the service server is acquired and stored by the other of the two NASs. Synchronization is done.
特許文献2には、複数の端末装置と、ストレージサービスを提供するサービスサーバとがインターネットを介して接続されたシステムが記載されている。 Patent Document 2 describes a system in which a plurality of terminal devices and a service server that provides a storage service are connected via the Internet.
特許文献2に記載されたシステムでは、各端末装置とサービスサーバにそれぞれ同期記憶領域が設けられており、任意の端末装置の同期記憶領域に記憶されているファイルが変更されると、この変更に同期してサービスサーバの同期記憶領域のファイルが変更される。そして、このサービスサーバのファイルの変更に同期して、他の端末装置の同期記憶領域のファイルが変更される。 In the system described in Patent Document 2, each terminal device and the service server are provided with a synchronous storage area. When a file stored in the synchronous storage area of an arbitrary terminal device is changed, the change is made. Synchronously, the file in the synchronous storage area of the service server is changed. Then, in synchronization with the change of the file of the service server, the file of the synchronous storage area of the other terminal device is changed.
特許文献1及び2に記載されたシステムのように、ストレージサービスを利用することで、企業や学校等のグループで複数のNASを運用し、この複数のNASを遠隔地に配置する場合であっても、複数のNAS間でのデータ同期やデータのバックアップを容易に実現することが可能である。
As in the systems described in
しかし、特許文献2のように、各端末装置がサービスサーバに記憶されているファイルと同期をとる方法では、サービスサーバに記憶されているファイルが悪意ある者によって改ざんされた場合等に、各端末装置に意図しないファイルが記憶される恐れがある。 However, in the method in which each terminal device synchronizes with the file stored in the service server as in Patent Document 2, when the file stored in the service server is falsified by a malicious person, each terminal device An unintended file may be stored in the device.
このような事態を避けるためには、特許文献1のように、端末装置間でファイルの同期について事前に合意を形成した上でファイルの同期を行うのが有効である。しかし、特許文献1に記載されたシステムは、端末装置間で直接通信を行うためにDDNSサーバが必要であり、システム全体のコストが増大する。
In order to avoid such a situation, as in
本発明は、上記事情に鑑みてなされたものであり、複数の端末装置間でのファイル同期を低コストかつ安全に実現することのできるファイル同期システム、端末装置、ファイル同期方法、及び、ファイル同期プログラムを提供することを目的とする。 The present invention has been made in view of the above circumstances, and a file synchronization system, a terminal device, a file synchronization method, and a file synchronization that can realize file synchronization between a plurality of terminal devices at low cost and safely. The purpose is to provide a program.
本発明のファイル同期システムは、同期対象ファイルが記憶される第一の記憶部を有する第一の端末装置と、第二の記憶部を有する第二の端末装置と、第一のネットワークを介して前記第一の端末装置及び前記第二の端末装置と通信可能に構成されると共に、前記第一の端末装置及び前記第二の端末装置に対して割り当てられた記憶領域を含むサービス提供装置と、を備えるファイル同期システムであって、前記第一の端末装置は、前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、前記サービス提供装置の前記記憶領域に記憶させる制御を行うアップロード部を備え、前記第二の端末装置は、前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得するダウンロード部と、前記ダウンロード部により取得された前記ファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第二の記憶部に記憶させる記憶制御部と、を備えるものである。 The file synchronization system of the present invention includes a first terminal device having a first storage unit in which a synchronization target file is stored, a second terminal device having a second storage unit, and a first network. A service providing device configured to be communicable with the first terminal device and the second terminal device, and including a storage area allocated to the first terminal device and the second terminal device; The first terminal apparatus performs control for storing a transmission file including the synchronization target file and predetermined identification information in the storage area of the service providing apparatus. The second terminal device receives a file stored in the storage area of the service providing device by a device other than the own device from the service providing device. And a storage control unit that, when the file acquired by the download unit is the transmission file, stores a synchronization target file included in the transmission file in the second storage unit. It is.
本発明の端末装置は、同期対象ファイルが記憶される第一の記憶部を有する端末装置であって、前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、第一のネットワークを介して複数の前記端末装置と通信可能に構成されると共に前記複数の端末装置に対して割り当てられた記憶領域を含むサービス提供装置の前記記憶領域に記憶させる制御を行うアップロード部と、前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得するダウンロード部と、前記ダウンロード部により取得されたファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第一の記憶部に記憶するための処理を行う同期処理部と、を備えるものである。 The terminal device of the present invention is a terminal device having a first storage unit in which a synchronization target file is stored, and a transmission file including the synchronization target file and predetermined identification information An upload unit configured to be communicable with a plurality of the terminal devices via a network and performing control to be stored in the storage area of a service providing apparatus including a storage area allocated to the plurality of terminal apparatuses; A download unit that acquires a file stored in the storage area of the service providing device by a device other than its own device from the service providing device, and when the file acquired by the download unit is the transmission file, the transmission file A synchronization processing unit that performs processing for storing the synchronization target file included in the first storage unit Than is.
本発明のファイル同期方法は、同期対象ファイルが記憶される第一の記憶部を有する端末装置が、前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、第一のネットワークを介して複数の前記端末装置と通信可能に構成されると共に前記複数の端末装置に対して割り当てられた記憶領域を含むサービス提供装置の前記記憶領域に記憶させる制御を行い、前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得し、前記取得したファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第一の記憶部に記憶するための処理を行うものである。 In the file synchronization method of the present invention, a terminal device having a first storage unit in which a synchronization target file is stored stores a transmission file including the synchronization target file and predetermined identification information on a first network. And is configured to be communicable with a plurality of the terminal devices via the network, and to store in the storage area of the service providing apparatus including a storage area allocated to the plurality of terminal apparatuses. When a file stored in the storage area by a device other than its own device is acquired from the service providing device, and the acquired file is the transmission file, the synchronization target file included in the transmission file is the first file Processing for storing in the storage unit is performed.
本発明のファイル同期プログラムは、同期対象ファイルが記憶される第一の記憶部を有する端末装置に、前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、第一のネットワークを介して複数の前記端末装置と通信可能に構成されると共に前記複数の端末装置に割り当てられた記憶領域を含むサービス提供装置の前記記憶領域に記憶させる制御を行うアップロードステップと、前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得するダウンロードステップと、前記ダウンロードステップにより取得されたファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第一の記憶部に記憶するための処理を行う同期処理ステップと、を実行させるためのものである。 The file synchronization program of the present invention provides a terminal device having a first storage unit in which a synchronization target file is stored, a transmission file including the synchronization target file and predetermined identification information, a first network An upload step for performing control to store in the storage area of a service providing apparatus including a storage area allocated to the plurality of terminal apparatuses and configured to be communicable with the plurality of terminal apparatuses via the network; and A download step for acquiring a file stored in the storage area of the device other than its own device from the service providing device, and when the file acquired by the download step is the transmission file, the file is included in the transmission file A process for storing the synchronization target file in the first storage unit. A processing step is for to run.
本発明によれば、複数の端末装置間でのファイル同期を低コストかつ安全に実現することのできるファイル同期システム、端末装置、ファイル同期方法、及び、ファイル同期プログラムを提供することができる。 According to the present invention, it is possible to provide a file synchronization system, a terminal device, a file synchronization method, and a file synchronization program that can realize file synchronization among a plurality of terminal devices at low cost and safely.
以下、本発明の実施形態について図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.
図1は、本発明の一実施形態であるファイル同期システム100の概略構成を示す図である。
FIG. 1 is a diagram showing a schematic configuration of a
ファイル同期システム100は、第一の情報機器1A、第二の情報機器1Bと、第一の端末装置又は端末装置を構成する第一のNAS2Aと、第二の端末装置又は端末装置を構成する第二のNAS2Bと、第一のルータ5Aと、第二のルータ5Bと、ファイル記憶を行うためのウェブサービスを提供するサービスプロバイダの運営するサービス提供装置7と、を備える。ファイル同期システム100においては、第一のNAS2Aと第二のNAS2Bは同一の管理者によって管理されている。
The
第一の情報機器1A及び第一のNAS2Aは、企業、学校、又は、個人宅内等で使用される第一のLAN(Local Area Network)3に接続されており、第一のLAN3を介して相互に通信を行うことができる。第一のLAN3は、第二のネットワークを構成する。
The
第一のLAN3は、第一のルータ5Aを介してインターネット6に接続されている。これにより、第一の情報機器1A及び第一のNAS2Aは、それぞれ第一のネットワークを構成するインターネット6に接続可能となっている。
The first LAN 3 is connected to the Internet 6 via the
第一の情報機器1Aは、ネットワーク通信を行うためのネットワーク通信機能と、表示部と、キーボード、マウス、又は、タッチパネル等の操作インタフェース(I/F)と、を有する電子機器である。第一の情報機器1Aは、例えばパーソナルコンピュータ、タブレット端末、又は、スマートフォン等が用いられる。
The
第一の情報機器1Aは、第一のNAS2Aに対して予め登録されており、第一のLAN3を介して、第一のNAS2Aに記憶されているファイルの編集、第一のNAS2Aへのファイルの記憶、及び、第一のNAS2Aからのファイルの読み出しを行うことができる。
The
第一の情報機器1Aのユーザ名及びパスワード等の登録情報は、第一の情報機器1Aから第一のNAS2Aに対して登録作業を行うことで登録される。又は、この登録情報は、第一のLAN3に接続された認証用サーバに予め登録される。この場合、第一の情報機器1Aから第一のNAS2Aにアクセスがあると、第一のNAS2Aがこの認証用サーバから第一の情報機器1Aの登録情報を取得することで、第一の情報機器1Aの認証を行う。
Registration information such as the user name and password of the
第一のNAS2Aは、ファイルの記憶及び管理に特化したファイルサーバであり、ファイル管理を行うためのファイルシステムと、ネットワーク通信を行うためのネットワーク通信機能と、を備える。 The first NAS 2A is a file server specialized for file storage and management, and includes a file system for performing file management and a network communication function for performing network communication.
第一のNAS2Aには、複数の第一の情報機器1Aが登録され、この複数の第一の情報機器1Aの各々によってファイルの記憶、編集、及び、読出しが行われる場合もある。
A plurality of
第二の情報機器1B及び第二のNAS2Bは、第一のLAN3とは異なる第二のLAN4に接続されており、第二のLAN4を介して相互に通信を行うことができる。第二のLAN4は、第一のLAN3と同一のネットワークであってもよい。第二のLAN4は、第二のネットワークを構成する。
The
第二のLAN4は、第二のルータ5Bを介してインターネット6に接続されている。これにより、第二の情報機器1B及び第二のNAS2Bは、それぞれ第一のネットワークを構成するインターネット6に接続可能となっている。
The
第二の情報機器1Bは、ネットワーク通信を行うためのネットワーク通信機能と、表示部と、キーボード、マウス、又は、タッチパネル等の操作インタフェース(I/F)と、を有する電子機器である。第二の情報機器1Bは、例えばパーソナルコンピュータ、タブレット端末、又は、スマートフォン等が用いられる。
The
第二の情報機器1Bは、第二のNAS2Bに対して予め登録されており、第二のLAN4を介して、第二のNAS2Bに記憶されているファイルの編集、第二のNAS2Bへのファイルの記憶、及び、第二のNAS2Bからのファイルの読み出しを行うことができる。
The
第二の情報機器1Bのユーザ名及びパスワード等の登録情報は、第二の情報機器1Bから第二のNAS2Bに対して登録作業を行うことで登録される。又は、この登録情報は、第二のLAN4に接続された認証用サーバに予め登録される。この場合、第二の情報機器1Bから第二のNAS2Bにアクセスがあると、第二のNAS2Bがこの認証用サーバから第二の情報機器1Bの登録情報を取得することで、第二の情報機器1Bの認証を行う。
Registration information such as the user name and password of the
第二のNAS2Bは、ファイルの記憶及び管理に特化したファイルサーバであり、ファイル管理を行うためのファイルシステムと、ネットワーク通信を行うためのネットワーク通信機能と、を備える。
The
第二のNAS2Bには、複数の第二の情報機器1Bが登録され、この複数の第二の情報機器1Bの各々によってファイルの記憶、編集、及び、読出しが行われる場合もある。
A plurality of
サービス提供装置7は、インターネット6に接続されており、ハードディスクドライブ又はソリッドステートドライブ等の第三の記憶部を有する1又は複数のファイルサーバにより構成される。
The service providing device 7 is connected to the
サービス提供装置7によって提供されるサービスは、予め登録されたユーザがインターネット6を介してこれら第三の記憶部にファイルを記憶することのできるウェブサービスである。
The service provided by the service providing apparatus 7 is a web service in which a user registered in advance can store a file in these third storage units via the
サービス提供装置7は、第一のNAS2A及び第二のNAS2Bの管理者がウェブサービスにユーザ名及びパスワード等により識別されるアカウントを登録(以下、ユーザ登録という)することにより、当該管理者が利用可能な記憶領域を管理者に対して提供する。ファイル同期システム100では、第一のNAS2A及び第二のNAS2Bの管理者が、上記のウェブサービスにユーザ登録済みであるものとする。
The service providing apparatus 7 is used by the administrator of the
つまり、第一のNAS2A及び第二のNAS2Bは、インターネット6を介してサービス提供装置7にアクセスし、サービス提供装置7において第一のNAS2A及び第二のNAS2Bに対して割り当てられている記憶領域(以下、NAS用記憶領域という)にファイルを記憶させることができるようになっている。
That is, the
図2は、図1に示すファイル同期システム100における第一の情報機器1Aの内部構成例を示す図である。
FIG. 2 is a diagram showing an internal configuration example of the
第一の情報機器1Aは、CPU(Central Processing Unit)20、ROM(Read Only Memory)21、RAM(Random Access Memory)22、液晶ドライバ230、液晶パネル231、LANモジュール240、キーボード、マウス、又は、液晶パネル231と一体化されたタッチパネル等の操作インタフェース(I/F)260、内部ストレージ部27、USB(Universal Serial Bus)コントローラ280、及び、USBコネクタ281を備える。
The
CPU20、ROM21、RAM22、液晶ドライバ230、LANモジュール240、操作インタフェース260、内部ストレージ部27、及び、USBコントローラ280は、それぞれ共通のバスにより接続されている。
The
CPU20は、ROM21内に記憶されたファームウェア等のプログラムがRAM22において展開された後で実行されることで、第一の情報機器1A全体の動作制御を行う。
The
ROM21には、上述のファームウェア等のプログラムと各種設定データが記憶されている。RAM22は、第一の情報機器1Aのワークメモリとして動作し、各種プログラム及びデータが一時的に記憶される。
The
液晶パネル231は、画像を表示するための表示部である。液晶ドライバ230は、表示画面を構成するデータがCPU20から供給されると、液晶パネル231の表示領域に所望の表示画面を表示するように、この液晶パネル231を駆動する。
The
LANモジュール240は、第一のLAN3との間で無線又は有線により通信するためのモジュールである。LANモジュール240は、例えばIEEE(The Institute of Electrical andElectronics Engineers)802.11規格に準拠して無線通信を行うものが用いられる。又は、LANモジュール240は、1000BASE−T、100BASE−TX、又は、10BASE−T等の規格に準拠して有線通信を行うものが用いられる。
The
内部ストレージ部27は、内部ストレージ270と内部ストレージインタフェース(I/F)271とを備える。内部ストレージ270は、例えばフラッシュメモリのような不揮発性半導体メモリ又はハードディスクドライブであり、第一の情報機器1Aにおいて用いられるアプリケーションプログラム、文書ファイル、音ファイル、画像ファイル、又は、動画ファイル等の各種ファイルが記憶される。
The
内部ストレージインタフェース271は、内部ストレージ270に対するデータの読み出し又は書き込み指令があった場合に、内部ストレージ270全体の制御を行うと共に、データの読み出し又は書き込み制御を行い、読み出されたデータを出力する。
The
なお、内部ストレージ270は挿脱可能な不揮発性メモリカードであってもよい。この場合、内部ストレージインタフェース271は、このメモリカードが装着されるメモリカードスロットをさらに備える。
The
USBコントローラ280は、例えばUSB2.0又はUSB3.0規格に沿って、USBコネクタ281を介して接続されたUSBデバイスとの間でデータの送受信を行う。USBコネクタ281は、いわゆるメス型USBコネクタ(USBレセプタクル)であって、不図示のUSBケーブルのオス型USBコネクタ(USBプラグ)が挿入可能に構成されている。
The
図3は、図1に示すファイル同期システム100における第二の情報機器1Bの内部構成例を示す図である。図3は、LANモジュール240をLANモジュール240Aに変更した点を除いては図2と同様であるため、LANモジュール240Aについてのみ説明する。
FIG. 3 is a diagram showing an internal configuration example of the
LANモジュール240Aは、第二のLAN4との間で無線又は有線により通信するためのモジュールである。LANモジュール240Aとしては、LANモジュール240と同じものを用いることができる。
The
図4は、図1に示すファイル同期システム100における第一のNAS2Aの内部構成例を示す図である。
FIG. 4 is a diagram showing an internal configuration example of the
第一のNAS2Aは、CPU30、ROM31、RAM32、HDD部33、有線LANモジュール34、USBコントローラ350、及び、USBコネクタ351を備える。
The
CPU30、ROM31、RAM32、HDD部33、有線LANモジュール34、及び、USBコントローラ350は、それぞれ共通のバスにより接続されている。
The
CPU30は、ROM31内に記憶されたファームウェア等のプログラムがRAM32において展開された後で実行されることで、第一のNAS2A全体の動作制御を行う。
The
ROM31には、上述のファームウェア等のプログラムが記憶されている。RAM32は、第一のNAS2Aのワークメモリとして動作し、各種プログラム及びデータが一時的に記憶される。
The
HDD部33は、HDD330とHDDインタフェース(I/F)331とを備える。HDD330は、記憶媒体であるディスクと、このディスクの回転を行う回転部と、ディスクに対してデータの読み出し及び書き込みを行うヘッド部とを備える(いずれも不図示)。
The
HDDインタフェース331は、HDD330に対するデータの読み出し又は書き込み指令があった場合に、HDD330全体の制御を行うと共に、データの読み出し又は書き込み制御を行い、読み出されたデータを出力する。
The
HDD330にはアプリケーションプログラムの他、第一のNAS2Aに対して登録されている第一の情報機器1Aから送信されてきたアプリケーションプログラム、文書ファイル、音ファイル、画像ファイル、又は、動画ファイル等の各種ファイルが適宜記憶されている。HDD330は、第一の記憶部又は第二の記憶部を構成する。
In addition to the application program, the
HDD330には、上述した各種ファイルが記憶される領域を示すフォルダとして、フォルダAと、フォルダBと、フォルダCが形成されている。
In the
有線LANモジュール34は、例えばIEEE802.3規格に準拠して、第一のルータ5Aとの間で有線による通信を行う。有線LANモジュール34の代わりに、例えばIEEE802.11規格に準拠して第一のルータ5Aとの間で無線による通信を行うモジュールを用いてもよい。
The wired LAN module 34 performs wired communication with the
USBコントローラ350は、例えばUSB2.0又はUSB3.0規格に沿って、USBコネクタ351を介して接続されたUSBデバイスとの間でデータの送受信を行う。USBコネクタ351は、いわゆるメス型USBコネクタ(USBレセプタクル)であって、USBケーブルのオス型USBコネクタ(USBプラグ)が挿入可能に構成されている。
The
図5は、図1に示すファイル同期システム100における第二のNAS2Bの内部構成例を示す図である。図5は、有線LANモジュール34を有線LANモジュール34Aに変更した点を除いては図4と同様であるため、有線LANモジュール34Aについてのみ説明する。
FIG. 5 is a diagram showing an internal configuration example of the
有線LANモジュール34Aは、例えばIEEE802.3規格に準拠して、第二のルータ5Bとの間で有線による通信を行う。有線LANモジュール34Aの代わりに、例えばIEEE802.11規格に準拠して第二のルータ5Bとの間で無線による通信を行うモジュールを用いてもよい。
The wired
第一のNAS2AのHDD330に形成されているフォルダAは、第一の情報機器1Aからのファイルの記憶及び編集が可能なフォルダである。
The folder A formed in the
第一のNAS2AのHDD330に形成されているフォルダBは、第一の情報機器1Aからのアクセスが制限されているフォルダであり、第二のNAS2BのHDD330のフォルダBとの同期がなされるフォルダである。
The folder B formed in the
第一のNAS2AのHDD330に形成されているフォルダCは、第一の情報機器1Aによるファイルの記憶及び編集が可能であり、かつ、第二のNAS2BのHDD330のフォルダCとの同期がなされるフォルダである。
The folder C formed in the
第二のNAS2BのHDD330に形成されているフォルダAは、第二の情報機器1Bからのアクセスが制限されているフォルダであり、第一のNAS2AのHDD330のフォルダAとの同期がなされるフォルダである。
The folder A formed in the
第二のNAS2BのHDD330に形成されているフォルダBは、第二の情報機器1Bからのファイルの記憶及び編集が可能なフォルダである。
A folder B formed in the
第二のNAS2BのHDD330に形成されているフォルダCは、第二の情報機器1Bによるファイルの記憶及び編集が可能であり、かつ、第一のNAS2AのHDD330のフォルダCとの同期がなされるフォルダである。
The folder C formed in the
ここで、フォルダへのアクセス制限とは、フォルダ及びフォルダに記憶されているファイルへのアクセスそのものが不可能な状態に設定されている状態、又は、当該ファイルの閲覧は可能だが、当該ファイルの編集又は新規のファイルの追加をすることが制限されている状態をいう。このアクセス制限は、第一のNAS2A及び第二のNAS2Bの管理者により、フォルダ毎又はファイル毎に任意に設定可能である。
Here, the access restriction to a folder is a state in which access to the folder and the file stored in the folder itself is impossible, or the file can be viewed but the file cannot be edited. Or, a state where the addition of a new file is restricted. This access restriction can be arbitrarily set for each folder or each file by the administrator of the
図6は、図1に示すファイル同期システム100におけるサービス提供装置7の内部構成例を示す図である。
FIG. 6 is a diagram showing an internal configuration example of the service providing apparatus 7 in the
サービス提供装置7は、CPU70、ROM71、RAM72、HDD部73、有線LANモジュール74、USBコントローラ750、及び、USBコネクタ751を備える。
The service providing apparatus 7 includes a
CPU70、ROM71、RAM72、HDD部73、有線LANモジュール74、及び、USBコントローラ750は、それぞれ共通のバスにより接続されている。
The
CPU70は、ROM71内に記憶されたファームウェア等のプログラムがRAM72において展開された後で実行されることで、サービス提供装置7全体の動作制御を行う。ROM71には、上述のファームウェア等のプログラムが記憶されている。RAM72は、サービス提供装置7のワークメモリとして動作し、各種プログラム及びデータが一時的に記憶される。
The
HDD部73は、HDD730とHDDインタフェース(I/F)731とを備える。HDD730は、記憶媒体であるディスクと、このディスクの回転を行う回転部と、ディスクに対してデータの読み出し及び書き込みを行うヘッド部とを備える(いずれも不図示)。
The
HDDインタフェース731は、HDD730に対するデータの読み出し又は書き込み指令があった場合に、HDD730全体の制御を行うと共に、データの読み出し又は書き込み制御を行い、読み出されたデータを出力する。
The
HDD730にはアプリケーションプログラムと、サービス提供装置7による第一のNAS2A及び第二のNAS2Bの管理者によるユーザ登録情報が記憶された登録テーブル等が適宜記憶されている。
The
また、HDD730のNAS用記憶領域には、第一のNAS2Aと第二のNAS2Bの各々のHDD330に形成されているフォルダA、フォルダB、及び、フォルダCに対応する共有フォルダa、共有フォルダb、及び、共有フォルダcが記憶されている。
Further, in the NAS storage area of the
CPU70は、フォルダA内のファイルの記憶要求が第一のNAS2Aからなされた場合には、記憶要求のあった該ファイルを、フォルダAに対応する共有フォルダaに記憶する。
When the storage request for the file in the folder A is made from the
CPU70は、フォルダB内のファイルの記憶要求が第二のNAS2Bからなされた場合には、記憶要求のあった該ファイルを、フォルダBに対応する共有フォルダbに記憶する。
When the storage request for the file in the folder B is made from the
CPU70は、フォルダC内のファイルの記憶要求が第一のNAS2A又は第二のNAS2Bからなされた場合には、記憶要求のあった該ファイルを、フォルダCに対応する共有フォルダcに記憶する。
When the storage request for the file in the folder C is made from the
有線LANモジュール74は、例えばIEEE802.3規格に準拠して、インターネット6との間で有線による通信を行う。
The wired
USBコントローラ750は、例えばUSB2.0又はUSB3.0規格に沿って、USBコネクタ751を介して接続されたUSBデバイスとの間でデータの送受信を行う。USBコネクタ751は、いわゆるメス型USBコネクタ(USBレセプタクル)であって、USBケーブルのオス型USBコネクタ(USBプラグ)が挿入可能に構成されている。
The
サービス提供装置7は、第一のNAS2A及び第二のNAS2Bを含むインターネット6上の他の装置との間の通信を行う際、インターネット6での通信に用いられるプロトコルであるHTTP(Hypertext Transfer Protocol)又はHTTPS(Hypertext Transfer Protocol Secure)等を用いる。また、サービス提供装置7は、第一のルータ5A及び第二のルータ5B等のファイアウォール機能を有する装置に対して、HTTP用に設けられたポート(例えばポート番号80番のポート)を用いて通信を行う。
When the service providing device 7 communicates with other devices on the
図7は、図4に示す第一のNAS2AのCPU30の機能ブロック図である。
FIG. 7 is a functional block diagram of the
第一のNAS2AのCPU30は、受付部30Aと、ファイル管理部30Bと、アップロード部30Cと、更新リスト取得部30Dと、ダウンロード部30Eと、同期処理部30Fと、を備える。これらの機能ブロックは、第一のNAS2AのCPU30が、第一のNAS2AのROM31に記憶されたファイル同期プログラムを含むプログラムを実行することにより形成される。
The
受付部30Aは、第一の情報機器1Aから第一のLAN3を介して入力されるファイル記憶要求及びファイル読み出し要求を受け付ける。
The accepting
ファイル管理部30Bは、受付部30Aが受け付けたファイル記憶要求に応じて、HDDインタフェース331を制御して、記憶対象ファイルをHDD330に記憶させる。
The
アップロード部30Cは、ファイル管理部30BによってHDD330のフォルダA又はフォルダCに新規ファイルが記憶されたり、HDD330のフォルダA又はフォルダC内のファイルのファイル名又はその内容、あるいはファイル名と内容の両方がファイル管理部30Bによって変更されたりして、HDD330のフォルダA又はフォルダCに記憶されているデータに変化があると、HDD330のフォルダA又はフォルダCに記憶されているファイルの中から、サービス提供装置7にアップロードすべき同期対象ファイルを抽出する。
In the upload
アップロード部30Cは、HDD330のフォルダA又はフォルダCに新規ファイルが記憶された場合には、この新規ファイルを同期対象ファイルとして抽出する。
When a new file is stored in folder A or folder C of
アップロード部30Cは、HDD330のフォルダA又はフォルダCに記憶されている既存ファイルが変更された(上書き保存や編集がなされた)場合には、この既存ファイルに対して上書きされたファイル、又は、この既存ファイルに対する変更内容を示す差分ファイルを同期対象ファイルとして抽出する。
When the existing file stored in the folder A or the folder C of the
アップロード部30Cは、このようにして抽出した同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを生成する。そして、アップロード部30Cは、この送信ファイルを、送信ファイルに含まれる同期対象ファイルの記憶フォルダを示す情報と共に有線LANモジュール34からサービス提供装置7に送信させて、この送信ファイルを、サービス提供装置7のNAS用記憶領域の該記憶フォルダに対応する共有フォルダに記憶させる。
The upload
上記の識別情報は、この識別情報を含むファイルが、ファイル同期システム100を構成する第一のNAS2A又は第二のNAS2Bに対して記憶されたファイルであることを識別するために用いられる情報である。
The identification information is information used to identify that the file including the identification information is a file stored in the
この識別情報は、例えば、第一のNAS2A及び第二のNAS2Bの管理者によって定められたファイル同期システム100で共通の任意の情報が用いられる。又は、識別情報は、送信ファイルの生成元のNASに固有の情報(例えば装置の機種名、機器ID(MAC(Media Access Control)アドレス)、NASにインストールされているファイル同期プログラムの名称、又は、NASにインストールされているファイル同期プログラムのバージョン情報等)が用いられる。以下では、識別情報をNASに固有の情報であるMACアドレスとして説明する。
As this identification information, for example, arbitrary information common to the
MACアドレスとは、ネットワークに接続可能な機器に設定されている48ビットの符号である。MACアドレスは、通常、16進数によるオクテットで表現されており、ベンダーID、機種ID、又は、シリアルID等が割り当てられている。 The MAC address is a 48-bit code set in a device connectable to the network. The MAC address is usually expressed in hexadecimal octets, and is assigned a vendor ID, model ID, serial ID, or the like.
第一のNAS2AのROM31には、識別情報として、第一のNAS2AのMACアドレスと、第二のNAS2BのMACアドレスとが予め記憶される。また、第二のNAS2BのROM31には、識別情報として、第二のNAS2BのMACアドレスと、第一のNAS2AのMACアドレスとが予め記憶される。
In the
アップロード部30Cは、同期対象ファイルを所定のファイル形式へ変換を行い、ファイル形式変換後のファイルの所定領域に識別情報を書き込んだものを送信ファイルとして生成する。生成される送信ファイルは、ファイル名が同期対象ファイルと同じであり、拡張子が所定のファイル形式のものとなる。
The upload
上記の所定のファイル形式は、任意の情報を書き込むことのできる所定領域を持つファイル形式であれば何でもよい。本実施形態では、所定のファイル形式として圧縮形式の1つであるZIP形式を採用している。ZIP形式は、複数のファイルを纏めて1つのファイルとして取り扱えるように変換したり(アーカイブ)、複数のファイルを纏めて圧縮したり、1つのファイルを圧縮したりするファイルフォーマットである。圧縮形式としては、ZIP形式の他に、RAR、7Z、LZH、又は、LHA等の形式等、任意のものを適用可能である。なお、圧縮形式における圧縮率は任意であり、圧縮率が0%の場合も含む。 The predetermined file format may be any file format as long as it has a predetermined area in which arbitrary information can be written. In the present embodiment, the ZIP format, which is one of the compression formats, is employed as the predetermined file format. The ZIP format is a file format in which a plurality of files are converted so as to be handled as one file (archive), a plurality of files are compressed together, or a single file is compressed. As the compression format, any format such as RAR, 7Z, LZH, or LHA can be applied in addition to the ZIP format. Note that the compression rate in the compression format is arbitrary, including the case where the compression rate is 0%.
ZIPファイルにはヘッダ部分に、任意のコメントを記載できるコメント領域が設けられており、このコメント領域に識別情報を書き込むことで送信ファイルの生成が可能である。 The ZIP file is provided with a comment area where an arbitrary comment can be written in the header portion. A transmission file can be generated by writing identification information in the comment area.
アップロード部30Cは、同期対象ファイルをZIPファイルに変換する際に、このZIPファイルの利用(圧縮されたファイルの伸長)に必要なパスワードを設定した上で、ZIP形式の送信ファイルを生成する。このパスワードは、ファイル同期システム100に対して共通に設定されており、第一のNAS2A及び第二のNAS2Bの各々のROM31に予め記憶される。
When converting the synchronization target file into a ZIP file, the upload
更新リスト取得部30Dは、管理者によって予め決められたタイミングで、サービス提供装置7に対してHDD330のフォルダ単位でファイルの更新リストの送信を要求し、この要求に応じてサービス提供装置7から送信されてきた更新リストを取得する。
The update
ファイルの更新リストとは、更新リスト取得部30Dにより要求が行われた時点でサービス提供装置7のNAS用記憶領域の任意の共有フォルダに記憶されているファイルのうち、更新リスト取得部30Dにより前回要求が行われた時点から変更のあったファイルの一覧を示すものである。
The file update list is a file update list previously stored by the update
この更新リストには、各ファイルのファイル名とメタデータとが含まれる。メタデータには、例えば、タイトル、作成日時、更新日時、作成者、ファイル形式(拡張子)、及び、コメント等のファイル及びファイルの状態を一意に特定するための情報が含まれる。 This update list includes the file name and metadata of each file. The metadata includes information for uniquely specifying the file and the state of the file, such as a title, creation date / time, update date / time, creator, file format (extension), and comment.
なお、更新リスト取得部30Dは、サービス提供装置7に対してHDD330のフォルダ単位で、フォルダに記憶されている全てのファイルのリストを取得し、取得した最新のリストと、過去に取得したリストとを比較して、過去から更新のあったファイルのリストを更新リストとして作成することで、更新リストの取得を行ってもよい。
The update
ここで、サービス提供装置7から送信されてくるファイルのリストには、更新リストと同様に、ファイル名とメタデータとが含まれる。このメタデータに含まれるファイル及びファイルの状態を一意に特定するための情報を参照することで、例えば更新日時の違いによってファイルが更新されたことを判断したり、ファイル名の違いによってファイルが変更又は追加されたことを判断したりといった更新状況の判断が可能である。 Here, the file list transmitted from the service providing apparatus 7 includes a file name and metadata as in the update list. By referring to the information for uniquely identifying the file and file status included in this metadata, for example, it can be determined that the file has been updated due to a difference in update date and time, or the file can be changed due to a difference in file name Alternatively, it is possible to determine the update status such as determining that it has been added.
ダウンロード部30Eは、更新リスト取得部30Dにより取得された更新リストにあるファイルのうち、拡張子が上記の所定のファイル形式の拡張子と一致するファイルを選択し、選択したファイルを、有線LANモジュール34を介してサービス提供装置7から取得する。
The
同期処理部30Fは、ダウンロード部30Eにより取得されたファイルが送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを自装置のHDD330に記憶するための処理を行う。
When the file acquired by the
この処理は、具体的には、ROM31に記憶されている上記のパスワードを使って送信ファイルを伸長し、伸長して得られる同期対象ファイルを、更新リストの要求対象としたフォルダ内に記憶させる処理である。同期処理部30Fは記憶制御部を構成する。
Specifically, this process is a process of decompressing the transmission file using the password stored in the
同期処理部30Fは、ダウンロード部30Eにより取得されたファイルが送信ファイルでない場合には、このファイルについては伸長及びフォルダ内への記憶を行わずに削除する。
If the file acquired by the
図8は、図5に示す第二のNAS2BのCPU30の機能ブロック図である。
FIG. 8 is a functional block diagram of the
第二のNAS2BのCPU30は、受付部30aと、ファイル管理部30bと、アップロード部30cと、更新リスト取得部30dと、ダウンロード部30eと、同期処理部30fと、を備える。これらの機能ブロックは、第二のNAS2BのCPU30が、第二のNAS2BのROM31に記憶されたファイル同期プログラムを含むプログラムを実行することにより形成される。
The
受付部30aは、第二の情報機器1Bから第二のLAN4を介して入力されるファイル記憶要求及びファイル読み出し要求を受け付ける。
The accepting
ファイル管理部30bは、受付部30aが受け付けたファイル記憶要求に応じて、HDDインタフェース331を制御して、記憶対象ファイルをHDD330に記憶させる。
The
アップロード部30cは、ファイル管理部30bによってHDD330のフォルダB又はフォルダCに新規ファイルが記憶されたり、HDD330のフォルダB又はフォルダC内のファイルのファイル名又はその内容、あるいはファイル名と内容の両方がファイル管理部30bによって変更されたりして、HDD330のフォルダB又はフォルダCに記憶されているファイルに変化があると、HDD330のフォルダB又はフォルダCに記憶されているファイルの中からサービス提供装置7にアップロードすべき同期対象ファイルを抽出する。
In the upload
アップロード部30cは、HDD330のフォルダB又はフォルダCに新規ファイルが記憶された場合には、この新規ファイルを同期対象ファイルとして抽出する。
When a new file is stored in the folder B or folder C of the
アップロード部30cは、HDD330のフォルダB又はフォルダCに記憶されている既存ファイルが変更された(上書き保存や編集がなされた)場合には、この既存ファイルに対して上書きされたファイル、又は、この既存ファイルに対する変更内容を示す差分ファイルをサービス提供装置7の同期対象ファイルとして抽出する。
When the existing file stored in the folder B or folder C of the
アップロード部30cは、このようにして抽出した同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを生成する。そして、アップロード部30cは、この送信ファイルを、送信ファイルに含まれる同期対象ファイルの記憶フォルダを示す情報と共に有線LANモジュール34Aからサービス提供装置7に送信させて、この送信ファイルをNAS用記憶領域の該記憶フォルダに対応する共有フォルダに記憶させる。
The upload
上記の識別情報は、前述したものと同じであり、以下では第二のNAS2BのMACアドレスを例にして説明する。
The identification information is the same as that described above, and will be described below using the MAC address of the
アップロード部30cは、同期対象ファイルを上述した所定のファイル形式(以下ではZIP形式とする)へ変換を行い、ファイル形式変換後のファイルの所定領域に識別情報を書き込んだものを送信ファイルとして生成する。
The upload
アップロード部30cは、同期対象ファイルをZIPファイルに変換する際に、このZIPファイルの利用(圧縮されたファイルの伸長)に必要なパスワードを設定した上で、ZIP形式の送信ファイルを生成する。このパスワードは、上述したものと同じであり、第二のNAS2BのROM31に予め記憶されている。
The upload
更新リスト取得部30dは、管理者によって予め決められたタイミングで、サービス提供装置7に対してHDD330のフォルダ単位でファイルの更新リストの送信を要求し、この要求に応じてサービス提供装置7から送信されてきた更新リストを取得する。
The update
ファイルの更新リストとは、更新リスト取得部30dにより要求が行われた時点でサービス提供装置7のNAS用記憶領域の任意の共有フォルダに記憶されているファイルのうち、更新リスト取得部30dにより前回要求が行われた時点から変更のあったファイルの一覧を示すものである。
The file update list is a file update list stored in an arbitrary shared folder in the NAS storage area of the service providing device 7 at the time when a request is made by the update
この更新リストには、上述したように、各ファイルのファイル名とメタデータとが含まれる。 As described above, the update list includes the file name and metadata of each file.
ダウンロード部30eは、更新リスト取得部30dにより取得された更新リストにあるファイルのうち、拡張子が上記の所定のファイル形式の拡張子と一致するファイルを選択し、選択したファイルを、有線LANモジュール34Aを介してサービス提供装置7から取得する。
The
同期処理部30fは、ダウンロード部30eにより取得されたファイルが送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを自装置のHDD330に記憶するための処理を行う。
When the file acquired by the
この処理は、具体的には、ROM31に記憶されている上記のパスワードを利用して送信ファイルを伸長し、伸長して得られる同期対象ファイルを、更新リストの要求対象としたフォルダ内に記憶させる処理である。同期処理部30fは記憶制御部を構成する。
Specifically, this process uses the password stored in the
図9及び図10は、図1に示すファイル同期システム100の動作を説明するためのフローチャートである。
9 and 10 are flowcharts for explaining the operation of the
図9及び図10では、第一のNAS2AのフォルダCに記憶されたファイルと同じファイルが、第二のNAS2BのフォルダCに記憶されることで、第一のNAS2AのフォルダCと第二のNAS2BのフォルダCとの同期がなされる場合の動作を説明する。
9 and 10, the same file as the file stored in the folder C of the
第一の情報機器1Aの液晶パネル231には、第一のNAS2AのHDD330内のデータ階層構成を示す画面が表示される。この画面が表示された状態で第一の情報機器1Aの操作インタフェース260が操作されて、第一の情報機器1Aの内部ストレージ270に記憶されている任意のファイルがフォルダCに移動又は複写されると、この任意のファイルが第一のNAS2Aに送信される(ステップS1)。
On the
第一のNAS2Aのファイル管理部30Bは、第一の情報機器1Aから第一のLAN3を経由して送信されてきた任意のファイルをHDD330のフォルダCに記憶させる(ステップS2)。
The
次に、第一のNAS2Aのアップロード部30Cは、ステップS2でHDD330に記憶された任意のファイルがファイル同期の条件を満たすか否かを判定する(ステップS3)。
Next, the upload
ファイル同期の条件とは、ファイルの拡張子が予め指定されたものであること、ファイルのサイズ(容量)が予め指定された値以下のものであること、ファイルの日時情報(ファイル作成日時、ファイル更新日時、又は、ファイル最終アクセス日時等)が予め指定された範囲であること、のうちの少なくとも1つである。 The conditions for file synchronization are that the file extension is specified in advance, the file size (capacity) is less than or equal to the specified value, file date and time information (file creation date and time, file Update date / time or file last access date / time) is in a pre-designated range.
第一のNAS2Aのアップロード部30Cは、ステップS2でHDD330に記憶された任意のファイルがファイル同期の条件を満たさない場合(ステップS3:NO)は、送信ファイルの生成を行わず、待機状態に移行する。
If the arbitrary file stored in the
例えば、サービス提供装置7によって提供されるウェブサービスでは、大容量のファイルの記憶をサービス提供装置7が受け入れない場合も考えられる。したがって、ファイルの拡張子が大容量のファイルであると判断できる動画の拡張子であったり、ファイルのサイズが大容量であったりした場合には、このファイルを同期対象ファイルからは除外することで、サービスに制限が課せられているケースにも柔軟に対応することができる。 For example, in the web service provided by the service providing device 7, the service providing device 7 may not accept storage of a large capacity file. Therefore, if the file extension is a video extension that can be determined to be a large file, or if the file size is large, exclude this file from the files to be synchronized. It is possible to flexibly handle cases where restrictions are imposed on services.
第一のNAS2Aのアップロード部30Cは、ステップS2でHDD330に記憶された任意のファイルがファイル同期の条件を満たす場合(ステップS3:YES)には、この任意のファイルを、パスワード設定したZIP形式のファイルに変換する(ステップS4)。
When the arbitrary file stored in the
更に、第一のNAS2Aのアップロード部30Cは、ステップS4で得られたZIPファイルのコメント領域に、ROM31に記憶されている第一のNAS2AのMACアドレスを識別情報として書き込む(ステップS5)。
Further, the upload
そして、第一のNAS2Aのアップロード部30Cは、コメント領域にMACアドレスが書き込まれたZIPファイルと、このZIPファイルに含まれる同期対象ファイルの記憶フォルダ(フォルダC)を示すフォルダ情報と、このZIPファイルの記憶要求信号と、をサービス提供装置7に送信する(ステップS6)。
Then, the upload
サービス提供装置7のCPU70は、第一のNAS2Aから送信されてきたZIPファイルを、第一のNAS2Aから送信されてきた記憶要求信号とフォルダ情報にしたがって、NAS用記憶領域のフォルダcに記憶する(ステップS7)。
The
第二のNAS2Bの更新リスト取得部30dは、予め定められたタイミングになると、自装置のHDD330のフォルダCに対応するフォルダcに記憶されているファイルについての更新リストの要求をサービス提供装置7に対して行う(ステップS10)。
The update
サービス提供装置7は、この要求に応答して、フォルダCに対応するフォルダcに記憶されているファイルについての更新リストを作成し(ステップS11)、作成した更新リストを要求元の第二のNAS2Bに送信する(ステップS12)。
In response to this request, the service providing apparatus 7 creates an update list for the files stored in the folder c corresponding to the folder C (step S11), and uses the created update list as the requesting
サービス提供装置7から送信されてきたフォルダCの更新リストが第二のNAS2Bの更新リスト取得部30dによって取得されると、第二のNAS2Bのダウンロード部30eは、更新リスト取得部30dにより取得されたフォルダCの更新リストの中に、ZIPファイルがあるか否かを、更新リストに記載の各ファイルの拡張子によって判定する(ステップS13)。
When the update list of the folder C transmitted from the service providing apparatus 7 is acquired by the update
第二のNAS2Bのダウンロード部30eは、更新リストの中にZIPファイルがない場合(ステップS13:NO)には待機状態に移行する。
When there is no ZIP file in the update list (step S13: NO), the
第二のNAS2Bのダウンロード部30eは、更新リストの中にZIPファイルがある場合(ステップS13:YES)には、更新リストに記載のZIPファイルをサービス提供装置7からダウンロードして、RAM32に一時記憶させる(ステップS14)。なお、第二のNAS2Bのダウンロード部30eは、RAM32の代わりに、HDD等に一時記憶領域を設け、ダウンロードしたZIPファイルをこの一時記憶領域に記憶させてもよい。
When there is a ZIP file in the update list (step S13: YES), the
次に、第二のNAS2Bの同期処理部30fは、RAM32に一時記憶されているZIPファイルに対して“1”から“K”(Kは1以上の整数)まで順に通し番号を付与した上で、まず、通し番号N=1を設定する(ステップS15)。
Next, the
そして、第二のNAS2Bの同期処理部30fは、通し番号NのZIPファイルのコメント領域に識別情報(第一のNAS2AのMACアドレス)が記載されているか否かを判定する(ステップS16)。
Then, the
第二のNAS2Bの同期処理部30fは、通し番号NのZIPファイルのコメント領域に第一のNAS2AのMACアドレスが記載されていない場合(ステップS16:NO)には、通し番号NのZIPファイルを破棄する(ステップS20)。
If the MAC address of the
第二のNAS2Bの同期処理部30fは、通し番号NのZIPファイルのコメント領域に第一のNAS2AのMACアドレスが記載されている場合(ステップS16:YES)には、このZIPファイルがパスワード設定されたものか否かを判定する(ステップS17)。
If the MAC address of the
このZIPファイルがパスワード設定されていないものである場合(ステップS17:NO)には、第二のNAS2Bの同期処理部30fは、ステップS20の処理を行う。
If this ZIP file is not set with a password (step S17: NO), the
このZIPファイルがパスワード設定されているものである場合(ステップS17:YES)には、第二のNAS2Bの同期処理部30fは、このZIPファイルを、ROM31に記憶されているパスワードを使って伸長する処理を行う。
If this ZIP file has a password set (step S17: YES), the
そして、第二のNAS2Bの同期処理部30fは、この伸長処理に成功して同期対象ファイルが得られた場合(ステップS18:YES)には、この同期対象ファイルを第二のNAS2BのHDD330のフォルダCに記憶させる(ステップS19)。
If the
第二のNAS2Bの同期処理部30fは、この伸長処理に失敗した場合(ステップS18:NO)には、ステップS20の処理を行う。
The
ステップS19及びステップS20の処理の後、第二のNAS2Bの同期処理部30fは、通し番号Nが“K”であるか否かを判定し(ステップS21)、通し番号Nが“K”ではない場合(ステップS21:NO)は通し番号Nを1つ増やして(ステップS22)、ステップS16に処理を戻す。
After the processing of step S19 and step S20, the
第二のNAS2Bの同期処理部30fは、通し番号Nが“K”である場合(ステップS21:YES)は、待機状態に移行する。
When the serial number N is “K” (step S21: YES), the
第二のNAS2BのフォルダCに記憶されたファイルと同じファイルが、第一のNAS2AのフォルダCに記憶されることで、第二のNAS2BのフォルダCと第一のNAS2AのフォルダCとの同期がなされる場合の動作は、図9において第一の情報機器1Aの動作を第二の情報機器1Bが行い、第一のNAS2Aの動作を第二のNAS2Bが行い、図10において第二のNAS2Bの動作を第一のNAS2Aが行うだけの違いであり、図9及び図10で説明したのと同様に行われる。
The same file as the file stored in the folder C of the
次に、第二のNAS2BのフォルダBに記憶されたファイルと同じファイルが、第一のNAS2AのフォルダBに記憶されることで、第二のNAS2BのフォルダBと第一のNAS2AのフォルダBとの同期がなされる場合の動作を説明する。
Next, the same file as the file stored in the folder B of the
図11及び図12は、図1に示すファイル同期システム100において、第二のNAS2BのフォルダBと第一のNAS2AのフォルダBとの同期が行われる場合の動作を説明するためのフローチャートである。
FIG. 11 and FIG. 12 are flowcharts for explaining the operation in the case where the synchronization between the folder B of the
第二の情報機器1Bの操作インタフェース260が操作されて、内部ストレージ270に記憶されている任意のファイルがフォルダBに移動されると、この任意のファイルが第二のNAS2Bに送信される(ステップS1A)。
When the
第二のNAS2Bのファイル管理部30bは、第二の情報機器1Bから第二のLAN4を経由して送信されてきた任意のファイルをHDD330のフォルダBに記憶させる(ステップS2A)。
The
次に、第二のNAS2Bのアップロード部30cは、ステップS2AでHDD330に記憶された任意のファイルがファイル同期の条件を満たすか否かを判定する(ステップS3A)。この条件は前述したとおりである。
Next, the upload
第二のNAS2Bのアップロード部30cは、ステップS2AでHDD330に記憶された任意のファイルがファイル同期の条件を満たさない場合(ステップS3A:NO)は、送信ファイルの生成を行わず、待機状態に移行する。
When the arbitrary file stored in the
第二のNAS2Bのアップロード部30cは、ステップS2AでHDD330に記憶された任意のファイルがファイル同期の条件を満たす場合(ステップS3A:YES)には、この任意のファイルを、パスワード設定したZIP形式のファイルに変換する(ステップS4A)。
When the arbitrary file stored in the
更に、第二のNAS2Bのアップロード部30cは、ステップS4Aで得られたZIPファイルのコメント領域に、ROM31に記憶されている第二のNAS2BのMACアドレスを識別情報として書き込む(ステップS5A)。
Further, the upload
そして、第二のNAS2Bのアップロード部30cは、コメント領域にMACアドレスが書き込まれたZIPファイルと、このZIPファイルに含まれる同期対象ファイルの記憶フォルダ(フォルダB)を示すフォルダ情報と、このZIPファイルの記憶要求信号と、をサービス提供装置7に送信する(ステップS6A)。
Then, the upload
サービス提供装置7のCPU70は、第二のNAS2Bから送信されてきたZIPファイルを、第二のNAS2Bから送信されてきた記憶要求信号とフォルダ情報にしたがって、NAS用記憶領域のフォルダbに記憶する(ステップS7A)。
The
第一のNAS2Aの更新リスト取得部30Dは、予め定められたタイミングで、自装置のHDD330のフォルダBに対する更新リストの要求をサービス提供装置7に対して行う(ステップS10A)。
The update
サービス提供装置7は、この要求に応答して、フォルダBに対応するフォルダbに記憶されているファイルについての更新リストを作成し(ステップS11A)、作成した更新リストを要求元の第一のNAS2Aに送信する(ステップS12A)。
In response to this request, the service providing device 7 creates an update list for the files stored in the folder b corresponding to the folder B (step S11A), and uses the created update list as the requesting
サービス提供装置7から送信されてきたフォルダBの更新リストが第一のNAS2Aの更新リスト取得部30Dによって取得されると、第一のNAS2Aのダウンロード部30Eは、更新リスト取得部30Dにより取得されたフォルダBの更新リストの中に、ZIPファイルがあるか否かを、更新リストに記載のファイルの拡張子によって判定する(ステップS13A)。
When the update list of the folder B transmitted from the service providing apparatus 7 is acquired by the update
第一のNAS2Aのダウンロード部30Eは、更新リストの中にZIPファイルがない場合(ステップS13A:NO)には待機状態に移行する。
If there is no ZIP file in the update list (step S13A: NO), the
第一のNAS2Aのダウンロード部30Eは、更新リストの中にZIPファイルがある場合(ステップS13A:YES)には、更新リストに記載されているZIPファイルをサービス提供装置7からダウンロードして、RAM32に一時記憶させる(ステップS14A)。
When there is a ZIP file in the update list (step S13A: YES), the
次に、第一のNAS2Aの同期処理部30Fは、RAM32に一時記憶されているZIPファイルに対して“1”から“K”(Kは1以上の整数)まで順に通し番号を付与した上で、まず、通し番号N=1を設定する(ステップS15A)。
Next, the
そして、第一のNAS2Aの同期処理部30Fは、通し番号NのZIPファイルのコメント領域に識別情報(第二のNAS2BのMACアドレス)が記載されているか否かを判定する(ステップS16A)。
Then, the
第一のNAS2Aの同期処理部30Fは、通し番号NのZIPファイルのコメント領域に第二のNAS2BのMACアドレスが記載されていない場合(ステップS16A:NO)には、通し番号NのZIPファイルを破棄する(ステップS20A)。
When the MAC address of the
第一のNAS2Aの同期処理部30Fは、通し番号NのZIPファイルのコメント領域に第二のNAS2BのMACアドレスが記載されている場合(ステップS16A:YES)には、このZIPファイルがパスワード設定されたものか否かを判定する(ステップS17A)。
When the MAC address of the
このZIPファイルがパスワード設定されていないものである場合(ステップS17A:NO)には、第一のNAS2Aの同期処理部30Fは、ステップS20Aの処理を行う。
If this ZIP file has no password set (step S17A: NO), the
このZIPファイルがパスワード設定されているものである場合(ステップS17A:YES)には、第一のNAS2Aの同期処理部30Fは、このZIPファイルを、ROM31に記憶されているパスワードを使って伸長する処理を行う。
If this ZIP file has a password set (step S17A: YES), the
そして、第一のNAS2Aの同期処理部30Fは、この伸長処理に成功して同期対象ファイルが得られた場合(ステップS18A:YES)には、この同期対象ファイルをHDD330のフォルダBに記憶させる(ステップS19A)。
Then, when the
第一のNAS2Aの同期処理部30Fは、この伸長処理に失敗した場合(ステップS18A:NO)には、ステップS20Aの処理を行う。
When the decompression process fails (step S18A: NO), the
ステップS19A及びステップS20Aの処理の後、第一のNAS2Aの同期処理部30Fは、通し番号Nが“K”であるか否かを判定し(ステップS21A)、通し番号Nが“K”ではない場合(ステップS21A:NO)は、通し番号Nを1つ増やして(ステップS22A)、ステップS16Aに処理を戻す。
After the processing of step S19A and step S20A, the
第一のNAS2Aの同期処理部30Fは、通し番号Nが“K”である場合(ステップS21A:YES)は、待機状態に移行する。
When the serial number N is “K” (step S21A: YES), the
第一のNAS2AのフォルダAに記憶されたファイルと同じファイルが、第二のNAS2BのフォルダAに記憶されることで、第一のNAS2AのフォルダAと第二のNAS2BのフォルダAとの同期がなされる場合の動作は、図11において第二の情報機器1Bの動作を第一の情報機器1Aが行い、第二のNAS2Bの動作を第一のNAS2Aが行い、図12において第一のNAS2Aの動作を第二のNAS2Bが行い、フォルダBとフォルダbをそれぞれフォルダAとフォルダaに読み替えたものとなる。
The same file as the file stored in the folder A of the
以上のように、ファイル同期システム100によれば、第一のNAS2Aと第二のNAS2Bの各々には、識別情報を含む送信ファイルに含まれる同期対象ファイルだけがサービス提供装置7からダウンロードされることになる。
As described above, according to the
このため、サービス提供装置7のNAS用記憶領域に識別情報を含まない生成元の不明なファイルが記憶されてしまった場合でも、このファイルが第一のNAS2Aと第二のNAS2Bに記憶されることはない。したがって、第一のNAS2Aと第二のNAS2Bの間でのファイル同期を安全に行うことができる。
For this reason, even if an unknown source file that does not include identification information is stored in the NAS storage area of the service providing apparatus 7, this file is stored in the
また、ファイル同期システム100によれば、送信ファイルに付加された識別情報によってファイル同期を行う対象のファイルであるかどうかが決定され、ファイル同期を行う対象のファイルであれば、このファイルがサービス提供装置7から第一のNAS2A又は第二のNAS2Bによってダウンロードされる。
Further, according to the
このため、同期対象ファイルを含む送信ファイルの送信元である第一のNAS2Aは、第二のNAS2BのIPアドレスが不明であっても、この同期対象ファイルを第二のNAS2Bにダウンロードさせることができる。
Therefore, the
このように、第一のNAS2Aと第二のNAS2Bの間で直接通信を行わずにファイル同期を行うことができるため、第一のNAS2A又は第二のNAS2BのIPアドレスが変更された場合でも、第一のNAS2A又は第二のNAS2Bがインターネット6又はサービス提供装置7に接続さえできれば、ファイル同期が可能である。第一のNAS2Aと第二のNAS2Bの間で直接通信を行わずにファイル同期が可能になることで、特許文献1に記載のようにDDNSサーバが不要となる。このため、ファイル同期システム100の構築コストを削減することができる。
Thus, since file synchronization can be performed without performing direct communication between the
また、ファイル同期システム100では、同期対象ファイルが所定のファイル形式へ変換され、ファイル形式変換後のファイルの所定領域(任意の情報を書き込むことのできる領域)に識別情報が書き込まれることで、同期対象ファイルと識別情報とを含む送信ファイルが生成される。
Further, in the
このため、同期対象ファイルがどのような拡張子のファイルであっても、システムで共通の形式で送信ファイルを生成することができる。この結果、第一のNAS2A及び第二のNAS2Bに記憶させるファイルの種別に制限のないシステムを容易に構築することができる。
Therefore, regardless of the extension of the synchronization target file, the transmission file can be generated in a common format in the system. As a result, it is possible to easily construct a system in which the types of files stored in the
特に、所定のファイル形式として広く一般に普及しているZIP形式を採用することで、第一のNAS2A及び第二のNAS2Bに特別なアプリケーションソフトをインストールすることなく、上述した効果を得ることができる。
In particular, by adopting the ZIP format that is widely spread as a predetermined file format, the above-described effects can be obtained without installing special application software in the
また、ファイル同期システム100では、送信ファイルにパスワードが設定された状態で、この送信ファイルがサービス提供装置7に記憶される。そして、送信ファイルをダウンロードした第一のNAS2A及び第二のNAS2Bでは、パスワードが設定された送信ファイルに限って、パスワードを使って伸長処理が行われ、伸長処理が成功した場合に限って、同期対象ファイルがHDD330に記憶される。
In the
このような構成により、サービス提供装置7のNAS用記憶領域に、識別情報を含むパスワード設定無のZIPファイルが仮に記憶されてしまった場合でも、このZIPファイルが伸長されることない。したがって、生成元の不明なファイルが第一のNAS2A及び第二のNAS2Bに記憶される可能性を減らして安全性を高めることができる。
With such a configuration, even if a password-free ZIP file including identification information is temporarily stored in the NAS storage area of the service providing apparatus 7, the ZIP file is not decompressed. Therefore, it is possible to increase the safety by reducing the possibility that the file whose source is unknown is stored in the
また、サービス提供装置7のNAS用記憶領域に記憶された送信ファイルが漏えいした場合でも、送信ファイルに含まれる同期対象ファイルが利用されるのを防ぐことができる。 Further, even when the transmission file stored in the NAS storage area of the service providing apparatus 7 is leaked, it is possible to prevent the synchronization target file included in the transmission file from being used.
アップロード部30C及びアップロード部30cは、同期対象ファイルと、識別情報から生成された二次識別情報とを含む送信ファイルを生成してもよい。二次識別情報は、同期対象ファイルのメタデータと識別情報に基づいて生成される情報である。二次識別情報は、例えば、同期対象ファイルのファイル名と識別情報を組み合わせて所定のルールで生成される。
The upload
この場合は、図10のステップS16において、同期処理部30fは、ZIPファイルのコメント領域に二次識別情報があると判定した後に、更に二次識別情報を解析して二次識別情報から識別情報を読み出すことができた場合にのみ、ステップS17以降の処理を行う。又は、同期処理部30fは、二次識別情報から識別情報を読み出すことができ、かつ、二次識別情報から読み出したメタデータが、ZIPファイルに格納されているファイルのメタデータと同一であることが確認できた場合にのみ、ステップS17以降の処理を行う。
In this case, in step S16 of FIG. 10, the
この構成によれば、二次識別情報は、同期対象ファイルと識別情報の組み合わせによって生成される一意の情報であるため、二次識別情報が漏えいし、この二次識別情報がコメント領域に記載された発行元不明のZIPファイルがサービス提供装置7のNAS用記憶領域に記憶された場合でも、このZIPファイルが伸長されるのを防ぐことができる。 According to this configuration, since the secondary identification information is unique information generated by a combination of the synchronization target file and the identification information, the secondary identification information is leaked and this secondary identification information is described in the comment area. Even when a ZIP file whose publisher is unknown is stored in the NAS storage area of the service providing apparatus 7, it is possible to prevent the ZIP file from being decompressed.
なお、ファイル同期システム100において、アップロード部30C及びアップロード部30cは、送信ファイルにパスワードを設定するものとしたが、パスワードの設定は必須ではない。
In the
ファイル同期システム100では、第一のNAS2A及び第二のNAS2Bにおいて、情報機器から送信されてきたファイルがファイル同期の条件を満たす場合にのみ、このファイルがZIPファイルに変換されてサービス提供装置7のNAS用記憶領域に記憶される。
In the
このため、第一のNAS2A及び第二のNAS2Bの管理者の意図に合わせた柔軟な運用が可能となる。このように、サービス提供装置7に記憶されるファイルに制限をかけることで、サービス提供装置7のNAS用記憶領域の契約サイズを減らして、ウェブサービス利用の費用を削減することができる。また、第一のNAS2A及び第二のNAS2Bの記憶容量を小さくすることも可能となる。
For this reason, flexible operation according to the intention of the administrator of the
なお、ファイル同期システム100において、アップロード部30C及びアップロード部30cは、サービス提供装置7にアップロード可能なファイルに制限を設けないようにしてもよい。
In the
図9では、ステップS1において1つのファイルが第一のNAS2Aに送信される場合を説明したが、このステップS1では、複数のファイルを含むフォルダ全体が第一のNAS2Aに送信されることもある。
In FIG. 9, the case where one file is transmitted to the
この場合には、第一のNAS2Aのアップロード部30Cは、このフォルダに含まれる複数のファイルのそれぞれについてファイル同期の条件を満たすか否かを判定する。そして、第一のNAS2Aのアップロード部30Cは、上記のフォルダから条件を満たさないファイルを削除し、削除後の該フォルダを、ステップS4においてZIPファイルに変換すればよい。
In this case, the upload
また、ファイル同期システム100において、アップロード部30C又はアップロード部30cは、HDD330に記憶されている既存ファイルに対する上書きファイルを同期対象ファイルとして抽出し、この上書きファイルをZIP形式に変換して得られたZIPファイルをNAS用記憶領域に記憶させる場合には、このNAS用記憶領域に記憶されている上記の既存ファイルと同じ名称のZIPファイルを、上記変換して得られたZIPファイルで置換するよう指示を出せばよい。
Further, in the
また、ファイル同期システム100において、アップロード部30C又はアップロード部30cは、HDD330に記憶されている既存ファイルに対する変更内容を示す差分ファイルを同期対象ファイルとして抽出し、この差分ファイルをZIP形式に変換して得られたZIPファイルをNAS用記憶領域に記憶させる場合には、このNAS用記憶領域に記憶されている上記の既存ファイルと同じ名称のZIPファイルと関連付けて、上記変換して得られたZIPファイルを記憶させるよう指示を出せばよい。
Further, in the
そして、同期処理部30F又は同期処理部30fは、上記差分ファイルをZIP形式に変換して得られたZIPファイルがダウンロードされ、伸長処理が成功した場合には、この伸長処理で得られた差分ファイルと、このZIPファイルに関連付けられている既存ファイルとを結合して、ファイルの更新を行えばよい。
Then, the
図10及び図12の動作例では、ダウンロード部30E及びダウンロード部30eが、更新リストにあるZIPファイルのみを選択し、選択したZIPファイルをダウンロードするものとした。しかし、ダウンロード部30E及びダウンロード部30eは、更新リストにある全てのファイルをダウンロードし、ダウンロードしたファイルについて、ZIPファイルであり、かつ、識別情報が付加されており、かつ、パスワードが設定されているファイルについてのみ、伸長処理を行う構成としてもよい。
10 and 12, the
又は、ダウンロード部30E及びダウンロード部30eは、更新リストにあるファイルのうち、識別情報が付加されている送信ファイルのみをダウンロードしてRAM32に一時記憶させる構成としてもよい。この構成では、更新リストに含まれる送信ファイルのメタデータに、その送信ファイルのコメント領域に記載されている情報が含まれることが前提である。この場合の動作について図13を用いて説明する。
Alternatively, the
図13は、図1に示すファイル同期システム100の動作の変形例を説明するためのフローチャートである。図13に示すフローチャートは、図10においてステップS13及びステップS16を削除し、ステップS14をステップS14Bに変更したものである。以下、図10に対する変更点を中心に説明する。
FIG. 13 is a flowchart for explaining a modification of the operation of the
第二のNAS2Bのダウンロード部30eは、ステップS12によって更新リストが取得されると、この更新リストにある全てのファイルのメタデータの拡張子及びコメント領域の情報を確認し、この全てのファイルの中から、識別情報がコメント領域に記載されているZIPファイルのみを、サービス提供装置7からダウンロードしてRAM32に一時記憶させる(ステップS14B)。
When the update list is acquired in step S12, the
ステップS14Bの後、同期処理部30fは、RAM32に一時記憶されているZIPファイルに通し番号Nを付与して、通し番号Nを“1”に設定し(ステップS15)、通し番号NのZIPファイルにパスワードが設定されているか否かを判定する(ステップS17)。この後はステップS18以降の処理が行われる。
After step S14B, the
図13に示す動作例によれば、第二のNAS2Bにダウンロードされるファイル数を最小限にすることができる。このため、ファイル同期にかかる時間を短縮したり、第二のNAS2Bの処理負荷を軽減したりすることができる。
According to the operation example shown in FIG. 13, the number of files downloaded to the
第一のNAS2A及び第二のNAS2Bの各々のROM31に記憶されるファイル同期プログラムは、プログラムをコンピュータが読取可能な一時的でない(non−transitory)記憶媒体に記憶される。このような「コンピュータ読取可能な記憶媒体」は、たとえば、CD−ROM(Compact Disc−ROM)等の光学媒体や、USBメモリ又はメモリカード等の磁気記憶媒体等を含む。また、このようなプログラムを、インターネット6を介したダウンロードによって提供することもできる。
The file synchronization program stored in the
以上のように本明細書には以下の事項が開示されている。 As described above, the following items are disclosed in this specification.
開示されたファイル同期システムは、同期対象ファイルが記憶される第一の記憶部を有する第一の端末装置と、第二の記憶部を有する第二の端末装置と、第一のネットワークを介して前記第一の端末装置及び前記第二の端末装置と通信可能に構成されると共に、前記第一の端末装置及び前記第二の端末装置に対して割り当てられた記憶領域を含むサービス提供装置と、を備えるファイル同期システムであって、前記第一の端末装置は、前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、前記サービス提供装置の前記記憶領域に記憶させる制御を行うアップロード部を備え、前記第二の端末装置は、前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得するダウンロード部と、前記ダウンロード部により取得された前記ファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第二の記憶部に記憶させる記憶制御部と、を備えるものである。 The disclosed file synchronization system includes a first terminal device having a first storage unit in which a synchronization target file is stored, a second terminal device having a second storage unit, and a first network. A service providing device configured to be communicable with the first terminal device and the second terminal device, and including a storage area allocated to the first terminal device and the second terminal device; The first terminal apparatus performs control for storing a transmission file including the synchronization target file and predetermined identification information in the storage area of the service providing apparatus. The second terminal device includes an upload unit for performing a file stored by the device other than its own device in the storage area of the service providing device from the service providing device. And a storage control unit that stores a synchronization target file included in the transmission file in the second storage unit when the file acquired by the download unit is the transmission file. It is.
開示された端末装置は、同期対象ファイルが記憶される第一の記憶部を有する端末装置であって、前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、第一のネットワークを介して複数の前記端末装置と通信可能に構成されると共に前記複数の端末装置に対して割り当てられた記憶領域を含むサービス提供装置の前記記憶領域に記憶させる制御を行うアップロード部と、前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得するダウンロード部と、前記ダウンロード部により取得されたファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第一の記憶部に記憶するための処理を行う同期処理部と、を備えるものである。 The disclosed terminal device is a terminal device having a first storage unit in which a synchronization target file is stored, and includes a transmission file including the synchronization target file and predetermined identification information, An upload unit configured to be communicable with a plurality of the terminal devices via a network and performing control to be stored in the storage area of a service providing apparatus including a storage area allocated to the plurality of terminal apparatuses; A download unit that acquires a file stored in the storage area of the service providing device by a device other than its own device from the service providing device, and when the file acquired by the download unit is the transmission file, the transmission file A synchronization processing unit that performs processing for storing the synchronization target file included in the first storage unit It is intended.
開示された端末装置は、前記アップロード部は、前記第一の記憶部に記憶されている同期対象ファイルを所定のファイル形式へ変換を行い、ファイル形式変換後のファイルの所定領域に前記識別情報を書き込んだものを前記送信ファイルとして前記記憶領域に記憶させるものである。 In the disclosed terminal device, the upload unit converts the synchronization target file stored in the first storage unit into a predetermined file format, and stores the identification information in a predetermined area of the file after the file format conversion. The written data is stored in the storage area as the transmission file.
開示された端末装置は、前記アップロード部は、前記第一の記憶部に記憶されている同期対象ファイルを圧縮して圧縮ファイルを生成することでファイル形式の変換を行い、生成した前記圧縮ファイルのコメント領域を前記所定領域として当該コメント領域に前記識別情報を書き込んだものを前記送信ファイルとして前記記憶領域に記憶させるものである。 In the disclosed terminal device, the upload unit performs file format conversion by compressing the synchronization target file stored in the first storage unit to generate a compressed file, and the generated compressed file The comment area is the predetermined area, and the identification information written in the comment area is stored in the storage area as the transmission file.
開示された端末装置は、前記アップロード部は、ファイルの利用に必要な所定のパスワードを設定した上で前記同期対象ファイルを圧縮して前記圧縮ファイルを生成し、前記同期処理部は、前記ダウンロード部により取得されたファイルが前記送信ファイルである場合に、当該送信ファイルを前記所定のパスワードによって伸長する伸長処理を行い、伸長処理が成功した場合に、伸長処理によって得られた同期対象ファイルを前記第一の記憶部に記憶させるものである。 In the disclosed terminal device, the upload unit sets a predetermined password necessary for using the file and then compresses the synchronization target file to generate the compressed file. The synchronization processing unit includes the download unit. When the file acquired in step (b) is the transmission file, a decompression process for decompressing the transmission file with the predetermined password is performed. When the decompression process is successful, the synchronization target file obtained by the decompression process is It is stored in one storage unit.
開示された端末装置は、前記アップロード部は、同期対象ファイルのサイズ、拡張子、及び、日時情報の少なくも1つが予め定められた条件を満たす場合にのみ、前記送信ファイルを前記記憶領域に記憶させるものである。 In the disclosed terminal device, the upload unit stores the transmission file in the storage area only when at least one of the size, extension, and date / time information of the synchronization target file satisfies a predetermined condition. It is something to be made.
開示された端末装置は、前記第一のネットワークとは異なる第二のネットワークを介して予め登録された複数の機器と通信可能に構成され、前記複数の機器の各々から、前記第一の記憶部へのファイルの記憶及び前記第一の記憶部のファイルの編集が可能であるものを含む。 The disclosed terminal device is configured to be able to communicate with a plurality of devices registered in advance via a second network different from the first network, and from each of the plurality of devices, the first storage unit Including those capable of storing files and editing files in the first storage unit.
開示されたファイル同期方法は、同期対象ファイルが記憶される第一の記憶部を有する端末装置が、前記同期対象ファイルと、予め定められた識別情報とを、含む送信ファイルを、第一のネットワークを介して複数の前記端末装置と通信可能に構成されると共に前記複数の端末装置に対して割り当てられた記憶領域を含むサービス提供装置の前記記憶領域に記憶させる制御を行い、前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得し、前記取得したファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第一の記憶部に記憶するための処理を行うものである。 In the disclosed file synchronization method, a terminal device having a first storage unit in which a synchronization target file is stored includes a transmission file including the synchronization target file and predetermined identification information in a first network. And is configured to be communicable with a plurality of the terminal devices via the network, and to store in the storage area of the service providing apparatus including a storage area allocated to the plurality of terminal apparatuses. When a file stored in the storage area by a device other than its own device is acquired from the service providing device, and the acquired file is the transmission file, the synchronization target file included in the transmission file is the first file Processing for storing in the storage unit is performed.
開示されたファイル同期プログラムは、同期対象ファイルが記憶される第一の記憶部を有する端末装置に、前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、第一のネットワークを介して複数の前記端末装置と通信可能に構成されると共に前記複数の端末装置に割り当てられた記憶領域を含むサービス提供装置の前記記憶領域に記憶させる制御を行うアップロードステップと、前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得するダウンロードステップと、前記ダウンロードステップにより取得されたファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第一の記憶部に記憶するための処理を行う同期処理ステップと、を実行させるためのものである。 The disclosed file synchronization program stores a transmission file including the synchronization target file and predetermined identification information in a terminal device having a first storage unit in which the synchronization target file is stored. An upload step for performing control to store in the storage area of a service providing apparatus including a storage area allocated to the plurality of terminal apparatuses and configured to be communicable with the plurality of terminal apparatuses via the network; and A download step for acquiring a file stored in the storage area of the device other than its own device from the service providing device, and when the file acquired by the download step is the transmission file, the file is included in the transmission file Performs processing for storing the synchronization target file in the first storage unit A period processing step is for to run.
100 ファイル同期システム
1A 第一の情報機器
1B 第二の情報機器
2A 第一のNAS
2B 第二のNAS
3 第一のLAN
4 第二のLAN
5A 第一のルータ
5B 第二のルータ
6 インターネット
7 サービス提供装置
30 CPU
31 ROM
32 RAM
33 HDD部
330 HDD
A,B,C フォルダ
30A,30a 受付部
30B,30b ファイル管理部
30C,30c アップロード部
30D,30d 更新リスト取得部
30E,30e ダウンロード部
30F,30f 同期処理部
100
2B Second NAS
3 First LAN
4 Second LAN
5A First router
31 ROM
32 RAM
33
A, B,
Claims (9)
前記第一の端末装置は、前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、前記サービス提供装置の前記記憶領域に記憶させる制御を行うアップロード部を備え、
前記第二の端末装置は、前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得するダウンロード部と、前記ダウンロード部により取得された前記ファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第二の記憶部に記憶させる記憶制御部と、を備えるファイル同期システム。 A first terminal device having a first storage unit storing a synchronization target file; a second terminal device having a second storage unit; the first terminal device via a first network; and A file synchronization system configured to be communicable with a second terminal device and comprising a service providing device including a storage area allocated to the first terminal device and the second terminal device, ,
The first terminal device includes an upload unit that performs control to store a transmission file including the synchronization target file and predetermined identification information in the storage area of the service providing device,
The second terminal device includes: a download unit that acquires a file stored by a device other than the device itself in the storage area of the service providing device from the service providing device; and the file acquired by the download unit is the And a storage control unit that stores a synchronization target file included in the transmission file in the second storage unit when the file is a transmission file.
前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、第一のネットワークを介して複数の前記端末装置と通信可能に構成されると共に前記複数の端末装置に対して割り当てられた記憶領域を有するサービス提供装置の前記記憶領域に記憶させる制御を行うアップロード部と、
前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得するダウンロード部と、
前記ダウンロード部により取得されたファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第一の記憶部に記憶するための処理を行う同期処理部と、を備える端末装置。 A terminal device having a first storage unit in which a synchronization target file is stored,
A transmission file including the synchronization target file and predetermined identification information is configured to be communicable with a plurality of the terminal devices via a first network and assigned to the plurality of terminal devices. An upload unit for performing control to be stored in the storage area of the service providing apparatus having the storage area;
A download unit that acquires a file stored in the storage area of the service providing device by a device other than the device itself from the service providing device;
A synchronization processing unit that performs processing for storing a synchronization target file included in the transmission file in the first storage unit when the file acquired by the download unit is the transmission file; .
前記アップロード部は、前記第一の記憶部に記憶されている同期対象ファイルを所定のファイル形式へ変換を行い、ファイル形式変換後のファイルの所定領域に前記識別情報を書き込んだものを前記送信ファイルとして前記記憶領域に記憶させる端末装置。 The terminal device according to claim 2,
The upload unit converts the synchronization target file stored in the first storage unit into a predetermined file format, and writes the identification information in a predetermined area of the file after the file format conversion as the transmission file As a terminal device stored in the storage area.
前記アップロード部は、前記第一の記憶部に記憶されている同期対象ファイルを圧縮して圧縮ファイルを生成することでファイル形式の変換を行い、生成した前記圧縮ファイルのコメント領域を前記所定領域として当該コメント領域に前記識別情報を書き込んだものを前記送信ファイルとして前記記憶領域に記憶させる端末装置。 The terminal device according to claim 3,
The upload unit performs file format conversion by generating a compressed file by compressing the synchronization target file stored in the first storage unit, and uses the comment area of the generated compressed file as the predetermined area A terminal device that stores the identification information written in the comment area in the storage area as the transmission file.
前記アップロード部は、ファイルの利用に必要な所定のパスワードを設定した上で前記同期対象ファイルを圧縮して前記圧縮ファイルを生成し、
前記同期処理部は、前記ダウンロード部により取得されたファイルが前記送信ファイルである場合に、当該送信ファイルを前記所定のパスワードによって伸長する伸長処理を行い、伸長処理が成功した場合に、伸長処理によって得られた同期対象ファイルを前記第一の記憶部に記憶させる端末装置。 The terminal device according to claim 4,
The upload unit generates a compressed file by compressing the synchronization target file after setting a predetermined password necessary for using the file,
When the file acquired by the download unit is the transmission file, the synchronization processing unit performs a decompression process for decompressing the transmission file with the predetermined password, and when the decompression process is successful, A terminal device that stores the obtained synchronization target file in the first storage unit.
前記アップロード部は、同期対象ファイルのサイズ、拡張子、及び、日時情報の少なくも1つが予め定められた条件を満たす場合にのみ、前記送信ファイルを前記記憶領域に記憶させる端末装置。 The terminal device according to any one of claims 2 to 5,
The upload unit is a terminal device that stores the transmission file in the storage area only when at least one of the size, extension, and date / time information of the synchronization target file satisfies a predetermined condition.
前記第一のネットワークとは異なる第二のネットワークを介して予め登録された複数の機器と通信可能に構成され、前記複数の機器の各々から、前記第一の記憶部へのファイルの記憶及び前記第一の記憶部のファイルの編集が可能である端末装置。 The terminal device according to any one of claims 2 to 6,
It is configured to be able to communicate with a plurality of devices registered in advance via a second network different from the first network, and from each of the plurality of devices, storing a file to the first storage unit and A terminal device capable of editing a file in the first storage unit.
前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、第一のネットワークを介して複数の前記端末装置と通信可能に構成されると共に前記複数の端末装置に対して割り当てられた記憶領域を含むサービス提供装置の前記記憶領域に記憶させる制御を行い、
前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得し、
前記取得したファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第一の記憶部に記憶するための処理を行うファイル同期方法。 A terminal device having a first storage unit in which a synchronization target file is stored,
A transmission file including the synchronization target file and predetermined identification information is configured to be communicable with a plurality of the terminal devices via a first network and assigned to the plurality of terminal devices. Control to store in the storage area of the service providing device including the storage area,
A file stored by the device other than the device itself in the storage area of the service providing device is acquired from the service providing device,
A file synchronization method for performing processing for storing a synchronization target file included in the transmission file in the first storage unit when the acquired file is the transmission file.
前記同期対象ファイルと、予め定められた識別情報と、を含む送信ファイルを、第一のネットワークを介して複数の前記端末装置と通信可能に構成されると共に前記複数の端末装置に割り当てられた記憶領域を含むサービス提供装置の前記記憶領域に記憶させる制御を行うアップロードステップと、
前記サービス提供装置の前記記憶領域に自装置以外の装置によって記憶されたファイルを前記サービス提供装置から取得するダウンロードステップと、
前記ダウンロードステップにより取得されたファイルが前記送信ファイルである場合に、当該送信ファイルに含まれる同期対象ファイルを前記第一の記憶部に記憶するための処理を行う同期処理ステップと、を実行させるためのファイル同期プログラム。 In the terminal device having the first storage unit in which the synchronization target file is stored,
A transmission file including the synchronization target file and predetermined identification information is configured to be communicable with a plurality of the terminal devices via a first network and allocated to the plurality of terminal devices. An uploading step for performing control to store in the storage area of the service providing apparatus including the area;
A download step of acquiring from the service providing device a file stored by a device other than the device itself in the storage area of the service providing device;
A synchronization processing step for performing processing for storing a synchronization target file included in the transmission file in the first storage unit when the file acquired by the download step is the transmission file; File sync program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016000550A JP6597315B2 (en) | 2016-01-05 | 2016-01-05 | File synchronization system, terminal device, file synchronization method, and file synchronization program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016000550A JP6597315B2 (en) | 2016-01-05 | 2016-01-05 | File synchronization system, terminal device, file synchronization method, and file synchronization program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017122978A JP2017122978A (en) | 2017-07-13 |
JP6597315B2 true JP6597315B2 (en) | 2019-10-30 |
Family
ID=59306581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016000550A Active JP6597315B2 (en) | 2016-01-05 | 2016-01-05 | File synchronization system, terminal device, file synchronization method, and file synchronization program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6597315B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7223231B2 (en) * | 2019-05-31 | 2023-02-16 | 株式会社バッファロー | Storage device, storage method, and storage program |
CN117112508B (en) * | 2023-10-20 | 2024-02-06 | 杭州美创科技股份有限公司 | File synchronization method and device based on serial numbers, computer equipment and storage medium |
-
2016
- 2016-01-05 JP JP2016000550A patent/JP6597315B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2017122978A (en) | 2017-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6674532B2 (en) | Content Item Block Replication Protocol for Hosting Digital Content Items in Multiple Campuses | |
EP2950230B1 (en) | Information processing system, method of processing information, information processing apparatus, and program | |
JP4894619B2 (en) | Screen output setting method, information processing apparatus, and information processing system | |
US20040131188A1 (en) | Method of generating key data for successful communication during a network link | |
EP2843909A1 (en) | Information processing apparatus, method for controlling the same and computer program | |
US20150227605A1 (en) | Information processing terminal, synchronization control method, and computer-readable recording medium | |
JP6524635B2 (en) | Information storage system and information storage method | |
JP2006333103A (en) | Portable storage device, control program and connection setting method | |
JP7052481B2 (en) | Network system, setting information operation method and program | |
JP6597315B2 (en) | File synchronization system, terminal device, file synchronization method, and file synchronization program | |
JP6482204B2 (en) | Information processing terminal, control method thereof, and program | |
US20140280456A1 (en) | Relay apparatus, information processing system and method | |
JP2020052574A (en) | Management device, data distribution system and program | |
US9892243B2 (en) | Information processing apparatus, information processing method and non-transitory computer readable medium | |
US10545834B1 (en) | Server-assisted network data archiving | |
US20190297166A1 (en) | Relay device and non-transitory computer readable medium storing program | |
WO2016026291A1 (en) | Wireless data card, communication system, data synchronization method and computer storage medium | |
JP2020035184A (en) | Application program and data transfer system | |
JP6597314B2 (en) | File sharing support system, network storage device, file sharing support method, and file sharing support program | |
JP5535998B2 (en) | Data management system and data management method | |
JP6407449B2 (en) | System design support apparatus, method and program | |
JP6346478B2 (en) | Relay device, relay method, relay system, and program | |
JPWO2018011874A1 (en) | Wireless relay device | |
JP6231952B2 (en) | Data management apparatus and data management method | |
US20170149756A1 (en) | Authentication system, authentication method, and computer-readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20170403 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180925 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190722 |
|
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: 20190903 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190916 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6597315 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |