Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5720366B2 - File management system and backup method - Google Patents
[go: Go Back, main page]

JP5720366B2 - File management system and backup method - Google Patents

File management system and backup method Download PDF

Info

Publication number
JP5720366B2
JP5720366B2 JP2011073302A JP2011073302A JP5720366B2 JP 5720366 B2 JP5720366 B2 JP 5720366B2 JP 2011073302 A JP2011073302 A JP 2011073302A JP 2011073302 A JP2011073302 A JP 2011073302A JP 5720366 B2 JP5720366 B2 JP 5720366B2
Authority
JP
Japan
Prior art keywords
file
update
backup
link
directory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2011073302A
Other languages
Japanese (ja)
Other versions
JP2012208699A (en
Inventor
尚樹 小田
尚樹 小田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2011073302A priority Critical patent/JP5720366B2/en
Publication of JP2012208699A publication Critical patent/JP2012208699A/en
Application granted granted Critical
Publication of JP5720366B2 publication Critical patent/JP5720366B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、ファイルのバックアップを効率よく実行できるファイル管理システムおよびバックアップ方法に関する。   The present invention relates to a file management system and a backup method capable of efficiently performing file backup.

データのバックアップにおいて、データの数が増加した場合、バックアップ時間が長くなる。バックアップ時間を短くする方法として、データの全てをバックアップしないで、前回のバックアップ時から内容が変更されたファイル(以下、差分ファイルという。)のみをバックアップする方法がある。以下、内容が変更されたファイルのみをバックアップすることを、差分バックアップという。   In the data backup, when the number of data increases, the backup time becomes longer. As a method of shortening the backup time, there is a method of backing up only a file whose contents have been changed since the previous backup (hereinafter referred to as a differential file) without backing up all of the data. Hereinafter, backing up only files whose contents have been changed is referred to as differential backup.

差分バックアップを実行するときに差分ファイルを検出する必要がある。差分ファイルの検出時間を短くするために、実ファイルデータの要約データおよびパスデータを含む仮想ファイルデータを生成して、仮想ファイルデータをもとに実ファイルデータに差分が有ったか否かを判断することによって、実ファイルデータ自体をスキャンする必要を無くし、効率的に差分の有無を判定できる方法が提案されている(例えば、特許文献1参照。)。また、ファイルの変更が行われる度に対象ファイルのバックアップファイルを生成する方法がある(例えば、特許文献2参照。)。   It is necessary to detect a differential file when performing a differential backup. In order to shorten the detection time of the difference file, virtual file data including summary data and path data of the actual file data is generated, and it is determined whether or not there is a difference in the actual file data based on the virtual file data. Thus, there has been proposed a method that eliminates the need to scan the actual file data itself and can efficiently determine the presence or absence of a difference (see, for example, Patent Document 1). In addition, there is a method of generating a backup file of the target file every time the file is changed (for example, see Patent Document 2).

特開2008−234269号公報JP 2008-234269 A 特開2010−231656号公報JP 2010-231656 A

特許文献1に記載された方法では、実ファイルデータの数に対して、同じ数の仮想ファイルデータが必要になるので、実ファイルデータの数が多い場合は、差分の検出に時間がかかる。特許文献2に記載された方法では、バックアップ時に差分の検出をする必要がないが、ファイルの変更が行われる度に対象ファイルをバックアップ記憶部にバックアップしているため、ファイルの変更処理に時間を要する。   In the method described in Patent Document 1, the same number of virtual file data is required with respect to the number of real file data. Therefore, when the number of real file data is large, it takes time to detect the difference. In the method described in Patent Document 2, it is not necessary to detect the difference at the time of backup. However, since the target file is backed up to the backup storage unit every time the file is changed, it takes time to change the file. Cost.

そこで、本発明は、差分バックアップに要する処理時間およびデータ領域を低減することができるファイル管理システムおよびバックアップ方法を提供することを特徴とする。   Therefore, the present invention is characterized by providing a file management system and a backup method capable of reducing the processing time and data area required for differential backup.

本発明によるファイル管理システムは、ユーザのファイルを管理するファイル管理システムであって、ユーザ端末によるファイル操作がファイルの作成または更新であるか否かを判断する更新検出手段と、ファイル操作がファイルの作成または更新であった場合には、作成または更新の対象のファイルを実体ファイルとするリンクを作成して記憶するリンク作成手段と、リンクにもとづくファイルを更新ファイルとしてバックアップ装置に記憶させるバックアップ処理手段とを備え、リンク作成手段は、更新検出手段から作成または更新の対象の前記ファイルのパス情報を取得し、パス情報をディレクトリ情報を含まない文字列に変換し、文字列を前記リンクのファイル名とすることを特徴とする。 A file management system according to the present invention is a file management system for managing a user's file, an update detection means for determining whether or not a file operation by a user terminal is creation or update of a file, In the case of creation or update, link creation means for creating and storing a link having the file to be created or updated as an entity file and backup processing means for storing the file based on the link as an update file in the backup device The link creation means acquires path information of the file to be created or updated from the update detection means, converts the path information into a character string not including directory information, and converts the character string to the file name of the link characterized by a.

本発明によるバックアップ方法は、ユーザのファイルを管理するファイル管理システムにおけるバックアップ方法であって、ユーザ端末によるファイル操作がファイルの作成または更新であるか否かを判断し、ファイル操作がファイルの作成または更新であった場合には、作成または更新の対象のファイルのパス情報をディレクトリ情報を含まない文字列に変換し、前記文字列をファイル名とし、作成または更新の対象の前記ファイルを実体ファイルとするリンクを作成して記憶し、リンクにもとづくファイルを更新ファイルとしてバックアップ装置に記憶させることを特徴とする。 A backup method according to the present invention is a backup method in a file management system for managing a user's file, and determines whether or not a file operation by a user terminal is creation or update of a file, and the file operation is a If it is an update, the path information of the file to be created or updated is converted into a character string that does not include directory information, the character string is used as a file name, and the file to be created or updated is referred to as an entity file. A link is created and stored, and a file based on the link is stored in the backup device as an update file.

本発明によれば、差分バックアップに要する処理時間およびデータ領域を低減することができる。   According to the present invention, the processing time and data area required for differential backup can be reduced.

本発明によるファイル管理システムの構成を示すブロック図である。It is a block diagram which shows the structure of the file management system by this invention. 第1の実施形態におけるファイルシステム部の構成を示す説明図である。It is explanatory drawing which shows the structure of the file system part in 1st Embodiment. 第1の実施形態におけるバックアップ用ディレクトリ操作部の構成を示す説明図である。It is explanatory drawing which shows the structure of the backup directory operation part in 1st Embodiment. 第1の実施形態におけるリストア操作部の構成を示す説明図である。It is explanatory drawing which shows the structure of the restore operation part in 1st Embodiment. 本発明によるファイル管理システムの差分ファイルを蓄積する処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process which accumulate | stores the difference file of the file management system by this invention. 本発明によるファイル管理システムの差分バックアップ処理の一例を示すフローチャートである。It is a flowchart which shows an example of the differential backup process of the file management system by this invention. 本発明によるファイル管理システムの差分リストア処理の一例を示すフローチャートである。It is a flowchart which shows an example of the differential restore process of the file management system by this invention. 本発明によるファイル管理システムの主要部を示すブロック図である。It is a block diagram which shows the principal part of the file management system by this invention.

実施形態1.
以下、本発明の第1の実施形態を図面を参照して説明する。
Embodiment 1. FIG.
A first embodiment of the present invention will be described below with reference to the drawings.

図1は、本発明によるファイル管理システムの構成を示すブロック図である。   FIG. 1 is a block diagram showing the configuration of a file management system according to the present invention.

図1に示すように、ファイル管理システムは、ファイルサーバ200を含む。ファイルサーバ200は、バックアップ装置300をアクセス可能である。ユーザ端末400は、ファイルサーバ200と通信可能に接続され、CIFS(Common Internet File System)クライアントやNFS(Network File System)クライントの機能を利用して、ファイルサーバ200にアクセスする。なお、図1には、1つのユーザ端末400が示されているが、一般に、多数のユーザ端末がファイルサーバ200をアクセス可能である。   As shown in FIG. 1, the file management system includes a file server 200. The file server 200 can access the backup device 300. The user terminal 400 is communicably connected to the file server 200, and accesses the file server 200 by using a function of a CIFS (Common Internet File System) client or an NFS (Network File System) client. Although one user terminal 400 is shown in FIG. 1, generally, many user terminals can access the file server 200.

ファイルサーバ200は、ファイルサーバ機能部210と、ファイルシステム部220と、バックアップ用ディレクトリ操作部240と、リストア操作部250と、記憶部260とを備える。   The file server 200 includes a file server function unit 210, a file system unit 220, a backup directory operation unit 240, a restore operation unit 250, and a storage unit 260.

ファイルサーバ機能部210は、CIFSサーバやNFSサーバなどのファイルサーバ機能を備える。ファイルサーバ機能部210は、記憶部260のクライアント用記憶領域261に対するアクセス要求を受け付ける。   The file server function unit 210 has a file server function such as a CIFS server or an NFS server. The file server function unit 210 receives an access request for the client storage area 261 of the storage unit 260.

ファイルサーバ機能部210は、クライアント用記憶領域261に対するアクセスがあった場合に、ファイルへのアクセス情報およびパス検出情報を受け取り、ファイルシステム部220にアクセス情報およびパス検出情報を渡す。アクセス情報は、ファイルまたはディレクトリの更新や削除などのファイル操作を示す情報である。パス検出情報は、アクセスの対象となるファイルのパス情報を検出するための情報である。   When the client storage area 261 is accessed, the file server function unit 210 receives file access information and path detection information, and passes the access information and path detection information to the file system unit 220. The access information is information indicating a file operation such as update or deletion of a file or directory. The path detection information is information for detecting path information of a file to be accessed.

ファイルシステム部220は、ファイルサーバ機能部210から受け取ったアクセス情報にもとづいて、記憶部260へのファイルの読み出しや書き込みの処理を行う。記憶部260には、クライアント用記憶領域261の他に、バックアップ用ディレクトリ管理領域262がある。クライアント用記憶領域261は、ユーザ端末400に公開されるディレクトリ構造に対応するファイルが格納される領域である。バックアップ用ディレクトリ管理領域262に設けられるバックアップ用ディレクトリ構造は、ユーザ端末400からアクセスできないものであるが、バックアップ装置300は、バックアップ用ディレクトリ構造を読み出せる。   Based on the access information received from the file server function unit 210, the file system unit 220 performs processing of reading and writing a file to the storage unit 260. The storage unit 260 includes a backup directory management area 262 in addition to the client storage area 261. The client storage area 261 is an area in which files corresponding to the directory structure disclosed to the user terminal 400 are stored. The backup directory structure provided in the backup directory management area 262 cannot be accessed from the user terminal 400, but the backup device 300 can read the backup directory structure.

ファイルシステム部220は、更新ファイル検出部230を備える。更新ファイル検出部230は、クライアント用記憶領域261に対するファイルの更新操作の検出を行う。   The file system unit 220 includes an update file detection unit 230. The update file detection unit 230 detects a file update operation for the client storage area 261.

バックアップ用ディレクトリ操作部240は、バックアップ用ディレクトリ管理領域262を操作する。   The backup directory operation unit 240 operates the backup directory management area 262.

リストア操作部250は、バックアップ装置300に格納されているデータをリストアする機能を有する。   The restore operation unit 250 has a function of restoring data stored in the backup device 300.

記憶部260は、ハードディスクなどの記憶媒体である。   The storage unit 260 is a storage medium such as a hard disk.

バックアップ装置300は、例えば、バックアップサーバやテープ装置などのデータ記憶部310を備える。データ記憶部310は、ファイルサーバ200の記憶部260に保存されているデータを記憶する。   The backup device 300 includes a data storage unit 310 such as a backup server or a tape device, for example. The data storage unit 310 stores data stored in the storage unit 260 of the file server 200.

図2は、第1の実施形態におけるファイルシステム部の構成を示す説明図である。   FIG. 2 is an explanatory diagram illustrating a configuration of the file system unit according to the first embodiment.

図2に示すように、ファイルシステム部220の更新ファイル検出部230は、更新系操作フック部231および、パス情報取得部232を備える。   As shown in FIG. 2, the update file detection unit 230 of the file system unit 220 includes an update system operation hook unit 231 and a path information acquisition unit 232.

更新ファイル検出部230は、ファイルシステム部220がファイルサーバ機能部210からアクセス情報およびパス検出情報を受け取ったときに、更新系操作フック部231を呼び出す。   The update file detection unit 230 calls the update system operation hook unit 231 when the file system unit 220 receives access information and path detection information from the file server function unit 210.

更新系操作フック部231は、アクセス情報を解析して、アクセスがクライアント用記憶領域261に対する更新操作であった場合は、処理をフックして、パス情報取得部232を呼び出す。   The update operation hook unit 231 analyzes the access information. If the access is an update operation for the client storage area 261, the update operation hook unit 231 hooks the process and calls the path information acquisition unit 232.

パス情報取得部232は、パス検出情報からアクセスの対象となるファイルのパス情報を生成して、バックアップ用ディレクトリ操作部240に渡す。   The path information acquisition unit 232 generates path information of a file to be accessed from the path detection information and passes it to the backup directory operation unit 240.

図3は、第1の実施形態におけるバックアップ用ディレクトリ操作部の構成を示す説明図である。   FIG. 3 is an explanatory diagram illustrating the configuration of the backup directory operation unit according to the first embodiment.

図3に示すように、バックアップ用ディレクトリ操作部240は、ディレクトリ作成/削除部241と、パス情報変換部242と、リンク作成部243と、管理情報記録部244とを備える。   As shown in FIG. 3, the backup directory operation unit 240 includes a directory creation / deletion unit 241, a path information conversion unit 242, a link creation unit 243, and a management information recording unit 244.

ディレクトリ作成/削除部241は、バックアップ用ディレクトリ管理領域262に作業ディレクトリを作成して、管理情報ファイル601を作成する。   The directory creation / deletion unit 241 creates a work directory in the backup directory management area 262 and creates a management information file 601.

パス情報変換部242は、バックアップ用ディレクトリ操作部240に入力されたパス情報の中の‘/’をパス情報が含んでいない他の文字に置換したパス変換情報を生成する。例えば、パス情報が“/ABC/DE/FGH.txt”であった場合は、パス変換情報は“XABCXDEXFGH.txt”となり、ディレクトリ情報を含まない文字列となる。   The path information conversion unit 242 generates path conversion information in which “/” in the path information input to the backup directory operation unit 240 is replaced with another character that does not include the path information. For example, if the path information is “/ABC/DE/FGH.txt”, the path conversion information is “XABCXDEXFGH.txt”, which is a character string that does not include directory information.

リンク作成部243は、パス情報変換部242によって生成されたパス変換情報をファイル名とし、パス情報で参照されるファイルを実体ファイルとするリンクをバックアップ用ディレクトリ管理領域262内の作業ディレクトリに作成する。リンクは、1つの実体ファイルを別の名前やパス名で参照できるようにする概念である。リンクとして、例えば、UNIX(登録商標)やLinux(登録商標)におけるハードリンクやシンボリックリンクなどがある。   The link creation unit 243 creates a link in the work directory in the backup directory management area 262 using the path conversion information generated by the path information conversion unit 242 as a file name and a file referenced by the path information as an actual file. . A link is a concept that allows one entity file to be referred to by another name or path name. Examples of the links include hard links and symbolic links in UNIX (registered trademark) and Linux (registered trademark).

管理情報記録部244は、バックアップ用ディレクトリ操作部240が受け取ったアクセス情報が、ファイルの削除、ディレクトリの作成または削除であった場合には、管理情報ファイル601にアクセス情報を記録する。   The management information recording unit 244 records the access information in the management information file 601 when the access information received by the backup directory operation unit 240 is file deletion, directory creation or deletion.

図4は、第1の実施形態におけるリストア操作部の構成を示す説明図である。   FIG. 4 is an explanatory diagram illustrating a configuration of the restore operation unit according to the first embodiment.

図4に示すように、リストア操作部250は、パス情報復元部251およびディレクトリ復元部252を備える。   As shown in FIG. 4, the restore operation unit 250 includes a path information restoration unit 251 and a directory restoration unit 252.

パス情報復元部251は、バックアップ装置300から読み出したファイルのファイル名の変換を行う。具体的には、ファイル名の先頭の文字およびファイル名に含まれる先頭の文字と同じ文字を“/”に置換する。この置換によって、パス情報が復元され、パス情報で示されるクライアント用記憶領域261内のリストア先にファイルがリストアされる。   The path information restoration unit 251 converts the file name of the file read from the backup device 300. Specifically, the first character of the file name and the same character as the first character included in the file name are replaced with “/”. By this replacement, the path information is restored, and the file is restored to the restore destination in the client storage area 261 indicated by the path information.

ディレクトリ復元部252は、バックアップ装置300から読み出した管理情報ファイルをもとに、不要なディレクトリを削除して、必要なディレクトリを作成する。   The directory restoration unit 252 deletes unnecessary directories based on the management information file read from the backup device 300 and creates a necessary directory.

次に、本実施形態の動作を説明する。   Next, the operation of this embodiment will be described.

図5は、本発明によるファイル管理システムの差分ファイルを蓄積する処理の一例を示すフローチャートである。   FIG. 5 is a flowchart showing an example of processing for accumulating a difference file in the file management system according to the present invention.

図5に示すように、ユーザ端末400からファイルサーバ200に対するアクセスが、任意のタイミングで発生する(ステップS501)。更新系操作フック部231は、ステップS501におけるアクセスのアクセス情報をもとに、アクセスがファイルの作成または更新処理であるか否かを判断する(ステップS502)。   As shown in FIG. 5, access to the file server 200 from the user terminal 400 occurs at an arbitrary timing (step S501). The update operation hook unit 231 determines whether the access is a file creation or update process based on the access information of the access in step S501 (step S502).

ファイルアクセスがファイルの作成または更新処理であった場合は(ステップS502におけるYes)、更新系操作フック部231は、処理をフックして、パス情報取得部232を呼び出す。パス情報取得部232は、ファイルシステム部220の他の処理と並行して、作成または更新処理の対象となるファイルのパス情報を生成する処理を行う。パス情報取得部232は、パス情報をバックアップ用ディレクトリ操作部240に渡す。バックアップ用ディレクトリ操作部240のパス情報変換部242は、パス情報を変換してパス変換情報を生成する(ステップS503)。   If the file access is a file creation or update process (Yes in step S502), the update operation hook unit 231 hooks the process and calls the path information acquisition unit 232. In parallel with other processing of the file system unit 220, the path information acquisition unit 232 performs processing for generating path information of a file to be created or updated. The path information acquisition unit 232 passes the path information to the backup directory operation unit 240. The path information conversion unit 242 of the backup directory operation unit 240 converts the path information to generate path conversion information (step S503).

リンク作成部243は、ステップS503において生成されたパス変換情報をファイル名とし、作成または更新処理の対象となるファイルを参照するリンクをバックアップ用ディレクトリ管理領域262の作業ディレクトリに作成する(ステップS504)。また、すでに同じファイル名を有するリンクが存在する場合には、上書きする。   The link creation unit 243 uses the path conversion information generated in step S503 as a file name, and creates a link that refers to the file to be created or updated in the work directory of the backup directory management area 262 (step S504). . If a link having the same file name already exists, it is overwritten.

ファイルアクセスがファイルの作成または更新処理以外であった場合は(ステップS502におけるNo)、更新系操作フック部231は、ファイルアクセスがファイルの削除処理であるか否かを判断する(ステップS505)。   If the file access is other than file creation or update processing (No in step S502), the update operation hook unit 231 determines whether the file access is file deletion processing (step S505).

ファイルアクセスがファイルの削除処理であった場合は(ステップS505におけるYes)、リンク作成部243は、バックアップ用ディレクトリ管理領域262の作業ディレクトリに削除対象となるファイルのリンクが存在するか確認し、リンクが存在するときはそのリンクを削除する(ステップS506)。管理情報記録部244は、管理情報ファイル601にファイル削除の処理内容を記録する(ステップS507)。処理内容とは、削除されたファイルのパス情報などである。ファイルアクセスがファイルの削除処理以外であった場合は(ステップS505におけるNo)、更新系操作フック部231は、ファイルアクセスがディレクトリの作成または削除処理であるか否かを判断する(ステップS508)。   If the file access is a file deletion process (Yes in step S505), the link creation unit 243 confirms whether the link of the file to be deleted exists in the working directory of the backup directory management area 262, and links If exists, the link is deleted (step S506). The management information recording unit 244 records the file deletion processing content in the management information file 601 (step S507). The processing content is the path information of the deleted file. If the file access is other than the file deletion process (No in step S505), the update operation hook unit 231 determines whether the file access is a directory creation or deletion process (step S508).

ファイルアクセスがディレクトリの作成または削除処理であった場合は(ステップS508におけるYes)、管理情報記録部244は、管理情報ファイル601にディレクトリ作成また削除の処理内容を記録する(ステップS509)。   When the file access is a directory creation or deletion process (Yes in step S508), the management information recording unit 244 records the directory creation or deletion process contents in the management information file 601 (step S509).

なお、ステップS503からステップS509におけるバックアップ用ディレクトリ操作部240の処理は、ファイルシステム部220の処理と並行して行われる。   Note that the processing of the backup directory operation unit 240 in steps S503 to S509 is performed in parallel with the processing of the file system unit 220.

以上のようにして、作成または更新が発生したファイルに関するリンクがバックアップ用ディレクトリ管理領域262に作成される。すなわち、ファイルに対する操作が行われたときに、差分バックアップされるべきファイルを特定可能なリンクが作成される。   As described above, a link relating to a file that has been created or updated is created in the backup directory management area 262. That is, when an operation is performed on a file, a link that can specify a file to be differentially backed up is created.

図6は、本発明によるファイル管理システムの差分バックアップ処理の一例を示すフローチャートである。   FIG. 6 is a flowchart showing an example of the differential backup process of the file management system according to the present invention.

ファイルサーバ200は、バックアップ装置300がバックアップを実行する時に、ファイルの静止点確保のために、ユーザ端末400に公開されるディレクトリ構造およびバックアップ用ディレクトリ管理領域262の内容のスナップショットを作成する(ステップS601)。バックアップ装置300は、スナップショット内のバックアップ用ディレクトリ管理領域の作業ディレクトリを利用してデータをバックアップする(ステップS602)。このとき、バックアップ用ディレクトリ管理領域262の作業ディレクトリの内容はファイルサーバ200によって削除される。   When the backup device 300 performs backup, the file server 200 creates a snapshot of the directory structure and the contents of the backup directory management area 262 that are disclosed to the user terminal 400 in order to secure a quiesce point of the file (step) S601). The backup device 300 backs up data using the work directory in the backup directory management area in the snapshot (step S602). At this time, the contents of the work directory in the backup directory management area 262 are deleted by the file server 200.

ステップS602において、バックアップ用ディレクトリ管理領域の作業ディレクトリにリンクが存在する場合は、リンクの実体ファイルに差分があったと判断して、リンクの実体ファイルがクライアント用記憶領域から取得され、バックアップ装置300にバックアップされる。実体ファイルのファイル名には、リンクと同じファイル名、つまりパス変換情報が設定される。ステップS602の後、ファイルサーバ200は、ステップS601において作成したスナップショットを削除する。   If there is a link in the work directory of the backup directory management area in step S602, it is determined that there is a difference in the link entity file, and the link entity file is acquired from the client storage area and is stored in the backup device 300. Backed up. In the file name of the entity file, the same file name as that of the link, that is, path conversion information is set. After step S602, the file server 200 deletes the snapshot created in step S601.

なお、差分バックアップ実行中に、ユーザ端末400の記憶部260に対するアクセスを受け付けないようにすることができる場合は、スナップショットを作成しなくてもよい。その場合には、バックアップ用ディレクトリ管理領域262の内容をそのまま利用してバックアップが実行される。   Note that when it is possible to prevent access to the storage unit 260 of the user terminal 400 during differential backup execution, it is not necessary to create a snapshot. In this case, the backup is executed using the contents of the backup directory management area 262 as they are.

また、差分バックアップが続けて実行された場合には、バックアップ装置300は、各差分バックアップごとに領域を分けて管理するようにすればよい。   Further, when the differential backup is continuously executed, the backup device 300 may manage the area separately for each differential backup.

図7は、本発明によるファイル管理システムの差分リストア処理の一例を示すフローチャートである。   FIG. 7 is a flowchart showing an example of differential restore processing of the file management system according to the present invention.

図7を参照して、ファイルサーバ200の差分リストア処理について説明する。差分リストアとは、差分対象期間(前回の差分バックアップが実行されたときから次回の差分バックアップが実行されるまでの期間)に行われた更新を再現する処理である。また、図7は、ファイルサーバ200のクライアント用記憶領域261が差分対象期間の開始時点の状態にリストアされている状態から差分リストアを行う場合の処理を示す。   With reference to FIG. 7, the differential restore processing of the file server 200 will be described. The differential restore is a process for reproducing updates performed during a difference target period (a period from when the previous differential backup is executed until the next differential backup is executed). FIG. 7 shows processing when differential restoration is performed from the state where the client storage area 261 of the file server 200 is restored to the state at the start of the difference target period.

ファイルサーバ200が差分リストアを実行する場合、ディレクトリ復元部252は、バックアップ装置300から管理情報ファイルを読み出し、読み出した管理情報ファイルの記録内容に従って、リストア先のディレクトリ内の不要なディレクトリを削除して、必要なディレクトリを作成する。また、管理情報ファイルにファイル削除が記録されている場合には、削除されたファイルをリストア先のディレクトリ内から削除する(ステップS701)。   When the file server 200 executes differential restore, the directory restoration unit 252 reads the management information file from the backup device 300, and deletes unnecessary directories in the restore destination directory according to the recorded contents of the read management information file. Create the necessary directories. If file deletion is recorded in the management information file, the deleted file is deleted from the restore destination directory (step S701).

リストア操作部250のパス情報復元部251は、バックアップ装置300から更新ファイルを読み出す。更新ファイルは、ステップS602においてバックアップされたリンクの実体ファイルである。パス情報復元部251は、更新ファイルのファイル名の変換を行い、更新ファイルのパス情報を復元する(ステップS702)。   The path information restoration unit 251 of the restore operation unit 250 reads the update file from the backup device 300. The update file is a link entity file backed up in step S602. The path information restoration unit 251 converts the file name of the update file, and restores the path information of the update file (step S702).

リストア操作部250は、復元されたパス情報に従って、更新ファイルをクライアント用記憶領域261に復元(更新または作成)する(ステップS703)。同じファイルがリストア先に存在する場合にはファイルは更新される。   The restore operation unit 250 restores (updates or creates) the update file to the client storage area 261 according to the restored path information (step S703). If the same file exists at the restore destination, the file is updated.

ステップS702、S703の処理は、バックアップ装置300に格納されている全ての更新ファイルに対して実行される(ステップS704)。   The processes in steps S702 and S703 are executed for all the update files stored in the backup device 300 (step S704).

以上に説明したように、本実施形態では、ファイル更新時にリンクを作成することによって実質的に差分ファイルの検出が行われ、リンクが作成されているファイルをバックアップすることによって、差分バックアップが実行されるので、バックアップ実行時に差分ファイルの検出を行う必要がない。   As described above, in this embodiment, a differential file is substantially detected by creating a link at the time of file update, and a differential backup is executed by backing up the file for which the link has been created. Therefore, it is not necessary to detect a difference file when executing backup.

また、リンクのファイル名をディレクトリ情報を含まない文字列で設定しているので、差分ファイルに対応するリンクを1つのディレクトリに集約することができ、バックアップ時にディレクトリを検索せずにリンクを取得することができる。また、差分があったファイル自体ではなく、差分があったファイルのリンクをバックアップ用ディレクトリ管理領域に保存しているので、処理時間を短くできるとともに、差分バックアップに必要なデータ領域を低減させることができる。   In addition, since the file name of the link is set with a character string that does not include directory information, the links corresponding to the difference files can be consolidated into one directory, and the link is acquired without searching the directory at the time of backup. be able to. In addition, since the link of the file with the difference, not the file with the difference, is stored in the backup directory management area, the processing time can be shortened and the data area required for the differential backup can be reduced. it can.

図8は、本発明によるファイル管理システムの主要部を示すブロック図である。図8に示すように、本発明によるファイル管理システムは、ユーザのファイルを管理するファイル管理システムであって、ユーザ端末(図1に示すユーザ端末400に相当。)によるファイル操作がファイルの作成または更新であるか否かを判断する更新検出手段21(図1に示すファイルサーバ200における更新ファイル検出部230に相当。)と、ファイル操作がファイルの作成または更新であった場合には、作成または更新の対象のファイルを実体ファイルとするリンクを作成して記憶するリンク作成手段22(図1に示すファイルサーバ200におけるバックアップ用ディレクトリ操作部240に相当。)と、リンクにもとづくファイルを更新ファイルとしてバックアップ装置30(図1に示すバックアップ装置300に相当。)に記憶させるバックアップ処理手段23(図1に示すファイルサーバ200におけるファイルシステム部220に相当。)とを備える。   FIG. 8 is a block diagram showing the main part of the file management system according to the present invention. As shown in FIG. 8, the file management system according to the present invention is a file management system for managing a user's file, and a file operation by a user terminal (corresponding to the user terminal 400 shown in FIG. 1) is the creation of a file. An update detection means 21 (corresponding to the update file detection unit 230 in the file server 200 shown in FIG. 1) that determines whether or not it is an update, and if the file operation is creation or update of a file, A link creation means 22 (corresponding to the backup directory operation unit 240 in the file server 200 shown in FIG. 1) for creating and storing a link having the file to be updated as an entity file, and the file based on the link as an update file Backup device 30 (corresponding to the backup device 300 shown in FIG. 1) Backup processing unit 23 to be stored (corresponding to the file system unit 220 in the file server 200 shown in FIG.) And a.

上記の実施形態には、以下のようなファイル管理システムも開示されている。   In the above embodiment, the following file management system is also disclosed.

(1)リンク作成手段22は、更新検出手段21から更新対象のファイルのパス情報を取得し、パス情報をディレクトリ情報を含まない文字列に変換し、文字列をパス名とするファイル管理システム。 (1) A file management system in which the link creation unit 22 acquires path information of a file to be updated from the update detection unit 21, converts the path information into a character string that does not include directory information, and uses the character string as a path name.

(2)リンク作成手段22は、ファイル操作がファイルの削除であった場合には、管理情報ファイルにファイル操作の内容を記録し、バックアップ処理手段23は、管理情報ファイルをバックアップ装置30に記憶させるファイル管理システム。 (2) When the file operation is deletion of the file, the link creation unit 22 records the contents of the file operation in the management information file, and the backup processing unit 23 stores the management information file in the backup device 30. File management system.

(3)リンク作成手段22は、ファイル操作がディレクトリの作成または削除であった場合には、管理情報ファイルにファイル操作の内容を記録するファイル管理システム。 (3) The link creation means 22 is a file management system that records the contents of the file operation in the management information file when the file operation is creation or deletion of a directory.

(4)リストア操作手段(図1に示すファイルサーバ200におけるリストア操作部250に相当。)は、バックアップ装置30から管理情報ファイルおよび更新ファイルを取得し、管理情報ファイルの内容にもとづいてディレクトリの復元およびファイルの削除を行い、更新ファイルのファイル名からパス情報を復元して、パス情報で示されるリストア先に更新ファイルを復元するファイル管理システム。 (4) The restore operation means (corresponding to the restore operation unit 250 in the file server 200 shown in FIG. 1) acquires the management information file and the update file from the backup device 30, and restores the directory based on the contents of the management information file. And file deletion, restore path information from the file name of the update file, and restore the update file to the restore destination indicated by the path information.

21 更新検出手段
22 リンク作成手段
23 バックアップ処理手段
30、300 バックアップ装置
200 ファイルサーバ
210 ファイルサーバ機能部
220 ファイルシステム部
230 更新ファイル検出部
231 更新系操作フック部
232 パス情報取得部
240 バックアップ用ディレクトリ操作部
241 ディレクトリ作成/削除部
242 パス情報変換部
243 リンク作成部
244 管理情報記録部
250 リストア操作部
251 パス情報復元部
252 ディレクトリ復元部
260 記憶部
261 クライアント用記憶領域
262 バックアップ用ディレクトリ管理領域
310 データ記憶部
400 ユーザ端末
601 管理情報ファイル
21 Update detection means 22 Link creation means 23 Backup processing means 30, 300 Backup device 200 File server 210 File server function part 220 File system part 230 Update file detection part 231 Update system operation hook part 232 Path information acquisition part 240 Backup directory operation Section 241 Directory creation / deletion section 242 Path information conversion section 243 Link creation section 244 Management information recording section 250 Restore operation section 251 Path information restoration section 252 Directory restoration section 260 Storage section 261 Client storage area 262 Backup directory management area 310 Data Storage unit 400 User terminal 601 Management information file

Claims (5)

ユーザのファイルを管理するファイル管理システムであって、
ユーザ端末によるファイル操作がファイルの作成または更新であるか否かを判断する更新検出手段と、
前記ファイル操作がファイルの作成または更新であった場合には、作成または更新の対象のファイルを実体ファイルとするリンクを作成して記憶するリンク作成手段と、
前記リンクにもとづくファイルを更新ファイルとしてバックアップ装置に記憶させるバックアップ処理手段とを備え
前記リンク作成手段は、前記更新検出手段から作成または更新の対象の前記ファイルのパス情報を取得し、前記パス情報をディレクトリ情報を含まない文字列に変換し、前記文字列を前記リンクのファイル名とする
ことを特徴とするファイル管理システム。
A file management system for managing user files,
Update detection means for determining whether the file operation by the user terminal is creation or update of a file;
If the file operation is creation or update of a file, link creation means for creating and storing a link having the file to be created or updated as an entity file; and
Backup processing means for storing a file based on the link in the backup device as an update file ,
The link creation means acquires path information of the file to be created or updated from the update detection means, converts the path information into a character string not including directory information, and converts the character string to the file name of the link file management system which is characterized in that a.
リンク作成手段は、ファイル操作がファイルの削除であった場合には、管理情報ファイルに前記ファイル操作の内容を記録し、
バックアップ処理手段は、前記管理情報ファイルをバックアップ装置に記憶させる
請求項1記載のファイル管理システム。
If the file operation is a file deletion, the link creation means records the content of the file operation in the management information file,
Backup processing means, the file management system according to claim 1 for storing the management information file to the backup device.
リンク作成手段は、ファイル操作がディレクトリの作成または削除であった場合には、管理情報ファイルに前記ファイル操作の内容を記録する
請求項に記載のファイル管理システム。
Link creation means, the file management system according to claim 1 file operation when was the creation or deletion directory, which records the contents of the file operation in the management information file.
リストア操作手段を備え、
前記リストア操作手段は、バックアップ装置から管理情報ファイルおよび更新ファイルを取得し、前記管理情報ファイルの内容にもとづいてディレクトリの復元およびファイルの削除を行い、前記更新ファイルのファイル名からパス情報を復元して、前記パス情報で示されるリストア先に前記更新ファイルを復元する
請求項に記載のファイル管理システム。
Equipped with restore operation means,
The restore operation means acquires a management information file and an update file from a backup device, restores a directory and deletes the file based on the contents of the management information file, and restores path information from the file name of the update file. The file management system according to claim 3 , wherein the update file is restored to the restore destination indicated by the path information.
ユーザのファイルを管理するファイル管理システムにおけるバックアップ方法であって、
ユーザ端末によるファイル操作がファイルの作成または更新であるか否かを判断し、前記ファイル操作がファイルの作成または更新であった場合には、作成または更新の対象のファイルのパス情報をディレクトリ情報を含まない文字列に変換し、前記文字列をファイル名とし、作成または更新の対象の前記ファイルを実体ファイルとするリンクを作成して記憶し、前記リンクにもとづくファイルを更新ファイルとしてバックアップ装置に記憶させる
ことを特徴とするバックアップ方法。
A backup method in a file management system for managing user files,
It is determined whether or not the file operation by the user terminal is a file creation or update. If the file operation is a file creation or update, the path information of the file to be created or updated is obtained as directory information. Converts to a character string that does not include it, creates and stores a link with the character string as a file name and the file to be created or updated as an entity file, and stores the file based on the link as an update file in the backup device A backup method characterized by allowing
JP2011073302A 2011-03-29 2011-03-29 File management system and backup method Expired - Fee Related JP5720366B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011073302A JP5720366B2 (en) 2011-03-29 2011-03-29 File management system and backup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011073302A JP5720366B2 (en) 2011-03-29 2011-03-29 File management system and backup method

Publications (2)

Publication Number Publication Date
JP2012208699A JP2012208699A (en) 2012-10-25
JP5720366B2 true JP5720366B2 (en) 2015-05-20

Family

ID=47188374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011073302A Expired - Fee Related JP5720366B2 (en) 2011-03-29 2011-03-29 File management system and backup method

Country Status (1)

Country Link
JP (1) JP5720366B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014062198A (en) 2012-09-21 2014-04-10 Dow Corning Toray Co Ltd Curable silicone composition, and semiconductor sealing material and optical semiconductor device using the same
JP6231952B2 (en) * 2014-07-11 2017-11-15 株式会社Nttドコモ Data management apparatus and data management method
KR101532942B1 (en) * 2014-11-07 2015-07-01 주식회사 오케이썬 Method for link file back-up based on setting back-up policy, and module for implementing for the same
KR101772439B1 (en) 2016-01-22 2017-08-29 주식회사 안랩 File protection system and file protection method
JP6908880B2 (en) * 2017-03-31 2021-07-28 日本電気株式会社 Shared devices, shared systems, sharing methods, and shared programs

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006012449A2 (en) * 2004-07-23 2006-02-02 Emc Corporation Tracking objects modified between backup operations
JP2009129017A (en) * 2007-11-20 2009-06-11 Ricoh Co Ltd Document migration support system, monitoring device, document migration support device, method, and program
JP2010020570A (en) * 2008-07-11 2010-01-28 Hitachi Ltd Information processing system and data recovery method
US8996826B2 (en) * 2009-04-28 2015-03-31 Symantec Corporation Techniques for system recovery using change tracking

Also Published As

Publication number Publication date
JP2012208699A (en) 2012-10-25

Similar Documents

Publication Publication Date Title
JP5991699B2 (en) Information processing apparatus, information processing system, backup method, and program
JP5124989B2 (en) Storage system and data protection method and program
US9645892B1 (en) Recording file events in change logs while incrementally backing up file systems
US8019726B2 (en) Method, apparatus, program and system for migrating NAS system
US10394758B2 (en) File deletion detection in key value databases for virtual backups
CN100462929C (en) Method and system for recovering data using a timeline-based computing environment
RU2646334C2 (en) File management using placeholders
JP4749266B2 (en) Backup control apparatus and method without duplication of information resources
US10204016B1 (en) Incrementally backing up file system hard links based on change logs
US9916324B2 (en) Updating key value databases for virtual backups
JP6461992B2 (en) Specific device, control method thereof, and program
JP5650982B2 (en) Apparatus and method for eliminating file duplication
JP2009507278A (en) Search and restore data objects
JP2009104594A (en) Technique for virtual archiving
CN107436912A (en) Data migration device and method thereof
CN102331957B (en) File backup method and device
JP5720366B2 (en) File management system and backup method
CN108604201B (en) A snapshot rollback method, device, storage controller and system
US10089190B2 (en) Efficient file browsing using key value databases for virtual backups
US8843450B1 (en) Write capable exchange granular level recoveries
CN104572339A (en) Data backup restoring system and method based on distributed file system
US8255367B2 (en) File management apparatus, method, and program
US9864656B1 (en) Key value databases for virtual backups
CN120255819A (en) File processing method and device
CN103530202A (en) Cloud backing-up and recovering method used for terminal program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140205

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140811

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140902

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141029

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150224

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150309

R150 Certificate of patent or registration of utility model

Ref document number: 5720366

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees