JP2010231656A - File management device - Google Patents
File management device Download PDFInfo
- Publication number
- JP2010231656A JP2010231656A JP2009080453A JP2009080453A JP2010231656A JP 2010231656 A JP2010231656 A JP 2010231656A JP 2009080453 A JP2009080453 A JP 2009080453A JP 2009080453 A JP2009080453 A JP 2009080453A JP 2010231656 A JP2010231656 A JP 2010231656A
- Authority
- JP
- Japan
- Prior art keywords
- file
- backup
- name
- folder
- change
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、バックアップファイルを生成及び管理するファイル管理装置に関する。 The present invention relates to a file management apparatus that generates and manages a backup file.
従来、ファイルのバックアップを生成するために、スナップショット機能などが用いられていた。これは、所定のタイミングで、あるいは、管理者が入力したタイミングでスナップショットコマンドを実行し、バージョン管理されたファイルのバックアップを生成するものである。一方、特許文献1には、ファイルのアクセスに関するコマンドを解析し、ファイルが更新された際は、自動的にバージョン管理されたバックアップファイルを生成することが記載されている。
Conventionally, a snapshot function or the like has been used to generate a backup of a file. In this method, a snapshot command is executed at a predetermined timing or at a timing input by an administrator to generate a backup of a version-managed file. On the other hand,
上述したスナップショット機能を用いてバージョン管理を行なった場合、必ずしもファイルの更新のタイミングにおいてバックアップが生成されないため、必要なファイルのバックアップが必ずしも生成されてないことがある。また、スナップショットでは、ストレージ全体の情報が書き換わってしまい、他のユーザに影響を与えてしまうおそれがある。
一方、特許文献1では、ファイルが更新された際は、自動的にバージョン管理されたバックアップを生成することができ、ストレージ全体の情報を書き換えることはない。しかし、特許文献1では、元のファイルの名に、バージョン数やバックアップ作成日時を付加したファイル名のバックアップを生成するものであるため、バックアップファイル数が多くなった場合には検索に時間がかかってしまうという問題があった。
When version management is performed using the above-described snapshot function, a backup is not necessarily generated at the file update timing, and thus a backup of a necessary file may not necessarily be generated. In addition, in the snapshot, information on the entire storage is rewritten, which may affect other users.
On the other hand, in
本発明は、上記問題を解決すべくなされたもので、その目的は、他のユーザに影響を与えることなく、ファイル変更の都度バックアップを生成し、バックアップファイルを高速に検索して任意の時点のファイルを復元することができるファイル管理装置を提供することにある。 The present invention has been made to solve the above-mentioned problems, and its purpose is to generate a backup every time a file is changed without affecting other users, and to search the backup file at high speed to obtain an arbitrary point in time. An object of the present invention is to provide a file management apparatus capable of restoring files.
上記課題を解決するため、本発明は、バックアップファイルを記憶するバックアップ記憶部と、前記バックアップファイルを管理するバックアップ管理テーブルを記憶するテーブル記憶部と、ファイル操作の種類及びファイルの更新時刻と、ファイル操作対象のファイルのフォルダ名を含んだ名前である対象ファイル名とを示す操作情報を受信し、当該操作情報によりファイルの作成または上書を検出する検出部と、前記検出部によりファイルの作成または上書が検出された場合に、当該操作情報により示される対象ファイル名のファイルを複製したバックアップファイルを、バックアップファイルであることを示す情報と子番号とを当該対象ファイル名に付加したファイル名により前記バックアップ記憶部に書き込むバックアップファイル生成部と、前記操作情報に設定されている更新時刻及び対象ファイル名と、前記バックアップ生成部が生成したバックアップファイルのファイル名であるバックアップファイル名とを対応づけた情報を前記バックアップ記憶部に記憶されている前記バックアップ管理テーブルに書き込むテーブル更新部と、を備えることを特徴とするファイル管理装置である。 In order to solve the above problems, the present invention provides a backup storage unit that stores a backup file, a table storage unit that stores a backup management table that manages the backup file, a type of file operation, a file update time, and a file Receiving the operation information indicating the target file name including the folder name of the operation target file and detecting the creation or overwriting of the file based on the operation information; When an overwriting is detected, a backup file that is a duplicate of the file with the target file name indicated by the operation information is obtained by adding the information indicating that it is a backup file and a child number to the target file name. Backup file to be written to the backup storage unit The information that associates the update unit, the update time and the target file name set in the operation information, and the backup file name that is the file name of the backup file generated by the backup generation unit is stored in the backup storage unit And a table updating unit for writing to the backup management table.
また本発明は、上述するファイル管理装置であって、前記検出部は、受信した操作情報によりファイルの削除を検出し、バックアップファイル生成部は、前記検出部によりファイル削除が検出された場合に、当該操作情報により示される対象ファイル名に、ファイルの削除を示す情報と子番号とを付加したファイル名の削除用ダミーファイルを前記バックアップ記憶部に書き込み、前記テーブル更新部は、前記操作情報に設定されている更新時刻及び対象ファイル名と、前記バックアップ生成部が生成した削除用ダミーファイルのファイル名とを対応づけた情報を前記バックアップ記憶部に記憶されている前記バックアップ管理テーブルに書き込む、ことを特徴とする。 Further, the present invention is the file management apparatus described above, wherein the detection unit detects deletion of a file based on the received operation information, and the backup file generation unit is configured to detect file deletion by the detection unit, A dummy file for deletion having a file name in which information indicating deletion of a file and a child number is added to the target file name indicated by the operation information is written in the backup storage unit, and the table update unit is set in the operation information Information that associates the update time and the target file name that has been created with the file name of the dummy file for deletion generated by the backup generation unit into the backup management table stored in the backup storage unit. Features.
また本発明は、上述するファイル管理装置であって、前記検出部は、受信した操作情報によりファイル名の変更を検出し、バックアップファイル生成部は、前記検出部によりファイル名の変更が検出された場合に、当該操作情報により示される変更前ファイル名に、ファイルの削除を示す情報と子番号とを付加したファイル名の削除用のダミーファイルを前記バックアップ記憶部に書き込むとともに、当該操作情報により示される変更後ファイル名のファイルを複製したバックアップファイルを、バックアップファイルであることを示す情報と子番号とを当該変更後ファイル名に付加したファイル名により前記バックアップ記憶部に書き込み、前記テーブル更新部は、前記操作情報に設定されている更新時刻と、前記変更前ファイル名を示す対象ファイル名と、前記バックアップ生成部が生成した削除用ダミーファイルのファイル名とを対応づけた情報を前記バックアップ管理テーブルに書き込むとともに、当該操作情報に設定されている更新時刻と、前記変更後ファイル名を示す対象フィアル名と、前記バックアップ生成部が生成したバックアップファイルのバックアップファイル名とを対応づけた情報を前記バックアップ管理テーブルに書き込む、ことを特徴とする。 The present invention is the file management apparatus described above, wherein the detection unit detects a change in file name based on the received operation information, and the backup file generation unit detects a change in file name by the detection unit. In this case, a dummy file for deleting a file name in which information indicating deletion of a file and a child number is added to the file name before change indicated by the operation information is written to the backup storage unit and indicated by the operation information. A backup file obtained by copying the file with the changed file name to be written, the information indicating that the file is a backup file and a child number are written to the backup storage unit by the file name added to the changed file name, and the table update unit is Indicates the update time set in the operation information and the file name before change Information that associates the file name of the file with the file name of the deletion dummy file generated by the backup generation unit into the backup management table, the update time set in the operation information, and the changed file Information that associates a target file name indicating a name with a backup file name of a backup file generated by the backup generation unit is written in the backup management table.
また本発明は、上述するファイル管理装置であって、ユーザの端末から復旧対象時刻の情報を受信し、前記バックアップ管理テーブルから当該復旧対象時刻以前が更新時刻であるバックアップファイル名を復元対象として特定し、特定した復元対象に同じ対象ファイル名に対応しているバックアップファイル名が含まれる場合は、最も前記復旧対象時刻に近い更新時刻のバックアップファイル名のみを復元対象とし、当該復元対象のバックアップファイル名に対応した対象ファイル名を読み出す検索部と、前記検索部により前記復元対象のバックアップファイル名に対応して読み出された前記対象ファイル名のファイルをファイル復旧領域に生成し、当該ファイル復旧領域に生成されたファイルの出力指示を受信した場合に、当該ファイルの対象ファイル名に対応した前記復元対象のバックアップファイル名のバックアップファイルを前記バックアップ記憶部から読み出して出力する復元部と、をさらに備えることを特徴とする。 Further, the present invention is the file management apparatus described above, which receives information on a recovery target time from a user terminal, and specifies a backup file name whose update time is before the recovery target time from the backup management table as a restoration target If the specified restore target includes a backup file name corresponding to the same target file name, only the backup file name with the update time closest to the recovery target time is set as the restore target, and the backup file to be restored A search unit for reading a target file name corresponding to a name, and generating a file with the target file name read by the search unit corresponding to the backup file name to be restored in a file recovery area. When an output instruction for a file generated in Characterized by further comprising a restoration unit for the backup file elephant file backup file name of the recovery target that corresponds to the name read out and output from the backup storage unit.
また本発明は、上述するファイル管理装置であって、前記復元部は、前記復元対象のバックアップファイル名に対応して読み出された前記対象ファイル名のファイルを、前記ユーザに対応したファイル復旧領域に生成する、ことを特徴とする。 Further, the present invention is the file management apparatus described above, wherein the restoration unit reads a file with the target file name read corresponding to the backup file name to be restored into a file recovery area corresponding to the user. It is characterized by generating.
また本発明は、上述するファイル管理装置であって、前記検索部は、前記バックアップ管理テーブルに、復元対象のバックアップファイル名に対応した対象ファイル名と同じ対象ファイル名に対応して削除用ダミーファイルのファイル名が登録されており、当該削除用ダミーファイルのファイル名に対応した更新時刻が当該復元対象のバックアップファイル名に対応した更新時刻以降であり、かつ、前記ファイル復旧対象時刻以前であった場合、当該バックアップファイル名を復元対象から除外する、ことを特徴とする。 The present invention is the file management apparatus described above, wherein the search unit includes a deletion dummy file corresponding to the same target file name as the target file name corresponding to the backup file name to be restored in the backup management table. File name is registered, and the update time corresponding to the file name of the deletion dummy file is after the update time corresponding to the backup file name to be restored and before the file recovery target time In this case, the backup file name is excluded from the restoration target.
また本発明は、上述するファイル管理装置であって、前記テーブル記憶部は、変更されたフォルダ名を管理するフォルダ名変更管理テーブルをさらに記憶し、前記操作情報は、フォルダ操作の種類及びフォルダの更新時刻と操作対象のフォルダ名とを示し、前記検出部は、受信した操作情報によりフォルダ名の変更を検出し、前記バックアップファイル生成部は、前記検出部によりフォルダ名の変更が検出された場合に、当該操作情報により示されるフォルダ名変更時刻、変更前フォルダ名及び変更後フォルダ名を含んだフォルダ名のフォルダ名変更用ダミーファイルを前記バックアップ記憶部に書き込み、前記検索部は、さらに、前記復元対象のバックアップファイル名に対応した更新時刻を読み出し、読み出した更新時刻以降、かつ、前記復元対象時刻以前のフォルダ名変更時刻に対応して、当該復元対象のバックアップファイル名に含まれるフォルダ名が変更前フォルダ名としてフォルダ名変更管理テーブルに登録されている場合に、当該変更前フォルダ名に対応した変更後フォルダ名を読み出し、前記復元部は、前記検索部により前記復元対象のバックアップファイル名に対応して読み出された前記対象ファイル名内の前記変更前フォルダ名を前記変更後フォルダ名に置き換えたファイル名のファイルをファイル復旧領域に生成し、当該ファイル復旧領域に生成されたファイルの出力指示を受信した場合に、前記復元対象のバックアップファイル名のバックアップファイルを前記バックアップ記憶部から読み出して出力する、ことを特徴とする。 The present invention is the file management apparatus described above, wherein the table storage unit further stores a folder name change management table for managing the changed folder name, and the operation information includes a type of folder operation and a folder name. An update time and an operation target folder name are indicated, and the detection unit detects a change in the folder name based on the received operation information, and the backup file generation unit detects a change in the folder name by the detection unit In addition, the folder name change dummy file of the folder name including the folder name change time, the folder name before change and the folder name after change indicated by the operation information is written to the backup storage unit, and the search unit further includes the Reads the update time corresponding to the backup file name to be restored, and after and before the read update time Corresponding to the folder name change time before the restoration target time, if the folder name included in the backup file name to be restored is registered in the folder name change management table as the folder name before modification, the folder name before modification And the restoration unit uses the search unit to retrieve the folder name before change in the target file name read by the search unit corresponding to the backup file name to be restored. When the file with the file name replaced with the file name is generated in the file recovery area and the output instruction of the file generated in the file recovery area is received, the backup file with the backup file name to be restored is received from the backup storage unit. It reads out and outputs.
また本発明は、上述するファイル管理装置であって、前記バックアップ生成部は、前記フォルダ名変更管理テーブルから変更前フォルダ名及びフォルダ名変更時刻を読み出し、更新時刻が前記フォルダ名変更時刻以前であり、かつ、前記変更前フォルダ名が含まれるバックアップファイル名のバックアップファイルから、同じ対象ファイル名に対応したバックアップファイルについてはファイル生成時刻が最も前記フォルダ名変更時刻に近いバックアップファイルを抽出し、さらに、この抽出したバックアップファイルから、当該バックアップファイルと同じ対象ファイル名に対応して生成され、ファイル生成時刻が当該バックアップファイルのファイル生成時刻以降、かつ、フォルダ名変更時刻以前である削除用ダミーファイルが存在するバックアップファイルを除外し、除外した残りのバックアップファイルを複製し、当該バックアップファイルのバックアップファイル名内の前記変更前フォルダ名を前記変更後フォルダ名に置き換え、新たな子番号を付与したバックアップファイル名により前記バックアップ記憶部に書き込み、さらに、前記除外した残りのバックアップフィアルに対応した対象ファイルの削除用ダミーファイルを生成して前記バックアップ記憶部に書き込み、前記テーブル管理部は、前記バックアップ生成部が前記バックアップ記憶部に書き込んだバックアップファイルのバックアップファイル名と、当該バックアップファイル名から取得した対象ファイル名と、前記フォルダ名変更時刻とを対応づけた情報を前記バックアップ管理テーブルに書き込むとともに、前記バックアップ生成部が前記バックアップ記憶部に書き込んだ削除用ダミーファイルのファイル名と、当該ファイル名から取得した対象ファイル名と、前記フォルダ名変更時刻とを対応づけた情報を前記バックアップ管理テーブルに書き込む、ことを特徴とする。 The present invention is the file management apparatus described above, wherein the backup generation unit reads the folder name before change and the folder name change time from the folder name change management table, and the update time is before the folder name change time. And, for the backup file corresponding to the same target file name, the backup file with the file generation time closest to the folder name change time is extracted from the backup file with the backup file name including the pre-change folder name, and From this extracted backup file, there is a dummy file for deletion that is generated corresponding to the same target file name as the backup file, and whose file generation time is after the file generation time of the backup file and before the folder name change time. Do Exclude the backup file, duplicate the remaining backup file, replace the pre-change folder name in the backup file name of the backup file with the post-change folder name, and give a new child number To the backup storage unit, and further generate a deletion dummy file of the target file corresponding to the excluded backup file that is excluded and write it to the backup storage unit, the table management unit, the backup generation unit When writing the backup file name of the backup file written in the backup storage unit, the target file name acquired from the backup file name, and the folder name change time in the backup management table In addition, the backup management table stores information associating the file name of the dummy file for deletion written to the backup storage unit by the backup generation unit, the target file name acquired from the file name, and the folder name change time. It is characterized by writing in.
また本発明は、上述するファイル管理装置であって、前記バックアップ記憶部に記憶されているバックアップファイルのバックアップファイル名と、当該バックアップファイル名から取得した対象ファイル名と、当該バックアップファイルの作成時刻とを対応づけた情報を含んだバックアップ管理テーブルを生成するテーブル復旧部をさらに備える、ことを特徴とする。 The present invention is the file management apparatus described above, wherein the backup file name of the backup file stored in the backup storage unit, the target file name acquired from the backup file name, the creation time of the backup file, And a table recovery unit that generates a backup management table including information associated with.
また本発明は、上述するファイル管理装置であって、前記操作情報は、フォルダ操作の種類と操作対象のフォルダ名とを示し、前記検出部は、受信した操作情報によりフォルダ名の変更を検出し、バックアップファイル生成部は、前記検出部によりフォルダ名の変更を検出した場合に、当該操作情報により示される変更前フォルダ名及び変更後フォルダ名を含んだフォルダ名変更用ダミーファイルを前記バックアップ記憶部に書き込み、前記テーブル復旧部は、前記バックアップ記憶部に記憶されている前記フォルダ名変更用ダミーファイルで示される変更前フォルダ名及び変更後フォルダ名と、当該フォルダ名変更用ダミーファイルの作成時刻とを対応づけた情報を含んだフォルダ名変更管理テーブルを生成する、ことを特徴とする。 The present invention is the file management apparatus described above, wherein the operation information indicates a type of folder operation and a folder name to be operated, and the detection unit detects a change of the folder name based on the received operation information. The backup file generation unit, when the change of the folder name is detected by the detection unit, a folder name change dummy file including the pre-change folder name and the post-change folder name indicated by the operation information. The table restoration unit stores the folder name before and after the change indicated by the folder name change dummy file stored in the backup storage unit, the creation time of the folder name change dummy file, A folder name change management table including information associated with is generated.
また本発明は、上述するファイル管理装置であって、前記バックアップ記憶部は、重複排除技術を用いて前記バックアップファイルを記憶することを特徴とする。 The present invention is also the file management apparatus described above, wherein the backup storage unit stores the backup file using a deduplication technique.
本発明によれば、ファイル変更の都度、ファイルのバックアップを生成するとともに、生成されたバックアップファイルの管理テーブルを生成する。これにより、ユーザが所望の時点のバックアップファイルを高速に検索して、その時点に存在していたファイルを復元することができる。このとき、ユーザが自分専用のフォルダにファイルを復元することができるため、他のユーザに影響を与えることもない。また、削除されたファイルの復元も可能である。加えて、バックアップファイルの管理テーブルに障害が発生した場合も、当該テーブルを復元することができる。 According to the present invention, each time a file is changed, a backup of the file is generated and a management table of the generated backup file is generated. As a result, the user can quickly search for a backup file at a desired time and restore the file that existed at that time. At this time, since the user can restore the file to his / her own folder, it does not affect other users. It is also possible to restore deleted files. In addition, when a failure occurs in the backup file management table, the table can be restored.
以下、図面を参照して本発明の実施形態を説明する。
図1は、本発明の一実施形態によるファイル管理システムの動作概要を示す図である。
まず、ユーザが自身の端末からファイルサーバにアクセスし、「1月1日12時00分」の時点で、当該ファイルサーバのフォルダ「/PUBLIC」の配下に、記述内容aのファイル「Sample.txt」を新規に作成したとする。その後、「1月2日12時00分」の時点で、同ファイル「Sample.txt」を記述内容bのものに上書保存し、さらにその後、「1月3日12時00分」の時点で、同ファイル「Sample.txt」を記述内容cのものに上書保存したとする。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram showing an outline of operation of a file management system according to an embodiment of the present invention.
First, the user accesses the file server from his / her terminal, and when “January 1st 12:00”, the file “Sample.txt” of the description content “a” is stored under the folder “/ PUBLIC” of the file server. ”Is newly created. After that, when “January 2 12:00”, the file “Sample.txt” is overwritten and saved in the description content b, and then “January 3 12:00” Then, it is assumed that the file “Sample.txt” is overwritten and saved with the description content c.
本実施形態のファイル管理システムでは、ユーザからのファイルアクセス状況を取得して、上述したようなファイルの作成や上書があったことを認識し、ファイルを別領域に自動バックアップし、当該バックアップファイルの管理テーブルを生成する。この管理テーブルを利用してバックアップファイルを検索し、いつでも過去のファイルを取り出すことを可能にする。 In the file management system of the present embodiment, the file access status from the user is acquired, the creation or overwriting of the file as described above is recognized, the file is automatically backed up in another area, and the backup file Generate a management table. This management table is used to search for backup files and to retrieve past files at any time.
例えば、1月4日の時点では、フォルダ「/PUBLIC」の配下に、「1月3日12時00分」の時点で上書きされた、記述内容cのファイル「Sample.txt」が存在し、「/PUBLIC/Sample.txt」を指定しても、記述内容aや記述内容bを取り出すことはできない。そこで、ユーザは、自身のファイル復元領域のフォルダの配下に、復元したい日時「1月12日15時00分」を表すフォルダ名「/01_02_1500」のフォルダを生成する。これにより、ファイル管理装置は、「1月12日15時00分」時点に存在していたファイルサーバ内のファイル、つまり、記述内容bの「/PUBLIC/Sample.txt」を、生成されたフォルダ「/BACKUP/01_02_1500」の配下に復元する。 For example, as of January 4, there is a file “Sample.txt” of the description content c overwritten at the time of “January 3, 12:00” under the folder “/ PUBLIC”. Even if “/PUBLIC/Sample.txt” is specified, the description contents a and the description contents b cannot be extracted. Therefore, the user creates a folder with a folder name “/ 01 — 02 — 1500” representing the date and time “January 12 15:00” to be restored under the folder in the file restoration area of the user. As a result, the file management apparatus generates the file in the file server that existed as of “January 12, 15:00”, that is, “/PUBLIC/Sample.txt” of the description content b, in the generated folder. Restore to "/ BACKUP / 01_02_1500".
図2は、本発明の一実施形態によるファイル管理システムの構成図であり、本発明と関係する機能ブロックのみ抽出して示してある。同図において、ファイル管理システムは、ユーザ端末1、ファイルサーバ2、及び、ファイル管理装置3を、IP(Internet Protocol)などを用いたネットワークNを介して接続してなる。
FIG. 2 is a configuration diagram of a file management system according to an embodiment of the present invention, in which only functional blocks related to the present invention are extracted and shown. In the figure, the file management system is configured by connecting a
ファイルサーバ2は、ネットワークNを介してデータを送受信し、記憶部21及びファイル操作部22を備える。ファイル操作部22は、パーソナルコンピュータなどのユーザ端末1からの指示を受け、記憶部21にファイルやフォルダの作成、上書、削除、名前の変更などの操作を行なう。
The
ファイル管理装置3は、ネットワークNを介してデータを送受信し、バックアップ記憶部4、テーブル記憶部5、バックアップ処理部6、ファイル復元部7、及び、テーブル復旧部8を備える。
The
バックアップ記憶部4は、例えば、データベースサーバにより実現することができる。バックアップ記憶部4は、バックアップファイル記憶領域を有し、このバックアップファイル記憶領域に、バックアップ処理部6により生成されたバックアップファイルを記憶する。
The
テーブル記憶部5は、例えば、データベースサーバにより実現することができ、バックアップファイルを管理するバックアップ管理テーブル、及び、名前が変更されたフォルダを管理するフォルダ名変更管理テーブルを記憶する。
The
バックアップ処理部6は、例えば、1台または複数台のサーバにより実現することができ、検出部61、バックアップファイル生成部62、及び、テーブル更新部63を備える。検出部61は、バックアップファイルを生成すべき操作、具体的には、ファイルサーバ2内のファイルの作成、上書または削除、あるいは、ファイル名やフォルダ名の変更を検出する。バックアップファイル生成部62は、作成、上書、名前変更の対象となったファイルのバックアップファイルを生成したり、ファイルが削除されたたことを示すダミーファイルを生成したりする。また、バックアップファイル生成部62は、名前が変更されたフォルダの管理情報をフォルダ名変更管理テーブルに登録するために使用するダミーファイルを生成する。テーブル更新部63は、バックアップ管理テーブル、及び、フォルダ名変更管理テーブルを更新する。
The
ファイル復元部7は、例えば、1台または複数台のサーバにより実現することができ、検索部71、復元部72、検索ポータル部73、及び、検索エンジン部74を備える。検索部71は、テーブル記憶部5内に記憶されているバックアップ管理テーブル、及び、フォルダ名変更管理テーブルを参照し、ユーザにより指定された日時に存在していたバックアップファイルを検索する。復元部72は、検索部71により検索されたバックアップファイルに基づき、ユーザにより指定された時点に存在していたファイルを復元する。検索ポータル部73は、ユーザ端末1にファイル検索のポータル機能を提供する。検索エンジン部74は、既存の一般的なファイル検索エンジンのアプリケーションを実行し、バックアップファイルを対象としたファイル検索処理を実行する。
The file restoration unit 7 can be realized by, for example, one or a plurality of servers, and includes a
テーブル復旧部8は、例えば、1台または複数台のサーバにより実現することができ、バックアップ記憶部4に記憶されているバックアップファイルやダミーファイルに基づいて、バックアップ管理テーブル、及び、フォルダ名変更管理テーブルを復旧する。
The
なお、ファイル管理装置3の各部を異なるサーバにより実現してもよく、任意の各部を同じサーバ上で実現してもよい。また、ファイルサーバ2内にファイル管理装置3の全部または一部の機能を備えることでもよい。例えば、ファイルサーバ2内の記憶部21と、バックアップ記憶部4、テーブル記憶部5が同じデータベースサーバ等の記憶装置により実現されることでもよい。また、以下では、ファイル復元用のフォルダが生成されるファイル復元領域をバックアップ記憶部4に生成する場合を例にして説明するが、記憶部21や他のデータベースサーバ等の記憶装置に生成することでもよい。
In addition, each part of the
図3は、バックアップ管理テーブルのデータ構成例を示す図である。同図において、バックアップ管理テーブルは、レコードを一意に特定する管理IDと、ファイルの作成、上書、削除、名前の変更などの操作を行なったファイル更新時刻と、操作の対象となったファイルのファイル名を示す対象ファイル名と、ファイル操作を行なったユーザ端末1のIPアドレスと、当該ユーザ端末1がファイル操作を行なったときに使用していたログイン名を示すログインユーザと、バックアップファイルまたはダミーファイルのファイル名を示すバックアップファイル名とを含む複数のレコードからなる。なお、IPアドレス及びユーザの項目はオプショナル項目であり、設定しなくともよい。また、対象ファイル名は、更新の対象となったファイルが存在するディレクトリ、つまり、階層構造で示されるフォルダ名である絶対パス名を含む。バックアップファイルのファイル名もフォルダ名を含むが、ここでは、バックアップ領域のフォルダよりも下流のフォルダ名のみを設定する。
FIG. 3 is a diagram illustrating a data configuration example of the backup management table. In the figure, the backup management table includes a management ID that uniquely identifies a record, a file update time when a file is created, overwritten, deleted, renamed, etc., and the file that is the target of the operation. The target file name indicating the file name, the IP address of the
図4は、フォルダ名変更管理テーブルのデータ構成例を示す図である。同図において、フォルダ名変更管理テーブルは、レコードを一意に特定する管理IDと、フォルダ名変更時刻と、変更前フォルダ名と、フォルダ名の変更を行なったユーザ端末1のIPアドレスと、当該ユーザ端末1がフォルダ名変更を行なったときに使用していたログイン名を示すログインユーザと、変更後フォルダ名とを含む複数のレコードからなる。なお、IPアドレス及びユーザの項目はオプショナル項目であり、設定しなくともよい。
FIG. 4 is a diagram illustrating a data configuration example of the folder name change management table. In the figure, the folder name change management table includes a management ID for uniquely identifying a record, a folder name change time, a folder name before change, an IP address of the
図5及び図6は、バックアップタイミングの検出処理を説明する図である。
図5は、ファイルサーバ2により生成されたログを用いたバックアップタイミングの検出を説明する図である。
同図において、バックアップ処理部6の検出部61は、ファイルサーバ2により生成及び出力されるログからファイルの作成、上書及び削除、ならびに、ファイル名やフォルダ名の変更を検出する。つまり、ユーザが、ユーザ端末1にファイルやフォルダの操作指示を入力すると、当該操作指示がファイルサーバ2宛に送信される(ステップS11)。ファイルサーバ2のファイル操作部22は、ユーザ端末1から受信した操作指示に従ってファイルやフォルダの作成、上書、削除、または、名前の変更を行なう。ファイル操作部22は、ファイルやフォルダの操作を記述したログをリアルタイムにファイル管理装置3に出力する(ステップS12)。
5 and 6 are diagrams for explaining the backup timing detection process.
FIG. 5 is a diagram for explaining the detection of the backup timing using the log generated by the
In the figure, the
ファイルサーバ2から出力されるログには、ファイルまたはフォルダの操作の種類と、操作対象のファイルやフォルダと、操作指示を送信したユーザ端末1のIPアドレスと、当該ユーザ端末1が使用しているログイン名の情報が設定されている。操作がファイルの作成、上書または削除であれば、操作対象のファイルとして、作成、上書または削除されたファイルのファイル名が設定される。操作がファイル名の変更であれば、操作対象のファイルとして、名前変更前のファイル名と、名前変更後のファイル名とが設定される。操作がフォルダ名変更であれば、操作対象のフォルダとして、名前変更前のフォルダ名、及び、名前変更後のフォルダ名が設定される。
The log output from the
バックアップ処理部6の検出部61が、ファイルサーバ2より受信したログから、ファイルの作成、上書または削除、あるいは、ファイル名の変更、フォルダ名の変更を検出すると(ステップS13)、バックアップファイル生成部62が、ログから取得した操作対象ファイルや操作対象フォルダ等の情報に基づき、バックアップファイルを生成してバックアップ記憶部4のバックアップ記憶領域に書込み(ステップS14)、テーブル更新部63が、テーブル記憶部5に記憶されているバックアップ管理テーブル、フォルダ名変更管理テーブルを更新する(ステップS15)。
When the
図6は、キャプチャされたファイルサーバ2宛のパケットを用いたバックアップタイミングの検出を説明する図である。
同図において、ネットワークN上にパケットキャプチャ装置9が設置されている。ユーザが、ユーザ端末1にファイルやフォルダの操作指示を入力すると、当該操作指示が設定されたパケットがファイルサーバ2宛に送信される(ステップS21)。パケットキャプチャ装置9は、ユーザ端末1からファイルサーバ2宛てに送信されたパケットを複製し、バックアップ処理部6に送信する(ステップS22)。なお、ファイルサーバ2宛のパケットは、複製後にそのままファイルサーバ2へ送信され、ファイル操作部22は、受信した操作指示に従ってファイルやフォルダの作成、上書、削除、または、名前の変更を行なう。
FIG. 6 is a diagram for explaining the detection of the backup timing using the captured packet addressed to the
In the figure, a packet capture device 9 is installed on a network N. When a user inputs a file or folder operation instruction to the
バックアップ処理部6の検出部61は、パケットキャプチャ装置9から複製されたファイルサーバ2宛のパケットを受信する。複製されたパケットに設定されている操作指示には、ファイルまたはフォルダの操作の種類と、操作対象のファイルやフォルダと、操作指示を送信したユーザ端末1のIPアドレスと、当該ユーザ端末1が使用しているログイン名の情報が設定されている。操作がファイルの作成、上書または削除であれば、操作対象のファイルとして、作成、上書または削除されたファイルのファイル名が設定される。操作がファイル名の変更であれば、操作対象のファイルとして、名前変更前のファイル名と、名前変更後のファイル名とが設定される。操作がフォルダ名変更であれば、操作対象のフォルダとして、名前変更前のフォルダ名、及び、名前変更後のフォルダ名が設定される。
The
バックアップ処理部6の検出部61が、複製されたファイルサーバ2宛のパケットに含まれる操作指示から、ファイルの作成、上書または削除、あるいは、ファイル名の変更、フォルダ名の変更を検出すると(ステップS23)、バックアップファイル生成部62が、当該パケットから取得した操作対象ファイルや操作対象フォルダ等の情報に基づき、バックアップファイルを生成してバックアップ記憶部4のバックアップ記憶領域に書込み(ステップS24)、テーブル更新部63が、テーブル記憶部5に記憶されているバックアップ管理テーブル、フォルダ名変更管理テーブルを更新する(ステップS25)。
When the
次に、ファイル管理装置の動作について説明する。 Next, the operation of the file management apparatus will be described.
図7は、ファイル管理システムにおけるファイル生成時の処理を説明する図である。
ステップS101:同図において、まず、ファイルサーバ2のファイル操作部22は、ユーザ端末1から、新たなファイルの作成指示を受信し、指示されたファイルを記憶部21に書き込む。ここでは、ファイルサーバ2のファイル操作部22が、記憶部21に生成されているフォルダ「/TEST」の配下に、内容aが記述されているファイル「Sample.txt」を新規に書き込んだとする。
FIG. 7 is a diagram for explaining processing at the time of file generation in the file management system.
Step S101: In the figure, first, the file operation unit 22 of the
ステップS102:バックアップ処理部6の検出部61は、ファイルサーバ2のファイル操作部22から出力されたログ、あるいは、パケットキャプチャ装置9によりキャプチャされたパケットからファイルの作成を検出する。検出部61によりファイルの作成が検出されると、バックアップファイル生成部62は、バックアップ領域に、作成されたファイル「/TEST/Sample.txt」をフォルダの階層構造(ディレクトリ)を含めてコピーし、バックアップファイルを作成する。このバックアップファイルのファイル名は、コピーしたファイル名の拡張子に「...」+「子番号」を付加したものとする。バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、「/TEST/Sample.txt」のバックアップファイルが存在しないことから、バックアップファイル生成部62は、子番号として「0」を付与する。従って、バックアップファイル生成部62は、バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、ファイルサーバ2に記憶されているファイル「/TEST/Sample.txt」をコピーしたファイル「/TEST/Sample.txt...0」を作成する。
Step S102: The
ステップS103:次に、バックアップ処理部6のテーブル更新部63は、バックアップ管理テーブルを更新する。テーブル更新部63は、新たな管理IDを割り当てると、割り当てた当該管理番号、ファイルが作成された時刻を設定したファイル更新時刻、操作対象ファイル、すなわち、ファイルサーバ2の記憶部21に作成されたファイルのファイル名「/TEST/Sample.txt」、IPアドレス、ログインユーザ、及び、バックアップ記憶部4のバックアップ領域のフォルダ「/BACKUP」の配下に作成されたバックアップファイルのファイル名「/TEST/Sample.txt...0」を設定したレコードをバックアップ管理テーブルに登録する。なお、バックアップ管理テーブルに設定するバックアップファイルのフォルダ名では、バックアップ領域のフォルダ名「/BACKUP」を省略している。ファイル更新時刻、IPアドレス、ログインユーザは、ログあるいはキャプチャされたパケットから取得するが、ファイル更新時刻は現在時刻を設定してもよい。
Step S103: Next, the
図8は、ファイル管理システムにおけるファイル上書時の処理を説明する図である。
ステップS111:図7の処理の後、ファイルサーバ2のファイル操作部22は、ユーザ端末1から指示を受け、記憶部21に記憶されているファイルを上書きする。ここでは、ファイルサーバ2のファイル操作部22が、記憶部21に記憶されているファイル「/TEST/Sample.txt」を、内容aが記述されているものから、内容bが記述されているものに上書したとする。
FIG. 8 is a diagram for explaining processing at the time of overwriting a file in the file management system.
Step S111: After the processing of FIG. 7, the file operation unit 22 of the
ステップS112:バックアップ処理部6の検出部61は、ファイルサーバ2のファイル操作部22から出力されたログ、あるいは、パケットキャプチャ装置9によりキャプチャされたパケットからファイルの上書を検出する。検出部61によりファイルの上書が検出されると、バックアップファイル生成部62は、バックアップ領域に、階層構造のフォルダを含めて上書されたファイルをコピーし、バックアップファイルを作成する。バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、「/TEST/Sample.txt」のバックアップファイルがすでに生成されおり、その子番号が「0」であることから、バックアップファイル生成部62は、バックアップファイル名の子番号として「1」を付与する。従って、バックアップファイル生成部62は、バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、ファイルサーバ2に記憶されている、内容bのファイル「/TEST/Sample.txt」をコピーしたファイル「/TEST/Sample.txt...1」を作成する。
Step S112: The
ステップS113:続いて、バックアップ処理部6のテーブル更新部63は、バックアップ管理テーブルを更新する。テーブル更新部63は、新たな管理IDを割り当てると、当該管理番号と、ファイルが上書された時刻を設定したファイル更新時刻と、操作対象のファイル、つまり、ファイルサーバ2の記憶部21内の上書されたファイルのファイル名「/TEST/Sample.txt」、IPアドレス、ログインユーザ、及び、バックアップ記憶部4のバックアップ領域のフォルダ「/BACKUP」配下に作成されたバックアップファイルのファイル名「/TEST/Sample.txt...1」を設定したレコードをバックアップ管理テーブルに登録する。ファイル更新時刻、IPアドレス、ログインユーザは、ログあるいはキャプチャされたパケットから取得するが、ファイル更新時刻は現在時刻を設定してもよい。
Step S113: Subsequently, the
図9は、ファイル管理システムにおけるファイル削除時の処理を説明する図である。
ステップS121:ファイルサーバ2のファイル操作部22は、ユーザ端末1から指示を受け、記憶部21に記憶されているファイルを削除する。ここでは、図8の処理の後、記憶部21に記憶されているファイル「/TEST/Sample.txt」が削除されたものとする。
FIG. 9 is a diagram for explaining processing at the time of file deletion in the file management system.
Step S121: The file operation unit 22 of the
ステップS122:バックアップ処理部6の検出部61は、ファイルサーバ2のファイル操作部22から出力されたログ、あるいは、パケットキャプチャ装置9によりキャプチャされたパケットからファイル「/TEST/Sample.txt」の削除を検出する。
Step S122: The
ステップS123:検出部61によりファイルの削除が検出されると、バックアップファイル生成部62は、バックアップ領域に削除を示すダミーファイル(以下、削除用ダミーファイルと記載)を作成する。この削除用ダミーファイルのファイル名は、削除されたファイル名の拡張子に「...d...」+「子番号」を付加したものとする。バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、「/TEST/Sample.txt」の削除用ダミーファイルが存在しないことから、バックアップファイル生成部62は、子番号として「0」を付与する。従って、バックアップファイル生成部62は、バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、ファイル名が「/TEST/Sample.txt...d...0」である削除用ダミーファイルを作成する。削除用ダミーファイルには、内容が記述されていない。
Step S123: When deletion of the file is detected by the
ステップS124:続いて、バックアップ処理部6のテーブル更新部63は、バックアップ管理テーブルを更新する。テーブル更新部63は、新たな管理IDを割り当てると、当該管理IDと、ファイルが削除された時刻を設定したファイル更新時刻と、操作対象のファイル、つまり、ファイルサーバ2の21から削除されたファイルのファイル名「/TEST/Sample.txt」、IPアドレス、ログインユーザ、及び、バックアップ記憶部4に作成された削除用ダミーファイルのファイル名「/TEST/Sample.txt...d...0」を設定したレコードをバックアップ管理テーブルに登録する。ファイル更新時刻、IPアドレス、ログインユーザは、ログあるいはキャプチャされたパケットから取得するが、ファイル更新時刻は現在時刻を設定してもよい。
Step S124: Subsequently, the
なお、図9の後、ファイルサーバ2の記憶部21に「/TEST/Sample.txt」が再び作成された場合、ファイル操作部22は、当該ファイルをコピーしたバックアップファイル名「/BACKUP/TEST/Sample.txt...2」のバックアップファイルを作成し、この再び作成されたファイル「/TEST/Sample.txt」が削除された場合、削除用ダミーファイル「/BACKUP/TEST/Sample.txt...d...1」を生成する。
When “/TEST/Sample.txt” is created again in the
図10は、ファイル管理システムにおけるファイル名変更時の処理を説明する図である。
ステップS131:ファイルサーバ2のファイル操作部22が、ユーザ端末1から指示を受け、記憶部21に記憶されているファイルの名前を変更する。ここでは、図7の処理の後、ファイルサーバ2のファイル操作部22が、記憶部21に記憶されているファイル「/TEST」の配下のファイル「Sample.txt」の名前を、「Sample2.txt」に変更したとする。
FIG. 10 is a diagram for explaining processing when a file name is changed in the file management system.
Step S131: The file operation unit 22 of the
ステップS132:バックアップ処理部6の検出部61は、ファイルサーバ2のファイル操作部22から出力されたログ、あるいは、パケットキャプチャ装置9によりキャプチャされたパケットからファイル名変更を検出する。検出部61によりファイル名の変更が検出されると、バックアップファイル生成部62は、バックアップ領域に、階層構造のフォルダを含めてファイル名変更後のファイル「/TEST/Sample2.txt」をコピーし、バックアップファイルを作成する。バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、「/TEST/Sample2.txt」のバックアップファイルが生成されていないことから、バックアップファイル生成部62は、子番号として「0」を付与する。従って、バックアップファイル生成部62は、バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、ファイルサーバ2に記憶されているファイル「/TEST/Sample2.txt」をコピーしたバックアップファイル名「/TEST/Sample2.txt...0」を作成する。
Step S132: The
ステップS133:続いてバックアップファイル生成部62は、バックアップ領域に、ファイル名変更前のファイル「/TEST/Sample.txt」の削除が検出されたものとして、内部で削除信号を発生させる。これにより、バックアップファイル生成部62は、削除用ダミーファイルを作成する。バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、「/TEST/Sample.txt」の削除用ダミーファイルが存在しないことから、バックアップファイル生成部62は、子番号として「0」を付与する。従って、バックアップファイル生成部62は、バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、削除用ダミーファイル「/TEST/Sample.txt...d...0」を作成する。この、作成した削除用ダミーファイルの内容は、ファイルサーバ2の記憶部21に記憶されているファイル名変更後のファイル「/TEST/Sample2.txt」のコピーである。
Step S133: Subsequently, the backup
ステップS134:バックアップ処理部6のテーブル更新部63は、バックアップ管理テーブルを更新する。テーブル更新部63は、新たな管理IDを割り当てると、当該管理番号と、ファイル名が変更された時刻を設定したファイル更新時刻と、変更前のファイル名「/TEST/Sample.txt」、IPアドレス、ログインユーザ、及び、削除用ダミーファイルのファイル名「/TEST/Sample.txt...d...0」を設定したレコードをバックアップ管理テーブルに登録する。さらにテーブル更新部63は、新たな管理IDを割り当てると、当該管理番号と、ファイル名が変更された時刻を設定したファイル更新時刻と、変更後のファイル名「/TEST/Sample2.txt」、IPアドレス、ログインユーザ、及び、バックアップファイルのファイル名「/TEST/Sample2.txt...0」を設定したレコードをバックアップ管理テーブルに登録する。
なお、ファイル更新時刻、IPアドレス、ログインユーザは、ログあるいはキャプチャされたパケットから取得するが、ファイル更新時刻は現在時刻を設定してもよい。
上記のように、ファイル名変更のときには、ファイル名変更前のファイルを削除し、ファイル名変更後のファイルを作成したときと同等の処理を行なう。
Step S134: The
The file update time, IP address, and logged-in user are acquired from the log or captured packet, but the current time may be set as the file update time.
As described above, when changing the file name, the file before the file name change is deleted, and the same processing as when the file after the file name change is created is performed.
図11及び図12は、ファイル管理システムにおけるフォルダ名変更時の処理を説明する図である。 FIG. 11 and FIG. 12 are diagrams for explaining processing when a folder name is changed in the file management system.
図11は、ファイル管理システムによるフォルダ名変更時の暫定対処処理を説明するための図である。
ステップS141:同図において、ファイル操作部22が、ユーザ端末1から指示を受け、記憶部21に記憶されているファイルのフォルダ名を変更する。ここでは、ファイルサーバ2の記憶部21に、「Sample.txt」が存在するフォルダ「/TEST/FOLDER_1」が記憶されており、ユーザ端末1からの指示を受けたファイル操作部22が、フォルダ名「FOLDER_1」をフォルダ名「FOLDER_A」に変更したとする。
FIG. 11 is a diagram for explaining provisional countermeasure processing when a folder name is changed by the file management system.
Step S141: In the figure, the file operation unit 22 receives an instruction from the
ステップS142:バックアップ処理部6の検出部61は、ファイルサーバ2のファイル操作部22から出力されたログ、あるいは、パケットキャプチャ装置9によりキャプチャされたパケットからフォルダ名の変更を検出する。
Step S142: The
ステップS143:検出部61によりフォルダ名の変更が検出されると、バックアップファイル生成部62は、バックアップ領域に、フォルダ名の変更を示すダミーファイル(以下、「フォルダ名変更用ダミーファイル」と記載)を生成する。このフォルダ名変更用ダミーファイルは、フォルダ名が変更されたフォルダより上流のフォルダの配下であり、ファイル名を「変更前フォルダ名」+「...r...」+「変更後フォルダ名」+「...」+「子番号」とする。バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP/TEST」の配下にフォルダ名変更用ダミーファイルが存在しないことから、バックアップファイル生成部62は、子番号として「0」を付与する。従って、バックアップファイル生成部62は、バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、ファイル名が「/TEST/FOLDER_1...r...FOLDER_A...0」であるフォルダ名変更用ダミーファイルを作成する。フォルダ名変更用ダミーファイルには、内容が記述されていない。
Step S143: When the change of the folder name is detected by the
ステップS144:次に、バックアップ処理部6のテーブル更新部63は、フォルダ名変更管理テーブルを更新する。テーブル更新部63は、新たな管理IDを割り当てると、当該管理ID、フォルダ名変更時刻、変更前フォルダ名「/TEST/FOLDER_1」、IPアドレス、ログインユーザ、変更後フォルダ名「/TEST/FOLDER_A」を設定したレコードをフォルダ名変更管理テーブルに登録する。フォルダ名変更時刻、変更前フォルダ名及び変更後フォルダ名、IPアドレス、ログインユーザは、ログあるいはキャプチャされたパケットから取得するが、フォルダ名変更時刻は現在時刻を設定してもよい。
Step S144: Next, the
なお、その後さらに、ファイルサーバ2の記憶部21に記憶されているフォルダ「/TEST/FOLDER_A」のフォルダ名「FOLDER_A」が「FOLDER_B」に変更された場合、バックアップ処理部6の検出部61が、ファイルサーバ2のファイル操作部22から出力されたログ、あるいは、パケットキャプチャ装置9によりキャプチャされたパケットからフォルダ名の変更を検出する。バックアップファイル生成部62は、バックアップ記憶部4に生成されているバックアップ領域のフォルダ「/BACKUP」の配下に、ファイル名が「/TEST/FOLDER_A...r...FOLDER_B...x」(xは子番号)であるフォルダ名変更用ダミーファイルを作成する。バックアップ処理部6のテーブル更新部63は、新たな管理IDを割り当てると、当該管理ID、フォルダ名変更時刻、変更前フォルダ名「/TEST/FOLDER_A」、IPアドレス、ログインユーザ、変更後フォルダ名「/TEST/FOLDER_B」を設定したレコードをフォルダ名変更管理テーブルに登録する。
If the folder name “FOLDER_A” of the folder “/ TEST / FOLDER_A” stored in the
フォルダ名が変更された場合、そのフォルダの配下のファイルにも影響が及ぶ。つまり、名前が変更されたフォルダの配下にある全てのファイルについて、新たなフォルダ名を用いたバックアップファイルを生成する必要がある。しかし、フォルダの配下に存在するファイル数が多い場合、そのバックアップファイル生成処理に時間がかかってしまう。そこで、フォルダ名変更直後は、上記のようにフォルダ名変更用ダミーファイルを生成するとともに、フォルダ名変更管理テーブルにフォルダ名変更を登録しておき、稼働率の低い時間帯などに、以下のようなフォルダ名変更の恒久対処を行なう。 If the folder name is changed, the files under that folder are also affected. That is, it is necessary to generate a backup file using a new folder name for all files under the renamed folder. However, if there are many files under the folder, the backup file generation process takes time. Therefore, immediately after the folder name is changed, a folder name change dummy file is generated as described above, and the folder name change is registered in the folder name change management table. To deal with permanent folder name changes.
図12は、ファイル管理システムにおけるフォルダ名変更時の恒久対処処理を説明するための図である。
ステップS151:同図において、バックアップ処理部6のバックアップファイル生成部62は、稼働率の低い所定の時刻に、内部で書替え信号を発生させる。バックアップファイル生成部62は、書替え信号の受信を契機に、テーブル記憶部5内のフォルダ名変更管理テーブルからレコードを読み出す。ここでは、フォルダ名変更時刻「T2」、変更前フォルダ名「/TEST/FOLDER_1」、変更後フォルダ名「/TEST/FOLDER_A」が設定されているレコードを読み出したものとする。
FIG. 12 is a diagram for explaining a permanent handling process when a folder name is changed in the file management system.
Step S151: In the figure, the backup
バックアップファイル生成部62は、バックアップ管理テーブルを参照し、読み出したレコードに設定されている変更前フォルダ名「/TEST/FOLDER_1」配下の対象ファイルを特定する。そして、特定した各対象ファイルについて、以下を行なう。
The backup
バックアップファイル生成部62は、当該対象ファイルが設定されているバックアップ管理テーブルのレコードのうち、ファイル更新時刻がフォルダ変更時刻「T2」より前であり、かつ、最も新しい時刻であるレコードを選択する。例えば、対象ファイル名「/TEST/FOLDER_1/File1.txt」について、ファイル更新時刻がフォルダ変更時刻「T2」前であり、時刻が古い順に、バックアップファイル名「/TEST/FOLDER_1/File1.txt...0」、…、「/TEST/FOLDER_1/File1.txt...d...0」、…「/TEST/FOLDER_1/File1.txt...5」が設定されているレコードが検出された場合、「/TEST/FOLDER_1/File1.txt...5」が設定されているレコードを選択する。また、対象ファイル名「/TEST/FOLDER_1/File3.txt」について、ファイル更新時刻がフォルダ変更時刻「T2」前であり、時刻が古い順に、バックアップファイル名「/TEST/FOLDER_1/File3.txt...0」、…、「/TEST/FOLDER_1/File3.txt...d...0」が設定されているレコードが検出された場合、「/TEST/FOLDER_1/File3.txt...d...0」が設定されているレコードを選択する。
ここでは、「/TEST/FOLDER_1/Sample.txt...0」が設定されているレコードのみが選択されたものとする。
The backup
Here, it is assumed that only the record in which “/TEST/FOLDER_1/Sample.txt...0” is set is selected.
バックアップファイル生成部62は、選択したレコードに設定されているバックアップファイル名が削除用ダミーファイルのファイル名である場合、フォルダ名変更前に削除されたファイルであるため、何もせず終了する。バックアップファイル名が削除用ダミーファイルのファイル名ではない場合、ステップS152以降の処理を行う。
When the backup file name set in the selected record is the file name of the dummy file for deletion, the backup
ステップS152:バックアップファイル生成部62は、特定したバックアップファイルに対応した削除用ダミーファイルを生成し、同フォルダに書き込む。つまり、特定したバックアップファイル名「/BACKUP/TEST/FOLDER_1/Sample.txt...0」をコピーし、削除用ダミーファイルを作成する。この削除用ダミーファイルの名前は、拡張子以下の部分「...」+「子番号」を、「...d...」+「子番号」に置き換えたものとする。「/BACKUP/TEST/FOLDER_1」の配下には、同じ対象ファイルについての削除用ダミーファイルが生成されていないため、子番号に「0」を割り当て、ファイル名を「/BACKUP/TEST/FOLDER_1/Sample.txt...d...0」とする。これは、ファイルサーバ2の記憶部21に記憶されている「/TEST/FOLDER_1/Sample.txt」が削除されたことを示す削除用ダミーファイルに相当する。
Step S152: The backup
さらに、バックアップファイル生成部62は、フォルダ名変更管理テーブルより読み出したレコードから変更後フォルダ名「/TEST/FOLDER_A」を取得する。バックアップ処理部6は、バックアップ記憶部4のバックアップ領域「/BACKUP」の配下に、フォルダ名変更後のバックアップファイルを作成する。つまり、バックアップファイル生成部62は、上記において特定したバックアップファイルをコピーし、変更前フォルダ名を変更後フォルダ名に変更するとともに、バージョンの数字の部分を「0」に変更したファイル名により、バックアップ領域のフォルダに書き込む。ここでは、「/BACKUP/TEST/FOLDER_1/Sample.txt...0」が特定されたため、「TEST/FOLDER_1」を「TEST/FOLDER_A」に置き換えたバックアップファイル名「/BACKUP/TEST/FOLDER_A/Sample.txt...0」のバックアップファイルが作成される。
なお、例えば、特定したバックアップファイルが「/BACKUP/TEST/FOLDER_1/File1.txt...5」であれば、ファイル名「/BACKUP/TEST/FOLDER_A/File1.txt...0」のバックアップファイルが作成されることになる。
Further, the backup
For example, if the specified backup file is "/BACKUP/TEST/FOLDER_1/File1.txt...5", the backup file with the file name "/BACKUP/TEST/FOLDER_A/File1.txt...0" Will be created.
ステップS153:続いて、バックアップ処理部6のテーブル更新部63は、新たな管理IDを割り当てると、当該管理ID、ファイル更新時刻、フォルダ名変更前のファイルのファイル名「/TEST/FOLDER_1/Sample.txt」、IPアドレス、ログインユーザ、及び、生成した削除用ダミーファイルのファイル名「/TEST/FOLDER_1/Sample.txt... d...0」を設定したレコードをバックアップ管理テーブルに登録する。ファイル更新時刻には、ステップS151においてフォルダ名変更管理テーブルから読み出したレコードに設定されているフォルダ名変更時刻「T2」が設定される。
さらに、テーブル更新部63は、新たな管理IDを割り当てると、当該管理ID、ファイル更新時刻、フォルダ名変更後のファイル名「/TEST/FOLDER_A/Sample.txt」、IPアドレス、ログインユーザ、及び、生成したバックアップファイルのバックアップフォルダ名「/BACKUP」以下のファイル名「/TEST/FOLDER_A/Sample.txt...0」を設定したレコードをバックアップ管理テーブルに登録する。同様に、ファイル更新時刻には、フォルダ名変更時刻「T2」が設定される。
Step S153: Subsequently, when the
Furthermore, when the
バックアップファイル生成部62は、変更前フォルダ「/TEST/FOLDER_1」配下の対象ファイル全てについて上記の処理を終えると、バックアップ領域の「/BACKUP」配下の変更前フォルダ「/TEST/FOLDER_1」に存在するフォルダ変更用ダミーファイル「FOLDER_1...r...FOLDER_A...0」を削除する。さらに、テーブル更新部63は、バックアップ管理テーブルから、ステップS151において特定したレコード、つまり、変更前フォルダ名「/TEST/FOLDER_1」と変更後フォルダ名「/TEST/FOLDER_2」が登録されているレコードを削除する。
When the above processing is completed for all target files under the pre-change folder “/ TEST / FOLDER_1”, the backup
フォルダ名変更管理テーブルが肥大化すると、処理が増大し、検索を行ったときのファイル一覧の表示に時間がかかってしまうようになるため、アクセスが少ない時間帯に、上記のように削除用ダミーファイル、及び、バックアップファイルを生成するとともに、バックアップ管理テーブルを縮小させる。 If the folder name change management table grows, processing will increase and it will take time to display the file list when a search is performed. A file and a backup file are generated, and the backup management table is reduced.
図13は、ファイル管理システムにおけるファイル復元処理を説明する図であり、フォルダ名の変更がない場合の処理である。
ステップS161:同図において、ユーザの自身のユーザ端末1からファイル復元部7にアクセスし、所定のフォルダ名により特定されるバックアップ記憶部4内の当該ユーザ用のファイル復元領域に、ファイルを復元したい時点の日時(以下、「復元対象日時」と記載)を指定する。例えば、この復元対象日時は、当該復元対象日時を示すフォルダ作成するための指示を入力する。ここでは、「MM月DD日HH時MM分」時点におけるファイルを復元したい場合、フォルダ「MM_DD_HH_MM」を作成するものとする。従って、復元対象日時が「1月2日15時00分」であれば、フォルダ「01_02_1500」を作成する。なお、ユーザ用のファイル復元領域は、ファイルサーバ2の記憶部21にあってもよく、ファイル復元部7内にあってもよく、ファイル復元部7に接続されるデータベース装置などであってもよい。
FIG. 13 is a diagram for explaining file restoration processing in the file management system, and is processing when there is no change in the folder name.
Step S161: In the figure, the user wants to restore the file to the file restoration area for the user in the
ステップS162:ファイル復元部7の検索部71が、ユーザ端末1からフォルダの作成指示を受信する。あるいは、ファイルサーバ2と同様に、バックアップ記憶部4から操作ログを受信し、フォルダの作成を検出してもよい。ファイル復元部7の検索部71は、テーブル記憶部5内のバックアップ管理テーブルを検索し、復元対象日時よりも前のファイル更新時刻が設定されているレコードを抽出し、この抽出したレコードのうち、同一の対象ファイル名が設定されているものがある場合には、最も復元対象日時に近いレコードのみを残す。これにより、復元対象日時よりも前のファイル更新時刻が設定され、かつ、それぞれに異なる対象ファイル名が設定されているレコードが抽出される。続いて、検索部71は、この抽出したレコードについて順に1レコードずつ選択し、以下の処理を行なう。なお、ここでは、ファイル更新時刻「2009/01/02/1200」、対象ファイル名「/TEST/Sample.txt」、バックアップファイル名「/TEST/Sample.txt...1」が設定されているレコードのみが特定されたとする。
Step S162: The
検索部71は、上記において特定したレコード内に、削除用ダミーファイルのフィアル名が設定されていないと判断すると、当該レコードに設定されている対象ファイル名「/TEST/FOLDER_1/Sample.txt」からパス名「/TEST/FOLDER_1」を読み出し、フォルダ名変更管理テーブルに、読み出したパス名、及び、復元対象日時より前のフォルダ名変更時刻が設定されているレコードがあるかを検索する。ここでは、特定されるレコードがない、つまり、復元対象日時「1月2日15時00分」以前にフォルダ名が変更されたことを示すレコードが登録されていないものとする。フォルダ名が変更されたことを示すレコードが登録されていない場合、以下のステップS163以降の処理を行ない、フォルダ名が変更されたことを示すレコードが登録されている場合、後述する図14の処理を行なうものとする。
If the
ステップS163:復元部72は、ステップS161においてユーザが生成したフォルダ「(ユーザ用のファイル復元領域のフォルダ)/01_02_1500」の配下に、特定したレコード内の対象ファイル名で示されるファイル「/TEST/FOLDER_1/Sample.txt」を生成する。そして、復元部72は、この生成した「(ユーザ用のファイル復元領域のフォルダ)/01_02_1500/TEST/Sample.txt」が、当該特定したレコードに設定されている、バックアップ領域「/BACKUP」配下のバックアップファイル名「/TEST/FOLDER_1/Sample.txt...1」のバックアップファイルを参照することを示すシンボリックリンクを作成し、記憶する。
Step S163: The
ステップS164:復元部72は、ユーザが生成した「(ユーザ用のファイル復元領域のフォルダ)/01_02_1500」の配下に、「/TEST/FOLDER_1/Sample.txt」のファイルが存在することを示す画面をユーザ端末1に表示させる。ユーザがこのファイルの表示要求をユーザ端末1に入力すると、ファイル復元部7の復元部72は、ユーザ端末1から表示要求とファイル名を受信する。復元部72は、シンボリックリンクに、受信したファイル名「(ユーザ用のファイル復元領域のフォルダ)/01_02_1500/TEST/FOLDER_1/Sample.txt」に対応することが示されているバックアップ領域「/BACKUP」配下のバックアップファイル名「/TEST/FOLDER_1/Sample.txt...1」のバックアップファイルを読み出し、ユーザ端末1へ返送して表示させる。
Step S164: The
なお、ステップS161において、復元対象日時「1月3日15時00分」が指定され、ステップS162において、ファイル復元部7の検索部71が、テーブル記憶部5内のバックアップ管理テーブルを検索して、ファイル更新時刻「2009/01/03/1200」、対象ファイル名「/TEST/Sample.txt」、バックアップファイル名「/TEST/Sample.txt...2」が設定されているレコードを特定したものとする。そして、検索部71が、特定したレコードのバックアップファイルは削除用ダミーファイルではなく、フォルダ名変更管理テーブルに、当該レコードの対象ファイル名から読み出したパス名「/TEST/FOLDER_1」、及び、復元対象日時より前のフォルダ名変更時刻が設定されているレコードがないと判断すると、ステップS163において、復元部72は、「(ユーザ用のファイル復元領域のフォルダ)/01_04_1500」の配下にファイル「/TEST/FOLDER_1/Sample.txt」を生成し、当該ファイルが、バックアップ領域「/BACKUP」配下のバックアップファイル名「/TEST/FOLDER_1/Sample.txt...2」のバックアップファイルを参照することを示すシンボリックリンクを作成し、記憶する。これにより、ステップS164において、復元部72は、ユーザが生成した「(ユーザ用のファイル復元領域のフォルダ)/01_03_1500」の配下に、「/TEST/FOLDER_1/Sample.txt」が存在することを示す画面をユーザ端末1に表示させる。ユーザが表示されたファイルの表示要求をユーザ端末1に入力した場合、ファイル復元部7の復元部72は、シンボリックリンクに、ファイル名「(ユーザ用のファイル復元領域のフォルダ)/01_03_1500/TEST/FOLDER_1/Sample.txt」に対応することが示されているバックアップ領域「/BACKUP」配下のバックアップファイル「/TEST/FOLDER_1/Sample.txt...2」を読み出し、ユーザ端末1へ返送して表示させる。
In step S161, the restoration target date and time “January 3, 15:00” is specified, and in step S162, the
また、ステップS161において、復元対象日時「1月4日15時00分」が指定され、ステップS162において、ファイル復元部7の検索部71が、テーブル記憶部5内のバックアップ管理テーブルを検索して、時刻「2009/01/04/1200」、対象ファイル名「/TEST/FOLDER_1/Sample.txt」、バックアップファイル名「/TEST/FOLDER_1/Sample.txt...d...1」が設定されているレコードを特定したものとする。検索部71により、特定したレコードのバックアップファイルは削除用ダミーファイルであると判断されるため、復元部72は、「(ユーザ用のファイル復元領域のフォルダ)/01_04_1500」の配下に、特定したレコードの対象ファイル名から読み出したフォルダ「/TEST/FOLDER_1」を生成し、当該フォルダをユーザ端末1に表示させるが、ファイルは存在しないため、ファイル名は表示させない。
In step S161, the restoration target date and time “January 4, 15:00” is specified, and in step S162, the
図14は、ファイル管理システムにおけるファイル復元処理を説明する図であり、フォルダ名の変更がある場合の処理である。
ステップS171:上述した図13のステップS161と同様の処理を行なう。ここでは、復元対象日時「1月3日15時00分」が指定されたものとする、
FIG. 14 is a diagram for explaining file restoration processing in the file management system, and is processing when there is a change in folder name.
Step S171: The same processing as step S161 of FIG. 13 described above is performed. Here, it is assumed that the restoration target date and time “January 3, 15:00” is designated.
ステップS172:上述した図13のステップS162と同様の処理を行なう。ここでは、ファイル復元部7の検索部71が、テーブル記憶部5内のバックアップ管理テーブルを検索し、ファイル更新時刻「2009/01/02/1200」、対象ファイル名「/TEST/Sample.txt」、バックアップファイル名「/TEST/Sample.txt...1」が設定されているレコードを特定し、特定したレコード内に削除用ダミーファイルのファイル名が設定されていないと判断する。続いて、検索部71は、当該レコードに設定されている対象ファイル名「/TEST/Sample.txt」からフォルダ名「/TEST」を読み出し、フォルダ名変更管理テーブルに、変更前フォルダ名に読み出したフォルダ名が設定されており、かつ、復元対象日時より前のフォルダ名変更時刻が設定されているレコードを特定する。ここでは、ファイル名変更時刻「2009/01/03/1200」、変更前フォルダ名「/TEST」、変更後フォルダ名「/TEST2」が設定されたレコードが特定されたとする。さらに、検索部71は、特定されたレコードの変更後フォルダ名「/TEST2」が、変更前フォルダ名に設定されており、かつ、復元対象日時より前のフォルダ名変更時刻が設定されているレコードを検索するが、ここでは該当するレコードはないものとする。
Step S172: The same process as step S162 of FIG. 13 described above is performed. Here, the
ステップS173:図13で示したように、フォルダが変更されていないのであれば、復元部72は、ユーザが生成したフォルダ「(ユーザ用のファイル復元領域のフォルダ)/01_03_1500」の配下に、特定したフォルダ名変更管理テーブルのレコード内の対象ファイル名で示されるファイル「/TEST/Sample.txt」を生成するが、ここでは、フォルダ名が変更されているため、「(ユーザ用のファイル復元領域のフォルダ)/01_03_1500」の配下に、変更前のフォルダ「/TEST」を変更後のフォルダ「/TEST2」に置き換えたフォルダを生成し、当該フォルダの配下にファイル「Sample.txt」を生成する。ユーザ復元部72は、この生成した「(ユーザ用のファイル復元領域のフォルダ)/01_03_1500/TEST2/Sample.txt」が、ステップS172において特定したバックアップ管理テーブルのレコードで示される、バックアップ領域「/BACKUP」配下のバックアップファイル名「/TEST/Sample.txt...1」のバックアップファイルを参照することを示すシンボリックリンクを作成し、記憶する。
Step S173: As shown in FIG. 13, if the folder has not been changed, the
ステップS174:復元部72は、ユーザが生成したフォルダ「(ユーザ用のファイル復元領域のフォルダ)/01_02_1500」の配下に、「/TEST2/Sample.txt」が存在することを示す画面をユーザ端末1に表示させる。ユーザがこのフィアルの表示要求をユーザ端末1に入力した場合、ファイル復元部7の復元部72は、ユーザ端末1から表示要求とファイル名を受信する。復元部72は、シンボリックリンクに、受信したファイル名「(ユーザ用のファイル復元領域のフォルダ)/01_03_1500/TEST2/Sample.txt」に対応することが示されている、バックアップ領域「/BACKUP」配下のバックアップファイル「/TEST/Sample.txt...1」を読み出し、ユーザ端末1へ返送して表示させる。
Step S174: The
なお、ステップS171において、復元対象日時「1月4日15時00分」が指定され、ステップS172において、ファイル復元部7の検索部71が、テーブル記憶部5内のバックアップ管理テーブルを検索し、ファイル更新時刻「2009/01/04/1000」、対象ファイル名「/TEST2/Sample.txt」、バックアップファイル名「/TEST2/Sample.txt...0」が設定されているレコードを特定し、特定したレコード内に削除用ダミーファイルが設定されていないと判断する。続いて、検索部71は、当該レコードに設定されているファイル名「/TEST2/Sample.txt」からフォルダ名「/TEST2」を読み出し、フォルダ名変更管理テーブルに、変更前フォルダ名に読み出したフォルダ名が設定されており、かつ、復元対象日時より前のフォルダ名変更時刻が設定されているレコードを特定する。ここでは、ファイル名変更時刻「2009/01/04/1200」、変更前フォルダ名「/TEST2」、変更後フォルダ名「/TEST3」が設定されているレコードが特定される。
In step S171, the restoration target date and time “January 4, 15:00” is designated, and in step S172, the
この場合、ステップS173において、ユーザが生成したフォルダ「(ユーザ用のファイル復元領域のフォルダ)/01_04_1500」の配下に、変更前フォルダ「/TEST2」を変更後フォルダ「/TEST3」に置き換えたフォルダを生成し、当該フォルダの配下にファイル「Sample.txt」を生成する。復元部72は、この生成した「(ユーザ用のファイル復元領域のフォルダ)/01_03_1500/TEST3/Sample.txt」が、ステップS172において特定したバックアップ管理テーブルのレコードで示される、バックアップ領域「/BACKUP」配下のバックアップファイル名「/TEST2/Sample.txt...0」のバックアップファイルを参照することを示すシンボリックリンクを作成し、記憶する。
In this case, in step S173, a folder in which the folder “/ TEST2” before change is replaced with the folder “/ TEST3” after change under the folder “(file restore area folder for user) / 01_04_1500” generated by the user. Create a file “Sample.txt” under the folder. The
そしてステップS174において、復元部72は、ユーザが生成したフォルダ「(ユーザ用のファイル復元領域のフォルダ)/01_04_1500」の配下に、「/TEST3/Sample.txt」が存在することを示す画面をユーザ端末1に表示させる。ユーザがこのフィアルの表示要求をユーザ端末1に入力した場合、ファイル復元部7の復元部72は、ユーザ端末1から表示要求とファイル名を受信する。復元部72は、シンボリックリンクに、受信したファイル名「(ユーザ用のファイル復元領域のフォルダ)/01_03_1500/TEST3/Sample.txt」に対応することが示されているバックアップ領域「/BACKUP」配下のバックアップファイル「/TEST2/Sample.txt...1」を読み出し、ユーザ端末1へ返送して表示させる。
In step S174, the
図15は、ファイル管理システムにおける検索クロール処理を説明する図である。
ステップS181:同図において、ユーザ端末1はファイル復元部7の検索ポータル部73にアクセスする。これにより、検索ポータル部73は、検索条件を入力させるための検索画面をユーザ端末1へ表示させる。ユーザが、ユーザ端末1が備るキーボードなどの入力手段によりキーワードやファイル拡張子などの検索条件を入力し、検索ボタンをクリックすると、ユーザ端末1は、入力された検索条件を検索ポータル部73へ送信する。
FIG. 15 is a diagram for explaining search crawl processing in the file management system.
Step S181: In the figure, the
ステップS182:検索ポータル部73は、入力された検索条件を検索エンジン部74へ送信し、検索を要求する。
Step S182: The
ステップS183、S184:検索エンジン部74は、バックアップ領域、すなわち、記憶部21に生成されている「/BACKUP」フォルダ配下を検索し、受信した検索条件内のキーワードが内容に記述されており、かつ、当該検索条件内の拡張子を有するバックアップファイルを特定し、そのバックアップファイル名をパス名付きで取得する。
Steps S183 and S184: The
ステップS185:検索エンジン部74は、検索結果として取得したバックアップファイル名を検索結果として検索ポータル部73へ出力する。
Step S185: The
ステップS186:検索ポータル部73が検索結果を受信すると、検索部71は、検索結果に含まれる各バックアップファイル名について、以下の処理を行なう。
Step S186: When the
(1)検索部71は、バックアップファイル名が設定されているバックアップ管理テーブル内のレコードを特定し、当該レコードから対象ファイル名とファイル更新時刻を読み出す。ここで読み出したファイル更新時刻を存在開始時刻とする。たとえば、バックアップファイル名「/BACKUP/TEST/Sample.txt...0」の「/BACKUP」以下が設定されているバックアップ管理テーブル内のレコードを特定し、当該レコードから対象ファイル名「/TEST/Sample.txt」とファイル更新時刻「2008/01/01/12:00:00」を読み出す。
(1) The
(2)検索部71は、(1)において読み出した対象ファイル名と同一の対象ファイル名が設定されているバックアップ管理テーブル内のレコードのうち、存在開始時刻以降であり、かつ、存在開始時刻に最も近い時刻が設定されているレコードを特定し、この特定した当該レコードから読み出したファイル更新時刻を存在終了時刻とする。ここでは、対象ファイル名「/TEST/Sample.txt」が設定されているバックアップ管理テーブル内のレコードのうち、存在開始時刻「2008/01/01/12:00:00」以降であり、かつ、存在開始時刻に最も近いファイル更新時刻が設定されているレコードから、存在終了時刻「2008/01/03/10:00:00」を読み出す。
(2) The
(3)検索部71は、フォルダ名変更管理テーブルに、存在開始時刻から存在終了時刻までの間のフォルダ名変更時刻が設定され、かつ、対象ファイル名に含まれるフォルダ名が変更前フォルダ名に設定されているレコードがあるか判断する。含まれていない場合、検索部71は、バックアップファイル名と、対象ファイル名と、存在開始時刻及び存在終了時刻で示される存在期間とを対応付けて記憶する。
(3) The
例えば、フォルダ名変更管理テーブルに、存在開始時刻「2008/01/01/12:00:00」から存在終了時刻「2008/01/03/10:00:00」までの間の時刻が設定されており、かつ、対象ファイル名「/TEST/Sample.txt」に含まれるフォルダ名「/TEST」が変更前フォルダ名として設定されているレコードを検索する。該当するレコードがない場合、検索部71は、バックアップファイル名「/BACKUP/TEST/Sample.txt...0」と、対象ファイル名「/TEST/Sample.txt」と、存在開始時刻及び存在終了時刻で示される存在期間「2008/01/01/12:00:00〜2008/01/03/10:00:00」とを対応付けて記憶する。
For example, in the folder name change management table, the time between the existence start time “2008/01/01/12: 00: 00” and the existence end time “2008/01/03/10: 00: 00” is set. And a record in which the folder name “/ TEST” included in the target file name “/TEST/Sample.txt” is set as the folder name before change is searched. When there is no corresponding record, the
一方、フォルダ名変更管理テーブルに、存在開始時刻から存在終了時刻までの間のフォルダ名変更時刻が設定され、かつ、対象ファイル名に含まれるフォルダ名が変更前フォルダ名に設定されているレコードが登録されているとする。検索部71は、このレコードから変更後フォルダ名及びフォルダ名変更時刻を読み出し、読み出したフォルダ名変更時刻をフォルダ名変更前存在終了時刻、兼、フォルダ名変更後開始時刻とする。検索部71は、バックアップファイル名と、対象ファイル名と、存在開始時刻及びフォルダ名変更前存在終了時刻で示される存在期間とを対応付けて記憶するとともに、バックアップファイル名と、変更前フォルダ名を変更後フォルダ名に置き換えた対象ファイル名と、フォルダ名変更前存在開始時刻及び存在終了時刻で示される存在期間とを対応付けて記憶する。
On the other hand, in the folder name change management table, there is a record in which the folder name change time from the existence start time to the existence end time is set and the folder name included in the target file name is set as the folder name before change. Suppose that it is registered. The
例えば、フォルダ名変更管理テーブルに、存在開始時刻「2008/01/01/12:00:00」から存在終了時刻「2008/01/03/10:00:00」までの間の時刻がフォルダ名変更時刻に設定されており、かつ、対象ファイル名「/TEST/Sample.txt」に含まれるフォルダ名「/TEST」が変更前フォルダ名として設定されているレコードが含まれている場合、検索ポータル部73は、当該レコードから変更後フォルダ名「/TEST2」及びフォルダ名変更時刻「2008/01/02/12:00:00」を読み出す。検索ポータル部73は、バックアップファイル名「/BACKUP/TEST/Sample.txt...0」と、対象ファイル名「/TEST/Sample.txt」と、存在開始時刻及びフォルダ名変更前存在終了時刻で示される存在期間「2008/01/01/12:00:00〜2008/01/02/12:00:00」とを対応付けて記憶するとともに、バックアップファイル名「/BACKUP/TEST/Sample.txt...0」と、変更前フォルダ名「/TEST」を変更後フォルダ名「/TEST2」に置き換えた対象ファイル名「/TEST2/Sample.txt」と、フォルダ名変更前存在開始時刻及び存在終了時刻で示される存在期間「2008/01/02/12:00:00〜2008/01/03/10:00:00」とを対応付けて記憶する。
For example, in the folder name change management table, the time between the existence start time “2008/01/01/12: 00: 00” and the existence end time “2008/01/03/10: 00: 00” is the folder name. Search portal when the change time is set and the record includes the folder name “/ TEST” included in the target file name “/TEST/Sample.txt” as the folder name before change The
ステップS186:検索ポータル部73は、ステップS185において検索部71が記憶したバックアップファイル名、対象ファイル名、及び、存在期間を対応付けた情報を受信すると、対象ファイル名及びその存在期間とを対応づけた一覧を検索結果としてユーザ端末1へ返送し、出力させる。この対象ファイル名には、対応するバックアップファイル名がリンクされている。なお、対象ファイル名とバックアップファイル名は、シンボリックリンクによって対応付けを保持してもよい。
Step S186: When the
なお、検索部71は、各バックアップファイル名が設定されているバックアップ管理テーブル、フォルダ名変更管理テーブル内のレコードからログインユーザ及びIPの情報を読み出し、検索ポータル部73は、バックアップファイル名に対応した対象ファイル名と併せてログインユーザ及びIPをユーザ端末1に表示させるようにしてもよい。また、存在期間として表示する時刻の精度は任意に設定可能である。
The
検索結果を閲覧したユーザは、ユーザ端末1に備えられたマウスにより、画面に表示されている対象ファイル名上でクリック、あるいは、ダブルクリックを行ない、ファイルのダウンロード、あるいは、実行を指示する。ユーザ端末1は、対象ファイル名にリンクされているバックアップファイル名を受信すると、復元部72は、当該バックアップファイル名のバックアップファイルをバックアップ記憶部4から読み出し、ユーザ端末1にダウンロードするか、内容を表示させる。なお、ユーザ端末1におけるダウンロードや実行の指示には、任意のユーザインタフェースを用いることができる。
ファイル名等で検索する場合、上記手順により、ファイル更新履歴を表示することも可能となる。
The user who has browsed the search result clicks or double-clicks on the target file name displayed on the screen with the mouse provided in the
When searching by file name or the like, the file update history can be displayed by the above procedure.
図16は、ファイル管理システムにおけるバックアップ管理テーブル及びバックアップ管理テーブルの復旧処理を説明する図である。
まず、ファイル管理装置3のテーブル復旧部8は、バックアップ記憶部4内のバックアップ領域、すなわち、「/BACKUP」の配下に存在するファイルを検索する。そして、この検索の結果得られたファイルそれぞれについて、ファイル生成時刻が古い順に以下の処理を行なう。
(1)検索の結果得られたファイルがバックアップファイルまたは削除用ダミーファイルである場合、テーブル復旧部8は、バックアップ管理テーブルの管理IDを割り当てると、割り当てた管理ID、当該ファイルの生成時刻、検索の結果得られたファイルのフォルダ「/BACKUP」以降のファイル名をそれぞれ、管理ID、ファイル更新時刻、バックアップファイル名に設定したレコードをバックアップ管理テーブルに登録する。そして、登録したレコードの対象ファイル名に、当該レコードに設定したバックアップファイル名から「...」以降の文字列を削除したファイル名を書き込む。
FIG. 16 is a diagram for explaining the backup management table and the recovery processing of the backup management table in the file management system.
First, the
(1) When the file obtained as a result of the search is a backup file or a deletion dummy file, when the
(2)検索の結果得られたファイルがフォルダ名変更用ダミーファイルである場合、テーブル復旧部8は、フォルダ名変更管理テーブルの管理IDを割り当てると、割り当てた管理ID、フォルダ名変更用ダミーファイルの生成時刻、当該フォルダ名変更用ダミーファイルから得られる変更前フォルダ名及び変更後フォルダ名を、管理ID、フォルダ名変更時刻、変更前ファイル名、変更後ファイル名に設定したレコードをフォルダ名変更管理テーブルに書き込む。
(2) When the file obtained as a result of the search is a folder name change dummy file, when the
例えば、バックアップ領域に、生成時刻順に、バックアップファイル「/BACKUP/TEST/Sample.txt...0」、「/BACKUP/TEST/Sample.txt...1」、「TEST...r...TEST2...0」、「/BACKUP/TEST2/Sample.txt...0」、「/BACKUP/TEST2/Sample.txt...d...0」が検出されたとする。これらのファイルには、当該ファイルの生成時に、OS(Operation System)によるファイル生成時刻が付与さており、順に生成時刻がT1,T2、T3、T4、T5であるとする。 For example, backup files `` /BACKUP/TEST/Sample.txt...0 '', `` /BACKUP/TEST/Sample.txt...1 '', `` TEST ... r ... .TEST2 ... 0 "," /BACKUP/TEST2/Sample.txt...0 ", and" /BACKUP/TEST2/Sample.txt...d...0 "are detected. These files are given file generation times by an OS (Operation System) when the files are generated, and the generation times are T1, T2, T3, T4, and T5 in order.
テーブル復旧部8は、まず、生成時刻T1のバックアップファイル名「/BACKUP/TEST/Sample.txt...0」を選択し、「/BACKUP」以降のファイル名「/TEST/Sample.txt...0」をバックアップファイル名に、当該バックアップファイル名から「...0」を除いた「/TEST/Sample.txt」を対象ファイル名に、ファイル生成時刻T1をファイル更新時刻に設定したレコードをバックアップ管理テーブルに登録する。
The
次に、テーブル復旧部8は、生成時刻T2のバックアップファイル名「/BACKUP/TEST/Sample.txt...1」を選択し、「/BACKUP」以降のファイル名「/TEST/Sample.txt...1」をバックアップファイル名に、当該バックアップファイル名から「...1」を除いた「/TEST/Sample.txt」を対象ファイル名に、ファイル生成時刻T2をファイル更新時刻に設定したレコードをバックアップ管理テーブルに登録する。
Next, the
次に、テーブル復旧部8は、生成時刻T3のフォルダ名変更用ダミーファイル名「TEST...r...TEST2...0」を選択し、変更前フォルダ名「/TEST」、変更後フォルダ名「/TEST2」、ファイル生成時刻T3をフォルダ変更時刻に設定したレコードをフォルダ名変更管理テーブルに登録する。
Next, the
次に、テーブル復旧部8は、生成時刻T4のバックアップファイル名「/BACKUP/TEST2/Sample.txt...0」を選択し、「/BACKUP」以降のファイル名「/TEST2/Sample.txt...0」をバックアップファイル名に、当該バックアップファイル名から「...0」を除いた「/TEST2/Sample.txt」を対象ファイル名に、ファイル生成時刻T4をファイル更新時刻に設定したレコードをバックアップ管理テーブルに登録する。
Next, the
次に、テーブル復旧部8は、生成時刻T5の削除用ダミーファイル名「/BACKUP/TEST2/Sample.txt...d...0」を選択し、「/BACKUP」以降のファイル名「/TEST2/Sample.txt...d...0」をバックアップファイル名に、当該バックアップファイル名から「...d...0」を除いた「/TEST/Sample.txt」を対象ファイル名に、ファイル生成時刻T5をファイル更新時刻に設定したレコードをバックアップ管理テーブルに登録する。
Next, the
上記のように、バックアップの実体ファイルと、管理を行なうテーブルから構成されるため、テーブルが破壊された場合でも、実体のバックアップファイルからバックアップ管理テーブル及びフォルダ名変更管理テーブルを復旧することができる。
なお、IP及びログインユーザも復旧する場合は、バックアップファイル名、削除用ダミーファイル、フォルダ名変更用ダミーファイルに、IP及びログインユーザを付加したファイル名とする。
As described above, since the backup entity file and the management table are included, the backup management table and the folder name change management table can be restored from the entity backup file even if the table is destroyed.
When the IP and login user are also restored, the file name is obtained by adding the IP and login user to the backup file name, the deletion dummy file, and the folder name change dummy file.
本実施形態においては、ファイルサーバ2の記憶部21にファイルが作成、上書、削除されるたびにそのファイルが複製されるため、バックアップを保管するストレージであるバックアップ記憶部4の容量が大量に必要となる。そこで、必要なファイルだけを効率的に保存する以下の技術を適用する。
例えば、バックアップ領域の記憶手段として、各ファイルの差分のみを記憶していくような重複排除技術を実装するストレージ製品を用いる。本ファイル管理システムにおいて生成されるバックアップファイルは、差分が少ないことが想定されるため、重複排除技術による圧縮効果が高いと想定される。
このような重複排除技術を用いた製品として、「次世代グリッド・ストレージiStorage HSシリーズ、日本電気株式会社,インターネット<http://www.nec.co.jp/press/ja/0709/1901.html>」、「Data Domain,インターネット< http://www.datadomain.com/jp/」、「Veritas NetBackup PureDisk,Symantec,インターネット<http://www.symantec.com/ja/jp/business/netbackup-puredisk>」などを用いることができる。
In the present embodiment, each time a file is created, overwritten, or deleted in the
For example, as a storage means for the backup area, a storage product that implements a deduplication technique that stores only the differences between files is used. Since the backup file generated in this file management system is assumed to have a small difference, it is assumed that the compression effect by the deduplication technique is high.
As products using such deduplication technology, “Next Generation Grid Storage NEC Storage HS Series, NEC Corporation, Internet <http://www.nec.co.jp/press/en/0709/1901.html > ”,“ Data Domain, Internet <http://www.datadomain.com/jp/ ”,“ Veritas NetBackup PureDisk, Symantec, Internet <http://www.symantec.com/en/jp/business/netbackup- puredisk>"etc. can be used.
また、特定のアプリケーションなどでは作業中にファイルサーバ2上に一時ファイルを作成するものがあり、このファイルについてはシステムの障害等が無い限り、ユーザが明示的に取り出すことはない。そのため、このような一時ファイルについては、バックアップを生成しないようにすることでストレージ容量を効率的に利用する。そこで、一時ファイルは、例えば、「~$abc.xxx」などであり、一時ファイルであることを示す所定の文字列「~$」が含まれている。そこで、このような一時ファイルであることを示す所定の文字列が操作対象ファイル名に含まれている場合は、上記処理の対象外とする。
In addition, there is a specific application that creates a temporary file on the
また、同一の対象ファイルについて、1秒〜2秒の間隔で上書があった場合、その古い時刻のほうのファイルは不要である可能性が高い。そこで、同じ対象ファイルについて2秒以下などの所定の短い間隔にて上書があった場合、古い時刻の方の対象ファイルについてのバックアップファイルを生成しないか、既にバックアップファイルを生成している場合は、古い時刻の方のバックアップファイルと、当該バックアップファイルに関するバックアップ管理テーブル内のレコードとを削除し、新しい時刻の方の対象ファイルについてのバックアップファイルをバックアップ領域に作成して、バックアップ管理テーブルには、この新しい時刻の方のバックアップファイルに関するレコードのみを登録する。 Further, when the same target file is overwritten at intervals of 1 second to 2 seconds, it is highly likely that the file with the older time is unnecessary. Therefore, when the same target file is overwritten at a predetermined short interval such as 2 seconds or less, if a backup file is not generated for the target file at the earlier time, or if a backup file has already been generated Delete the backup file with the old time and the record in the backup management table related to the backup file, create a backup file for the target file with the new time in the backup area, Only records related to the backup file of this new time are registered.
図17は、上記ファイル管理サーバのユーザインタフェース例を示す図である。
図17(a)では、ユーザは、自身のユーザ端末1からファイル復元部7にアクセスし、当該ユーザ用のファイル復元領域にフォルダを生成する。そして、マウス等によりプルダウンメニューを表示させ、「過去に戻す」というメニューを選択する。ファイル復元部7は、ユーザ端末1へ復元対象時刻の入力画面を表示される。ユーザ端末1が、復元対象時刻を入力すると、ファイル復元部7は、ユーザ端末1から入力された復元対象時刻を受信する。ファイル復元部7は、図13、図14に示したような処理を行い、復元対象時刻において当該フォルダ配下に存在していたファイルを復元する。
FIG. 17 is a diagram showing an example of a user interface of the file management server.
In FIG. 17A, the user accesses the file restoration unit 7 from his / her
図17(b)では、ユーザは、自身のユーザ端末1からファイル復元部7の検索ポータル部73にアクセスする。検索ポータル部73は、ユーザ端末1に検索画面を表示させる。ユーザは、検索画面に、検索対象のファイル名と、過去のファイルも検索に含めるよう指示を入力する。ファイル復元部7の検索ポータル部73は、受信した検索条件に基づいて、図15に示したような検索を行い、得られた検索結果をユーザ端末1へ表示させる。
In FIG. 17B, the user accesses the
上記実施形態によれば、ファイル変更の都度バックアップファイルを生成するため、任意の時間におけるファイルを復元することができるとともに、生成されたバックアップファイルを管理するフォルダ名変更管理テーブルによって、目的の時刻において存在していたバックアップファイルを高速に検索することができる。そして、復元は、ユーザ専用のフォルダにシンボリックリンクを作成する方式であるため、現在ファイルサーバに記憶されている内容や、他のユーザにも影響を与えことがない。また、バックアップ管理テーブル、フォルダ名変更管理テーブルが失われた場合でも、バックアップファイルから復旧すすることができる。ファイルを削除したときには、削除を示すダミーファイルを生成するため、ファイル削除も併せてバックアップ管理テーブルに復旧することができる。
さらには、重複排除技術を用いることにより、バックアップファイルの記憶領域を削減することも可能である。本実施形態では、データ構造が類似している多くのファイルが保存できること、大量の記憶領域が要求されることから、重複排除技術を用いた記憶装置(ストレージ)と組み合わせることで、記憶装置の利用効率を向上させることができる。
According to the above embodiment, since a backup file is generated every time a file is changed, it is possible to restore a file at an arbitrary time, and at a target time by a folder name change management table that manages the generated backup file. The existing backup file can be searched at high speed. Restoration is a method of creating a symbolic link in a folder dedicated to the user, so that the contents currently stored in the file server and other users are not affected. Further, even when the backup management table and the folder name change management table are lost, it is possible to recover from the backup file. When a file is deleted, a dummy file indicating deletion is generated, so that the file management can also be restored to the backup management table.
Furthermore, the storage area of the backup file can be reduced by using a deduplication technique. In this embodiment, since many files having similar data structures can be stored and a large amount of storage area is required, the storage device can be used by combining with a storage device (storage) using a deduplication technique. Efficiency can be improved.
なお、ユーザ端末1、ファイルサーバ2、及び、ファイル管理装置3は、内部にコンピュータシステムを有している。そして、上述したユーザ端末1、ファイルサーバ2のファイル操作部22、ならびに、ファイル管理装置3のバックアップ処理部6、ファイル復元部7及びテーブル復旧部8の動作の過程は、プログラムの形式でコンピュータ読み取り可能な記録媒体に記憶されており、このプログラムをコンピュータシステムが読み出して実行することによって、上記処理が行われる。ここでいうコンピュータシステムとは、CPUや各種メモリ、OSや周辺機器等のハードウェアを含むものである。
In addition, the
また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含むものとする。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, and a CD-ROM, and a storage device such as a hard disk built in the computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory in a computer system serving as a server or a client in that case, and a program that holds a program for a certain period of time are also included. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.
1…ユーザ端末
2…ファイルサーバ
21…記憶部
22…ファイル操作部
3…ファイル管理装置
4…バックアップ記憶部
5…テーブル記憶部
6…バックアップ処理部
61…検出部
62…バックアップファイル生成部
63…テーブル更新部
7…ファイル復元部
71…検索部
72…復元部
73…検索ポータル部
74…検索エンジン部
8…テーブル復旧部
9…パケットキャプチャ装置
DESCRIPTION OF
Claims (11)
前記バックアップファイルを管理するバックアップ管理テーブルを記憶するテーブル記憶部と、
ファイル操作の種類及びファイルの更新時刻と、ファイル操作対象のファイルのフォルダ名を含んだ名前である対象ファイル名とを示す操作情報を受信し、当該操作情報によりファイルの作成または上書を検出する検出部と、
前記検出部によりファイルの作成または上書が検出された場合に、当該操作情報により示される対象ファイル名のファイルを複製したバックアップファイルを、バックアップファイルであることを示す情報と子番号とを当該対象ファイル名に付加したファイル名により前記バックアップ記憶部に書き込むバックアップファイル生成部と、
前記操作情報に設定されている更新時刻及び対象ファイル名と、前記バックアップ生成部が生成したバックアップファイルのファイル名であるバックアップファイル名とを対応づけた情報を前記バックアップ記憶部に記憶されている前記バックアップ管理テーブルに書き込むテーブル更新部と、
を備えることを特徴とするファイル管理装置。 A backup storage unit for storing backup files;
A table storage unit for storing a backup management table for managing the backup file;
Receives operation information indicating the file operation type and file update time, and the target file name including the folder name of the file operation target file, and detects creation or overwriting of the file based on the operation information. A detection unit;
When a file creation or overwriting is detected by the detection unit, a backup file obtained by duplicating a file having a target file name indicated by the operation information is represented by information indicating that it is a backup file and a child number. A backup file generation unit for writing to the backup storage unit by a file name added to the file name;
Information that associates the update time and target file name set in the operation information with the backup file name that is the file name of the backup file generated by the backup generation unit is stored in the backup storage unit A table update unit for writing to the backup management table;
A file management apparatus comprising:
バックアップファイル生成部は、前記検出部によりファイル削除が検出された場合に、当該操作情報により示される対象ファイル名に、ファイルの削除を示す情報と子番号とを付加したファイル名の削除用ダミーファイルを前記バックアップ記憶部に書き込み、
前記テーブル更新部は、前記操作情報に設定されている更新時刻及び対象ファイル名と、前記バックアップ生成部が生成した削除用ダミーファイルのファイル名とを対応づけた情報を前記バックアップ記憶部に記憶されている前記バックアップ管理テーブルに書き込む、
ことを特徴とする請求項1に記載のファイル管理装置。 The detection unit detects deletion of a file based on the received operation information,
When the detection unit detects a file deletion, the backup file generation unit deletes a dummy file with a file name in which information indicating deletion of the file and a child number are added to the target file name indicated by the operation information To the backup storage unit,
The table update unit stores in the backup storage unit information that associates the update time and target file name set in the operation information with the file name of the deletion dummy file generated by the backup generation unit. Writing to the backup management table
The file management apparatus according to claim 1.
バックアップファイル生成部は、前記検出部によりファイル名の変更が検出された場合に、当該操作情報により示される変更前ファイル名に、ファイルの削除を示す情報と子番号とを付加したファイル名の削除用のダミーファイルを前記バックアップ記憶部に書き込むとともに、当該操作情報により示される変更後ファイル名のファイルを複製したバックアップファイルを、バックアップファイルであることを示す情報と子番号とを当該変更後ファイル名に付加したファイル名により前記バックアップ記憶部に書き込み、
前記テーブル更新部は、前記操作情報に設定されている更新時刻と、前記変更前ファイル名を示す対象ファイル名と、前記バックアップ生成部が生成した削除用ダミーファイルのファイル名とを対応づけた情報を前記バックアップ管理テーブルに書き込むとともに、当該操作情報に設定されている更新時刻と、前記変更後ファイル名を示す対象フィアル名と、前記バックアップ生成部が生成したバックアップファイルのバックアップファイル名とを対応づけた情報を前記バックアップ管理テーブルに書き込む、
ことを特徴とする請求項2に記載のファイル管理装置。 The detection unit detects a change in the file name based on the received operation information,
The backup file generation unit deletes the file name by adding information indicating deletion of the file and a child number to the pre-change file name indicated by the operation information when the detection unit detects a change in the file name. A dummy file for use in the backup storage unit, and a backup file obtained by duplicating the file having the changed file name indicated by the operation information, the information indicating that the file is a backup file and the child number are added to the changed file name. Write to the backup storage unit by the file name appended to
The table update unit is information that associates the update time set in the operation information, the target file name indicating the pre-change file name, and the file name of the deletion dummy file generated by the backup generation unit In the backup management table, the update time set in the operation information, the target file name indicating the changed file name, and the backup file name of the backup file generated by the backup generation unit are associated with each other Write the information to the backup management table,
The file management apparatus according to claim 2.
前記検索部により前記復元対象のバックアップファイル名に対応して読み出された前記対象ファイル名のファイルをファイル復旧領域に生成し、当該ファイル復旧領域に生成されたファイルの出力指示を受信した場合に、当該ファイルの対象ファイル名に対応した前記復元対象のバックアップファイル名のバックアップファイルを前記バックアップ記憶部から読み出して出力する復元部と、
をさらに備えることを特徴とする請求項1から請求項3のいずれかの項に記載のファイル管理装置。 Receives information about the recovery target time from the user's terminal, identifies a backup file name whose update time is before the recovery target time from the backup management table as a restoration target, and corresponds to the same target file name as the identified restoration target. A search unit that reads only the backup file name at the update time closest to the recovery target time and reads the target file name corresponding to the backup file name to be restored,
When the search unit generates a file with the target file name read corresponding to the backup file name to be restored in the file recovery area and receives an output instruction for the file generated in the file recovery area A restoration unit that reads out and outputs a backup file of the backup file name to be restored corresponding to the target file name of the file from the backup storage unit;
The file management apparatus according to any one of claims 1 to 3, further comprising:
ことを特徴とする請求項4に記載のファイル管理装置。 The restoration unit generates a file having the target file name read corresponding to the backup file name to be restored in a file recovery area corresponding to the user.
The file management apparatus according to claim 4, wherein:
ことを特徴とする請求項4または請求項5に記載のファイル管理装置。 In the backup management table, the file name of the deletion dummy file corresponding to the same target file name as the target file name corresponding to the backup file name to be restored is registered in the backup management table. If the update time corresponding to the file name is after the update time corresponding to the backup file name to be restored and before the file recovery target time, the backup file name is excluded from the restoration target.
6. The file management apparatus according to claim 4, wherein the file management apparatus is a file management apparatus.
前記操作情報は、フォルダ操作の種類及びフォルダの更新時刻と操作対象のフォルダ名とを示し、
前記検出部は、受信した操作情報によりフォルダ名の変更を検出し、
前記バックアップファイル生成部は、前記検出部によりフォルダ名の変更が検出された場合に、当該操作情報により示されるフォルダ名変更時刻、変更前フォルダ名及び変更後フォルダ名を含んだフォルダ名のフォルダ名変更用ダミーファイルを前記バックアップ記憶部に書き込み、
前記検索部は、さらに、前記復元対象のバックアップファイル名に対応した更新時刻を読み出し、読み出した更新時刻以降、かつ、前記復元対象時刻以前のフォルダ名変更時刻に対応して、当該復元対象のバックアップファイル名に含まれるフォルダ名が変更前フォルダ名としてフォルダ名変更管理テーブルに登録されている場合に、当該変更前フォルダ名に対応した変更後フォルダ名を読み出し、
前記復元部は、前記検索部により前記復元対象のバックアップファイル名に対応して読み出された前記対象ファイル名内の前記変更前フォルダ名を前記変更後フォルダ名に置き換えたファイル名のファイルをファイル復旧領域に生成し、当該ファイル復旧領域に生成されたファイルの出力指示を受信した場合に、前記復元対象のバックアップファイル名のバックアップファイルを前記バックアップ記憶部から読み出して出力する、
ことを特徴とする請求項4から請求項6のいずれかの項に記載のファイル管理装置。 The table storage unit further stores a folder name change management table for managing the changed folder name,
The operation information indicates the type of folder operation, the update time of the folder, and the folder name to be operated,
The detection unit detects a change of the folder name based on the received operation information,
The backup file generation unit, when the change of the folder name is detected by the detection unit, the folder name of the folder name including the folder name change time, the folder name before change, and the folder name after change indicated by the operation information Write a change dummy file to the backup storage unit,
The retrieval unit further reads out the update time corresponding to the backup file name to be restored, and corresponds to the folder name change time after the read update time and before the restoration target time. When the folder name included in the file name is registered in the folder name change management table as the pre-change folder name, the post-change folder name corresponding to the pre-change folder name is read,
The restoration unit includes a file having a file name obtained by replacing the folder name before change in the target file name read by the search unit corresponding to the backup file name to be restored with the folder name after change. When generating in the recovery area and receiving an output instruction for the file generated in the file recovery area, the backup file with the backup file name to be restored is read from the backup storage unit and output.
The file management apparatus according to claim 4, wherein the file management apparatus is a file management apparatus.
前記フォルダ名変更管理テーブルから変更前フォルダ名及びフォルダ名変更時刻を読み出し、
更新時刻が前記フォルダ名変更時刻以前であり、かつ、前記変更前フォルダ名が含まれるバックアップファイル名のバックアップファイルから、同じ対象ファイル名に対応したバックアップファイルについてはファイル生成時刻が最も前記フォルダ名変更時刻に近いバックアップファイルを抽出し、さらに、この抽出したバックアップファイルから、当該バックアップファイルと同じ対象ファイル名に対応して生成され、ファイル生成時刻が当該バックアップファイルのファイル生成時刻以降、かつ、フォルダ名変更時刻以前である削除用ダミーファイルが存在するバックアップファイルを除外し、
除外した残りのバックアップファイルを複製し、当該バックアップファイルのバックアップファイル名内の前記変更前フォルダ名を前記変更後フォルダ名に置き換え、新たな子番号を付与したバックアップファイル名により前記バックアップ記憶部に書き込み、さらに、前記除外した残りのバックアップフィアルに対応した対象ファイルの削除用ダミーファイルを生成して前記バックアップ記憶部に書き込み、
前記テーブル管理部は、前記バックアップ生成部が前記バックアップ記憶部に書き込んだバックアップファイルのバックアップファイル名と、当該バックアップファイル名から取得した対象ファイル名と、前記フォルダ名変更時刻とを対応づけた情報を前記バックアップ管理テーブルに書き込むとともに、前記バックアップ生成部が前記バックアップ記憶部に書き込んだ削除用ダミーファイルのファイル名と、当該ファイル名から取得した対象ファイル名と、前記フォルダ名変更時刻とを対応づけた情報を前記バックアップ管理テーブルに書き込む、
ことを特徴とする請求項7に記載のファイル管理装置。 The backup generation unit
Read the folder name before change and the folder name change time from the folder name change management table,
For backup files corresponding to the same target file name from the backup file name whose update time is before the folder name change time and which includes the pre-change folder name, the file generation time is the most A backup file close to the time is extracted, and is further generated from the extracted backup file corresponding to the same target file name as the backup file, the file generation time is after the file generation time of the backup file, and the folder name Exclude backup files with delete dummy files that are before the modification time,
Copy the remaining excluded backup files, replace the pre-change folder name in the backup file name of the backup file with the post-change folder name, and write to the backup storage unit with the backup file name given a new child number In addition, a dummy file for deleting the target file corresponding to the remaining backup file excluded is generated and written to the backup storage unit,
The table management unit includes information that associates the backup file name of the backup file written by the backup generation unit into the backup storage unit, the target file name acquired from the backup file name, and the folder name change time. In addition to writing to the backup management table, the file name of the dummy file for deletion written to the backup storage unit by the backup generation unit, the target file name acquired from the file name, and the folder name change time are associated with each other Writing information to the backup management table;
The file management apparatus according to claim 7.
ことを特徴とする請求項1から請求項8のいずれかの項に記載のファイル管理装置。 Generate a backup management table including information that associates the backup file name of the backup file stored in the backup storage unit, the target file name acquired from the backup file name, and the creation time of the backup file A table recovery unit;
The file management apparatus according to claim 1, wherein the file management apparatus is a file management apparatus.
前記検出部は、受信した操作情報によりフォルダ名の変更を検出し、
バックアップファイル生成部は、前記検出部によりフォルダ名の変更を検出した場合に、当該操作情報により示される変更前フォルダ名及び変更後フォルダ名を含んだフォルダ名変更用ダミーファイルを前記バックアップ記憶部に書き込み、
前記テーブル復旧部は、前記バックアップ記憶部に記憶されている前記フォルダ名変更用ダミーファイルで示される変更前フォルダ名及び変更後フォルダ名と、当該フォルダ名変更用ダミーファイルの作成時刻とを対応づけた情報を含んだフォルダ名変更管理テーブルを生成する、
ことを特徴とする請求項9に記載のファイル管理装置。 The operation information indicates the type of folder operation and the name of the folder to be operated,
The detection unit detects a change of the folder name based on the received operation information,
The backup file generation unit, when the change of the folder name is detected by the detection unit, a folder name change dummy file including the folder name before change and the folder name after change indicated by the operation information in the backup storage unit writing,
The table restoration unit associates the folder name before change and the folder name after change indicated by the folder name change dummy file stored in the backup storage unit with the creation time of the folder name change dummy file. Create a folder name change management table that includes
The file management apparatus according to claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009080453A JP2010231656A (en) | 2009-03-27 | 2009-03-27 | File management device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009080453A JP2010231656A (en) | 2009-03-27 | 2009-03-27 | File management device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010231656A true JP2010231656A (en) | 2010-10-14 |
Family
ID=43047381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009080453A Pending JP2010231656A (en) | 2009-03-27 | 2009-03-27 | File management device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010231656A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012181796A (en) * | 2011-03-03 | 2012-09-20 | Nec Fielding Ltd | Information processing system, duplicate file removal method for information processing system, information processor, and control method and control program for information processor |
WO2013115584A1 (en) * | 2012-02-01 | 2013-08-08 | 삼성전자 주식회사 | Apparatus and method for managing media file |
JP2014142764A (en) * | 2013-01-23 | 2014-08-07 | Nec Corp | Computer, nas access method, and nas access program |
JP2014526748A (en) * | 2011-09-12 | 2014-10-06 | マイクロソフト コーポレーション | Efficient data recovery |
WO2015033984A1 (en) * | 2013-09-06 | 2015-03-12 | 株式会社Ubic | Digital information management system, digital information management method, and digital information management program |
JP2015069511A (en) * | 2013-09-30 | 2015-04-13 | 株式会社日立ソリューションズ | Mobile terminal internal data reference system |
JP2017010150A (en) * | 2015-06-18 | 2017-01-12 | 株式会社バッファロー | Information processing device, information processing method, and program |
JP2019028914A (en) * | 2017-08-03 | 2019-02-21 | 富士通株式会社 | Data analysis program, data analysis method, and data analysis device |
JP2019135577A (en) * | 2018-02-05 | 2019-08-15 | 富士通株式会社 | Control program, control method, and information processing device |
-
2009
- 2009-03-27 JP JP2009080453A patent/JP2010231656A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012181796A (en) * | 2011-03-03 | 2012-09-20 | Nec Fielding Ltd | Information processing system, duplicate file removal method for information processing system, information processor, and control method and control program for information processor |
JP2014526748A (en) * | 2011-09-12 | 2014-10-06 | マイクロソフト コーポレーション | Efficient data recovery |
WO2013115584A1 (en) * | 2012-02-01 | 2013-08-08 | 삼성전자 주식회사 | Apparatus and method for managing media file |
JP2014142764A (en) * | 2013-01-23 | 2014-08-07 | Nec Corp | Computer, nas access method, and nas access program |
WO2015033984A1 (en) * | 2013-09-06 | 2015-03-12 | 株式会社Ubic | Digital information management system, digital information management method, and digital information management program |
JP2015069511A (en) * | 2013-09-30 | 2015-04-13 | 株式会社日立ソリューションズ | Mobile terminal internal data reference system |
JP2017010150A (en) * | 2015-06-18 | 2017-01-12 | 株式会社バッファロー | Information processing device, information processing method, and program |
JP2019028914A (en) * | 2017-08-03 | 2019-02-21 | 富士通株式会社 | Data analysis program, data analysis method, and data analysis device |
JP2019135577A (en) * | 2018-02-05 | 2019-08-15 | 富士通株式会社 | Control program, control method, and information processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2010231656A (en) | File management device | |
US11520670B2 (en) | Method and apparatus for restoring data from snapshots | |
US9542423B2 (en) | Backup user interface | |
KR101014089B1 (en) | System and method for a consistency check of a database backup | |
JP4749266B2 (en) | Backup control apparatus and method without duplication of information resources | |
JP4847709B2 (en) | Methods, media, and systems for recovering data using a timeline-based computing environment | |
US7904425B2 (en) | Generating backup sets to a specific point in time | |
US8688645B2 (en) | Incremental restore of data between storage systems having dissimilar storage operating systems associated therewith | |
US8135677B2 (en) | File management system and method | |
JP5697754B2 (en) | Computer system, file management method, and metadata server | |
JP2014526748A (en) | Efficient data recovery | |
US20060212481A1 (en) | Distributed open writable snapshot copy facility using file migration policies | |
US20130013653A1 (en) | Tracking file contents | |
KR20090110823A (en) | System for automatically shadowing data and file directory structures that are recorded on a computer memory | |
US20080195827A1 (en) | Storage control device for storage virtualization system | |
US8990272B2 (en) | Versioned file system with pruning | |
JP2008033912A (en) | Method and device of continuous data protection for nas | |
JP2007317017A (en) | Storage system, data protection method, and program | |
JP5650982B2 (en) | Apparatus and method for eliminating file duplication | |
JP2009070143A (en) | Method for restoring data in differential remote backup of nas device, and computer system | |
US20120185438A1 (en) | Local backup | |
US9665594B2 (en) | Local backup | |
Chivers et al. | Forensic data recovery from the windows search database | |
US20120005162A1 (en) | Managing Copies of Data Structures in File Systems | |
JP4437116B2 (en) | Document file movement tracking device, document file movement tracking system, document file movement tracking method and program |