JPH0756791A - Method for backing up and recovering file in distributed system - Google Patents

Method for backing up and recovering file in distributed system

Info

Publication number
JPH0756791A
JPH0756791A JP5222301A JP22230193A JPH0756791A JP H0756791 A JPH0756791 A JP H0756791A JP 5222301 A JP5222301 A JP 5222301A JP 22230193 A JP22230193 A JP 22230193A JP H0756791 A JPH0756791 A JP H0756791A
Authority
JP
Japan
Prior art keywords
file
data
backup
recovery
magnetic tape
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5222301A
Other languages
Japanese (ja)
Inventor
Toshimitsu Sasaki
俊光 佐々木
Shuzo Fujiwara
修三 藤原
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.)
N T T DATA TSUSHIN KK
NTT Data Corp
Original Assignee
N T T DATA TSUSHIN KK
NTT Data Communications Systems 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 N T T DATA TSUSHIN KK, NTT Data Communications Systems Corp filed Critical N T T DATA TSUSHIN KK
Priority to JP5222301A priority Critical patent/JPH0756791A/en
Publication of JPH0756791A publication Critical patent/JPH0756791A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Multi Processors (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To provide a method for preparing a backup magnetic tape for a daily work file and a method for restoring destruction or the like generated in the work file by means of the magnetic tape in a distributed system for integrating many data recording media in a recording medium. CONSTITUTION:The system is provided with a management table 20 for storing information such as status, file numbers, processing dates, and magnetic tape numbers in order to manage the working states of respective data files, and at the end of work, required contents in a working file 21 are recorded in a data file MT 23 by a backup process and then the contents of the table 20 are recorded and stored in a system file MT 24. In the case of recovering destructed data, a recovery process is started, a recovery information table is prepared from the information stored in the MT 24 and the data of a specified header in the backup MT 23 which corresponds to a number specified by the information of the prepared table are successively inputted to the file 21 to recover them.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、多数のデータを記録
した複数の媒体を所定の順序に従って統合して,一つの
記憶媒体に出力する際に、毎日の処理ファイルのバック
アップ磁気テープを作成する方法と、作業ディスクの破
壊等の事故により記憶媒体のデータが滅失した場合に、
バックアップ磁気テープを用いてデータの復旧作業を、
迅速、容易に実行するリカバリ方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention creates a backup magnetic tape for daily processing files when a plurality of media recording a large number of data are integrated in a predetermined order and output to one storage medium. Method and when the data on the storage medium is lost due to an accident such as the destruction of the working disk,
Data recovery work using backup magnetic tape
A quick and easy recovery method.

【0002】[0002]

【従来の技術】日々提出される膨大な書類等の個別情報
が多数集積され、これらを加工処理して、所定の順序、
例えば提出日、提出番号順に磁気テープのような1つの
記録媒体に出力する作業においては、処理速度を大きく
するため、ローカルエリアネットワーク(LAN)によ
り接続された複数の端末機からなる分散処理システムを
用いて、加工処理工程が並列的に実行されることがあ
る。
2. Description of the Related Art A large number of individual information such as a huge number of documents submitted every day are accumulated, and processed in a predetermined order.
For example, in order to increase the processing speed when outputting to one recording medium such as a magnetic tape in the order of submission date and submission number, a distributed processing system consisting of multiple terminals connected by a local area network (LAN) is used. In some cases, processing steps may be performed in parallel.

【0003】各端末機は、複数の媒体を読み出して共通
の作業用磁気ディスクファイルに入力したり、ファイル
からデータを呼び出して加工処理を行い、処理された作
業結果は、再び作業用磁気ディスクファイルに戻され
る。次に、加工処理作業終了後に、これらの多数の作業
用磁気ディスクファイルを対象として、情報処理装置に
より記録されているデータを所定の順序で読み出して、
1本の磁気テープに出力し、統合データファイルを作成
する。
Each terminal reads a plurality of media and inputs them to a common work magnetic disk file, or calls data from the file to perform processing, and the processed work results are again used as work magnetic disk files. Returned to. Next, after the processing work is completed, the data recorded by the information processing device is read in a predetermined order for these many magnetic disk files for work,
Output to one magnetic tape and create an integrated data file.

【0004】このような分散システムでは、各端末機に
よる作業の進行状況、換言すれば個別情報の加工状態を
管理し、出力すべき個別の情報の処理が所定の順序で進
行していることを保証する必要がある。さもなければ、
僅かな一部のデータ処理が遅延しても統合作業は完成せ
ず、業務の全体的な進行に悪影響を与えるから、統合対
象のデータ処理ができるだけ同時期に終了するよう管理
する必要がある。
In such a distributed system, the progress of work by each terminal, in other words, the processing state of individual information is managed, and it is confirmed that the processing of individual information to be output is proceeding in a predetermined order. Need to guarantee. Otherwise,
Even if a small amount of data processing is delayed, the integration work is not completed and the overall progress of the work is adversely affected. Therefore, it is necessary to manage so that the data processing of the integration target ends as soon as possible.

【0005】この並列作業の進行管理とともに、重要な
要素は、何等かの事情で個別情報が記録されている作業
媒体のファイル、あるいは書き込み中の統合ファイルが
破壊された場合の処理である。このような事態は皆無に
することが望ましいが、現実には、ハードウェアとして
の磁気ディスクの故障、停電事故、あるいは人為的な誤
操作等の原因により、作業媒体のファイルが破壊し、そ
の内容の一部または全部が滅失することが起こり得る。
Along with the progress management of this parallel work, an important factor is the processing when the file of the work medium in which the individual information is recorded or the integrated file being written is destroyed due to some reason. It is desirable to eliminate such a situation, but in reality, the file of the working medium is destroyed due to the cause of failure of the magnetic disk as hardware, power failure accident, human error, etc. It is possible for some or all to be lost.

【0006】このようなディスク破壊等によるデータの
滅失は、たとえば一部であってもファイル統合作業が遅
延して重大な結果を生じるから、できるだけ速やかに破
壊が発生した前の状態に戻す必要がある。このような事
態に備えて、作業用磁気ディスクの内容をコピーした磁
気テープを作成し、データの復旧に用いることが行われ
ており、バックアップ用磁気テープと呼ばれ、データの
復旧をファイルリカバリと称する。
The loss of data due to the destruction of the disk or the like causes a serious result because the file integration work is delayed even if it is a part of the data. Therefore, it is necessary to restore the state before the destruction as quickly as possible. is there. In preparation for such a situation, a magnetic tape that copies the contents of a working magnetic disk is created and used for data recovery.It is called a backup magnetic tape, and data recovery is called file recovery. To call.

【0007】例として、種々のファイルに対するデータ
の更新作業を実行していたとする。このような場合に生
じた破壊事故に対処するためには、それまで作業してい
た関連する複数の作業ファイルについての情報を取得し
て、個別の作業ファイルについて復旧の要否を判断し、
破壊前の状態に戻してから、更新処理を続行する手順が
必要となる。しかし、多数の作業ファイルが並行して更
新作業が行われている場合には、各作業ファイルに関し
て逐一履歴をチェックして、どの部分から復旧作業を開
始するかを判断しなければならないから、煩雑な操作を
要する。
As an example, it is assumed that data updating work for various files is being executed. In order to deal with the destruction accident that occurred in such a case, information about a plurality of related work files that were being worked until then is acquired, and it is determined whether or not each work file needs to be restored.
A procedure is required to continue the update process after returning to the state before destruction. However, when a large number of work files are being updated in parallel, it is necessary to check the history for each work file one by one to determine from which part the recovery work is to be started. Operation is required.

【0008】データ量が多く、処理する対象となる作業
ファイルが多い場合には、このようなチェック作業だけ
でも膨大になる。また、チェックが終了しても、データ
を復旧する処理操作を実行するため復旧作業に要する作
業ファイルを確認し、迅速に処理を実行する必要がある
が、人手による判断に頼る場合には、思わぬ事態に現場
が混乱して判断に手間がかかるなど、急を要するファイ
ルの復旧が円滑に進まなかった。
[0008] When the amount of data is large and the number of work files to be processed is large, the amount of data required for checking alone is enormous. Even after the check is completed, it is necessary to confirm the work file required for the recovery work to execute the processing operation to recover the data and execute the processing promptly. The situation was confusing due to the unexpected situation, and it took time to make a decision.

【0009】[0009]

【発明が解決しようとする課題】この発明は、多数の端
末機を接続した分散システムを用いて、膨大な媒体のデ
ータを対象とした入力、編集、更新等の加工処理作業を
並列処理し、統合テープを作成する場合に、システムの
作業ファイル破壊時の復旧に備えてバックアップファイ
ルを作成する方法と、万一破壊が生じた際には、リカバ
リプロセスとバックアップファイルを用いて、迅速に作
業ファイルを破壊発生前の状態に戻し、短時間で復旧処
理を可能にするリカバリ方法を提供することを目的とす
る。
SUMMARY OF THE INVENTION The present invention uses a distributed system in which a large number of terminals are connected to perform parallel processing of processing operations such as inputting, editing, and updating for enormous amounts of media data, When creating an integrated tape, a method of creating a backup file in preparation for recovery in the event of a system work file corruption, and in the event of damage, use the recovery process and backup file to quickly create a work file. It is an object of the present invention to provide a recovery method that restores a state before the destruction occurs and enables recovery processing in a short time.

【0010】[0010]

【課題を解決するための手段】上記の課題を解決するた
め、本発明においては、(1)多数のデータを記録した
媒体のデータを対象とし、所定の順序に従って、データ
の編集、更新、コード変換等の加工処理工程を実行する
ために、記録媒体は複数の端末機により並列的に処理さ
れ、複数の加工処理済みデータを統合して一つの記憶媒
体に出力する分散システムにおいて、他の業務プロセス
からのアクセスによる競合を排他処理しながら更新処理
を実行する段階と、ファイル番号、ステータス記録領
域、ファイル抽出日記録領域、出力先MT番号記録領域
を設けた管理テーブルを設けて、毎日の処理ファイルに
ついて所要の情報を管理テーブルに記録する段階と、フ
ァイルバックアップに際して、ステータスを検出して既
にバックアップMTに書き込まれているか否かをチェッ
クし、同一ファイルに付いて最新のデータファイルまた
は更新ファイルを選択的にバックアップファイルに書き
込む段階と、を備えたファイルバックアップ方法、及び
(2)データの編集、更新、コード変換等の加工処理工
程を実行する際に、作業ディスクの破壊等の事故により
記憶媒体のデータが滅失した場合、ファイルリカバリプ
ロセスを起動する段階と、抽出日のバックアップ磁気テ
ープに記録されたシステムファイルを読み込んでリカバ
リ復旧情報ファイルのテーブルを生成する段階と、復旧
すべき日付けを指定して、テーブルの所定領域にリカバ
リ対象ファイルの復旧対象となるファイル名とバックア
ップ磁気テープ番号を書き込む段階と、テーブルに記録
されたバックアップ磁気テープ番号を選択し、情報ヘッ
ダを読み出して、磁気テープ番号を及びファイル名称を
前記復旧対象としてフラグが付与されているファイルバ
ックアップ日付けとバックアップ磁気テープ番号及びフ
ァイル名称と比較する段階と、一致したファイルを読み
出して作業ディスクに書き込む段階と、を備えたリカバ
リ方法、を手段として用いる。
In order to solve the above problems, according to the present invention, (1) data of a medium in which a large number of data are recorded is targeted, and data is edited, updated, and coded in a predetermined order. In order to execute the processing steps such as conversion, the recording medium is processed in parallel by a plurality of terminals, and a plurality of processed data are integrated and output to one storage medium in a distributed system. The process of executing the update process while exchanging the conflict due to the access from the process, and the management table having the file number, the status recording area, the file extraction date recording area, and the output destination MT number recording area are provided, and the daily processing is performed. At the stage of recording required information about the file in the management table and at the time of file backup, the status is detected and the backup MT A file backup method comprising a step of checking whether or not it has been written and selectively writing the latest data file or update file associated with the same file to a backup file, and (2) data editing and updating, When the data on the storage medium is lost due to an accident such as the destruction of the working disk when executing the processing steps such as code conversion, the step of starting the file recovery process and the system recorded on the backup magnetic tape of the extraction date. The steps of reading the file and generating a table of recovery information files, and specifying the date to be recovered and writing the file name of the recovery target file and the backup magnetic tape number in the specified area of the table. , The backup magnetic tape number recorded in the table Read the information header, compare the magnetic tape number and the file name with the file backup date and the backup magnetic tape number and the file name that are flagged as the recovery target, and read the matched file And writing to the work disk by using the recovery method.

【0011】[0011]

【作用】本発明は、上記の方法を採用することによっ
て、日常業務の一環としてシステマチックにバックアッ
プファイル磁気テープを作成する。作業ファイルの破壊
が生じた場合にも、ファイルリカバリプロセスを起動
し、操作管理テーブルの内容を用いて、復旧に必要なバ
ックアップファイルの番号をリカバリ用のテーブルに表
示し、その指示に基づいて、所要磁気テープの内容を作
業ファイルに読み込むことによって、破壊発生前の状態
に戻すための手順を実行することにより、短時間でかつ
効率的に復旧処理を行う。
The present invention employs the above method to systematically create a backup file magnetic tape as part of daily work. Even when the work file is destroyed, the file recovery process is started, the number of the backup file required for recovery is displayed in the recovery table using the contents of the operation management table, and based on the instruction, By reading the contents of the required magnetic tape into the work file and executing the procedure for returning to the state before the occurrence of the destruction, the recovery processing is performed in a short time and efficiently.

【0012】[0012]

【実施例】図1は、本発明の実施例のうち、更新処理プ
ロセスにおける管理テーブルの役割を説明する図であっ
て、11は業務プロセス、12は管理プロセス、13は
データファイル、14は管理テーブルである。ここで、
業務プロセス11は、データの更新処理を実行するもの
とする。この場合には、処理中にデータの変更を生じる
から、他の業務プロセスからのアクセスがあると、競合
を起こし好ましくない。よって、業務プロセス11から
のルートで管理プロセス12に要求して、処理対象デ
ータの排他処理を行なう。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a diagram for explaining the role of a management table in an update processing process in an embodiment of the present invention, in which 11 is a business process, 12 is a management process, 13 is a data file, and 14 is a management. It's a table. here,
The business process 11 is assumed to execute data update processing. In this case, since data is changed during processing, access from other business processes causes contention, which is not preferable. Therefore, the management process 12 is requested by the route from the business process 11 to perform exclusive processing of the processing target data.

【0013】排他処理をしながら、業務プロセス11は
のルートで、処理対象データのファイル13に記録さ
れているファイル2及びファイル3の更新処理を実行す
る。この処理が終了すると、のルートで業務プロセス
11から管理プロセス12に対して、排他処理を終了す
る。業務プロセスからの排他処理終了を受けた管理プロ
セス12は、のルートを介して、管理テーブル14の
ファイルのステータスを変更する。
While performing the exclusive processing, the business process 11 executes the update processing of the files 2 and 3 recorded in the file 13 of the data to be processed by the route of. When this process ends, the exclusive process ends from the business process 11 to the management process 12 by the route of. The management process 12, which has received the completion of the exclusive processing from the business process, changes the status of the file in the management table 14 via the route.

【0014】管理テーブル14が変更される前は、ステ
ータス141はすべてのファイルについてOFFであ
り、ファイルの更新が無い状態を示していた。しかし、
業務プロセス11がファイル番号2及び3を対象として
内容を更新したため、2及び3のステータスのOFF
を、「更新済」を意味するフラグであるONに変更す
る。このフラグと処理日を参照することにより、同一フ
ァイル名のファイルが複数個蓄積されていても、どの時
点でデータが更新されたかという履歴を追跡することが
可能となる。
Before the management table 14 was changed, the status 141 was OFF for all files, indicating that there was no file update. But,
Since the business process 11 has updated the contents for file numbers 2 and 3, the statuses of 2 and 3 are OFF.
Is changed to ON, which is a flag meaning "updated". By referring to this flag and the processing date, even if a plurality of files having the same file name are accumulated, it is possible to trace the history of when the data was updated.

【0015】図2は、本発明のバックアップ方法の原理
を説明する図であって、20は操作管理テーブル、21
はデータファイル群、22は処理プロセス、23はデー
タファイル磁気テープ、24はシステムファイル磁気テ
ープである。データファイル群21は、磁気ディスクの
ような大容量記憶装置211であり、必要とする容量に
応じて多数のファイルから構成される。
FIG. 2 is a diagram for explaining the principle of the backup method of the present invention, in which 20 is an operation management table and 21
Is a data file group, 22 is a processing process, 23 is a data file magnetic tape, and 24 is a system file magnetic tape. The data file group 21 is a mass storage device 211 such as a magnetic disk, and is composed of a large number of files according to the required capacity.

【0016】図示していないが、比較的小容量の記憶媒
体、例えばフレキシブルディスクに格納された個別のデ
ータは、既に別の入力用端末機のプロセスにおいて読み
出され、データファイル群21に転送して格納されてい
ることを前提とする。これらのデータは、その種類に対
応した1まとめのデータを1単位として記憶媒体に格納
されており、データファイルに転送された場合にもそれ
ぞれファイル番号を付与して識別する。
Although not shown, individual data stored in a relatively small-capacity storage medium such as a flexible disk has already been read by another input terminal process and transferred to the data file group 21. It is assumed that it has been stored. These data are stored in the storage medium with one unit of data corresponding to the type as one unit, and even when transferred to a data file, a file number is assigned to each data for identification.

【0017】操作管理テーブル20において、ファイル
番号201の欄が設定され、処理対象のファイルについ
て識別のためのファイル番号が記録される。ファイル番
号に対応して、ファイルの変更状態を表示するステータ
ス202、抽出日203、MT番号204の各記憶領域
が設けられる。
In the operation management table 20, the column of file number 201 is set, and the file number for identifying the file to be processed is recorded. Corresponding to the file number, there are provided storage areas of status 202 for displaying the change status of the file, extraction date 203, and MT number 204.

【0018】図2中ので示すルートにより、操作管理
テーブル20の内容を処理プロセス22に読み込む。バ
ックアップの対象となるファイルを認識するための目印
として、ステータス202にONのステータスフラグが
設定されているファイル番号を抽出し、その番号のデー
タをデータファイル群21の中から検索して、のルー
トにより抽出対象ファイルをプロセス22に読み込む。
The contents of the operation management table 20 are read into the processing process 22 by the route shown by in FIG. As a mark for recognizing the file to be backed up, the file number for which the status flag of ON is set in the status 202 is extracted, the data of that number is searched from the data file group 21, and the route of To read the extraction target file into the process 22.

【0019】次に読み込んだファイルのデータを記録作
成用に処理し、図示していない磁気テープ装置に送り、
図中ののルートを経て、ファイル名と抽出日を記録し
た情報ヘッダと、データを、データファイルMT23に
順次出力して書き込む。このような手順により更新処理
が実行され、データファイル群21に保存されていた所
定のデータは、特定の磁気テープ番号が付与されたデー
タファイルMT23にバックアップデータとして記録さ
れる。
Next, the data of the read file is processed for recording and sent to a magnetic tape device (not shown),
Through the route in the figure, the information header recording the file name and the extraction date and the data are sequentially output to the data file MT23 and written. The update process is executed by such a procedure, and the predetermined data stored in the data file group 21 is recorded as backup data in the data file MT23 to which the specific magnetic tape number is assigned.

【0020】ファイルバックアップが終了し、データフ
ァイルMT23が作成されると、その後更新されたファ
イルを重複して読み出す必要が無くなるし、また重複し
て記録ファイルを作成した場合には、エラーとなるか
ら、のルートで操作管理テーブル20のステータス2
02の欄のステータスフラグをOFFに変更し、MT抽
出日、MT番号を抽出作業を行った日付にセットして、
操作管理テーブル20を更新する。
When the file backup is completed and the data file MT23 is created, it is no longer necessary to read the updated files in duplicate, and if duplicate recording files are created, an error occurs. Status 2 of the operation management table 20 in the route of
Change the status flag in the 02 column to OFF, set the MT extraction date and MT number to the date of the extraction work,
The operation management table 20 is updated.

【0021】次にファイルバックアップ処理が実行さ
れ、操作管理テーブル20の内容が変更されており、ま
た、復旧作業の際には操作管理テーブルの一部の情報を
使用するから、その内容をシステムファイル24に記録
してバックアップする必要がある。このため処理プロセ
スは、のルートにより操作管理テーブル20の内容を
システムファイル24に記録して、システムバックアッ
プ処理を実行する。データファイルMT23とシステム
ファイル24の両者の作成が完了すると、ファイルバッ
クアップ処理のプロセスを終了する。
Next, the file backup processing is executed, the contents of the operation management table 20 have been changed, and since a part of the information of the operation management table is used at the time of restoration work, the contents are stored in the system file. It is necessary to record on 24 and make a backup. Therefore, the processing process records the contents of the operation management table 20 in the system file 24 by the route of and executes the system backup processing. When the creation of both the data file MT23 and the system file 24 is completed, the file backup process ends.

【0022】図3は、本発明におけるファイルの作成、
更新処理と、本発明によるファイルバックアップ方法に
より作成したバックアップファイルMTの関係を説明す
る図である。図3において、符号31は作業日付の欄で
あって、処理作業を実行した月/日を例示している。こ
の例では、9月1日に、符号32で示すように作業ファ
イルに、ファイルF1及びファイルF2のファイル名で
作成し格納ている。
FIG. 3 shows the creation of a file in the present invention.
It is a figure explaining the relationship of the update process and the backup file MT created by the file backup method by this invention. In FIG. 3, reference numeral 31 is a work date column, and illustrates the month / day when the processing work was executed. In this example, on September 1, the work files are created and stored with the file names of the files F1 and F2 as indicated by reference numeral 32.

【0023】この日の加工処理作業終了後に、これらの
データファイルの内容であるF1及びF2の作成データ
を、図中の破線で示すように、符号33で示す磁気テー
プに書き込んでMT−01という番号のバックアップテ
ープを作成する。これは、前述の図1及び図2において
説明したバックアップテープとしてのデータファイルM
T23に相当する。この場合、抽出日は、作業日付の9
月1日となる。同様に9月2日には、F3のファイルを
作成し、F3の内容を磁気テープMT−02に書き込ん
でバックアップテープを作成する。
After the processing operation on this day is completed, the created data of F1 and F2, which are the contents of these data files, are written on the magnetic tape indicated by reference numeral 33, as indicated by the broken line in the figure, and called MT-01. Make a backup tape of number. This is the data file M as the backup tape described in FIG. 1 and FIG.
Corresponds to T23. In this case, the extraction date is 9 of the work date.
It will be the 1st of the month. Similarly, on September 2, a file of F3 is created and the contents of F3 are written on the magnetic tape MT-02 to create a backup tape.

【0024】9月3日には、ファイルF1の更新作業を
実行して、その内容を磁気テープMT−03に書き込み
バックアップテープを作成している。ここで注意すべき
点としては、磁気テープMT−01と磁気テープMT−
03には、ともにファイル名F1のファイルが記録され
ていることである。しかし、MT−01とMT−03に
は、同一ファイル名F1のファイルが記録されていて
も、その内容としては、MT−03のF1は更新作業が
行なわれデータが変更されているから、MT−01の内
容のF1とは異なっている。これを識別するために、磁
気テープの番号とともに作業日(抽出日)のデータが重
要なキーとなる。
On September 3, the update work of the file F1 is executed and the contents are written to the magnetic tape MT-03 to create a backup tape. Here, note that the magnetic tape MT-01 and the magnetic tape MT-
In 03, the file with the file name F1 is recorded. However, even if a file with the same file name F1 is recorded in MT-01 and MT-03, the content of F1 of MT-03 has been updated and the data has been changed. It is different from F1 of the contents of -01. In order to identify this, the data of the work date (extraction date) together with the magnetic tape number are important keys.

【0025】図3の例において、9月4日のファイルF
2の更新データに対する磁気テープMT−04のデータ
F2と、MT−01のF2との関係、9月5日のファイ
ルF3の更新データに対する磁気テープMT−05のデ
ータF3と、MT−02のF3との関係も同様であっ
て、同一ファイル名F2あるいはF3を持つが内容は異
なっている。このため、既に説明したように、操作管理
テーブルを用いて、更新等に関するデータを記録して管
理するとともに、磁気テープの情報ヘッダにこのデータ
を書き込んで識別のために使用する。
In the example of FIG. 3, file F on September 4th
The relationship between the data F2 of the magnetic tape MT-04 for the update data of No. 2 and the F2 of MT-01, the data F3 of the magnetic tape MT-05 for the update data of the file F3 on September 5, and the F3 of MT-02. Has the same relationship, and has the same file name F2 or F3, but the contents are different. Therefore, as described above, the operation management table is used to record and manage the data regarding the update and the like, and the data is written in the information header of the magnetic tape and used for identification.

【0026】9月5日付けのシステムファイルの内容を
参照すると、図3のファイルの作成及び更新状態から、
9/1作成のF1は9/3に更新されてMT−03に、
F2は9/4に更新されてMT−04に、またF3は9
/5に更新されてMT−05に、それぞれ記録されてお
り、結果的にF1からF4のファイルはMT−03、
4、及び5の磁気テープに記録されていることがわか
る。このように、同一ファイル名が存在する場合、更新
されているものは前のファイルを無視して、採用すべき
有効なファイルを認識してテーブルを作成できる。
Referring to the contents of the system file dated September 5, from the file creation and update status of FIG. 3,
F1 created on 9/1 has been updated to 9/3 to MT-03,
F2 updated to 9/4 to MT-04, F3 to 9
It is updated to / 5 and recorded on MT-05 respectively, and as a result, files F1 to F4 are MT-03,
It can be seen that the data is recorded on the magnetic tapes 4 and 5. Thus, when the same file name exists, the updated file can ignore the previous file, recognize the valid file to be adopted, and create the table.

【0027】次に、本発明の第2の機能であるファイル
リカバリ方法について説明する。ある作業日において、
業務の進行途中でファイルに破壊等の障害が発生し、復
旧することが必要になった場合には、その日の朝から故
障発生までの間に実行された作業による処理は回復でき
ないが、バックアップテープを用い本発明の手順に従っ
て、正常に作業が行われたファイルの最後の状態、すな
わち、その日の朝の業務開始時点の状態にファイルを復
元することができる。ファイルリカバリ方法自体は、従
来も種々の手法が提供されているが、データの更新が随
時頻繁に実行される場合には、多数のバックアップファ
イルが作成されることとなり、これらを対象として復旧
する場合には、非常に煩雑な処理手順を要する。
Next, a file recovery method which is the second function of the present invention will be described. On one working day,
If a file breaks down in the middle of a job and it becomes necessary to recover it, the work done between the morning of the day and the failure cannot be recovered, but the backup tape According to the procedure of the present invention, the file can be restored to the last state of the file on which the work has been normally performed, that is, the state at the start of work on the morning of the day. Various file recovery methods have been provided in the past, but if data is updated frequently and frequently, a large number of backup files will be created. Requires a very complicated processing procedure.

【0028】本発明においては、データMT上に記録さ
れている情報ヘッダの抽出日、ファイル名及びMT名称
と、リカバリプロセスにより生成したリカバリテーブル
上の日付け及びMT名称とを比較して、一致したときの
み復旧作業を実行する。例えば、ファイル名F1の復旧
を行う時、データMTはMT−01とMT−03の2本
が存在することとなる。MT−01からのデータ読み込
みを行った時、リカバリテーブル上の抽出日及びMT名
称と一致しないため、復旧対象とはならない。以上のチ
ェックを行うことで、データファイルの誤復旧を避けて
いる。
In the present invention, the extraction date, the file name and the MT name of the information header recorded on the data MT are compared with the date and the MT name on the recovery table generated by the recovery process so that they match. Perform recovery work only when you do so. For example, when the file name F1 is restored, there are two data MTs MT-01 and MT-03. When the data is read from MT-01, it does not match the extraction date and MT name on the recovery table, so it is not a recovery target. By performing the above checks, erroneous recovery of data files is avoided.

【0029】図4は、本発明のファイルリカバリ方法を
説明する概念図である。第1段階として、リカバリプロ
セス41を起動し、前述のバックアップの工程のうち、
図2のプロセスで作成されたシステムファイルMT24
の内容を、のようにシステムに読み込み、管理テーブ
ルに記録されていたファイル名、抽出日、磁気テープ番
号等のリカバリに必要となる情報をプロセスの作業ファ
イル42に書き込む。
FIG. 4 is a conceptual diagram for explaining the file recovery method of the present invention. As the first step, the recovery process 41 is started, and among the backup steps described above,
System file MT24 created by the process of FIG.
Is read into the system as in, and information necessary for recovery such as the file name, extraction date, and magnetic tape number recorded in the management table is written in the work file 42 of the process.

【0030】第2段階として、抽出日、すなわち復旧し
たい日を指定して、のルートで示すように、システム
ファイルMTから読み出した操作管理テーブルを検索
し、指定した復旧したい日の日付けが設定されているシ
ステムファイルを読み出し、リカバリ復旧情報ファイル
43を作成する。ここで、抽出日の指定は、作業が連日
継続して実施されている場合には、通常は前の日である
が、前の日が休日または作業を実施しなかった日である
場合には、最新の正常ファイルを作成した日となる。
In the second step, the extraction date, that is, the date to be restored is designated, and the operation management table read from the system file MT is searched as shown by the route of, and the date of the designated restoration date is set. The system file that has been read is read and the recovery information file 43 is created. Here, the specified extraction date is usually the previous day when the work is continuously performed every day, but when the previous day is a holiday or a day when the work is not performed, , The date when the latest normal file was created.

【0031】次に第3段階としてリカバリプロセス41
は、のルートで示すように、リカバリ復旧情報ファイ
ル43を参照し、抽出日と同一日付けのデータファイル
MT23を読み込む。このMTの内容の形式は、図4の
中に例示したように、情報ヘッダとして、ファイル名と
抽出日が記録され、この情報ヘッダとデータが対になっ
て書き込まれている。のルートで情報ヘッダの内容を
読み出し、44の符号で示す比較プロセスにおいて、リ
カバリ復旧情報ファイル43の内容と比較して両者が一
致した時に、その情報ヘッダに属するファイルを、の
ルートでデータファイル群21の特定のディレクトリの
下に書き込む。
Next, as a third stage, the recovery process 41
As shown by the route of, the recovery recovery information file 43 is referenced and the data file MT23 having the same date as the extraction date is read. As shown in FIG. 4, the format of the contents of this MT is such that a file name and an extraction date are recorded as an information header, and this information header and data are written in pairs. The contents of the information header are read at the root of, and in the comparison process indicated by the reference numeral 44, when the contents are compared with the contents of the recovery recovery information file 43, the files belonging to the information header are Write under 21 specific directories.

【0032】第4段階では、データの書き込みが終了す
ると、のルートで示すように、リカバリ復旧情報ファ
イル43に設けた復旧フラグの領域に、復旧済みを示す
ONのフラグを書き込む。復旧フラグの領域に空欄があ
れば、復旧を要するファイル名が残っていることを意味
するから、その上に記録されているファイル名からデー
タファイルMT23の磁気テープ番号を参照し、指定さ
れたMTを、前記と同様の手順で読み込んで処理す
る。このようにして、図4の復旧フラグの欄に矢印で示
したように、抽出日から順次遡って、作業が反復進行
し、図4の復旧フラグの領域が全てONになった時、復
旧処理が完了する。
In the fourth stage, when the writing of data is completed, as shown by the route of, the ON flag indicating that the restoration is completed is written in the area of the restoration flag provided in the recovery restoration information file 43. If there is a blank in the area of the recovery flag, it means that there is a file name that needs to be recovered. Therefore, referring to the magnetic tape number of the data file MT23 from the file name recorded there, the specified MT Are read and processed in the same procedure as described above. In this way, as indicated by the arrow in the column of the recovery flag in FIG. 4, when the work is repeated and the areas of the recovery flag in FIG. Is completed.

【0033】[0033]

【発明の効果】この発明は、膨大な加工処理作業を並列
処理して統合する情報処理システムにおいて、日常業務
の一環としてシステマチックにバックアップファイル磁
気テープを作成することが可能となる。また、作業ファ
イルの破壊が生じた場合にも、ファイルリカバリプロセ
スを起動し、システムファイルMTから生成したリカバ
リ復旧情報ファイルに従って、バックアップMTを順次
読み込み、破壊を生じる以前の状態にファイルを戻すた
めの手順を実行するから、短時間でかつ効率的に復旧処
理を行うことが可能となる。
INDUSTRIAL APPLICABILITY The present invention makes it possible to systematically create a backup file magnetic tape as part of daily work in an information processing system in which a vast amount of processing work is integrated by parallel processing. Further, even when the working file is destroyed, the file recovery process is started, the backup MT is sequentially read according to the recovery recovery information file generated from the system file MT, and the file is returned to the state before the destruction. Since the procedure is executed, it is possible to perform recovery processing efficiently in a short time.

【図面の簡単な説明】[Brief description of drawings]

【図1】更新処理プロセスにおける管理テーブルの役割
を説明する図である。
FIG. 1 is a diagram illustrating a role of a management table in an update processing process.

【図2】本発明のバックアップ方法の原理を説明する図
である。
FIG. 2 is a diagram illustrating the principle of the backup method of the present invention.

【図3】本発明のファイルバックアップ方法によるファ
イルの作成、更新処理とバックアップファイルの関係を
説明する図である。
FIG. 3 is a diagram illustrating a relationship between a file creation / update process and a backup file according to the file backup method of the present invention.

【図4】本発明のファイルリカバリ方法を説明する概念
図である。
FIG. 4 is a conceptual diagram illustrating a file recovery method of the present invention.

【符号の説明】[Explanation of symbols]

13 データファイル 31 作業日付の欄 32 ファイル 33 磁気テープ 41 リカバリプロセス 42 作業ファイル 13 data file 31 work date column 32 file 33 magnetic tape 41 recovery process 42 work file

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 多数のデータを記録した媒体のデータを
対象とし、所定の順序に従って、データの編集、更新、
コード変換等の加工処理工程を実行するために、記録媒
体は複数の端末機により並列的に処理され、複数の加工
処理済みデータを統合して一つの記憶媒体に出力する分
散システムにおいて、他の業務プロセスからのアクセス
による競合を排他処理しながら更新処理を実行する段階
と、ファイル番号、ステータス記録領域、ファイル抽出
日記録領域、出力先MT番号記録領域を設けた管理テー
ブルを設けて、毎日の処理ファイルについて所要の情報
を管理テーブルに記録する段階と、ファイルバックアッ
プに際して、ステータスを検出して既にバックアップM
Tに書き込まれているか否かをチェックし、同一ファイ
ルに付いて最新のデータファイルまたは更新ファイルを
選択的にバックアップファイルに書き込む段階と、を備
えたファイルバックアップ方法。
1. Data of a medium in which a large number of data is recorded is targeted, and data is edited, updated, and recorded in a predetermined order.
In order to execute a processing step such as code conversion, a recording medium is processed in parallel by a plurality of terminals, and a plurality of processed data are integrated and output to one storage medium in a distributed system. By providing a management table that includes a stage for executing update processing while exclusive processing of conflict due to access from a business process and a file number, a status recording area, a file extraction date recording area, and an output destination MT number recording area, At the stage of recording necessary information about the processing file in the management table and at the time of file backup, the status is detected and the backup M is already executed.
A file backup method comprising a step of checking whether data is written in T and selectively writing the latest data file or update file of the same file to a backup file.
【請求項2】 多数のデータを記録した媒体のデータを
対象とし、所定の順序に従って、データの編集、更新、
コード変換等の加工処理工程を実行するために、記録媒
体は複数の端末機により並列的に処理され、複数の加工
処理済みデータを統合して一つの記憶媒体に出力する分
散システムにおいて、データの編集、更新、コード変換
等の加工処理工程を実行する際に、作業ディスクの破壊
等の事故により記憶媒体のデータが滅失した場合、ファ
イルリカバリプロセスを起動する段階と、抽出日のバッ
クアップ磁気テープに記録されたシステムファイルを読
み込んでリカバリ復旧情報ファイルのテーブルを生成す
る段階と、復旧すべき日付けを指定して、テーブルの所
定領域にリカバリ対象ファイルの復旧対象となるファイ
ル名とバックアップ磁気テープ番号を書き込む段階と、
テーブルに記録されたバックアップ磁気テープ番号を選
択し、情報ヘッダを読み出して、磁気テープ番号を及び
ファイル名称を前記復旧対象としてフラグが付与されて
いるファイルバックアップ日付けとバックアップ磁気テ
ープ番号及びファイル名称と比較する段階と、一致した
ファイルを読み出して作業ディスクに書き込む段階と、
を備えたリカバリ方法。
2. The data of a medium in which a large number of data are recorded is targeted, and the data is edited, updated, according to a predetermined order.
In order to execute the processing steps such as code conversion, the recording medium is processed in parallel by a plurality of terminals, and in a distributed system in which a plurality of processed data are integrated and output to one storage medium, When the data on the storage medium is lost due to an accident such as the destruction of the working disk when executing the processing steps such as editing, updating, and code conversion, the file recovery process is started and the backup magnetic tape on the extraction date is written. The stage of generating the table of recovery information file by reading the recorded system file and the date to be recovered are specified. And the stage of writing
The backup magnetic tape number recorded in the table is selected, the information header is read, and the magnetic tape number and the file name are flagged with the recovery target as the backup date and the backup magnetic tape number and the file name. A step of comparing, a step of reading out the matched file and writing it to a working disk,
Recovery method with.
JP5222301A 1993-08-16 1993-08-16 Method for backing up and recovering file in distributed system Pending JPH0756791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5222301A JPH0756791A (en) 1993-08-16 1993-08-16 Method for backing up and recovering file in distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5222301A JPH0756791A (en) 1993-08-16 1993-08-16 Method for backing up and recovering file in distributed system

Publications (1)

Publication Number Publication Date
JPH0756791A true JPH0756791A (en) 1995-03-03

Family

ID=16780220

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5222301A Pending JPH0756791A (en) 1993-08-16 1993-08-16 Method for backing up and recovering file in distributed system

Country Status (1)

Country Link
JP (1) JPH0756791A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002116937A (en) * 2000-10-06 2002-04-19 Toshiba Corp Newspaper production system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002116937A (en) * 2000-10-06 2002-04-19 Toshiba Corp Newspaper production system

Similar Documents

Publication Publication Date Title
US6073128A (en) Method and apparatus for identifying files used to restore a file
AU700681B2 (en) A method of operating a computer system
US20040139127A1 (en) Backup system and method of generating a checkpoint for a database
US7739464B1 (en) Consistent backups of data using a roll-back log
US7620785B1 (en) Using roll-forward and roll-backward logs to restore a data volume
JPH11134235A (en) Method for supporting recovery from fault of external storage device
JP4477531B2 (en) Data import method and data import apparatus
JPH0430218A (en) Difference installing system
JPH0756791A (en) Method for backing up and recovering file in distributed system
JP3220182B2 (en) File copying machine
JP2000353118A (en) Data backup/restoration method
JP2679602B2 (en) Evacuation medium creation system
JPS5856142B2 (en) Online recovery control method
JP2822869B2 (en) Library file management device
JPS63305439A (en) Compressive storing method for similar data file and its restoring method
JP2806342B2 (en) Database failure recovery method and device
JPH05173864A (en) File recovery system
JPH0581103A (en) System for restoring duplexing film
JPH02257229A (en) File recovery system for computer system
CN112306751A (en) Control method and control device for Redis queue disaster tolerance
JPH01140353A (en) System for maintaining data in data base
JPS63318646A (en) File artificial updating system in on-line system
KR20010047567A (en) Method for processing message using database form
JP2004171529A (en) Data backup system and data backup method
JPH02211557A (en) Data base saving system