[go: up one dir, main page]

JP2011028716A - Backup device and backup method - Google Patents

Backup device and backup method Download PDF

Info

Publication number
JP2011028716A
JP2011028716A JP2009259381A JP2009259381A JP2011028716A JP 2011028716 A JP2011028716 A JP 2011028716A JP 2009259381 A JP2009259381 A JP 2009259381A JP 2009259381 A JP2009259381 A JP 2009259381A JP 2011028716 A JP2011028716 A JP 2011028716A
Authority
JP
Japan
Prior art keywords
file
directory
identifier
backup
information
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.)
Pending
Application number
JP2009259381A
Other languages
Japanese (ja)
Inventor
Junichi Wada
順一 和田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2009259381A priority Critical patent/JP2011028716A/en
Publication of JP2011028716A publication Critical patent/JP2011028716A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To improve user-friendliness by causing only a backup device to efficiently and surely executing differential backup while taking the initiative. <P>SOLUTION: The backup device 120 includes a directory identifier generation part 162 which generates a directory identifier with directory meta information as a seed; a file identifier generation part 164 which generates a file identifier with file meta information as a seed; a file holding part 124 which holds, together with one or more files, a management table 230 associating medium information, the directory identifier and the file identifier therewith; a backup determination part 166 which determines, upon connection of an optional external storage medium, the necessity of backup of each file stored in the optional external storage medium based on the management table 230; and a file duplication part which copies the file from the external storage medium to the file holding part. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、外部記憶媒体に接続し、接続した外部記憶媒体に記憶されているファイルと自体に複製されているファイルとの差分ファイルのみをバックアップするバックアップ装置およびバックアップ方法に関する。   The present invention relates to a backup apparatus and a backup method that are connected to an external storage medium and back up only a differential file between a file stored in the connected external storage medium and a file copied to itself.

近年、撮像機能を有するデジタルカメラやデジタルビデオカメラは、高機能化および高解像度化が進み、また、撮像された画像(静止画や動画)ファイルを表示可能なデジタルテレビジョンも高解像度のものが一般的になってきた。従って、HD(High Definition)画質の撮像および表示も可能となった。このような背景に伴い、撮像した画像ファイルを見る際、紙媒体への印刷を行うことなく、画像ファイルのままでデジタルテレビジョンに表示する形態が浸透しつつある。   In recent years, digital cameras and digital video cameras having an imaging function have been improved in function and resolution, and digital televisions capable of displaying captured image (still image or video) files have high resolution. It has become common. Accordingly, it has become possible to capture and display HD (High Definition) image quality. With such a background, when a captured image file is viewed, an image file is displayed on a digital television as it is without being printed on a paper medium.

このような表示形態によって画像ファイルを見るため、ユーザは、デジタルカメラ等とデジタルテレビジョンとをケーブルを介して接続しデジタルカメラ等で撮像した画像ファイルをデジタルテレビジョンに転送するか、デジタルカメラから挿脱可能なメモリカードをデジタルテレビジョンに挿入し直し、そのメモリカードからデジタルテレビジョンに画像ファイルを転送するといった手段をとる。しかし、かかる手段によっては、画像ファイルの表示を試みる度に、デジタルカメラとデジタルテレビジョンとを接続したり、メモリカードを挿脱したりしなければならなく、面倒であった。   In order to view an image file in such a display form, a user connects a digital camera or the like to a digital television via a cable and transfers the image file captured by the digital camera or the like to the digital television or from the digital camera. The memory card that can be inserted and removed is reinserted into the digital television, and an image file is transferred from the memory card to the digital television. However, depending on such means, each time an attempt is made to display an image file, the digital camera and the digital television must be connected or the memory card must be inserted and removed, which is troublesome.

そこで、デジタルカメラ等で撮像した画像ファイルを、HDD(Hard Disk Drive)等の大容量記憶媒体が設けられたBD(Blu-ray Disc)レコーダ等に一旦バックアップし、その後、機器間の接続やメモリカードの挿脱といった煩雑な処理を行うことなく、所望するタイミングでBDレコーダ等に記憶されている画像ファイルをデジタルテレビジョンに表示する形態が利用されるようになった。   Therefore, the image file captured by a digital camera or the like is temporarily backed up to a BD (Blu-ray Disc) recorder or the like provided with a large-capacity storage medium such as an HDD (Hard Disk Drive), and then connected between devices and memory A form in which an image file stored in a BD recorder or the like is displayed on a digital television at a desired timing without performing complicated processing such as card insertion / removal has come to be used.

デジタルカメラからBDレコーダへ画像ファイルをバックアップするときには、デジタルカメラに内蔵された記憶媒体または挿脱自在なメモリカードが、BDレコーダに対して単なる外部記憶媒体として機能し、BDレコーダは、その外部記憶媒体中の全てのファイルをBDレコーダに複製する。   When backing up image files from a digital camera to a BD recorder, a storage medium built in the digital camera or a removable memory card functions as a mere external storage medium for the BD recorder, and the BD recorder uses its external storage. Copy all files in the medium to the BD recorder.

しかし、このような画像ファイルのバックアップが複数回に及ぶ場合に、既にバックアップ済みのファイルまで毎回BDレコーダに取り込んでいると、デジタルカメラ内の画像ファイルの増加に伴ってバックアップに費やす時間が増え続け、利便性の低下を招くといった問題がある。そこで、1度バックアップしたファイルの重複バックアップを回避する差分バックアップ技術が検討されている。   However, when such image file backup is performed multiple times, if the BD recorder captures files that have already been backed up each time, the time spent for backup continues to increase as the number of image files in the digital camera increases. There is a problem that the convenience is reduced. Therefore, a differential backup technique that avoids duplicate backup of a file that has been backed up once has been studied.

例えば、全てのファイルを一意に識別する識別情報を構造化文書に記述して送信側装置(デジタルカメラ側)で保持し、新しいファイルが保存される度に送信側装置が構造化文書を更新し、受信側装置(BDレコーダ)がその構造化文書を参照して重複バックアップを防止する技術が開示されている(例えば特許文献1)。   For example, identification information that uniquely identifies all files is described in a structured document and held in the transmission side device (digital camera side), and the transmission side device updates the structured document every time a new file is saved. A technique is disclosed in which a receiving apparatus (BD recorder) refers to the structured document to prevent duplicate backup (for example, Patent Document 1).

特開2006−236232号公報JP 2006-236232 A

上述した特許文献1の技術では、デジタルカメラ等、送信側装置内のファイルの更新(削除、追加、変更)がなされた場合、その送信側装置内の構造化文書に操作履歴が残され、その操作履歴を参照すれば差分が生じたファイルを把握できるようになっている。かかる技術を利用するためには送信側装置も受信側装置も統一された規則に従わなければならない。しかし、送信側装置(デジタルカメラ)と受信側装置(BDレコーダ)が同一のベンダから提供されているとは限らないので、そのバックアップに関する規則の整合がとれない場合があった。従って、受信側装置のベンダや機種によっては、有効な操作情報を取得できず、正確な差分バックアップの遂行に支障を来していた。   In the technique of Patent Document 1 described above, when a file in the transmission-side device such as a digital camera is updated (deleted, added, or changed), an operation history is left in the structured document in the transmission-side device. By referring to the operation history, the file in which the difference has occurred can be grasped. In order to use such a technique, both the transmission side device and the reception side device must follow a unified rule. However, since the transmission side device (digital camera) and the reception side device (BD recorder) are not always provided by the same vendor, there are cases where the rules regarding the backup cannot be matched. Therefore, depending on the vendor and model of the receiving apparatus, effective operation information cannot be obtained, which hinders accurate differential backup.

また、従来の技術では、送信側装置と受信側装置とがバックアップを遂行した日時情報をそれぞれ記憶しておき、次回のバックアップ処理時にこの日時情報を参照することで、日時が等しいファイルのバックアップを回避していた。しかし、日時情報は、送信側装置と受信側装置それぞれの内部時刻を基準にして生成されているので、両者の内部時刻が正確に一致(同期)していない限り、差分バックアップが正しく遂行されないといった問題があった。   Also, in the conventional technology, the date and time information that the transmission side device and the reception side device performed backup is stored separately, and by referring to this date and time information during the next backup processing, backup of files with the same date and time is performed. I was avoiding it. However, since the date and time information is generated based on the internal time of each of the transmission side device and the reception side device, the differential backup is not performed correctly unless the internal times of both are exactly matched (synchronized). There was a problem.

さらに、特許文献1を含む従来の技術では、送信側装置内のすべてのファイルそれぞれに対する操作履歴のみを管理しているので、バックアップが完了しているファイルの数に拘わらず、バックアップの要否を判断する比較処理を送信側装置内のすべてのファイルの数分だけ実行しなければならなかった。従って、送信側装置に記憶されたファイルの増加に比例して、バックアップの処理時間も長くなる傾向にあった。   Furthermore, since the conventional techniques including Patent Document 1 manage only the operation history for all the files in the transmission side device, the necessity of backup is determined regardless of the number of files that have been backed up. The comparison processing to be judged had to be executed for the number of all files in the transmission side device. Therefore, the backup processing time tends to be longer in proportion to the increase in the number of files stored in the transmission side device.

本発明は、このような課題に鑑み、送信側装置(情報処理装置)と受信側装置(バックアップ装置)との間で統一された規則がなくとも、また内部時刻を一致させなくとも、バックアップ装置のみが主体となって差分バックアップを効率的かつ確実に実行することで、ユーザの利便性を向上させることが可能なバックアップ装置およびバックアップ方法を提供することを目的としている。   In view of such a problem, the present invention provides a backup device without a unified rule between the transmission side device (information processing device) and the reception side device (backup device) and without matching the internal time. It is an object of the present invention to provide a backup device and a backup method capable of improving the convenience for the user by performing differential backup efficiently and reliably mainly.

上記課題を解決するために、本発明は下記の装置および方法を提供するものである。
(1)外部記憶媒体に接続し、接続した前記外部記憶媒体に記憶されているファイルをバックアップするバックアップ装置であって、ディレクトリの更新の有無を認識可能なディレクトリメタ情報をシーズとしたディレクトリ識別子を生成するディレクトリ識別子生成部と、ファイルの更新の有無を認識可能なファイルメタ情報をシーズとしたファイル識別子を生成するファイル識別子生成部と、1または複数のファイルと共に、前記1または複数のファイルのバックアップ元である外部記憶媒体を特定する媒体情報と、前記バックアップ元である外部記憶媒体において前記1または複数のファイルが属していたディレクトリに対応する前記ディレクトリ識別子と、前記1または複数のファイルに対応する前記ファイル識別子と、を関連付けた管理テーブルを保持するファイル保持部と、任意の外部記憶媒体の接続時に、前記任意の外部記憶媒体に記憶されている各ファイルのバックアップの要否を前記管理テーブルに基づいて判断するバックアップ判断部と、前記バックアップ判断部でバックアップが必要と判断された1または複数の前記ファイルを前記外部記憶媒体から前記ファイル保持部に複製するファイル複製部と、を備えることを特徴とするバックアップ装置。
(2)前記バックアップ判断部は、バックアップが必要と判断された前記1または複数のファイルが属していたディレクトリに対応する前記ディレクトリ識別子を前記ディレクトリ識別子生成部に生成させ、前記1または複数のファイルに対応する前記ファイル識別子を前記ファイル識別子生成部に生成させ、生成された前記ディレクトリ識別子と前記ファイル識別子とを前記管理テーブルに登録することを特徴とする上記(1)に記載のバックアップ装置。
(3)前記バックアップ判断部は、接続された前記外部記憶媒体の媒体情報が、前記管理テーブルに存在するか否かを判断し、前記管理テーブルに前記媒体情報が存在しない場合、前記外部記憶媒体に記憶されている全てのファイルを前記ファイル複製部に複製させ前記ファイル保持部に記憶し、複製された前記ファイルが属していたディレクトリに対応するディレクトリ識別子を前記ディレクトリ識別子生成部に生成させ、複製された前記ファイルに対応するファイル識別子を前記ファイル識別子生成部に生成させ、前記媒体情報と生成された前記ディレクトリ識別子と前記ファイル識別子とを関連付けて前記管理テーブルに登録することを特徴とする上記(1)または(2)に記載のバックアップ装置。
(4)前記バックアップ判断部は、接続された前記外部記憶媒体の媒体情報が、前記管理テーブルに存在するか否かを判断し、前記管理テーブルに前記媒体情報が存在する場合、前記外部記憶媒体に設けられているディレクトリに対応するディレクトリ識別子を前記ディレクトリ識別子生成部に生成させ、生成された前記ディレクトリ識別子が前記管理テーブルの前記媒体情報に関連付けられているか否か判断し、前記生成されたディレクトリ識別子が前記管理テーブルの前記媒体情報に関連付けられている場合、そのディレクトリ階層下のファイルを複製しないことを特徴とする上記(1)から(3)のいずれかに記載のバックアップ装置。
(5)前記管理テーブルには、ディレクトリ識別子のシーズとなったディレクトリを特定可能なディレクトリ情報も関連付けられ、前記バックアップ判断部は、前記生成されたディレクトリ識別子が前記管理テーブルの前記媒体情報に関連付けられていない場合、そのディレクトリのディレクトリ情報が前記管理テーブルの前記媒体情報に関連付けられているか否か判断し、前記ディレクトリ情報が前記管理テーブルの前記媒体情報に関連付けられていない場合、前記ディレクトリ階層下の全てのファイルを前記ファイル複製部に複製させ前記ファイル保持部に記憶し、複製された前記ファイルに対応するファイル識別子を前記ファイル識別子生成部に生成させ、前記媒体情報と前記生成されたディレクトリ識別子と前記ディレクトリ情報と生成された前記ファイル識別子とを関連付けて前記管理テーブルに登録することを特徴とする上記(4)に記載のバックアップ装置。
(6)前記バックアップ判断部は、前記ディレクトリ情報が前記管理テーブルの前記媒体情報に関連付けられている場合、そのディレクトリ階層下のファイルに対応するファイル識別子を前記ファイル識別子生成部に生成させ、そのファイル識別子が前記管理テーブルのそのディレクトリに関連付けられているか否か判断し、生成された前記ファイル識別子が前記管理テーブルのそのディレクトリに関連付けられている場合、そのファイルを複製しないことを特徴とする上記(5)に記載のバックアップ装置。
(7)前記管理テーブルには、ファイル識別子のシーズとなったファイルを特定可能なファイル情報も関連付けられ、前記バックアップ判断部は、前記生成されたファイル識別子が前記管理テーブルの前記ディレクトリに関連付けられていない場合、そのファイルのファイル情報が前記管理テーブルの前記ディレクトリに関連付けられているか否か判断し、前記ファイル情報が前記管理テーブルの前記ディレクトリに関連付けられていない場合、そのファイルを前記ファイル複製部に複製させ前記ファイル保持部に記憶し、前記媒体情報と前記生成されたディレクトリ識別子と前記ディレクトリ情報と前記生成されたファイル識別子と前記ファイル情報とを関連付けて前記管理テーブルに登録することを特徴とする上記(6)に記載のバックアップ装置。
(8)前記バックアップ判断部は、前記ファイル情報が前記管理テーブルの前記ディレクトリに関連付けられている場合、そのファイルを前記ファイル複製部に複製させ前記ファイル保持部に上書きし、前記管理テーブルのディレクトリ識別子とファイル識別子とを前記生成したディレクトリ識別子と前記生成したファイル識別子とに更新することを特徴とする上記(7)に記載のバックアップ装置。
(9)前記管理テーブルには、ファイル識別子のシーズとなったファイルのファイル名を変換した変換ファイル名も関連付けられ、前記バックアップ判断部は、前記生成されたファイル識別子が前記管理テーブルの前記ディレクトリに関連付けられていない場合、そのファイルを前記ファイル複製部に複製させ、当該ファイルのファイル名を変換ファイル名に変換し、その変換ファイル名でファイル保持部に記憶し、前記媒体情報と前記生成されたディレクトリ識別子と前記ディレクトリ情報と前記生成されたファイル識別子と前記変換ファイル名とを関連付けて前記管理テーブルに登録することを特徴とする上記(6)に記載のバックアップ装置。
(10)外部記憶媒体を特定可能な媒体情報をシーズとした媒体識別子を生成する媒体識別子生成部をさらに備え、前記管理テーブルには、前記媒体情報に代えてまたは加えて前記媒体識別子も関連付けられ、前記バックアップ判断部は、前記媒体情報の代わりに前記媒体識別子を用いて各ファイルのバックアップの要否を判断することを特徴とする上記(1)から(9)のいずれかに記載のバックアップ装置。
(11)前記バックアップ判断部は、前記ファイル保持部のディレクトリまたはそのディレクトリに属するファイルの削除、追加、変更によっては、そのディレクトリに対応する前記管理テーブルのディレクトリ識別子を更新しないことを特徴とする上記(1)から(10)のいずれかに記載のバックアップ装置。
(12)前記バックアップ判断部は、前記ファイル保持部のファイルの削除、追加、変更によっては、そのファイルに対応する前記管理テーブルのファイル識別子を更新しないことを特徴とする上記(1)から(11)のいずれかに記載のバックアップ装置。
(13)外部記憶媒体に接続し、接続した前記外部記憶媒体に記憶されているファイルをバックアップするバックアップ方法であって、1または複数のファイルと共に、前記1または複数のファイルのバックアップ元である外部記憶媒体を特定する媒体情報と、前記バックアップ元である外部記憶媒体において前記1または複数のファイルが属していたディレクトリに対応するディレクトリ識別子と、前記1または複数のファイルに対応するファイル識別子と、を関連付けた管理テーブルを予め保持し、任意の外部記憶媒体の接続時に、前記任意の外部記憶媒体に記憶されている各ファイルのバックアップの要否を前記管理テーブルに基づいて判断し、バックアップが必要と判断された1または複数の前記ファイルを前記外部記憶媒体からファイル保持部に複製することを特徴とするバックアップ方法。
In order to solve the above problems, the present invention provides the following apparatus and method.
(1) A backup device that is connected to an external storage medium and backs up a file stored in the connected external storage medium, and has a directory identifier with a seed of directory meta information that can recognize whether a directory has been updated or not. A directory identifier generation unit to be generated, a file identifier generation unit that generates a file identifier based on file meta information that can recognize whether a file has been updated, and a backup of the one or more files together with one or more files Media information that identifies the original external storage medium, the directory identifier corresponding to the directory to which the one or more files belonged in the external storage medium that is the backup source, and the one or more files Associate the file identifier A file holding unit that holds a management table, and a backup determination unit that determines whether backup of each file stored in the arbitrary external storage medium is necessary based on the management table when an arbitrary external storage medium is connected; And a file duplicating unit for duplicating one or a plurality of the files determined to be backed up by the backup judging unit from the external storage medium to the file holding unit.
(2) The backup determination unit causes the directory identifier generation unit to generate the directory identifier corresponding to the directory to which the one or more files determined to be backed up belong to the one or more files. The backup apparatus according to (1), wherein the file identifier generation unit generates the corresponding file identifier, and registers the generated directory identifier and the file identifier in the management table.
(3) The backup determination unit determines whether the medium information of the connected external storage medium exists in the management table. If the medium information does not exist in the management table, the external storage medium All files stored in are copied to the file duplicating unit and stored in the file holding unit, and a directory identifier corresponding to a directory to which the duplicated file belongs is generated in the directory identifier generating unit, The file identifier generation unit generates a file identifier corresponding to the generated file, associates the medium information with the generated directory identifier and the file identifier, and registers them in the management table. The backup device according to 1) or (2).
(4) The backup determination unit determines whether the medium information of the connected external storage medium exists in the management table, and when the medium information exists in the management table, the external storage medium The directory identifier generation unit generates a directory identifier corresponding to the directory provided in the directory, determines whether the generated directory identifier is associated with the medium information of the management table, and generates the directory 4. The backup device according to any one of (1) to (3), wherein when an identifier is associated with the medium information in the management table, a file under the directory hierarchy is not duplicated.
(5) The management table is also associated with directory information that can identify the directory that is the seed of the directory identifier, and the backup determination unit associates the generated directory identifier with the medium information of the management table. If the directory information is not associated with the medium information of the management table, it is determined whether the directory information of the directory is associated with the medium information of the management table. All files are copied to the file replication unit and stored in the file holding unit, and a file identifier corresponding to the copied file is generated in the file identifier generation unit, and the medium information and the generated directory identifier are The directory information and Backup apparatus according to (4), characterized in that registered in the management table in association with the file identifier made.
(6) When the directory information is associated with the medium information in the management table, the backup determination unit causes the file identifier generation unit to generate a file identifier corresponding to the file under the directory hierarchy, and the file It is determined whether or not an identifier is associated with the directory of the management table, and when the generated file identifier is associated with the directory of the management table, the file is not duplicated. The backup device according to 5).
(7) The management table is also associated with file information that can identify the file identifier seed file, and the backup determination unit associates the generated file identifier with the directory of the management table. If not, it is determined whether the file information of the file is associated with the directory of the management table. If the file information is not associated with the directory of the management table, the file is stored in the file duplication unit. It is copied and stored in the file holding unit, and the medium information, the generated directory identifier, the directory information, the generated file identifier, and the file information are associated with each other and registered in the management table. Bag described in (6) above -Up apparatus.
(8) When the file information is associated with the directory of the management table, the backup determination unit copies the file to the file replication unit and overwrites the file holding unit, and the directory identifier of the management table And the file identifier is updated to the generated directory identifier and the generated file identifier. (7).
(9) The management table is also associated with a converted file name obtained by converting the file name of the file that is the seed of the file identifier, and the backup determination unit stores the generated file identifier in the directory of the management table. If not associated, the file duplicating unit is duplicated, the file name of the file is converted into a converted file name, the converted file name is stored in the file holding unit, the medium information and the generated The backup device according to (6), wherein a directory identifier, the directory information, the generated file identifier, and the converted file name are associated with each other and registered in the management table.
(10) A medium identifier generation unit that generates a medium identifier using the medium information that can specify the external storage medium as a seed, and the medium identifier is associated with the management table instead of or in addition to the medium information. The backup device according to any one of (1) to (9), wherein the backup determining unit determines whether or not each file needs to be backed up using the medium identifier instead of the medium information. .
(11) The backup determination unit does not update the directory identifier of the management table corresponding to the directory when the directory of the file holding unit or a file belonging to the directory is deleted, added, or changed. The backup device according to any one of (1) to (10).
(12) The backup determination unit does not update the file identifier of the management table corresponding to the file depending on the deletion, addition, or change of the file in the file holding unit. The backup device according to any one of the above.
(13) A backup method for connecting to an external storage medium and backing up a file stored in the connected external storage medium, wherein the external is a backup source of the one or more files together with one or more files Medium information for specifying a storage medium, a directory identifier corresponding to the directory to which the one or more files belong in the external storage medium as the backup source, and a file identifier corresponding to the one or more files. An associated management table is stored in advance, and when an arbitrary external storage medium is connected, the necessity of backup of each file stored in the arbitrary external storage medium is determined based on the management table, and backup is required. The determined one or more files are transferred from the external storage medium. Backup method characterized by replicating the yl holder.

本発明を用いることで、情報処理装置とバックアップ装置との間で統一された規則がなくとも、また内部時刻を一致させなくとも、バックアップ装置のみが主体となって差分バックアップを効率的かつ確実に実行することで、ユーザの利便性を向上させることが可能となる。   By using the present invention, even if there is no unified rule between the information processing device and the backup device, and even if the internal times are not matched, only the backup device is mainly used to perform differential backup efficiently and reliably. By executing, it is possible to improve user convenience.

第1の実施形態にかかるバックアップシステムの概略的な接続関係を示した説明図である。It is explanatory drawing which showed the schematic connection relation of the backup system concerning 1st Embodiment. 第1の実施形態にかかるバックアップ装置の概略的な構成を示した機能ブロック図である。It is a functional block diagram showing a schematic configuration of a backup device according to the first embodiment. 記憶媒体におけるデバイス・ディスクリプタ情報を説明するための説明図である。It is explanatory drawing for demonstrating the device descriptor information in a storage medium. 記憶媒体における階層構造を説明するための説明図である。It is explanatory drawing for demonstrating the hierarchical structure in a storage medium. ディレクトリメタ情報の一例を示した説明図である。It is explanatory drawing which showed an example of directory meta information. 管理テーブルを説明するための説明図である。It is explanatory drawing for demonstrating a management table. 管理テーブルの階層関係を説明するための説明図である。It is explanatory drawing for demonstrating the hierarchical relationship of a management table. ファイルの編集を説明するための説明図である。It is explanatory drawing for demonstrating edit of a file. ファイルの編集を説明するための説明図である。It is explanatory drawing for demonstrating edit of a file. 第1の実施形態にかかるバックアップ方法の全体的な流れを示したフローチャートである。It is the flowchart which showed the whole flow of the backup method concerning 1st Embodiment. 第2の実施形態にかかる管理テーブルを説明するための説明図である。It is explanatory drawing for demonstrating the management table concerning 2nd Embodiment. 第2の実施形態にかかるバックアップ方法の全体的な流れを示したフローチャートである。It is the flowchart which showed the whole flow of the backup method concerning 2nd Embodiment.

以下に添付図面を参照しながら、本発明の好適な実施形態について詳細に説明する。かかる実施形態に示す寸法、材料、その他具体的な数値等は、発明の理解を容易とするための例示にすぎず、特に断る場合を除き、本発明を限定するものではない。なお、本明細書及び図面において、実質的に同一の機能、構成を有する要素については、同一の符号を付することにより重複説明を省略し、また本発明に直接関係のない要素は図示を省略する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. The dimensions, materials, and other specific numerical values shown in the embodiments are merely examples for facilitating the understanding of the invention, and do not limit the present invention unless otherwise specified. In the present specification and drawings, elements having substantially the same function and configuration are denoted by the same reference numerals, and redundant description is omitted, and elements not directly related to the present invention are not illustrated. To do.

(第1の実施形態:バックアップシステム100)
図1は、本実施形態にかかるバックアップシステム100の概略的な接続関係を示した説明図である。当該バックアップシステム100は、情報処理装置110と、バックアップ装置120と、ディスプレイ130とを含んで構成される。
(First embodiment: backup system 100)
FIG. 1 is an explanatory diagram showing a schematic connection relationship of the backup system 100 according to the present embodiment. The backup system 100 includes an information processing apparatus 110, a backup apparatus 120, and a display 130.

情報処理装置110は、デジタルカメラ、デジタルビデオカメラ、携帯電話、PHS(Personal Handy phone System)、ノート型パーソナルコンピュータ、PDA(Personal Digital Assistant)、ゲーム機器等、画像(静止画または動画)を取得可能な電気機器で構成され、機能部112や記憶媒体114を有している。その他にも図示しない機能として、機能部112がバッファとして利用するメモリ、撮像部、画像出力部、操作部等を備える。   The information processing apparatus 110 can acquire images (still images or moving images) of digital cameras, digital video cameras, mobile phones, PHS (Personal Handy phone System), notebook personal computers, PDAs (Personal Digital Assistants), game machines, etc. It is composed of various electrical devices and has a functional unit 112 and a storage medium 114. In addition, as functions not shown, the function unit 112 includes a memory used as a buffer, an imaging unit, an image output unit, an operation unit, and the like.

情報処理装置110の機能部112は、情報処理装置110全体を制御し情報処理装置110それぞれに特有の機能を遂行する。例えば、デジタルカメラやデジタルビデオカメラであれば、被写体の撮像機能を遂行する。記憶媒体114は、機能部112が機能した結果、生成されたファイル、例えば、デジタルカメラやデジタルビデオカメラであれば、撮像された画像ファイルを保持する。   The functional unit 112 of the information processing apparatus 110 controls the entire information processing apparatus 110 and performs functions specific to each of the information processing apparatuses 110. For example, in the case of a digital camera or a digital video camera, the subject imaging function is performed. The storage medium 114 holds a file generated as a result of the function unit 112 functioning, for example, a captured image file in the case of a digital camera or a digital video camera.

情報処理装置110が、機能部112を主体的に機能させていない間、その記憶媒体114は、バックアップ装置120等による外部からのアクセスを受け付けることができる。このとき、情報処理装置110(特にその記憶媒体114部分)はバックアップ装置120に対して単なる外部記憶媒体として認識されることとなる。   While the information processing apparatus 110 does not cause the functional unit 112 to function independently, the storage medium 114 can accept external access from the backup apparatus 120 or the like. At this time, the information processing apparatus 110 (particularly the storage medium 114) is recognized as a simple external storage medium by the backup apparatus 120.

例えば、バックアップ装置120と情報処理装置110とをUSB(Universal Serial Bus)接続ケーブル116やIEEE802.11b/a/g/nなどの無線通信を通じて接続したとき、また、記憶媒体114がメモリカードのようなリムーバブルメディアであれば記憶媒体114を情報処理装置110からバックアップ装置120に差し替えたとき、バックアップ装置120は、情報処理装置110の記憶媒体114に、バックアップ装置120内のメモリの如く直接アクセスし、ファイルを読み出すことが可能となる。   For example, when the backup device 120 and the information processing device 110 are connected through wireless communication such as a USB (Universal Serial Bus) connection cable 116 or IEEE802.11b / a / g / n, the storage medium 114 is a memory card. If the storage medium 114 is replaced from the information processing apparatus 110 to the backup apparatus 120, the backup apparatus 120 directly accesses the storage medium 114 of the information processing apparatus 110 like a memory in the backup apparatus 120, and stores the file. Can be read out.

バックアップ装置120は、BDプレーヤ、DVDプレーヤ、CDプレーヤ、HDDプレーヤ、携帯電話、PHS(Personal Handy phone System)、ノート型パーソナルコンピュータ、PDA(Personal Digital Assistant)、ポータブルテレビ、ゲーム機器等、ディスプレイ130と接続可能またはディスプレイを有する様々な装置で構成され、中央制御部122やファイル保持部124を有している。その他にも図示しない機能として、中央制御部122がバッファとして利用するメモリ、ディスクドライブ、映像入出力部、操作部等を備える。   The backup device 120 includes a BD player, DVD player, CD player, HDD player, mobile phone, PHS (Personal Handy phone System), notebook personal computer, PDA (Personal Digital Assistant), portable TV, game machine, etc. It is composed of various devices that can be connected or have a display, and has a central control unit 122 and a file holding unit 124. As other functions not shown, the central control unit 122 includes a memory used as a buffer, a disk drive, a video input / output unit, an operation unit, and the like.

ディスプレイ130は、液晶ディスプレイ、有機EL(Electro Luminescence)ディスプレイ等で構成され、バックアップ装置120に記憶された画像ファイル等を表示することができる。   The display 130 includes a liquid crystal display, an organic EL (Electro Luminescence) display, and the like, and can display an image file stored in the backup device 120.

当該バックアップシステム100では、情報処理装置110によって撮像され、その記憶媒体114に保持されている画像ファイルを、バックアップ装置120にバックアップすることができる。一度バックアップ装置120に画像ファイルがバックアップされると、ユーザは、情報処理装置110を再度持ち出さなくても、所望するタイミングで、その画像ファイルをディスプレイ130に表示させることができる。   In the backup system 100, the image file captured by the information processing apparatus 110 and held in the storage medium 114 can be backed up to the backup apparatus 120. Once the image file is backed up in the backup device 120, the user can display the image file on the display 130 at a desired timing without taking out the information processing device 110 again.

しかし、情報処理装置110を有するユーザが、情報処理装置110からバックアップ装置120へのバックアップを完了した後、バックアップが為された情報処理装置110のファイルを削除するとは限らない。従って、情報処理装置110では、バックアップ装置120へのバックアップが完了しているファイルと、まだバックアップが為されていないファイルとが混在する状況が生じ得る。このような状況下で、バックアップが為されていないファイルのバックアップを試みると、バックアップが完了しているファイルまでバックアップが実行されてしまい、バックアップに多大な時間を費やすことになってしまう。そこで、本実施形態のバックアップ装置120では、1度バックアップしたファイルの重複バックアップを回避する差分バックアップを遂行する。   However, after the user having the information processing apparatus 110 completes the backup from the information processing apparatus 110 to the backup apparatus 120, the file of the information processing apparatus 110 that has been backed up is not necessarily deleted. Therefore, in the information processing apparatus 110, there may occur a situation in which a file that has been backed up to the backup apparatus 120 and a file that has not yet been backed up are mixed. Under such circumstances, if a backup of a file that has not been backed up is attempted, the backup is executed up to the file that has been backed up, and a large amount of time is spent on the backup. Therefore, the backup device 120 of the present embodiment performs differential backup that avoids duplicate backup of files that have been backed up once.

また、本実施形態のバックアップ装置120は、送信側の情報処理装置110と受信側のバックアップ装置120との間で統一された規則がなくとも、また内部時刻を一致させなくとも、バックアップ装置120のみが主体となって差分バックアップを効率的かつ確実に実行することで、ユーザの利便性を向上させることを目的としている。以下、かかるバックアップ装置120について詳述する。   Further, the backup device 120 according to the present embodiment is only the backup device 120 even if there is no rule unified between the information processing device 110 on the transmission side and the backup device 120 on the reception side, and the internal times are not matched. The purpose is to improve the convenience of the user by executing differential backup efficiently and reliably. Hereinafter, the backup device 120 will be described in detail.

(バックアップ装置120)
図2は、本実施形態にかかるバックアップ装置120の概略的な構成を示した機能ブロック図である。バックアップ装置120は、外部接続部150と、操作部152と、リモコンI/F部154と、ファイル保持部124と、中央制御部122と、を含んで構成される。
(Backup device 120)
FIG. 2 is a functional block diagram showing a schematic configuration of the backup device 120 according to the present embodiment. The backup device 120 includes an external connection unit 150, an operation unit 152, a remote control I / F unit 154, a file holding unit 124, and a central control unit 122.

外部接続部150は、USBポート等で構成され、USB接続ケーブル116を通じて外部記憶媒体としての情報処理装置110の記憶媒体114と接続を確立する。   The external connection unit 150 is configured by a USB port or the like, and establishes a connection with the storage medium 114 of the information processing apparatus 110 as an external storage medium through the USB connection cable 116.

図3は、記憶媒体114におけるデバイス・ディスクリプタ情報210を説明するための説明図である。外部接続部150は、USBマスストレージとして認識された記憶媒体114における、図3に示した、デバイス・ディスクリプタ情報210およびその配下に位置するストリング・ディスクリプタ情報212を参照して、情報処理装置110の記憶媒体114を特定する媒体情報、例えばベンダID214、プロダクトID216、シリアルナンバ218を読み出す。また、外部接続部150が情報処理装置110とIEEE802.11b/a/g/nなどの無線通信を介して接続を確立する場合には、無縁通信の確立に用いるMAC(Media Access Control)アドレスを媒体情報とすることもできる。   FIG. 3 is an explanatory diagram for explaining the device descriptor information 210 in the storage medium 114. The external connection unit 150 refers to the device descriptor information 210 and the string descriptor information 212 located under the device descriptor information 210 shown in FIG. 3 in the storage medium 114 recognized as the USB mass storage, and The medium information for specifying the storage medium 114, for example, the vendor ID 214, the product ID 216, and the serial number 218 is read. Further, when the external connection unit 150 establishes a connection with the information processing apparatus 110 via wireless communication such as IEEE802.11b / a / g / n, a MAC (Media Access Control) address used for establishment of connectionless communication is set. It can also be medium information.

また、記憶媒体114がSDカードであれば、CID(The Card IDentification)レジスタの値を情報処理装置110の記憶媒体114を特定する媒体情報として利用できる。CIDには、ベンダを示すMID(Manufacturer ID)フィールド、製品名を示すPNM(Product name)フィールド、シリアル番号を示すPSN(Product serial number)フィールドなどがある。   If the storage medium 114 is an SD card, the value of a CID (The Card IDentification) register can be used as medium information for specifying the storage medium 114 of the information processing apparatus 110. The CID includes an MID (Manufacturer ID) field indicating a vendor, a PNM (Product name) field indicating a product name, and a PSN (Product serial number) field indicating a serial number.

外部接続部150は、媒体情報を読み終えると、中央制御部122の指示に従い、記憶媒体114のファイルをファイル保持部124に複製するファイル複製部として機能する。ファイル複製部は、後述するバックアップ判断部166がバックアップする必要があると判断した1または複数のファイルに対して、本実施形態のバックアップ処理を遂行する。このとき外部接続部150は、各ファイルが属しているディレクトリも読み出し、ファイル保持部124に記憶媒体114と同形式の階層を形成する。   When the external connection unit 150 finishes reading the medium information, the external connection unit 150 functions as a file duplication unit that duplicates the file in the storage medium 114 to the file holding unit 124 in accordance with an instruction from the central control unit 122. The file duplicating unit performs the backup process of the present embodiment on one or more files determined to be backed up by a backup determining unit 166 described later. At this time, the external connection unit 150 also reads the directory to which each file belongs, and forms a hierarchy of the same format as the storage medium 114 in the file holding unit 124.

図4は、記憶媒体114における階層構造220を説明するための説明図である。情報処理装置110がデジタルカメラであった場合、撮像された画像ファイルは、一般的に、図4に示されるDCF(Design rule for Camera File system)形式の階層構造220で記憶媒体114に保持される。記憶媒体114には、図4に示すように、ルートディレクトリの直下の階層に「DCIM」ディレクトリ222が形成され、さらにその階層下に画像ファイルを格納する「100ABCDE」ディレクトリ224が形成される。かかる「100ABCDE」ディレクトリ224には、任意の英数文字を並置したファイル名(ファイル情報)によって特定される複数のファイルが格納されている。   FIG. 4 is an explanatory diagram for explaining the hierarchical structure 220 in the storage medium 114. When the information processing apparatus 110 is a digital camera, the captured image file is generally held in the storage medium 114 in a hierarchical structure 220 in the DCF (Design Rule for Camera File system) format shown in FIG. . In the storage medium 114, as shown in FIG. 4, a “DCIM” directory 222 is formed immediately below the root directory, and a “100ABCDE” directory 224 that stores image files is further formed below that layer. The “100ABCDE” directory 224 stores a plurality of files specified by file names (file information) in which arbitrary alphanumeric characters are juxtaposed.

また、ここでは、階層構造220として、DCF形式を挙げているが、かかる場合に限られず、SDメモリカードに記録されたSD Video形式の動画ファイルやパーソナルコンピュータ用の汎用外付けHDD装置に構築された任意のディレクトリおよびファイル構造であってもよい。   Also, here, the DCF format is cited as the hierarchical structure 220, but the present invention is not limited to this, and it is constructed in a SD Video format moving image file recorded on an SD memory card or a general-purpose external HDD device for a personal computer. Any directory and file structure may be used.

外部接続部150は、図4に示したDCF形式の階層構造220における各ディレクトリを特定可能なディレクトリ情報(例えば、ディレクトリパス等)、各ディレクトリの更新の有無を認識可能なディレクトリメタ情報、各ファイルを特定可能なファイル情報(例えば、ファイル名等)、および、各ファイルの更新の有無を認識可能なファイルメタ情報等を読み出す。   The external connection unit 150 includes directory information (for example, a directory path) that can specify each directory in the DCF format hierarchical structure 220 shown in FIG. 4, directory meta information that can recognize whether each directory has been updated, and each file. File information (for example, a file name, etc.) and file meta information that can recognize whether each file has been updated are read out.

図5は、ディレクトリメタ情報の一例を示した説明図である。ここでは、アプリケーションインターフェイス規格であるPOSIX(Portable Operating System Interface for Unix(登録商標))準拠の「stat」コマンドで取得できるディレクトリメタ情報が示されている。かかるPOSIXにおけるディレクトリメタ情報では、後述するように、主として更新の有無を把握可能な最終修正時刻226が用いられる。また、ここではその図示を省略しているが、ファイルメタ情報も図5に示したディレクトリ情報同様の形式で構成されている。   FIG. 5 is an explanatory diagram showing an example of directory meta information. Here, directory meta information that can be acquired by a “stat” command compliant with POSIX (Portable Operating System Interface for Unix (registered trademark)), which is an application interface standard, is shown. In the directory meta information in the POSIX, as will be described later, a last modification time 226 capable of mainly grasping whether or not there is an update is used. Although illustration thereof is omitted here, the file meta information is also configured in the same format as the directory information shown in FIG.

操作部152は、キーボード、十字キー、ジョイスティック等のスイッチ、ディスプレイ130の表示面上に設置されたタッチパネル等で構成され、バックアップ装置120へのユーザの操作入力を受け付ける。   The operation unit 152 includes a switch such as a keyboard, a cross key, and a joystick, a touch panel installed on the display surface of the display 130, and receives a user operation input to the backup device 120.

リモコンI/F部154は、リモコン132との赤外線通信を通じてユーザによる操作入力に対応したコマンドを取得し、中央制御部122に伝達する。中央制御部122は、かかるコマンドが入力されると、そのコマンドに対応した処理、例えばバックアップ処理や画像ファイル再生処理等を遂行する。   The remote control I / F unit 154 acquires a command corresponding to an operation input by the user through infrared communication with the remote control 132 and transmits the command to the central control unit 122. When such a command is input, the central control unit 122 performs processing corresponding to the command, such as backup processing and image file reproduction processing.

ファイル保持部124は、RAM、フラッシュメモリ、HDD(Hard disk drive)等で構成され、情報処理装置110からバックアップされた1または複数のファイルや、後述する管理テーブル230を保持する。なお、HDDは正確には装置であるが、説明の便宜上本説明では記録媒体と同義として扱う。   The file holding unit 124 includes a RAM, a flash memory, an HDD (Hard disk drive), and the like, and holds one or more files backed up from the information processing apparatus 110 and a management table 230 described later. Note that the HDD is precisely an apparatus, but for the sake of convenience of explanation, it is treated as synonymous with a recording medium in this description.

中央制御部122は、中央処理装置(CPU)、プログラム等が格納されたROM、ワークエリアとしてのRAM等を含む半導体集積回路により、バックアップ装置120全体を制御する。また、中央制御部122は、図2に示すように、媒体識別子生成部160と、ディレクトリ識別子生成部162と、ファイル識別子生成部164と、バックアップ判断部166として機能する。   The central control unit 122 controls the entire backup device 120 by a semiconductor integrated circuit including a central processing unit (CPU), a ROM storing programs, a RAM as a work area, and the like. Further, as shown in FIG. 2, the central control unit 122 functions as a medium identifier generation unit 160, a directory identifier generation unit 162, a file identifier generation unit 164, and a backup determination unit 166.

媒体識別子生成部160は、情報処理装置110の記憶媒体114を特定可能な媒体情報、例えば、上述したベンダID214、プロダクトID216、シリアルナンバ218等をシーズとした媒体識別子を生成する。具体的に、媒体識別子生成部160は、媒体情報のいずれか1つまたは全てを並置し、例えば、ベンダID214「04f1」、プロダクトID216「001c」、シリアルナンバ218「01000c005276」を全て一列に並べた文字列「04f1 001c 01000c005276」に、MD5(Message Digest Algorithm 5)やSHA1(Secure Hash Algorithm 1)等、既存の片方向ハッシュ関数を用いて所定の桁数のハッシュ値を生成する。   The medium identifier generation unit 160 generates a medium identifier using the medium information that can identify the storage medium 114 of the information processing apparatus 110 as a seed, for example, the vendor ID 214, the product ID 216, the serial number 218, and the like. Specifically, the medium identifier generation unit 160 juxtaposes any one or all of the medium information, and arranges, for example, the vendor ID 214 “04f1”, the product ID 216 “001c”, and the serial number 218 “01000c005276” all in one line. A hash value having a predetermined number of digits is generated in the character string “04f1 001c 01000c005276” using an existing one-way hash function such as MD5 (Message Digest Algorithm 5) or SHA1 (Secure Hash Algorithm 1).

ディレクトリ識別子生成部162は、ディレクトリの更新の有無を認識可能なディレクトリメタ情報をシーズとしたディレクトリ識別子を生成する。かかるディレクトリ識別子は、媒体識別子同様、片方向ハッシュ関数を用いて生成される。例えば、ディレクトリメタ情報であるディレクトリパス「/dicm/100abcde」と図5のディレクトリメタ情報に示す最終修正時刻226「2009/07/07 13:52:12:123」とを一列に並べた文字列「/dicm/1004abcde2009/07/0713:52:12:123」にハッシュを施す。ディレクトリパスおよび最終修正時刻226をシーズとすることでバックアップ装置120における同一のディレクトリパスの同一時刻の更新でない限りハッシュ値が異なることとなり、ディレクトリ識別子を用いて確実に各ディレクトリを識別することができるようになる。   The directory identifier generation unit 162 generates a directory identifier with the directory meta information that can recognize whether or not the directory is updated as a seed. Such a directory identifier is generated using a one-way hash function, like the medium identifier. For example, a character string in which the directory path “/ dicm / 100abcde” as directory meta information and the last modification time 226 “2009/07/07 13: 52: 12: 123” shown in the directory meta information in FIG. 5 are arranged in a line. Hash “/ dicm / 1004abcde2009 / 07/0713: 52: 12: 123”. By setting the directory path and the last modification time 226 as seeds, the hash values are different unless the same directory path is updated at the same time in the backup device 120, and each directory can be reliably identified using the directory identifier. It becomes like this.

ディレクトリメタ情報は、図5に示したディレクトリメタ情報のパラメータ全て(ただし、最終アクセス時刻228を除く。)を対象としてもよいし、図5のディレクトリメタ情報を構成するパラメータ群から選択された1または複数のパラメータのみを用いてもよい。本実施形態では、当該ディレクトリまたはそのディレクトリに属するファイルが最後に修正されたときの時刻である最終修正時刻226を用いることとする。ここで最終アクセス時刻228を除くとしたのは、ディレクトリに属するファイルの実質的な修正を伴わなくとも、そのファイルにアクセスしただけで最終アクセス時刻228が更新されてしまうので、ファイルの修正の有無を検出するのに却って妨げになるからである。   The directory meta information may include all the parameters of the directory meta information shown in FIG. 5 (except for the last access time 228), or 1 selected from the parameter group constituting the directory meta information of FIG. Alternatively, only a plurality of parameters may be used. In this embodiment, the last modification time 226 that is the time when the directory or the file belonging to the directory is last modified is used. Here, the last access time 228 is excluded because the last access time 228 is updated only by accessing the file even if the file belonging to the directory is not substantially modified. This is because it becomes a hindrance to detect this.

本実施形態において、ディレクトリ識別子生成部162は、シーズとなるディレクトリメタ情報を、一貫して、送信側、即ち、情報処理装置110の記憶媒体114から取得する。従って、ディレクトリメタ情報に更新があったか否かを同一の情報処理装置110の同一のディレクトリメタ情報から取得することとなるので、バックアップ装置120と情報処理装置110との内部時刻の差がディレクトリ識別子に影響を与えることはなく、ディレクトリまたはそのディレクトリに属するファイルの更新がない限り、何時でも同一のディレクトリ識別子を生成することが可能となる。   In the present embodiment, the directory identifier generation unit 162 consistently acquires the seeded directory meta information from the transmission side, that is, the storage medium 114 of the information processing apparatus 110. Accordingly, since whether or not the directory meta information has been updated is acquired from the same directory meta information of the same information processing apparatus 110, the difference in internal time between the backup apparatus 120 and the information processing apparatus 110 is used as the directory identifier. The same directory identifier can be generated at any time as long as there is no update of a directory or a file belonging to the directory without any influence.

また、本実施形態では、そのようなバックアップ処理を受信側であるバックアップ装置120のみが管理し、換言すれば、バックアップ処理に関する規則はバックアップ装置120のみに存在することとなるので、情報処理装置110との何らの統一された規則も必要としない。   In the present embodiment, such backup processing is managed only by the backup device 120 on the receiving side. In other words, the rules regarding the backup processing exist only in the backup device 120, and thus the information processing device 110. There is no need for any unified rules.

かかる構成により、送信側の情報処理装置110および受信側のバックアップ装置120)で統一された規則がなくとも、また内部時刻を同期しなくとも、受信側のバックアップ装置120のみで完結して確実に差分バックアップを実行することができ、ユーザの利便性を向上させることが可能となる。   With such a configuration, even if there is no rule unified between the information processing apparatus 110 on the transmission side and the backup apparatus 120 on the reception side, and the internal time is not synchronized, it is ensured that only the reception side backup apparatus 120 completes. Differential backup can be executed, and user convenience can be improved.

ファイル識別子生成部164は、ファイルの更新の有無を認識可能なファイルメタ情報をシーズとしたファイル識別子を生成する。かかるファイル識別子も、ディレクトリ識別子同様、片方向ハッシュ関数を用いて生成される。例えば、ファイルメタ情報のうち、ファイル情報であるファイル名「ABCS0001.JPG」と最終修正時刻226「2009/07/07 13:52:12:123」とを一列に並べた文字列「ABCS0001.JPG2009/07/0713:52:12:123」にハッシュを施す。ファイル名および最終修正時刻226をシーズとすることでバックアップ装置120における同一のファイル名の同一時刻の更新でない限りハッシュ値が異なることとなり、ファイル識別子を用いて確実に各ファイルを識別することができるようになる。   The file identifier generation unit 164 generates a file identifier using the file meta information that can recognize whether or not the file is updated as a seed. Similar to the directory identifier, such a file identifier is also generated using a one-way hash function. For example, in the file meta information, the file name “ABCS0001.JPG” which is file information and the last modified time 226 “2009/07/07 13: 52: 12: 123” arranged in a line “ABCS0001.JPG2009” / 07/0713: 52: 12: 123 ". By setting the file name and the last modification time 226 as seeds, the hash values are different unless the same file name is updated at the same time in the backup device 120, and each file can be reliably identified using the file identifier. It becomes like this.

ファイルメタ情報は、ディレクトリメタ情報同様、パラメータ全て(ただし、最終アクセス時刻228を除く。)を対象としてもよいし、ファイルメタ情報を構成するパラメータ群から選択された1または複数のパラメータのみを用いてもよい。   The file meta information, like the directory meta information, may include all parameters (except the last access time 228), or use only one or a plurality of parameters selected from the parameter group constituting the file meta information. May be.

本実施形態において、ファイル識別子生成部164も、ディレクトリ識別子生成部162同様、シーズとなるファイルメタ情報を、一貫して、情報処理装置110の記憶媒体114から取得しているので、ファイルの実質的な更新がない限り、何時でも同一のファイル識別子を導出することが可能となる。   In the present embodiment, since the file identifier generation unit 164 also consistently acquires the file meta information serving as seeds from the storage medium 114 of the information processing apparatus 110, as with the directory identifier generation unit 162, Unless there is a simple update, the same file identifier can be derived at any time.

このように、媒体識別子生成部160、ディレクトリ識別子生成部162、ファイル識別子生成部164によって生成された媒体識別子、ディレクトリ識別子、ファイル識別子は、外部接続部150が読み出した媒体情報、ディレクトリ情報、ファイル情報とそれぞれ関連付けられ、管理テーブルを形成する。かかる管理テーブルは、ファイル保持部124に保持されている。   As described above, the medium identifier, the directory identifier, and the file identifier generated by the medium identifier generation unit 160, the directory identifier generation unit 162, and the file identifier generation unit 164 are the medium information, directory information, and file information read by the external connection unit 150. Are associated with each other to form a management table. Such a management table is held in the file holding unit 124.

図6は、管理テーブル230を説明するための説明図である。管理テーブル230は、図6(a)に示された、記憶媒体114を管理する記憶媒体テーブル232と、図6(b)に示された、ディレクトリを管理するディレクトリテーブル234と、図6(c)に示された、ファイルを管理するファイルテーブル236とから構成され、その階層関係に従ってそれぞれがリンクされている。   FIG. 6 is an explanatory diagram for explaining the management table 230. The management table 230 includes a storage medium table 232 for managing the storage medium 114 shown in FIG. 6A, a directory table 234 for managing directories shown in FIG. 6B, and FIG. ) And a file table 236 for managing files, which are linked according to their hierarchical relationship.

かかる管理テーブル230は、ファイル保持部124に何らファイルが保持されていないときヌル値で構成され、任意のファイルがファイル保持部124に複製されるときに、後述するバックアップ判断部166によって記憶媒体114とフォルダとの関係に応じた値が登録される。   The management table 230 is configured with a null value when no file is held in the file holding unit 124, and when an arbitrary file is duplicated in the file holding unit 124, the backup determination unit 166 described later uses the storage medium 114. A value corresponding to the relationship between the folder and the folder is registered.

図6(a)の記憶媒体テーブル232では、複数の記憶媒体114に対応して、媒体識別子240と、媒体情報242と、ディレクトリリンク番号244とが関連付けられている。媒体識別子240は、媒体情報242をシーズとして生成された識別子であり、媒体情報242は、ベンダID214、プロダクトID216、シリアルナンバ218等である(ここでは、ベンダID214、プロダクトID216、シリアルナンバ218を並置して媒体情報242としている)。ディレクトリリンク番号244は、他と識別可能な排他的な番号を含み、それぞれの記憶媒体114の階層下にディレクトリが存在する場合に、そのディレクトリに対応するディレクトリテーブル234を特定する。   In the storage medium table 232 of FIG. 6A, a medium identifier 240, medium information 242 and directory link number 244 are associated with a plurality of storage media 114. The medium identifier 240 is an identifier generated using the medium information 242 as a seed, and the medium information 242 includes a vendor ID 214, a product ID 216, a serial number 218, and the like (here, the vendor ID 214, the product ID 216, and the serial number 218 are juxtaposed. Medium information 242). The directory link number 244 includes an exclusive number that can be distinguished from others, and when a directory exists under the hierarchy of each storage medium 114, the directory link number 244 specifies the directory table 234 corresponding to the directory.

通常、各記憶媒体114には、バックアップ装置120との接続の際に、ファイル保持部124内における記憶媒体114の記憶位置を示す任意のデバイスパスが割り振られる。かかるデバイスパスの生成規則はOS(Operating System)に依存し、例えば、バックアップ装置120への接続順に従ったシーケンシャルな番号が割り当てられる。このようなデバイスパスが個々の記憶媒体114を一意に特定できる場合、デバイスパスを媒体情報242とすることもできる。   Normally, an arbitrary device path indicating the storage position of the storage medium 114 in the file holding unit 124 is allocated to each storage medium 114 when connected to the backup device 120. Such a device path generation rule depends on an OS (Operating System), and for example, a sequential number according to the order of connection to the backup device 120 is assigned. When such a device path can uniquely identify each storage medium 114, the device path can be used as the medium information 242.

図6(b)のディレクトリテーブル234では、特定の1の記憶媒体114の階層下にある全てのディレクトリ(ここでは、ディレクトリリンク番号L0001)それぞれに対応して、ディレクトリリンク番号244と、ディレクトリ識別子250と、ディレクトリ情報252と、ファイルリンク番号254とが関連付けられている。ディレクトリ識別子250は、ディレクトリの更新の有無を認識可能なディレクトリメタ情報をシーズとして生成された識別子であり、ディレクトリ情報252は、記憶媒体114におけるディレクトリパス(またはファイル保持部124における相対ディレクトリパス)が示される。また、ディレクトリ情報252として図5のディレクトリメタ情報に記されたinode番号264を用いることもできる。ファイルリンク番号254は、それぞれのディレクトリの階層下にファイルが存在する場合に、そのファイルに対応するファイルテーブル236を特定する。   In the directory table 234 of FIG. 6B, a directory link number 244 and a directory identifier 250 are associated with all the directories (here, the directory link number L0001) under the hierarchy of the specific one storage medium 114. , Directory information 252 and file link number 254 are associated with each other. The directory identifier 250 is an identifier generated by using directory meta information that can recognize whether or not a directory has been updated as a seed. The directory information 252 includes a directory path in the storage medium 114 (or a relative directory path in the file holding unit 124). Indicated. Further, the inode number 264 written in the directory meta information of FIG. 5 can be used as the directory information 252. The file link number 254 specifies the file table 236 corresponding to the file when the file exists under the hierarchy of each directory.

図6(c)のファイルテーブル236では、特定の1のディレクトリの階層下にある全てのファイル(ここでは、ファイルリンク番号L0011)それぞれに対応して、ファイルリンク番号254と、ファイル識別子260と、ファイル情報262とが関連付けられている。ファイル識別子260は、ファイルの更新の有無を認識可能なファイルメタ情報をシーズとして生成された識別子であり、ファイル情報262は、記憶媒体114におけるファイル名が示される。また、ファイル情報262としてファイルメタ情報に記されたinode番号264を用いることもできる。   In the file table 236 of FIG. 6C, a file link number 254, a file identifier 260, and a file identifier 260 corresponding to each of all the files (here, the file link number L0011) below a specific one directory, File information 262 is associated. The file identifier 260 is an identifier generated with the file meta information that can recognize whether or not the file is updated as a seed, and the file information 262 indicates a file name in the storage medium 114. The inode number 264 written in the file meta information can also be used as the file information 262.

図7は、図6に示した管理テーブル230の階層関係を説明するための説明図である。上述したように管理テーブル230は、記憶媒体テーブル232と、ディレクトリテーブル234(234a、234b)と、ファイルテーブル236(236a、236b、236c、236d、236e、236f)とがリンク番号を用いてリンクされている。   FIG. 7 is an explanatory diagram for explaining the hierarchical relationship of the management table 230 shown in FIG. As described above, in the management table 230, the storage medium table 232, the directory tables 234 (234a, 234b), and the file tables 236 (236a, 236b, 236c, 236d, 236e, 236f) are linked using the link numbers. ing.

記憶媒体テーブル232は、図7に示すように、バックアップ装置120のファイル保持部124に一つだけ形成される。また、ディレクトリテーブル234(234a、234b)は、登録が完了している(過去に登録された)情報処理装置110の記憶媒体114の数だけ生成される。そして、ファイルテーブル236は(236a、236b、236c、236d、236e、236f)、ディレクトリテーブル234に登録されているディレクトリのうち、階層下にファイルが1つでも存在するディレクトリの数だけ生成される。   As illustrated in FIG. 7, only one storage medium table 232 is formed in the file holding unit 124 of the backup device 120. Further, as many directory tables 234 (234a, 234b) as the number of storage media 114 of the information processing apparatus 110 that have been registered (registered in the past) are generated. Then, the file tables 236 (236a, 236b, 236c, 236d, 236e, 236f) are generated as many as the number of directories in the directory table 234 where even one file exists below the hierarchy.

かかる管理テーブル230の各テーブル(記憶媒体テーブル232、ディレクトリテーブル234、ファイルテーブル236)は、互いにリンクされたデータファイルとしてファイル保持部124に記憶されてもよいし、リレーショナルデータベースのテーブルとして記憶されてもよい。   Each table (storage medium table 232, directory table 234, file table 236) of the management table 230 may be stored in the file holding unit 124 as a data file linked to each other, or stored as a relational database table. Also good.

バックアップ判断部166は、外部記憶媒体としての記憶媒体114の接続時に、記憶媒体114に記憶されている各ファイルのバックアップの要否を管理テーブル230に基づいて判断する。そして、ファイル複製部(外部接続部150)は、バックアップ判断部166でバックアップが必要と判断された1または複数のファイルを記憶媒体114からファイル保持部124に複製する。また、バックアップ判断部166は、バックアップが必要と判断された1または複数のファイルが属していたディレクトリに対応するディレクトリ識別子250をディレクトリ識別子生成部162に生成させ、その1または複数のファイルに対応するファイル識別子260をファイル識別子生成部164に生成させ、生成されたディレクトリ識別子250とファイル識別子260とを管理テーブル230に登録する。以下、バックアップ判断部166の具体的な動作について詳述する。   The backup determination unit 166 determines whether or not each file stored in the storage medium 114 needs to be backed up based on the management table 230 when the storage medium 114 as an external storage medium is connected. Then, the file duplicating unit (external connection unit 150) duplicates one or more files determined to be backed up by the backup judging unit 166 from the storage medium 114 to the file holding unit 124. Also, the backup determination unit 166 causes the directory identifier generation unit 162 to generate a directory identifier 250 corresponding to the directory to which one or more files determined to need backup belong, and corresponds to the one or more files. The file identifier 260 is generated by the file identifier generator 164, and the generated directory identifier 250 and file identifier 260 are registered in the management table 230. Hereinafter, a specific operation of the backup determination unit 166 will be described in detail.

バックアップ判断部166は、接続された記憶媒体114の媒体情報242が、管理テーブル230の特に記憶媒体テーブル232に存在するか否かを判断し、管理テーブル230の記憶媒体テーブル232に媒体情報242が存在しない場合、記憶媒体114に記憶されている全てのファイルをファイル複製部に複製させ、ファイル保持部124に記憶する。   The backup determination unit 166 determines whether or not the medium information 242 of the connected storage medium 114 exists in the management table 230, particularly the storage medium table 232, and the medium information 242 is stored in the storage medium table 232 of the management table 230. If it does not exist, all files stored in the storage medium 114 are copied to the file copying unit and stored in the file holding unit 124.

そして、バックアップ判断部166は、複製されたファイルが属していたディレクトリに対応するディレクトリ識別子250をディレクトリ識別子生成部162に生成させ、複製されたファイルに対応するファイル識別子260をファイル識別子生成部164に生成させ、媒体情報242と、生成されたディレクトリ識別子250と、ディレクトリ情報252と、生成されたファイル識別子260と、ファイル情報262とを関連付けて管理テーブル230に登録する。   Then, the backup determination unit 166 causes the directory identifier generation unit 162 to generate the directory identifier 250 corresponding to the directory to which the copied file belongs, and causes the file identifier generation unit 164 to generate the file identifier 260 corresponding to the copied file. The medium information 242, the generated directory identifier 250, the directory information 252, the generated file identifier 260, and the file information 262 are associated with each other and registered in the management table 230.

かかる構成により、新たに記憶媒体114が接続された際、即ち、その記憶媒体114内のファイルが全くファイル保持部124に保持されていない場合、媒体情報242のみを比較することによって、記憶媒体114内のファイル全てがバックアップされていないことを把握できる。従って、ファイルそれぞれについてファイル保持部124に既にバックアップされているか否かを判断する必要もなく、バックアップ装置120は、効率的かつ確実に差分バックアップを実行し、バックアップの時間短縮を図ることができる。   With this configuration, when the storage medium 114 is newly connected, that is, when no file in the storage medium 114 is held in the file holding unit 124, the storage medium 114 is compared by comparing only the medium information 242. It is possible to grasp that all the files inside are not backed up. Therefore, it is not necessary to determine whether or not each file has already been backed up in the file holding unit 124, and the backup device 120 can efficiently and reliably execute the differential backup and reduce the backup time.

このとき、バックアップ判断部166は、媒体情報242の代わりに媒体識別子240を用いて各ファイルのバックアップの要否を判断してもよい。   At this time, the backup determination unit 166 may determine the necessity of backup of each file using the medium identifier 240 instead of the medium information 242.

媒体情報242は、上述したように、ベンダID214、プロダクトID216、シリアルナンバ218、MACアドレス等を1または複数並置して生成される。しかし、ベンダが相違する情報処理装置110同士は、その媒体情報242の数、付与方法、値の長さが異なる場合が多く、上述した媒体情報242の全てに対応しているとは限らない。従って、媒体情報242を、バックアップ判断部166の存否を比較する対象として用いる場合には、その内容や文字数等を統一するのが困難になる。   As described above, the medium information 242 is generated by juxtaposing one or a plurality of vendor IDs 214, product IDs 216, serial numbers 218, MAC addresses, and the like. However, the information processing apparatuses 110 having different vendors often have different numbers of medium information 242, a method of giving information, and lengths of values, and do not necessarily correspond to all of the medium information 242 described above. Therefore, when the medium information 242 is used as a target for comparing the presence / absence of the backup determination unit 166, it is difficult to unify the contents, the number of characters, and the like.

媒体識別子240は、記憶媒体114を一意に特定できる点で媒体情報242と同様に機能し、かつ所定の桁数に統一することができる。従って、媒体情報242の代わりにバックアップ判断部166の存否を比較する対象として用いることで、より効率的かつ確実に差分バックアップを実行することができ、バックアップの時間短縮を通じてユーザの利便性をより向上させることが可能となる。   The medium identifier 240 functions in the same way as the medium information 242 in that the storage medium 114 can be uniquely specified, and can be unified to a predetermined number of digits. Therefore, the differential backup can be executed more efficiently and reliably by using it as a target for comparing the presence / absence of the backup determination unit 166 instead of the medium information 242, and the convenience of the user is further improved through shortening the backup time. It becomes possible to make it.

バックアップ判断部166は、上述したように、接続された記憶媒体114の媒体情報242(以後、媒体識別子240を用いる。)が、管理テーブル230の記憶媒体テーブル232に存在するか否かを判断して、管理テーブル230の記憶媒体テーブル232に媒体識別子240が存在する場合には、記憶媒体114に設けられているディレクトリに対応するディレクトリ識別子250をディレクトリ識別子生成部162に生成させ、生成されたディレクトリ識別子250が管理テーブル230の特にディレクトリテーブル234において媒体識別子240に関連付けられているか否か判断する。   As described above, the backup determination unit 166 determines whether or not the medium information 242 of the connected storage medium 114 (hereinafter, the medium identifier 240 is used) exists in the storage medium table 232 of the management table 230. When the medium identifier 240 exists in the storage medium table 232 of the management table 230, the directory identifier generator 162 generates the directory identifier 250 corresponding to the directory provided in the storage medium 114, and the generated directory It is determined whether or not the identifier 250 is associated with the medium identifier 240 in the management table 230, particularly in the directory table 234.

そして、バックアップ判断部166は、生成されたディレクトリ識別子250が管理テーブル230のディレクトリテーブル234において媒体識別子240に関連付けられている場合、そのディレクトリ階層下のファイルを複製しないこととする。   Then, when the generated directory identifier 250 is associated with the medium identifier 240 in the directory table 234 of the management table 230, the backup determination unit 166 does not copy the file under the directory hierarchy.

このように、記憶媒体114中の任意のディレクトリとそのディレクトリに属するファイルが既にファイル保持部124に保持されている場合、管理テーブル230におけるディレクトリ識別子250の有無を判断することのみによって、任意のディレクトリとそのディレクトリに属するファイルがバックアップ済みであることを把握できる。従って、ファイルそれぞれについてファイル保持部124に既にバックアップされているか否かを判断する必要もなく、バックアップ装置120は、効率的かつ確実に差分バックアップを実行し、バックアップの一層の時間短縮を図ることができる。   As described above, when an arbitrary directory in the storage medium 114 and a file belonging to the directory are already held in the file holding unit 124, the arbitrary directory can be determined only by determining the presence or absence of the directory identifier 250 in the management table 230. And that the files belonging to that directory have been backed up. Therefore, there is no need to determine whether or not each file has already been backed up in the file holding unit 124, and the backup device 120 can efficiently and reliably execute the differential backup and further shorten the backup time. it can.

一方、ディレクトリ識別子250が管理テーブル230のディレクトリテーブル234に関連付けられていない場合、その理由が2つ考えられる。1つは、そのディレクトリとそのディレクトリに属するファイル全てがファイル保持部124に保持されていない場合であり、他の1つは、ディレクトリは既に存在するが、接続された記憶媒体114のディレクトリ階層化のファイルに何らかの更新が生じ、ディレクトリメタ情報の更新に伴ってディレクトリ識別子250も更新された場合である。   On the other hand, when the directory identifier 250 is not associated with the directory table 234 of the management table 230, there are two possible reasons. One is a case where the directory and all the files belonging to the directory are not held in the file holding unit 124, and the other is a directory hierarchy of the connected storage medium 114 although the directory already exists. This is a case where some update occurs in the file and the directory identifier 250 is also updated along with the update of the directory meta information.

このようにディレクトリ識別子250が関連付けられていない場合に、上記2つのうちいずれの理由によるものであるかは、ディレクトリ情報252を用いることによって判別することができる。これは、前者の場合、ディレクトリ情報252さえ、管理テーブル230には存在せず、後者の場合、ディレクトリ識別子250の更新はされているもののディレクトリ情報252はディレクトリテーブル234に関連付けられているからである。   As described above, when the directory identifier 250 is not associated, it can be determined by using the directory information 252 which one of the above two reasons is caused. This is because even in the former case, even the directory information 252 does not exist in the management table 230, and in the latter case, the directory information 252 is updated, but the directory information 252 is associated with the directory table 234. .

したがって、バックアップ判断部166は、生成されたディレクトリ識別子250が管理テーブル230のディレクトリテーブル234における媒体識別子240に関連付けられていない場合、そのディレクトリのディレクトリ情報252、例えば、ディレクトリパスが管理テーブル230のディレクトリテーブル234における媒体識別子240に関連付けられているか否か判断する。   Therefore, if the generated directory identifier 250 is not associated with the medium identifier 240 in the directory table 234 of the management table 230, the backup determining unit 166 determines that the directory information 252 of the directory, for example, the directory path is the directory of the management table 230. It is determined whether or not it is associated with the medium identifier 240 in the table 234.

そして、バックアップ判断部166は、ディレクトリ情報252が管理テーブル230のディレクトリテーブル234における媒体識別子240に関連付けられていない場合、ディレクトリ階層下の全てのファイルをファイル複製部に複製させファイル保持部124に記憶し、複製されたファイルに対応するファイル識別子260をファイル識別子生成部164に生成させ、媒体識別子240と、生成されたディレクトリ識別子250と、ディレクトリ情報252と、生成されたファイル識別子260と、ファイル情報262とを関連付けて管理テーブル230に登録する。   Then, when the directory information 252 is not associated with the medium identifier 240 in the directory table 234 of the management table 230, the backup determining unit 166 causes all the files under the directory hierarchy to be copied to the file copying unit and stored in the file holding unit 124. Then, the file identifier generating unit 164 generates a file identifier 260 corresponding to the copied file, and the medium identifier 240, the generated directory identifier 250, the directory information 252, the generated file identifier 260, and the file information. 262 is registered in the management table 230 in association with each other.

ここでは、ディレクトリ識別子250もディレクトリ情報252も管理テーブル230に関連付けられていないことをもって、そのディレクトリとそのディレクトリに属するファイル全てがバックアップされていないことを把握できる。従って、ファイルそれぞれについてファイル保持部124に既にバックアップされているか否かを判断する必要もなく、バックアップ装置120は、効率的かつ確実に差分バックアップを実行し、バックアップのさらなる時間短縮を図ることができる。   Here, since neither the directory identifier 250 nor the directory information 252 is associated with the management table 230, it can be understood that the directory and all the files belonging to the directory are not backed up. Therefore, it is not necessary to determine whether or not each file has already been backed up in the file holding unit 124, and the backup device 120 can efficiently and reliably execute the differential backup and further reduce the backup time. .

また、バックアップ判断部166は、ディレクトリ情報252が管理テーブル230のディレクトリテーブル234において媒体識別子240に関連付けられている場合、ディレクトリテーブル234における当該ディレクトリ情報252に関連付けられたディレクトリ識別子250を、ディレクトリ識別子生成部162が生成したディレクトリ識別子250に更新し、そのディレクトリ階層下のファイルに対応するファイル識別子260をファイル識別子生成部164に生成させ、そのファイル識別子260が管理テーブルのファイルテーブル236においてそのディレクトリに関連付けられているか否か判断する。   Further, when the directory information 252 is associated with the medium identifier 240 in the directory table 234 of the management table 230, the backup determination unit 166 generates the directory identifier 250 associated with the directory information 252 in the directory table 234 as a directory identifier. The file identifier 260 is updated to the directory identifier 250 generated by the unit 162 and the file identifier 260 corresponding to the file under the directory hierarchy is generated, and the file identifier 260 is associated with the directory in the file table 236 of the management table. Judge whether or not

そして、バックアップ判断部166は、生成されたファイル識別子260が管理テーブル230のファイルテーブル236においてそのディレクトリに関連付けられている場合、そのファイルを複製しないこととする。   Then, when the generated file identifier 260 is associated with the directory in the file table 236 of the management table 230, the backup determination unit 166 does not copy the file.

このように、任意のディレクトリに属するファイルが既にファイル保持部124に保持されている場合、管理テーブル230におけるファイル識別子260の有無を判断することのみによって、任意のディレクトリに属するファイルがバックアップ済みであることを把握できる。従って、バックアップ装置120は、効率的かつ確実に差分バックアップを実行し、さらなるバックアップの時間短縮を図ることができる。   As described above, when a file belonging to an arbitrary directory is already held in the file holding unit 124, the file belonging to the arbitrary directory has been backed up only by determining the presence or absence of the file identifier 260 in the management table 230. I can understand that. Therefore, the backup device 120 can efficiently and surely execute the differential backup and further reduce the backup time.

一方、ファイル識別子260が管理テーブル230のファイルテーブル236に関連付けられていない場合、その理由として、ディレクトリ識別子250同様、そのディレクトリに属するファイルがファイル保持部124に保持されていないか、ファイルはファイル保持部124内に既に存在するが、接続された記憶媒体114におけるファイルに何らかの更新が生じ、そのファイルのファイルメタ情報の更新に伴ってファイル識別子260も更新されたかの2点が挙げられる。そして、ファイル識別子260がファイルテーブル236に関連付けられていない場合に、上記2つの事象のうちいずれの理由によるものであるかは、ディレクトリ情報252同様、ファイル情報262を用いることによって判別することができる。   On the other hand, when the file identifier 260 is not associated with the file table 236 of the management table 230, the reason is that, as with the directory identifier 250, the file belonging to the directory is not held in the file holding unit 124, or the file is held in the file There are two points that exist in the section 124, but that some update has occurred in the file in the connected storage medium 114, and the file identifier 260 has been updated along with the update of the file meta information of the file. Then, when the file identifier 260 is not associated with the file table 236, it can be determined by using the file information 262 as with the directory information 252 as to which of the above two events is due. .

したがって、バックアップ判断部166は、生成されたファイル識別子260が管理テーブル230のファイルテーブル236においてディレクトリに関連付けられていない場合、そのファイルのファイル情報262、例えばファイル名が管理テーブル230のファイルテーブル236におけるディレクトリに関連付けられているか否か判断する。   Therefore, when the generated file identifier 260 is not associated with a directory in the file table 236 of the management table 230, the backup determination unit 166 has file information 262 of the file, for example, a file name in the file table 236 of the management table 230. Determine if it is associated with a directory.

そして、バックアップ判断部166は、ファイル情報262が管理テーブル230のファイルテーブル236においてディレクトリに関連付けられていない場合、そのファイルをファイル複製部に複製させファイル保持部124に記憶し、媒体識別子240と、新たなディレクトリ識別子250と、ディレクトリ情報252と、生成されたファイル識別子260と、ファイル情報262とを関連付けて管理テーブル230のファイルテーブル236に登録する。   When the file information 262 is not associated with a directory in the file table 236 of the management table 230, the backup determination unit 166 copies the file to the file replication unit, stores the file information in the file holding unit 124, the medium identifier 240, The new directory identifier 250, directory information 252, generated file identifier 260, and file information 262 are associated and registered in the file table 236 of the management table 230.

ここでは、ファイル識別子260もファイル情報262も管理テーブル230のファイルテーブル236に関連付けられていないことをもって、そのファイルがバックアップされていないことを把握できる。従って、バックアップ装置120は、効率的かつ確実に差分バックアップを実行し、バックアップのさらなる時間短縮を図ることができる。   Here, since neither the file identifier 260 nor the file information 262 is associated with the file table 236 of the management table 230, it can be understood that the file is not backed up. Therefore, the backup device 120 can efficiently and reliably execute the differential backup, and can further reduce the backup time.

また、バックアップ判断部166は、ファイル情報262が管理テーブル230のファイルテーブル236においてディレクトリに関連付けられている場合、そのファイルをファイル複製部に複製させファイル保持部124に上書きし、管理テーブル230のファイル識別子260を、生成したファイル識別子260に更新する。   In addition, when the file information 262 is associated with a directory in the file table 236 of the management table 230, the backup determination unit 166 copies the file to the file replication unit and overwrites the file holding unit 124 with the file in the management table 230. The identifier 260 is updated to the generated file identifier 260.

ここでは、管理テーブル230のファイルテーブル236に、ファイル識別子260は関連付けられていないが、ファイル情報262は関連付けられているので、そのファイルは既にファイル保持部124にバックアップされてはいるものの、ファイルが何らかの更新を受けていることを把握することができる。本実施形態では、記憶媒体114のファイルのバックアップを目的としており、たとえそのファイルが過去にバックアップ済みであったとしても、記憶媒体114のファイルに更新があった場合、ファイル保持部124のファイルにもその更新を反映すべきである。本実施形態では、記憶媒体114の更新があったファイルをファイル保持部124のファイルに上書きすることで、効率的かつ確実に差分バックアップを実行することが可能となる。   Here, the file identifier 260 is not associated with the file table 236 of the management table 230, but the file information 262 is associated, so that the file is already backed up to the file holding unit 124, but the file is not stored. You can know that you are receiving some kind of update. In the present embodiment, the purpose is to back up a file on the storage medium 114. Even if the file has been backed up in the past, if the file on the storage medium 114 is updated, the file in the file holding unit 124 is saved. Should also reflect that update. In the present embodiment, it is possible to execute differential backup efficiently and reliably by overwriting the file in the file holding unit 124 with the file updated in the storage medium 114.

以上、説明したバックアップ装置120によって、送信側の情報処理装置110と受信側のバックアップ装置120との間で統一された規則がなくとも、また内部時刻を一致させなくとも、即ち、情報処理装置110のベンダや機種に制限されることなく、バックアップ装置120のみが主体となって差分バックアップを効率的かつ確実に実行することで、バックアップに費やす時間を短縮してユーザの利便性を向上させることが可能となる。   As described above, even if there is no rule unified between the information processing device 110 on the transmission side and the backup device 120 on the reception side by the backup device 120 described above, and the internal time does not match, that is, the information processing device 110. It is possible to reduce the time spent for backup and improve user convenience by executing differential backup efficiently and surely with only the backup device 120 as the main body, without being limited to vendors and models It becomes possible.

ところで、ユーザは、バックアップ装置120のファイル保持部124にバックアップされたファイルを再生するだけでなく、操作部152を通じて、ファイルやそのファイルが属するディレクトリを編集(修正、移動、削除)することができる。ここでファイルの移動は、移動元ディレクトリからのファイル削除処理および移動先ディレクトリへのファイル追加処理に相当する。   Incidentally, the user can not only reproduce the file backed up in the file holding unit 124 of the backup device 120 but also edit (correct, move, delete) the file and the directory to which the file belongs through the operation unit 152. . Here, the file movement corresponds to a file deletion process from the movement source directory and a file addition process to the movement destination directory.

図8および図9は、ファイルの編集を説明するための説明図である。ユーザが、操作部152を通じて、ディレクトリおよびファイルを一覧表示する操作入力を行うと、中央制御部122は、図8に示すディレクトリおよびファイルの一覧が記載されたGUI(Graphical User Interface)用の画面270をディスプレイ130に表示する。かかるGUI用の画面270中の複数のサムネイルは、各画像ファイルと別に準備されていてもよいし、その都度画像ファイルを間引いて生成してもよい。   8 and 9 are explanatory diagrams for explaining file editing. When the user performs an operation input for displaying a list of directories and files through the operation unit 152, the central control unit 122 displays a GUI (Graphical User Interface) screen 270 on which a list of directories and files shown in FIG. Is displayed on the display 130. The plurality of thumbnails in the GUI screen 270 may be prepared separately from each image file, or may be generated by thinning out the image file each time.

そして、ユーザが、操作部152を通じてGUI用の画面270から1のサムネイル(画像ファイル)を選択すると、中央制御部122は、選択されたサムネイルに対応する画像ファイルに関する、図9に示した編集メニュー272をディスプレイ130に表示し、さらなるユーザ入力を促す。ユーザが、操作部152を通じて、編集メニュー272から「削除」を選択した場合、中央制御部122は、ユーザへの削除確認を行った後、当該ファイルの削除処理を実行する。   When the user selects one thumbnail (image file) from the GUI screen 270 through the operation unit 152, the central control unit 122 displays the edit menu shown in FIG. 9 regarding the image file corresponding to the selected thumbnail. 272 is displayed on the display 130 to prompt further user input. When the user selects “delete” from the edit menu 272 through the operation unit 152, the central control unit 122 executes the file deletion process after confirming deletion to the user.

このようなディレクトリやファイルの編集を、編集されることが考慮されていない上述したバックアップ装置120上で実行すると、管理テーブル230のディレクトリ識別子250やファイル識別子260が更新されてしまう。ディレクトリ識別子250やファイル識別子260が更新されると、そのファイル識別子260のシーズとなったファイルのバックアップ元である情報処理装置110が再び接続されたとき、そのファイルに関して再度のバックアップが実行される。   When such editing of a directory or file is executed on the above-described backup device 120 that is not considered to be edited, the directory identifier 250 and the file identifier 260 of the management table 230 are updated. When the directory identifier 250 or the file identifier 260 is updated, when the information processing apparatus 110 that is the backup source of the file that is the seed of the file identifier 260 is connected again, the file is backed up again.

例えば、情報処理装置110においてファイルが更新された場合、そのファイルの更新はバックアップ装置120にも反映すべきであるが、上述したようなバックアップ装置120の既にバックアップが完了しているファイルの更新にまで、さらなるバックアップを適用してしまうと、バックアップ装置120で更新したファイルが不用意に更新前のファイルに書き換えられたり、不要なバックアップ処理によって無駄な時間を費やしたりすることとなる。   For example, when a file is updated in the information processing apparatus 110, the update of the file should be reflected in the backup apparatus 120, but for the update of a file that has already been backed up in the backup apparatus 120 as described above. Until further backup is applied, the file updated by the backup device 120 is inadvertently rewritten to the file before the update, or wasted time is wasted due to unnecessary backup processing.

そこで、本実施形態のバックアップ判断部166は、ファイル保持部124のディレクトリまたはそのディレクトリに属するファイルに削除、追加、変更があっても、そのディレクトリに対応する管理テーブル230のディレクトリ識別子250およびそのファイルに対応する管理テーブル230のファイル識別子260を更新しないこととする。即ち、情報処理装置110においてファイルが更新された場合には、差分バックアップを実行するが、バックアップ装置120においてファイルが更新された場合には、差分バックアップを制限する。   Therefore, even if the directory of the file holding unit 124 or a file belonging to the directory is deleted, added, or changed, the backup determination unit 166 of the present embodiment and the directory identifier 250 of the management table 230 corresponding to the directory and the file It is assumed that the file identifier 260 of the management table 230 corresponding to is not updated. That is, when the file is updated in the information processing apparatus 110, the differential backup is executed. However, when the file is updated in the backup apparatus 120, the differential backup is limited.

かかるバックアップ装置120におけるファイルの更新によっては、管理テーブル230を更新しない構成により、無用なディレクトリ識別子250やファイル識別子260の生成を回避すると共に、情報処理装置110からバックアップ装置120への不要なバックアップ処理を回避することができ、効率的かつ確実に差分バックアップを実行し、バックアップの時間短縮を通じてユーザの利便性を向上させることが可能となる。   Depending on the file update in the backup device 120, the management table 230 is not updated, thereby avoiding the generation of useless directory identifiers 250 and file identifiers 260, and unnecessary backup processing from the information processing device 110 to the backup device 120. Thus, differential backup can be executed efficiently and reliably, and the convenience of the user can be improved through shortening the backup time.

(バックアップ方法)
次に、上述したバックアップ装置120を用いて、接続した情報処理装置110の記憶媒体114に記憶されているファイルとバックアップ装置120自体に複製されているファイルとの差分ファイルのみをバックアップするバックアップ方法について具体的に説明する。
(Backup method)
Next, a backup method for backing up only a difference file between a file stored in the storage medium 114 of the connected information processing apparatus 110 and a file copied to the backup apparatus 120 itself, using the backup apparatus 120 described above. This will be specifically described.

図10は、バックアップ方法の全体的な流れを示したフローチャートである。ファイル保持部124は、1または複数のファイルと共に、その1または複数のファイルの送信側の情報処理装置110を特定する媒体識別子240と、記憶媒体114に属しているディレクトリに対応するディレクトリ識別子250と、ディレクトリに属しているファイルに対応するファイル識別子260とをその階層関係に従って関連付けた管理テーブル230とを予め保持している。   FIG. 10 is a flowchart showing the overall flow of the backup method. The file holding unit 124 includes, together with one or more files, a medium identifier 240 that identifies the information processing apparatus 110 on the transmission side of the one or more files, and a directory identifier 250 that corresponds to a directory belonging to the storage medium 114. The management table 230 in which the file identifiers 260 corresponding to the files belonging to the directory are associated according to the hierarchical relationship is held in advance.

任意の情報処理装置110がバックアップ装置120に接続されると(S302のYES)、外部接続部150は、その情報処理装置110の記憶媒体114との接続を確立し(S304)、ベンダID214、プロダクトID216、シリアルナンバ218等の媒体情報242を読み出す(S306)。そして、媒体識別子生成部160は、媒体情報242をシーズとした媒体識別子240を生成する(S308)。   When any information processing apparatus 110 is connected to the backup apparatus 120 (YES in S302), the external connection unit 150 establishes a connection with the storage medium 114 of the information processing apparatus 110 (S304), and the vendor ID 214, product The medium information 242 such as the ID 216 and the serial number 218 is read (S306). Then, the medium identifier generation unit 160 generates a medium identifier 240 using the medium information 242 as a seed (S308).

続いて、バックアップ判断部166は、記憶媒体114に記憶されている各ファイルのバックアップの要否を管理テーブル230に基づいて判断する。詳細に、バックアップ判断部166は、生成された媒体識別子240が、管理テーブル230の記憶媒体テーブル232に存在するか否かを判断し(S310)、管理テーブル230の記憶媒体テーブル232に媒体識別子240が存在しない場合(S310のNO)、過去に当該記憶媒体114からのバックアップが一度も実行されていないと瞬時に判定できるので、記憶媒体114に記憶されている全てのディレクトリとその階層化にある全てのファイルをその階層構造に従ってファイル保持部124に複製する(S312)。   Subsequently, the backup determination unit 166 determines whether backup of each file stored in the storage medium 114 is necessary based on the management table 230. Specifically, the backup determination unit 166 determines whether or not the generated medium identifier 240 exists in the storage medium table 232 of the management table 230 (S310), and stores the medium identifier 240 in the storage medium table 232 of the management table 230. Is not present (NO in S310), it can be instantaneously determined that the backup from the storage medium 114 has never been executed in the past, so all the directories stored in the storage medium 114 and their hierarchies exist. All files are copied to the file holding unit 124 according to the hierarchical structure (S312).

このとき、バックアップ判断部166は、複製されたファイルが属していたディレクトリに対応するディレクトリ識別子と、複製されたファイルに対応するファイル識別子とを生成させるコマンドをディレクトリ識別子生成部162とファイル識別子生成部164とに送信し、そのコマンドに応じて、ディレクトリ識別子生成部162は、ディレクトリの更新の有無を認識可能なディレクトリメタ情報をシーズとしたディレクトリ識別子を生成し(S314)、ファイル識別子生成部164は、ファイルの更新の有無を認識可能なファイルメタ情報をシーズとしたファイル識別子を生成する(S316)。そして、バックアップ判断部166は、媒体識別子240と、ディレクトリ情報252と、ディレクトリ識別子250と、ファイル識別子260と、ファイル情報262とを関連付けて管理テーブル230に登録する(S318)。   At this time, the backup determination unit 166 sends a command for generating a directory identifier corresponding to the directory to which the copied file belongs and a file identifier corresponding to the copied file to the directory identifier generation unit 162 and the file identifier generation unit. In response to the command, the directory identifier generation unit 162 generates a directory identifier using the directory meta information that can recognize whether the directory is updated or not as a seed (S314), and the file identifier generation unit 164 Then, a file identifier with the file meta information that can recognize whether or not the file is updated as a seed is generated (S316). Then, the backup determination unit 166 associates and registers the medium identifier 240, the directory information 252, the directory identifier 250, the file identifier 260, and the file information 262 in the management table 230 (S318).

ここでは、接続された情報処理装置110に関するバックアップが過去に一度も実施していないことが瞬時に判断されるので、差分バックアップの要否を判断するための差分検出処理を省略することが可能となり、直ちにバックアップ処理を開始することができる。   Here, since it is instantaneously determined that the backup related to the connected information processing apparatus 110 has never been performed in the past, it is possible to omit the difference detection process for determining whether or not differential backup is necessary. The backup process can be started immediately.

また、管理テーブル230に媒体識別子240が存在する場合(S310のYES)、その記憶媒体114は過去にバックアップを実行したことがあることを示すので、記憶媒体114の階層下にあるディレクトリに関してバックアップの要否を判断すべく、バックアップ判断部166は、記憶媒体114に設けられているディレクトリに対応するディレクトリ識別子250をディレクトリ識別子生成部162に生成させ(S320)、そのディレクトリ識別子250が管理テーブル230のディレクトリテーブル234において媒体識別子240に関連付けられているか否か判断する(S322)。   Further, when the medium identifier 240 exists in the management table 230 (YES in S310), it indicates that the storage medium 114 has been backed up in the past, and therefore backup of the directory under the hierarchy of the storage medium 114 is performed. In order to determine necessity, the backup determination unit 166 causes the directory identifier generation unit 162 to generate a directory identifier 250 corresponding to the directory provided in the storage medium 114 (S320), and the directory identifier 250 is stored in the management table 230. It is determined whether the directory table 234 is associated with the medium identifier 240 (S322).

ここで、ディレクトリ識別子250が管理テーブル230に関連付けられている場合(S322のYES)、当該ディレクトリ階層下の全てのファイルの更新が無いことを瞬時に判定できるので、そのディレクトリ階層下のファイルをファイル保持部124に複製しない。   Here, when the directory identifier 250 is associated with the management table 230 (YES in S322), it can be instantaneously determined that all files under the directory hierarchy have not been updated. It is not copied to the holding unit 124.

ここでは、ディレクトリテーブル234にアクセスするだけで、差分バックアップが不要であることが瞬時に判断されるので、特に、当該ディレクトリ配下に多数のファイルが存在する場合に、ファイルそれぞれについてファイル保持部124に既にバックアップされているか否かを判断する場合と比較して、差分検出の処理時間を大幅に削減することが可能となる。   Here, since it is immediately determined that a differential backup is not required simply by accessing the directory table 234, especially when there are a large number of files under the directory, the file holding unit 124 for each file. Compared with the case where it is determined whether or not the data has already been backed up, the difference detection processing time can be significantly reduced.

ディレクトリ識別子250が管理テーブル230に関連付けられていない場合(S322のNO)、バックアップ判断部166は、そのディレクトリのディレクトリ情報252が管理テーブル230のディレクトリテーブル234において媒体識別子240に関連付けられているか否か判断する(S324)。   When the directory identifier 250 is not associated with the management table 230 (NO in S322), the backup determination unit 166 determines whether the directory information 252 of the directory is associated with the medium identifier 240 in the directory table 234 of the management table 230. Judgment is made (S324).

ディレクトリ情報252が管理テーブル230のディレクトリテーブル234に関連付けられていない場合(S324のNO)、かかるディレクトリが前回バックアップ後に新規に追加されたディレクトリであると判断できるので、ディレクトリ階層下の全てのファイルをファイル保持部124に複製する(S326)。   When the directory information 252 is not associated with the directory table 234 of the management table 230 (NO in S324), it can be determined that the directory is a directory newly added after the previous backup, and therefore all files under the directory hierarchy are stored. The file is copied to the file holding unit 124 (S326).

そして、バックアップ判断部166は、複製されたファイルに対応するファイル識別子260をファイル識別子生成部164に生成させ(S328)、媒体識別子240と、生成されたディレクトリ識別子250と、ディレクトリ情報252と、生成されたファイル識別子260と、ファイル情報262とを関連付けて管理テーブル230に登録する(S330)。   Then, the backup determination unit 166 causes the file identifier generation unit 164 to generate a file identifier 260 corresponding to the copied file (S328), generates a medium identifier 240, a generated directory identifier 250, directory information 252, The file identifier 260 and the file information 262 are associated with each other and registered in the management table 230 (S330).

ここでは、ディレクトリテーブル234を検索するだけで、新規のディレクトリを検出することが可能となるので、特に多数のディレクトリが存在する場合において差分検出の処理時間を大幅に削減することが可能となる。   Here, it is possible to detect a new directory simply by searching the directory table 234. Therefore, especially when there are a large number of directories, it is possible to significantly reduce the processing time for difference detection.

ディレクトリ情報252が管理テーブル230に関連付けられている場合(S324のYES)、当該ディレクトリ階層下の全てまたは一部のファイルが更新されたと判断できるため、バックアップ判断部166は、ディレクトリテーブル234における当該ディレクトリ情報252に関連付けられたディレクトリ識別子250を、ディレクトリ識別子生成部162が生成したディレクトリ識別子250に更新すると共に、そのディレクトリ階層下のファイルに対応するファイル識別子260をファイル識別子生成部164に生成させ(S332)、そのファイル識別子260が管理テーブル230のファイルテーブル236においてそのディレクトリに関連付けられているか否か判断する(S334)。   When the directory information 252 is associated with the management table 230 (YES in S324), it can be determined that all or a part of the files under the directory hierarchy have been updated, and therefore the backup determination unit 166 determines the directory in the directory table 234. The directory identifier 250 associated with the information 252 is updated to the directory identifier 250 generated by the directory identifier generator 162, and the file identifier 260 corresponding to the file under the directory hierarchy is generated by the file identifier generator 164 (S332). It is determined whether or not the file identifier 260 is associated with the directory in the file table 236 of the management table 230 (S334).

ファイル識別子260が管理テーブルのファイルテーブル236に関連付けられている場合(S334のYES)、当該ファイルが新規に追加されたファイルではないと判断できるため、そのファイルをファイル保持部124に複製しない。   When the file identifier 260 is associated with the file table 236 of the management table (YES in S334), since it can be determined that the file is not a newly added file, the file is not copied to the file holding unit 124.

ファイル識別子260が管理テーブル230のファイルテーブル236に関連付けられていない場合(S334のNO)、バックアップ判断部166は、そのファイルのファイル情報262が管理テーブル230のファイルテーブル236において媒体識別子240に関連付けられているか否か判断する(S336)。   When the file identifier 260 is not associated with the file table 236 of the management table 230 (NO in S334), the backup determination unit 166 associates the file information 262 of the file with the medium identifier 240 in the file table 236 of the management table 230. It is determined whether or not (S336).

ファイル情報262が管理テーブル230のファイルテーブル236に関連付けられていない場合(S336のNO)、そのファイルをファイル保持部124に複製し(S338)、媒体識別子240と、新たなディレクトリ識別子250と、ディレクトリ情報252と、生成されたファイル識別子260と、ファイル情報262とを関連付けて管理テーブル230に登録する(S340)。   If the file information 262 is not associated with the file table 236 of the management table 230 (NO in S336), the file is copied to the file holding unit 124 (S338), the medium identifier 240, the new directory identifier 250, and the directory The information 252, the generated file identifier 260, and the file information 262 are associated and registered in the management table 230 (S 340).

記憶媒体114のファイルのファイル情報262が管理テーブル230に関連付けられている場合(S336のYES)、バックアップ判断部166は、そのファイルをファイル情報が等しいファイル保持部124のファイルに上書きし(S342)、ファイルテーブル236における当該ファイル情報262に関連付けられたファイル識別子260を、ファイル識別子生成部164が生成したファイル識別子260に更新する(S344)。   When the file information 262 of the file on the storage medium 114 is associated with the management table 230 (YES in S336), the backup determination unit 166 overwrites the file in the file holding unit 124 with the same file information (S342). The file identifier 260 associated with the file information 262 in the file table 236 is updated to the file identifier 260 generated by the file identifier generation unit 164 (S344).

当該ディレクトリ階層下の全てのファイルの処理が完了したら(S346のYES)、記憶媒体114におけるディレクトリ全ての処理が完了したか判断し(S348)、処理が完了していれば(S348のYES)、当該バックアップ方法を終了する。   When processing of all files under the directory hierarchy is completed (YES in S346), it is determined whether processing of all directories in the storage medium 114 is completed (S348). If processing is completed (YES in S348), The backup method ends.

このときバックアップ元のファイルが記憶媒体114から削除されている場合は、ディレクトリ識別子判断ステップS322でディレクトリ識別子250が一致しないが、削除されたファイルはファイル識別子判断ステップS334の対象にならないので、ファイル保持部124に何ら影響を与えることはなく、ファイル識別子生成ステップS332においてディレクトリ識別子250のみが更新されることとなる。   If the backup source file has been deleted from the storage medium 114 at this time, the directory identifier 250 does not match in the directory identifier determination step S322, but the deleted file is not the target of the file identifier determination step S334, so the file is retained. The directory 124 is not affected at all, and only the directory identifier 250 is updated in the file identifier generation step S332.

以上、説明したバックアップ装置120やバックアップ方法では、(1)各識別子のシーズとなるメタ情報を、一貫して送信側から取得し、バックアップ処理を受信側でのみ管理する。従って、送信側と受信側との間で統一された規則がなくとも、また内部時刻を一致させなくとも、送信側の装置を選ぶことなく、バックアップ装置120のみが主体となって差分バックアップを効率的かつ確実に実行することが可能となる。   As described above, in the backup device 120 and the backup method described above, (1) meta information that is a seed of each identifier is consistently acquired from the transmission side, and backup processing is managed only on the reception side. Therefore, even if there is no rule that is unified between the transmission side and the reception side, and even if the internal times are not matched, only the backup device 120 is mainly used to efficiently perform differential backup without selecting the transmission side device. It is possible to execute the target with certainty and certainty.

(2)また、バックアップ装置120は、階層構造の記憶媒体114やディレクトリといった上位階層でバックアップの要否を判断し、かつ、日付情報や文字列情報といった複雑な比較処理を回避し所定の桁数のハッシュ値を利用してバックアップ要否判断を行っている。従って、バックアップに費やす処理時間を大幅に短縮することが可能となる。   (2) In addition, the backup device 120 determines whether or not backup is necessary in an upper hierarchy such as a hierarchical storage medium 114 or a directory, and avoids a complicated comparison process such as date information or character string information, and a predetermined number of digits. The necessity of backup is determined using the hash value of. Therefore, it is possible to greatly reduce the processing time spent for backup.

(3)さらに、バックアップ装置120内においてディレクトリやファイルの更新が生じたとしても当該管理テーブル230の更新は行わない。従って、送信側の更新に対するバックアップを維持しつつ、受信側の更新による不要なバックアップを回避することが可能となる。こうして、効率的かつ確実に差分バックアップを実行し、バックアップの時間短縮を通じてユーザの利便性を向上させることができる。   (3) Furthermore, even if a directory or file is updated in the backup device 120, the management table 230 is not updated. Therefore, it is possible to avoid unnecessary backup due to the update on the reception side while maintaining the backup for the update on the transmission side. In this way, differential backup can be performed efficiently and reliably, and user convenience can be improved through shortening of backup time.

(第2の実施形態)
第1の実施形態のバックアップ装置120では、情報処理装置110を有するユーザが、情報処理装置110からバックアップ装置120へのバックアップを完了した後、バックアップが為された情報処理装置110のファイルを削除しないことで、バックアップ装置120へのバックアップが完了しているファイルと、まだバックアップが為されていないファイルとが混在していたとしても、差分バックアップが効率的かつ確実に実行される例を述べた。一方、情報処理装置110からバックアップ装置120へのバックアップが完了した後、新たなファイルを記憶するための記憶領域を確保すべく、ユーザは、情報処理装置110の記憶媒体114から既存ファイルを一部または全部削除する場合もある。
(Second Embodiment)
In the backup apparatus 120 according to the first embodiment, after the user having the information processing apparatus 110 completes the backup from the information processing apparatus 110 to the backup apparatus 120, the file of the information processing apparatus 110 that has been backed up is not deleted. Thus, an example has been described in which differential backup is performed efficiently and reliably even if a file that has been backed up to the backup device 120 is mixed with a file that has not yet been backed up. On the other hand, after the backup from the information processing apparatus 110 to the backup apparatus 120 is completed, in order to secure a storage area for storing a new file, the user partially deletes an existing file from the storage medium 114 of the information processing apparatus 110. Or you may delete everything.

例えば、情報処理装置110がデジタルカメラであった場合、新たに生成されたファイルが格納されるディレクトリ名やファイル名は、既存のファイルのディレクトリ名やファイル名が参照され、ディレクトリ名「/dcim/100abcde」、ファイル名「Abcd0001.jpg」等、インクリメントされた番号が用いられて自動的に生成されることがある。このような情報処理装置110において、上述したようにユーザが情報処理装置110に記憶されているファイル(例えば、ファイル名「Abcd0001.jpg」)を削除した後、情報処理装置110において新たにファイルが生成されると、そのファイルには再びファイル名「Abcd0001.jpg」が付され、削除されたファイルと新規のファイルとは内容は異なるもののファイル名が等しくなる。   For example, when the information processing apparatus 110 is a digital camera, the directory name and file name of the existing file are referred to for the directory name and file name in which the newly generated file is stored, and the directory name “/ dcim / 100abcde ", file name" Abcd0001.jpg ", etc., may be automatically generated using incremented numbers. In such an information processing apparatus 110, after the user deletes a file (for example, file name “Abcd0001.jpg”) stored in the information processing apparatus 110 as described above, a new file is created in the information processing apparatus 110. When the file is generated, the file name “Abcd0001.jpg” is attached to the file again, and the deleted file and the new file have the same file name although the contents are different.

このとき、ファイル名は等しいが内容が異なるファイル(削除されたファイル)は最早情報処理装置110には存在していないが、バックアップ装置120には存在している。したがって、ユーザが、新たに生成されたファイル名「Abcd0001.jpg」のファイルをバックアップしようと試みると、バックアップ装置120は、以前バックアップしたファイル名「Abcd0001.jpg」のファイルを上書きしかねない。そこで、以下に示すバックアップ装置120では、新たなファイルが、既にバックアップが完了したファイルとファイル名が等しかったとしても、バックアップが完了しているファイルを上書きして削除することなく、新たなファイルのバックアップを円滑に遂行する。   At this time, files having the same file name but different contents (deleted files) no longer exist in the information processing apparatus 110, but exist in the backup apparatus 120. Therefore, when the user tries to back up the newly generated file “Abcd0001.jpg”, the backup device 120 may overwrite the previously backed up file “Abcd0001.jpg”. Therefore, in the backup device 120 shown below, even if the new file has the same file name as the file that has already been backed up, the new file is not overwritten and deleted without overwriting the file that has been backed up. Perform backup smoothly.

ここでは、バックアップ装置120のバックアップ判断部166が第1の実施形態と異なる処理を行う。   Here, the backup determination unit 166 of the backup device 120 performs processing different from that of the first embodiment.

上述したように、バックアップ装置120に接続された記憶媒体114の媒体識別子240が、管理テーブル230の記憶媒体テーブル232に存在し、かつ、記憶媒体114に設けられているディレクトリに対応するディレクトリ識別子250が管理テーブル230のディレクトリテーブル234において媒体識別子240に関連付けられている場合であって、そのディレクトリ階層下のファイルに対応するファイル識別子260が管理テーブル230のファイルテーブル236に関連付けられていない場合、その理由として、ディレクトリ識別子250同様、そのディレクトリに属するファイルがファイル保持部124に保持されていないか、ファイルはファイル保持部124内に既に存在するが、接続された記憶媒体114におけるファイルに何らかの更新が生じそのファイルのファイルメタ情報の更新に伴ってファイル識別子260も更新されたかの2点が挙げられる。   As described above, the medium identifier 240 of the storage medium 114 connected to the backup device 120 exists in the storage medium table 232 of the management table 230 and corresponds to the directory provided in the storage medium 114. Is associated with the medium identifier 240 in the directory table 234 of the management table 230 and the file identifier 260 corresponding to the file under the directory hierarchy is not associated with the file table 236 of the management table 230, The reason is that, like the directory identifier 250, the file belonging to the directory is not held in the file holding unit 124, or the file already exists in the file holding unit 124, but the file in the connected storage medium 114 is not stored. Some file identifier 260 2 points if it were updated and the like in association with the update of the file meta information for the file occurs some updates.

第1の実施形態では、上記2つの事象のうちいずれの理由によるものであるかは、ファイル情報262であるファイル名を用いることによって判別した。そして、バックアップ判断部166は、ファイル名が管理テーブル230のファイルテーブル236におけるディレクトリに関連付けられていない場合、そのファイルをファイル複製部に複製させファイル保持部124に新たに記憶し、ファイル名が関連付けられている場合、そのファイルをファイル複製部に複製させファイル保持部124の既存のファイルに上書きしていた。かかる上書き処理は、既にバックアップされているファイルに対応する記憶媒体114中のファイルが更新されたので、その更新を反映することを目的としている。   In the first embodiment, it is determined by using the file name which is the file information 262 which one of the above two events is caused. When the file name is not associated with the directory in the file table 236 of the management table 230, the backup determining unit 166 duplicates the file in the file duplicating unit and newly stores it in the file holding unit 124, and associates the file name with the file name. In the case where the file is stored, the file is copied to the file copying unit and the existing file in the file holding unit 124 is overwritten. The overwriting process is intended to reflect the update of the file in the storage medium 114 corresponding to the file that has already been backed up.

しかし、上述したように、情報処理装置110内のファイル削除後のファイル生成に起因した、ファイル名は等しいが内容が異なるファイルが存在する場合、内容は等しいが更新されたファイルと区別することができない。即ち、両ファイルは、既にバックアップされているファイルと、ファイル名は等しいがファイル識別子260が異なることで共通している。ユーザは、ファイル名は等しいが内容が異なるファイルについて、ファイル名を別途控える等自ら管理しない限り、ファイル名が等しいファイルが生成されたことを把握する術はない。したがって、上述したように、ファイル名がファイルテーブル236におけるディレクトリに関連付けられている場合に、そのファイルをファイル保持部124に一律して上書きすると、バックアップしていたはずのファイルが不本意に書き換えられてしまう。   However, as described above, when there are files having the same file name but different contents due to the file generation after deleting the file in the information processing apparatus 110, it is possible to distinguish the file from the same but updated contents. Can not. That is, both files are the same as the files that have already been backed up because the file names are the same but the file identifiers 260 are different. The user has no way of knowing that a file with the same file name has been generated unless the file name is the same but the file name is different and the file name is not managed by himself / herself. Therefore, as described above, when a file name is associated with a directory in the file table 236, if the file is uniformly overwritten on the file holding unit 124, the file that should have been backed up is rewritten unintentionally. End up.

そこで、バックアップ判断部166は、両ファイルを区別できない上述した状況が生じ得る場合、上書き処理を回避し、その理由の如何に拘わらず、そのファイルをファイル保持部124に新たに記憶することとする。こうしてバックアップのさらなる時間短縮を図ることができる。   Therefore, the backup determination unit 166 avoids overwriting when the above-described situation in which both files cannot be distinguished can occur, and newly stores the file in the file holding unit 124 regardless of the reason. . Thus, the backup time can be further shortened.

図11は、管理テーブル230を説明するための説明図である。バックアップ判断部166は、ファイルに対応するファイル識別子260が管理テーブル230のファイルテーブル236に関連付けられていない場合、そのファイルをファイル複製部に複製させ、当該ファイルのファイル名を改めて(変換ファイル名266)、その変換ファイル名266でファイル保持部124に記憶し、図11に示すように、媒体識別子240と、生成されたディレクトリ識別子250と、ディレクトリ情報252と、生成されたファイル識別子260と、ファイル情報262と、変換ファイル名266とを関連付けて管理テーブル230のファイルテーブル236に登録する。   FIG. 11 is an explanatory diagram for explaining the management table 230. When the file identifier 260 corresponding to the file is not associated with the file table 236 of the management table 230, the backup determination unit 166 causes the file duplication unit to duplicate the file and rename the file (converted file name 266). ), The converted file name 266 is stored in the file holding unit 124, and as shown in FIG. 11, a medium identifier 240, a generated directory identifier 250, directory information 252, a generated file identifier 260, and a file The information 262 and the conversion file name 266 are associated and registered in the file table 236 of the management table 230.

ここで、変換ファイル名266は、図11の如く、当該ファイルに関して既に生成されているファイル識別子260に、変換前のファイル名の拡張子を付与した文字列(例えば、「14ccc55a6ff24762.jpg」)で形成される。かかる構成により、ファイル名が同一であることに基づいてファイルが上書きされる事態を回避でき、個々のファイルを一意に特定することが可能となる。ここで、変換前のファイル名は、ファイルを検索する際のインデックスとして用いることができる。   Here, the conversion file name 266 is a character string (for example, “14ccc55a6ff24762.jpg”) in which the extension of the file name before conversion is added to the file identifier 260 already generated for the file, as shown in FIG. It is formed. With this configuration, it is possible to avoid a situation where a file is overwritten based on the fact that the file name is the same, and it is possible to uniquely identify each file. Here, the file name before conversion can be used as an index when searching for the file.

また、ここでは、変換ファイル名266をファイル識別子260に基づいて生成したが、かかる場合に限らず、ファイル保持部124に保持されている既存のファイルと合致しないユニークなファイル名を用いることもできる。例えば、バックアップ装置120の中央制御部122が備える図示しない内部時計から、現在時刻を取得してファイル名(例えば、「2009-09-11-17:18:19:99.jpg」)としてもよいし、バックアップ装置120の中央制御部122が備える図示しない連続番号生成部で、バックアップ複製するたびに連続した番号(例えば、「0000-0000-0000-0001」)を生成し、その番号に拡張子を付して変換ファイル名(例えば、「0000-0000-0000-0001.jpg」)266を生成してもよい。また、変換ファイル名266には、必ずしも拡張子を付す必要もなく、単にファイル識別子(例えば、「14ccc55a6ff24762」)260をファイル名としてもよい。   In this example, the conversion file name 266 is generated based on the file identifier 260. However, the present invention is not limited to this, and a unique file name that does not match the existing file held in the file holding unit 124 can also be used. . For example, the current time may be acquired from an internal clock (not shown) provided in the central control unit 122 of the backup device 120 and used as a file name (for example, “2009-09-11-17: 18: 19: 99.jpg”). A continuous number generator (not shown) included in the central controller 122 of the backup device 120 generates a continuous number (for example, “0000-0000-0000-0001”) each time backup duplication is performed, and an extension is added to the number. May be used to generate a conversion file name (for example, “0000-0000-0000-0001.jpg”) 266. Further, the converted file name 266 does not necessarily have an extension, and the file identifier (for example, “14ccc55a6ff24762”) 260 may be simply used as the file name.

本実施形態では、記憶媒体114の更新があったファイルをファイル保持部124に追加することで、情報処理装置110内のファイル削除後のファイル生成に起因した、ファイル名は等しいが内容が異なるファイルであっても、内容は等しいが更新されたファイルであっても、効率的かつ確実に差分バックアップを実行することが可能となる。   In this embodiment, by adding a file in which the storage medium 114 has been updated to the file holding unit 124, files having the same file name but different contents resulting from file generation after the file is deleted in the information processing apparatus 110. Even if the files are the same but updated, the differential backup can be executed efficiently and reliably.

(バックアップ方法)
このようにバックアップ判断部166の処理を変更した場合のバックアップ方法を具体的に説明する。
(Backup method)
The backup method when the processing of the backup determination unit 166 is changed in this way will be specifically described.

図12は、第2の実施形態にかかるバックアップ方法の全体的な流れを示したフローチャートである。上述した第1の実施形態の映像処理方法と実質的に等しい処理については、同一の符号を付して説明を省略する。ただし、バックアップ判断部166による登録ステップ(S318、S330)では、ファイル識別子260に、変換ファイル名266も関連付けられて管理テーブル230に登録される。   FIG. 12 is a flowchart showing an overall flow of the backup method according to the second embodiment. The processes that are substantially the same as the video processing method of the first embodiment described above are denoted by the same reference numerals and description thereof is omitted. However, in the registration step (S318, S330) by the backup determination unit 166, the converted file name 266 is also associated with the file identifier 260 and registered in the management table 230.

ファイル識別子260が管理テーブルのファイルテーブル236に関連付けられている場合(S334のYES)、当該ファイルが新規に追加されたファイルではないと判断できるため、そのファイルをファイル保持部124に複製しない。   When the file identifier 260 is associated with the file table 236 of the management table (YES in S334), since it can be determined that the file is not a newly added file, the file is not copied to the file holding unit 124.

一方、ファイル識別子260が管理テーブル230のファイルテーブル236に関連付けられていない場合(S334のNO)、そのファイルをファイル保持部124に複製し、当該ファイルのファイル名を、当該ファイルに関して既に生成されているファイル識別子260に、変換前のファイル名の拡張子を付与した文字列である変換ファイル名266に改めて、その変換ファイル名266でファイル保持部124に記憶し(S350)、媒体識別子240と、新たなディレクトリ識別子250と、ディレクトリ情報252と、生成されたファイル識別子260と、ファイル情報262と、変換ファイル名266とを関連付けて管理テーブル230のファイルテーブル236に登録する(S352)。   On the other hand, when the file identifier 260 is not associated with the file table 236 of the management table 230 (NO in S334), the file is copied to the file holding unit 124, and the file name of the file is already generated for the file. The converted file name 266, which is a character string obtained by adding the extension of the file name before conversion to the existing file identifier 260, is stored in the file holding unit 124 with the converted file name 266 (S350), the medium identifier 240, The new directory identifier 250, the directory information 252, the generated file identifier 260, the file information 262, and the converted file name 266 are associated and registered in the file table 236 of the management table 230 (S352).

このようにして、ディレクトリに属するファイルがファイル保持部124にまだ保持されていない場合には、新たにファイルがファイル保持部124に追加される。また、ファイル保持部124内に既に存在するファイルが更新されたものであっても、ファイル保持部124内に既に存在するファイルとファイル名は等しいが内容が異なるファイルであっても、新たなファイルがファイル保持部124に追加される。したがって、内容の異なるファイルを上書き処理等で削除することもなく、ファイルの内容が等しいか否かに拘わらず過去にバックアップされた全てのファイルを参照することが可能となる。   In this way, when a file belonging to the directory is not yet held in the file holding unit 124, a new file is added to the file holding unit 124. Even if a file that already exists in the file holding unit 124 has been updated, a new file can be created even if the file name is the same as the file that already exists in the file holding unit 124 but has a different content. Is added to the file holding unit 124. Therefore, it is possible to refer to all files backed up in the past regardless of whether or not the contents of the files are equal without deleting files having different contents by overwriting or the like.

当該ディレクトリ階層下の全てのファイルの処理が完了したら(S346のYES)、記憶媒体114におけるディレクトリ全ての処理が完了したか判断し(S348)、処理が完了していれば(S348のYES)、当該バックアップ方法を終了する。   When processing of all files under the directory hierarchy is completed (YES in S346), it is determined whether processing of all directories in the storage medium 114 is completed (S348). If processing is completed (YES in S348), The backup method ends.

以上、添付図面を参照しながら本発明の好適な実施形態について説明したが、本発明はかかる実施形態に限定されないことは言うまでもない。当業者であれば、特許請求の範囲に記載された範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   As mentioned above, although preferred embodiment of this invention was described referring an accompanying drawing, it cannot be overemphasized that this invention is not limited to this embodiment. It will be apparent to those skilled in the art that various changes and modifications can be made within the scope of the claims, and these are naturally within the technical scope of the present invention. Understood.

なお、本明細書のバックアップ方法における各工程は、必ずしもフローチャートとして記載された順序に沿って時系列に処理する必要はなく、並列的あるいはサブルーチンによる処理を含んでもよい。   Note that each step in the backup method of the present specification does not necessarily have to be processed in time series in the order described in the flowchart, and may include parallel or subroutine processing.

本発明は、外部記憶媒体に接続し、接続した外部記憶媒体に記憶されているファイルと自体に複製されているファイルとの差分ファイルのみをバックアップするバックアップ装置およびバックアップ方法に利用することができる。   The present invention can be used in a backup apparatus and a backup method that are connected to an external storage medium and back up only a differential file between a file stored in the connected external storage medium and a file copied to itself.

110 …情報処理装置
114 …記憶媒体
120 …バックアップ装置
124 …ファイル保持部
160 …媒体識別子生成部
162 …ディレクトリ識別子生成部
164 …ファイル識別子生成部
166 …バックアップ判断部
214 …ベンダID
216 …プロダクトID
218 …シリアルナンバ
230 …管理テーブル
240 …媒体識別子
242 …媒体情報
250 …ディレクトリ識別子
252 …ディレクトリ情報
260 …ファイル識別子
262 …ファイル情報
DESCRIPTION OF SYMBOLS 110 ... Information processing apparatus 114 ... Storage medium 120 ... Backup apparatus 124 ... File holding part 160 ... Medium identifier generation part 162 ... Directory identifier generation part 164 ... File identifier generation part 166 ... Backup judgment part 214 ... Vendor ID
216 ... Product ID
218 ... serial number 230 ... management table 240 ... medium identifier 242 ... medium information 250 ... directory identifier 252 ... directory information 260 ... file identifier 262 ... file information

Claims (13)

外部記憶媒体に接続し、接続した前記外部記憶媒体に記憶されているファイルをバックアップするバックアップ装置であって、
ディレクトリの更新の有無を認識可能なディレクトリメタ情報をシーズとしたディレクトリ識別子を生成するディレクトリ識別子生成部と、
ファイルの更新の有無を認識可能なファイルメタ情報をシーズとしたファイル識別子を生成するファイル識別子生成部と、
1または複数のファイルと共に、前記1または複数のファイルのバックアップ元である外部記憶媒体を特定する媒体情報と、前記バックアップ元である外部記憶媒体において前記1または複数のファイルが属していたディレクトリに対応する前記ディレクトリ識別子と、前記1または複数のファイルに対応する前記ファイル識別子と、を関連付けた管理テーブルを保持するファイル保持部と、
任意の外部記憶媒体の接続時に、前記任意の外部記憶媒体に記憶されている各ファイルのバックアップの要否を前記管理テーブルに基づいて判断するバックアップ判断部と、
前記バックアップ判断部でバックアップが必要と判断された1または複数の前記ファイルを前記外部記憶媒体から前記ファイル保持部に複製するファイル複製部と、
を備えることを特徴とするバックアップ装置。
A backup device that connects to an external storage medium and backs up files stored in the connected external storage medium,
A directory identifier generation unit that generates a directory identifier based on directory meta-information that can recognize whether or not a directory has been updated;
A file identifier generation unit that generates a file identifier based on file meta information that can recognize whether a file has been updated, or
Corresponding to one or more files, medium information for identifying an external storage medium that is a backup source of the one or more files, and a directory to which the one or more files belonged in the external storage medium that is the backup source A file holding unit that holds a management table that associates the directory identifier and the file identifier corresponding to the one or more files;
A backup determination unit that determines whether backup of each file stored in the arbitrary external storage medium is necessary based on the management table when an arbitrary external storage medium is connected;
A file duplicating unit that duplicates one or more of the files determined to be backed up by the backup judging unit from the external storage medium to the file holding unit;
A backup device comprising:
前記バックアップ判断部は、バックアップが必要と判断された前記1または複数のファイルが属していたディレクトリに対応する前記ディレクトリ識別子を前記ディレクトリ識別子生成部に生成させ、前記1または複数のファイルに対応する前記ファイル識別子を前記ファイル識別子生成部に生成させ、生成された前記ディレクトリ識別子と前記ファイル識別子とを前記管理テーブルに登録することを特徴とする請求項1に記載のバックアップ装置。   The backup determination unit causes the directory identifier generation unit to generate the directory identifier corresponding to the directory to which the one or more files determined to be backed up belong, and to correspond to the one or more files. The backup device according to claim 1, wherein the file identifier is generated by the file identifier generation unit, and the generated directory identifier and the file identifier are registered in the management table. 前記バックアップ判断部は、
接続された前記外部記憶媒体の媒体情報が、前記管理テーブルに存在するか否かを判断し、
前記管理テーブルに前記媒体情報が存在しない場合、前記外部記憶媒体に記憶されている全てのファイルを前記ファイル複製部に複製させ前記ファイル保持部に記憶し、複製された前記ファイルが属していたディレクトリに対応するディレクトリ識別子を前記ディレクトリ識別子生成部に生成させ、複製された前記ファイルに対応するファイル識別子を前記ファイル識別子生成部に生成させ、前記媒体情報と生成された前記ディレクトリ識別子と前記ファイル識別子とを関連付けて前記管理テーブルに登録することを特徴とする請求項1または2に記載のバックアップ装置。
The backup determination unit
Determining whether media information of the connected external storage medium exists in the management table;
When the medium information does not exist in the management table, all files stored in the external storage medium are copied to the file copying unit and stored in the file holding unit, and the directory to which the copied file belongs The directory identifier generation unit generates the directory identifier corresponding to the file, the file identifier generation unit generates the file identifier corresponding to the copied file, and the medium information, the generated directory identifier and the file identifier, The backup apparatus according to claim 1, wherein the backup device is registered in the management table in association with each other.
前記バックアップ判断部は、
接続された前記外部記憶媒体の媒体情報が、前記管理テーブルに存在するか否かを判断し、
前記管理テーブルに前記媒体情報が存在する場合、前記外部記憶媒体に設けられているディレクトリに対応するディレクトリ識別子を前記ディレクトリ識別子生成部に生成させ、生成された前記ディレクトリ識別子が前記管理テーブルの前記媒体情報に関連付けられているか否か判断し、
前記生成されたディレクトリ識別子が前記管理テーブルの前記媒体情報に関連付けられている場合、そのディレクトリ階層下のファイルを複製しないことを特徴とする請求項1から3のいずれか1項に記載のバックアップ装置。
The backup determination unit
Determining whether media information of the connected external storage medium exists in the management table;
When the medium information exists in the management table, the directory identifier generation unit generates a directory identifier corresponding to a directory provided in the external storage medium, and the generated directory identifier is the medium in the management table. Determine whether it is associated with the information,
The backup device according to any one of claims 1 to 3, wherein when the generated directory identifier is associated with the medium information of the management table, a file under the directory hierarchy is not duplicated. .
前記管理テーブルには、ディレクトリ識別子のシーズとなったディレクトリを特定可能なディレクトリ情報も関連付けられ、
前記バックアップ判断部は、
前記生成されたディレクトリ識別子が前記管理テーブルの前記媒体情報に関連付けられていない場合、そのディレクトリのディレクトリ情報が前記管理テーブルの前記媒体情報に関連付けられているか否か判断し、
前記ディレクトリ情報が前記管理テーブルの前記媒体情報に関連付けられていない場合、前記ディレクトリ階層下の全てのファイルを前記ファイル複製部に複製させ前記ファイル保持部に記憶し、複製された前記ファイルに対応するファイル識別子を前記ファイル識別子生成部に生成させ、前記媒体情報と前記生成されたディレクトリ識別子と前記ディレクトリ情報と生成された前記ファイル識別子とを関連付けて前記管理テーブルに登録することを特徴とする請求項4に記載のバックアップ装置。
The management table is also associated with directory information that can identify the directory that is the seed of the directory identifier,
The backup determination unit
If the generated directory identifier is not associated with the media information of the management table, determine whether the directory information of the directory is associated with the media information of the management table;
When the directory information is not associated with the medium information in the management table, all files under the directory hierarchy are copied to the file replication unit, stored in the file holding unit, and corresponding to the copied file The file identifier is generated by the file identifier generation unit, and the medium information, the generated directory identifier, the directory information, and the generated file identifier are associated with each other and registered in the management table. 4. The backup device according to 4.
前記バックアップ判断部は、
前記ディレクトリ情報が前記管理テーブルの前記媒体情報に関連付けられている場合、そのディレクトリ階層下のファイルに対応するファイル識別子を前記ファイル識別子生成部に生成させ、そのファイル識別子が前記管理テーブルのそのディレクトリに関連付けられているか否か判断し、
生成された前記ファイル識別子が前記管理テーブルのそのディレクトリに関連付けられている場合、そのファイルを複製しないことを特徴とする請求項5に記載のバックアップ装置。
The backup determination unit
When the directory information is associated with the medium information of the management table, the file identifier generation unit generates a file identifier corresponding to the file under the directory hierarchy, and the file identifier is stored in the directory of the management table. Determine whether they are associated,
6. The backup device according to claim 5, wherein when the generated file identifier is associated with the directory of the management table, the file is not duplicated.
前記管理テーブルには、ファイル識別子のシーズとなったファイルを特定可能なファイル情報も関連付けられ、
前記バックアップ判断部は、
前記生成されたファイル識別子が前記管理テーブルの前記ディレクトリに関連付けられていない場合、そのファイルのファイル情報が前記管理テーブルの前記ディレクトリに関連付けられているか否か判断し、
前記ファイル情報が前記管理テーブルの前記ディレクトリに関連付けられていない場合、そのファイルを前記ファイル複製部に複製させ前記ファイル保持部に記憶し、前記媒体情報と前記生成されたディレクトリ識別子と前記ディレクトリ情報と前記生成されたファイル識別子と前記ファイル情報とを関連付けて前記管理テーブルに登録することを特徴とする請求項6に記載のバックアップ装置。
The management table is also associated with file information that can identify the file that is the seed of the file identifier,
The backup determination unit
If the generated file identifier is not associated with the directory of the management table, determine whether file information of the file is associated with the directory of the management table;
If the file information is not associated with the directory of the management table, the file is copied to the file replication unit and stored in the file holding unit, the medium information, the generated directory identifier, and the directory information The backup apparatus according to claim 6, wherein the generated file identifier and the file information are associated with each other and registered in the management table.
前記バックアップ判断部は、前記ファイル情報が前記管理テーブルの前記ディレクトリに関連付けられている場合、そのファイルを前記ファイル複製部に複製させ前記ファイル保持部に上書きし、前記管理テーブルのディレクトリ識別子とファイル識別子とを前記生成したディレクトリ識別子と前記生成したファイル識別子とに更新することを特徴とする請求項7に記載のバックアップ装置。   When the file information is associated with the directory of the management table, the backup determination unit copies the file to the file replication unit and overwrites the file holding unit, and the directory identifier and file identifier of the management table The backup apparatus according to claim 7, wherein the backup directory identifier is updated to the generated directory identifier and the generated file identifier. 前記管理テーブルには、ファイル識別子のシーズとなったファイルのファイル名を変換した変換ファイル名も関連付けられ、
前記バックアップ判断部は、前記生成されたファイル識別子が前記管理テーブルの前記ディレクトリに関連付けられていない場合、そのファイルを前記ファイル複製部に複製させ、当該ファイルのファイル名を変換ファイル名に変換し、その変換ファイル名でファイル保持部に記憶し、前記媒体情報と前記生成されたディレクトリ識別子と前記ディレクトリ情報と前記生成されたファイル識別子と前記変換ファイル名とを関連付けて前記管理テーブルに登録することを特徴とする請求項6に記載のバックアップ装置。
The management table is also associated with a converted file name obtained by converting the file name of the file that became the seed of the file identifier,
When the generated file identifier is not associated with the directory of the management table, the backup determination unit causes the file replication unit to replicate the file, converts the file name of the file into a converted file name, The conversion file name is stored in the file holding unit, and the medium information, the generated directory identifier, the directory information, the generated file identifier, and the conversion file name are associated with each other and registered in the management table. The backup device according to claim 6.
外部記憶媒体を特定可能な媒体情報をシーズとした媒体識別子を生成する媒体識別子生成部をさらに備え、
前記管理テーブルには、前記媒体情報に代えてまたは加えて前記媒体識別子も関連付けられ、
前記バックアップ判断部は、前記媒体情報の代わりに前記媒体識別子を用いて各ファイルのバックアップの要否を判断することを特徴とする請求項1から9のいずれか1項に記載のバックアップ装置。
A medium identifier generating unit that generates a medium identifier using the medium information that can identify the external storage medium as a seed;
The management table is associated with the medium identifier instead of or in addition to the medium information,
The backup apparatus according to any one of claims 1 to 9, wherein the backup determination unit determines whether it is necessary to back up each file by using the medium identifier instead of the medium information.
前記バックアップ判断部は、前記ファイル保持部のディレクトリまたはそのディレクトリに属するファイルの削除、追加、変更によっては、そのディレクトリに対応する前記管理テーブルのディレクトリ識別子を更新しないことを特徴とする請求項1から10のいずれか1項に記載のバックアップ装置。   The backup determination unit does not update a directory identifier of the management table corresponding to the directory depending on deletion, addition, or change of the directory of the file holding unit or a file belonging to the directory. The backup device according to any one of 10. 前記バックアップ判断部は、前記ファイル保持部のファイルの削除、追加、変更によっては、そのファイルに対応する前記管理テーブルのファイル識別子を更新しないことを特徴とする請求項1から11のいずれか1項に記載のバックアップ装置。   The said backup judgment part does not update the file identifier of the said management table corresponding to the file by the deletion of a file of the said file holding part, addition, and a change, The any one of Claim 1 to 11 characterized by the above-mentioned. The backup device described in 1. 外部記憶媒体に接続し、接続した前記外部記憶媒体に記憶されているファイルをバックアップするバックアップ方法であって、
1または複数のファイルと共に、前記1または複数のファイルのバックアップ元である外部記憶媒体を特定する媒体情報と、前記バックアップ元である外部記憶媒体において前記1または複数のファイルが属していたディレクトリに対応するディレクトリ識別子と、前記1または複数のファイルに対応するファイル識別子と、を関連付けた管理テーブルを予め保持し、
任意の外部記憶媒体の接続時に、前記任意の外部記憶媒体に記憶されている各ファイルのバックアップの要否を前記管理テーブルに基づいて判断し、
バックアップが必要と判断された1または複数の前記ファイルを前記外部記憶媒体からファイル保持部に複製することを特徴とするバックアップ方法。
A backup method for connecting to an external storage medium and backing up files stored in the connected external storage medium,
Corresponding to one or more files, medium information for identifying an external storage medium that is a backup source of the one or more files, and a directory to which the one or more files belonged in the external storage medium that is the backup source A management table that associates a directory identifier to be associated with a file identifier corresponding to the one or more files,
Based on the management table, it is determined whether or not backup of each file stored in the arbitrary external storage medium is required when an arbitrary external storage medium is connected,
A backup method, wherein one or a plurality of the files determined to be backed up are copied from the external storage medium to a file holding unit.
JP2009259381A 2009-06-26 2009-11-13 Backup device and backup method Pending JP2011028716A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009259381A JP2011028716A (en) 2009-06-26 2009-11-13 Backup device and backup method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2009151885 2009-06-26
JP2009259381A JP2011028716A (en) 2009-06-26 2009-11-13 Backup device and backup method

Publications (1)

Publication Number Publication Date
JP2011028716A true JP2011028716A (en) 2011-02-10

Family

ID=43637339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009259381A Pending JP2011028716A (en) 2009-06-26 2009-11-13 Backup device and backup method

Country Status (1)

Country Link
JP (1) JP2011028716A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013097680A (en) * 2011-11-02 2013-05-20 Buffalo Inc Information processor and program
JP2015158724A (en) * 2014-02-21 2015-09-03 シャープ株式会社 image forming apparatus
JP2016038784A (en) * 2014-08-08 2016-03-22 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Information processing apparatus, information processing system, backup method, and program
KR102130304B1 (en) * 2019-06-14 2020-07-08 주식회사 코튼캔디 Method and appratus for backupping file
CN113778951A (en) * 2021-09-16 2021-12-10 平安国际智慧城市科技股份有限公司 File addition method, device, equipment and storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013097680A (en) * 2011-11-02 2013-05-20 Buffalo Inc Information processor and program
JP2015158724A (en) * 2014-02-21 2015-09-03 シャープ株式会社 image forming apparatus
JP2016038784A (en) * 2014-08-08 2016-03-22 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Information processing apparatus, information processing system, backup method, and program
US9852030B2 (en) 2014-08-08 2017-12-26 International Business Machines Corporation Data backup using metadata mapping
US9916204B2 (en) 2014-08-08 2018-03-13 International Business Machines Corporation Data backup using metadata mapping
US10049019B2 (en) 2014-08-08 2018-08-14 International Business Machines Corporation Data backup using metadata mapping
US10049018B2 (en) 2014-08-08 2018-08-14 International Business Machines Corporation Data backup using metadata mapping
US10705919B2 (en) 2014-08-08 2020-07-07 International Business Machines Corporation Data backup using metadata mapping
KR102130304B1 (en) * 2019-06-14 2020-07-08 주식회사 코튼캔디 Method and appratus for backupping file
JP2020205021A (en) * 2019-06-14 2020-12-24 コットンキャンディ カンパニー リミテッドCottonCandy Co., Ltd. File backup method and equipment
CN113778951A (en) * 2021-09-16 2021-12-10 平安国际智慧城市科技股份有限公司 File addition method, device, equipment and storage medium
CN113778951B (en) * 2021-09-16 2024-04-26 平安国际智慧城市科技股份有限公司 File appending method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP4706789B2 (en) Image storage device and program
JP4714778B2 (en) Archive device, conversion device, and conversion program
US20120102076A1 (en) Information processing apparatus, information processing method, and program
JP2009177253A (en) Data processing device, imaging device, data processing program
CN100530190C (en) Apparatus and method for processing information
JP2006252478A (en) Information processing apparatus, content reproduction apparatus, content management apparatus, and data update method
TW200840357A (en) Information processing apparatus, information processing method, and program
TW201419005A (en) System, method and computer readable storage medium thereof for accessing file in cloud server
JP2011028716A (en) Backup device and backup method
CN101300553B (en) File recording device and imaging device
JP2006107192A (en) Information processing system and reproduction frequency management method for contents data
JP2001054041A (en) Imaging device, method for automatically creating group area, and method for automatically creating folder
US20070077022A1 (en) Data transfer method, data transfer source apparatus, data transfer destination apparatus, storage medium for recording data transfer program and storage medium for recording transferred-data recording program
JP4595936B2 (en) Information processing apparatus, information processing method, and program
US8634692B2 (en) Image recording/reproducing apparatus, control method thereof, program and storage medium
CN101099151A (en) Method of updating the content of a portable device
JP5790415B2 (en) Information processing apparatus and program
US20060181967A1 (en) Image retrieving apparatus, an image retrieving method, and a recording medium
US20060184513A1 (en) Image retrieving apparatus, an image retrieving method, and a recording medium
JP5183393B2 (en) Image reproduction system, image reproduction control apparatus, image reproduction method, and program
JP5489590B2 (en) Information processing apparatus, control method thereof, and program
US8254216B2 (en) Content dubbing system, content recording apparatus and content dubbing method
US20060181966A1 (en) Image retrieving and recording apparatus, an image retrieving and recording method, and a recording medium
JP2005010950A (en) File management apparatus, file management method, program, and recording medium
JP2015165426A (en) Information processing apparatus and program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20111012