JPH03103943A - Save and restoration system - Google Patents

Save and restoration system

Info

Publication number
JPH03103943A
JPH03103943A JP1240854A JP24085489A JPH03103943A JP H03103943 A JPH03103943 A JP H03103943A JP 1240854 A JP1240854 A JP 1240854A JP 24085489 A JP24085489 A JP 24085489A JP H03103943 A JPH03103943 A JP H03103943A
Authority
JP
Japan
Prior art keywords
page
file
page number
storage device
auxiliary storage
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
JP1240854A
Other languages
Japanese (ja)
Inventor
Kazunori Nakabayashi
中林 和典
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 JP1240854A priority Critical patent/JPH03103943A/en
Publication of JPH03103943A publication Critical patent/JPH03103943A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the increase of a save file capacity and the extension of the save processing time by performing the save processing with a page as the unit based on a journal file to prevent the increase of overhead for running of an application program. CONSTITUTION:A page number gathering means 2 reads in journal file 1 and gathers page numbers of pages, whose contents are updated, in the file on an auxiliary storage device 9 one by one based on contents of the file 1. A save processing means 8 reads in page images of pages corresponding to page numbers gathered by the page number gathering means 2 from the file on an auxiliary storage device 8 and saves read-in page images and page numbers in an increment file 6. Thus, the save processing for the same page is performed only once though the update processing of the same page is performed plural times, and the capacity of the save file is reduced and the restoration processing time is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は補助記憶装置上のファイルの退避復元を行なう
退避復元方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an evacuation and restoration method for evacuation and restoration of files on an auxiliary storage device.

〔従来の技術〕[Conventional technology]

補助記憶装置上のファイルを別媒体に保存しておき、フ
ァイル障害等によりファイルを復元することが必要にな
った場合、別媒体に保存しておいたファイルを利用して
補助記jl装置上のファイルを復元するということは従
来より行なわれており、従来のこの種の退避復元方弐と
しては次の4つのものがある。
If a file on the auxiliary storage device is saved on another medium and it becomes necessary to restore the file due to a file failure, etc., the file saved on the other medium can be used to restore the file on the auxiliary storage device. Restoring files has been practiced for a long time, and there are the following four conventional methods for saving and restoring files.

第1の従来方式は定期的に、または必要に応して補助記
憶装置上の全データファイルを別媒体に退避させておき
、ファイルの復元を行なうことが必要になった場合は別
媒体に退避させておいた全データファイルを補助記憶装
置に出力することによりファイルの復元を行なう。
The first conventional method is to periodically or as needed save all data files on the auxiliary storage device to another medium, and when it becomes necessary to restore the files, save them to another medium. The files are restored by outputting all the data files that have been saved to the auxiliary storage device.

第2の従来方式は補助記憶装置上の全データファイルを
1回別媒体に退避させた後は、ファイルの更新内容を蓄
積しているジャーナルファイルのみを退避させるように
し、ファイルの復元を行なうことが必要になった場合は
、レコード単位,ページ単位或いはファイル単位でファ
イルの復元を行なう。レコード単位の復元は別媒体に退
避させておいた全データファイルを補助記憶装置に出力
した後、ジャーナルファイルから更新レコードを読み込
み、読み込んだ更新レコードを補助記憶装置へ出力する
ことにより行なう。ページ単位或いはファイル単位の復
元は別媒体に退避させておいた全データファイルを補助
記憶装置に出力した後、全データファイルとジャーナル
ファイルとに基づいて更新されたページの更新後のペー
ジイメーシ或いは更新されたファイルの更新後のファイ
ルイメージを作威し、作威した更新後のページイメージ
或いはファイルイメージを補助記憶装置へ出力すること
により行なう。
The second conventional method is to save all data files on the auxiliary storage device to another medium once, then save only the journal file that stores updated file contents, and then restore the files. If it becomes necessary, the file is restored on a record-by-record, page-by-page, or file-by-file basis. Restoration in units of records is performed by outputting all data files saved in separate media to the auxiliary storage device, reading update records from the journal file, and outputting the read update records to the auxiliary storage device. Page-by-page or file-by-file restoration is performed by outputting all data files that have been evacuated to another medium to the auxiliary storage device, and then performing page image or update after updating pages that have been updated based on all data files and journal files. This is done by creating an updated file image of the updated file and outputting the updated page image or file image to the auxiliary storage device.

第3の従来方式は補助記憶装置上の全データファイルを
1回別媒・体に退避させた後は、更新されたファイルを
ファイル単位で別媒体に退避させ、ファイルの復元が必
要になった場合は、別媒体に退避させておいた全データ
ファイルを補助記憶装置に出力した後、退避させておい
た更新後のファイルイメージを補助記憶装置に出力する
ことによりファイルの復元を行なう。
The third conventional method is to save all data files on the auxiliary storage device once to another medium/body, then save the updated files file by file to another medium, and then restore the files. In this case, the file is restored by outputting all the data files saved in a separate medium to the auxiliary storage device, and then outputting the saved updated file image to the auxiliary storage device.

第4の従来方式は補助記憶装置上の全データファイルを
1回別媒体に退避させた後は、データファイルが更新さ
れる毎に更新ページ情報を収集し、定期的または必要に
応じて収集しておいた更新ページ情報に基づいて更新さ
れたページのみをページ単位で別媒体に退避させ、ファ
イルの復元が必要になった場合は、別媒体に退避させて
おいた全データファイルを補助記憶装置に出力した後、
退避させておいた更新後のページイメージを補助記憶装
置に出力することによりファイルの復元を行なう。
The fourth conventional method is to save all data files on the auxiliary storage device once to another medium, and then collect updated page information each time the data file is updated, periodically or as needed. Only pages that have been updated based on updated page information that has been saved are saved page by page to a separate medium, and if files need to be restored, all data files saved to the separate medium are saved to the auxiliary storage device. After outputting to
The file is restored by outputting the saved updated page image to the auxiliary storage device.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した各従来方式には以下のような欠点がある。 Each of the conventional methods described above has the following drawbacks.

第1の従来方式は定期的に、または必要に応じて全デー
タファイルを別媒体に退避させるため、退避ファイルの
容量及び退避処理時間が膨大になるという欠点がある。
In the first conventional method, all data files are saved to a separate medium periodically or as needed, which has the disadvantage that the capacity of the save file and the save processing time become enormous.

第2の従来方式は全データファイルを1回退避させた後
は、ジャーナルファイルのみを退避させるので、退避フ
ァイルの容量及び退避処理時間を第1の従来方式に比較
して少ないものとすることはできるが、レコード単位で
復元する時は更新レコードの件数と同じ回数の復元処理
を行なうことが必要になり、ページ或いはファイル単位
で復元する時は退避させておいた全データファイルとジ
ャーナルファイルとから更新されたページの更新後のペ
ージイメージ或いは更新されたファイルのファイルイメ
ージを作威する処理が必要になり、復元処理時間が長く
なるという欠点がある。
The second conventional method saves only the journal file after all data files have been saved once, so the capacity of the save file and the save processing time can be reduced compared to the first conventional method. However, when restoring in units of records, it is necessary to perform the restoration process the same number of times as the number of updated records, and when restoring in units of pages or files, it is necessary to restore from all data files and journal files that have been evacuated. This method requires processing to create an updated page image of an updated page or a file image of an updated file, which has the drawback of lengthening the restoration processing time.

第3の従来方式は更新されたファイルをファイル単位で
退避させるので、更新されていないページも退避される
こととなり、退避ファイルの容量が無駄に大きくなると
いう問題がある。
In the third conventional method, updated files are saved in file units, so pages that have not been updated are also saved, resulting in a problem that the capacity of the saved file becomes unnecessarily large.

第4の従来方式は更新されたページをページ単位で退避
させるので、第3の従来方式に比較して退避ファイルの
容量を小さくすることはできるが、更新ページ情報の収
集処理はデータファイルが更新される毎に行なわれるの
で、業務プログラムの走行時のオーバヘソドが大きくな
るという欠点がある。
The fourth conventional method saves updated pages page by page, so the size of the save file can be smaller compared to the third conventional method, but the process of collecting updated page information is based on data files that are updated. Since the process is executed every time the program is executed, there is a drawback that the overhead during the running of the business program becomes large.

本発明の目的は業務プログラムの走行時のオーバヘッド
を大きくすることなく、退避ファイルの容量を少なくで
きるようにすると共に、復元処理時間を短縮化できるよ
うにすることにある。
SUMMARY OF THE INVENTION An object of the present invention is to reduce the capacity of a save file and shorten the restoration processing time without increasing the overhead when running a business program.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は上記目的を達威するため、 ファイルが格納された補助記憶装置と、該補助記憶装置
に格納されているファイルが全退避ファイルとして退避
させられる記憶媒体と、該記憶媒体に前記ファイルを退
避させた後の前記ファイルに対する更新内容が順次蓄積
されるジャーナルファイルとを備えたシステムに於いて
、前記記憶媒体に増分ファイルを設けると共に、前記ジ
ャーナルファイルを読み込み、その内容に基づいて前記
補助記憶装置上のファイル中の更新のあったページのペ
ージ番号を更新のあった各ページについて1つずつ収集
するページ番号収集手段と、 該ページ番号収集手段が収集したページ番号に対応する
ページのページイメージを前記補助記憶装置上のファイ
ルから読み込み、読み込んだページイメージとそのペー
ジ番号とを対応させて前記増分ファイルに退避させる退
避処理手段と、前記全退避ファイルを前記補助記憶装置
上に復元した後、前記増分ファイルを終端から始端に向
かって逆読みし、未処理のページ番号を読み込んだ場合
のみ、そのページ番号と対応して前記増分ファイルに退
避させられているページイメージを前記補助記憶装置上
に復元する復元処理手段とを設けたものである。
In order to achieve the above object, the present invention provides an auxiliary storage device in which files are stored, a storage medium from which all files stored in the auxiliary storage device are saved as save files, and a storage medium in which the files are saved in the storage medium. In a system equipped with a journal file in which updated contents of the file are sequentially accumulated after being evacuated, an incremental file is provided in the storage medium, and the journal file is read and the auxiliary storage is updated based on the contents. A page number collection means for collecting page numbers of updated pages in a file on the device, one for each updated page, and a page image of the page corresponding to the page number collected by the page number collection means. a saving processing means that reads the page image from a file on the auxiliary storage device, associates the read page image with its page number, and saves it to the incremental file, and after restoring all the saved files onto the auxiliary storage device, The incremental file is read backwards from the end to the beginning, and only when an unprocessed page number is read, the page image saved in the incremental file corresponding to that page number is stored on the auxiliary storage device. A restoration processing means for restoration is provided.

〔作 用〕[For production]

ページ番号収集手段はジャーナルファイルを読み込み、
その内容に基づいて補助記憶装置上のファイル中の更新
のあったページのページ番号を更新のあった各ページに
ついて1つずつ収集する。
The page number collection means reads the journal file,
Based on the contents, the page numbers of the updated pages in the file on the auxiliary storage device are collected one by one for each updated page.

退避処理手段はページ番号収集手段が収集したページ番
号に対応ずるページのページイメージを補助記憶装置」
二のファイルから読み込み、読み込んだページイメージ
とそのページ番号とを増分ファイルに退避させる。従っ
て、同一ページに対する更新処理が複数回行なわれても
、同一ページに対する退避処理は1回しか行なわれない
ことになり、ファイル容量の増加,退避処理時間の増加
を防ぐことが可能となる。復元処理手段は全退避ファイ
ルを補助記憶装置上に復元した後、増分ファイルを終端
から始端に向かって逆読みし、未処理のペ一ジ番号を読
み込んだ場合のみ、そのページ番号対応の増分ファイル
に退避されているページイメージを補助記憶装置上に復
元する。ここで、復元処理手段は増分ファイルを逆読み
するものであるので、ページ番号収集手段及び退避処理
手段による退避処理が複数回行なわれ、増分ファイル6
こ同一ページのページ番号及びページイメージが複数存
在する場合、未処理のページ番号と対応して別媒体に退
避させられているページイメージはそのページの最新更
新イメージを示すことになる。従って、未処理のページ
番号を読み込んだ時のみ復元処理を行なうだけで、即ち
、同一ページに対しては■回の復元処理を行なうだけで
補助記憶装置上の該当するページを最新更新イメージに
復元することができる。
The saving processing means saves the page image of the page corresponding to the page number collected by the page number collecting means into the auxiliary storage.
Read from the second file and save the read page image and its page number to an incremental file. Therefore, even if the update process for the same page is performed multiple times, the save process for the same page is only performed once, making it possible to prevent increases in file capacity and save process time. After restoring all saved files to the auxiliary storage device, the restoration processing means reads the incremental files backwards from the end to the beginning, and only when an unprocessed page number is read, the incremental file corresponding to that page number is restored. Restore the page image saved on the auxiliary storage device. Here, since the restoration processing means reversely reads the incremental file, the evacuation processing by the page number collection means and the evacuation processing means is performed multiple times, and the incremental file 6
If there are a plurality of page numbers and page images of the same page, the page image saved in another medium corresponding to the unprocessed page number indicates the latest updated image of that page. Therefore, by performing the restoration process only when an unprocessed page number is read, that is, by performing the restoration process ■ times for the same page, the corresponding page on the auxiliary storage device is restored to the latest updated image. can do.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して詳細に説明
する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の実施例のブロソク図であり、ジャーナ
ルファイル1と、ページ番号収集手段2と、退避処理手
段3と、復元処理手段4と、人出力処理千段5と、増分
ファイル6及び全退避ファイル7が格納された退避媒体
8と、補助記憶装置9とから構威されている。尚、同図
に於いて実線の矢印は退避処理時のデータの流れを、破
線の矢印は復元処理時のデータの流れを示している。
FIG. 1 is a block diagram of an embodiment of the present invention, including a journal file 1, page number collection means 2, save processing means 3, restoration processing means 4, human output processing 5, and incremental file 6. , an evacuation medium 8 in which all evacuation files 7 are stored, and an auxiliary storage device 9. In this figure, solid line arrows indicate the flow of data during the save process, and broken line arrows indicate the flow of data during the restore process.

ページ番号収集手段2はジャーナルファイル1から更新
レコードを読み込み、その内容に基づいて得た更新され
たページのページ番号を退避処理千段3に加える機能を
有する。退避処理千段3はページ番号収集千段2から渡
されたページ番号を入出力処理千段5に渡して補助記憶
装置9から該当ページのページイメージを読み込み、読
み込んだページイメージ及びそのページ番号を1ページ
分の情報として増分ファイル6に書き込む機能を有する
。復元処理千段4は全退避ファイル7を読み込み、人出
力処理千段5を用いて補助記憶装置9に出力する処理を
行なうと共に、増分ファイル6をその終端から始端に向
かって逆読みし、読み込んだページ番号が未処理のペー
ジ番号である場合、そのページ番号と対応して増分ファ
イル6に書き込まれているページイメージを人出力処理
手段5を用いて補助記憶装置9に出力する機能を有する
The page number collecting means 2 has a function of reading an update record from the journal file 1 and adding the page number of the updated page obtained based on the contents to the save processing stage 3. The save processing 1000-stage 3 passes the page number passed from the page number collection 1000-stage 2 to the input/output processing 1000-stage 5, reads the page image of the corresponding page from the auxiliary storage device 9, and saves the read page image and its page number. It has a function of writing one page of information to the incremental file 6. The restoration process 1,000 steps 4 reads the entire saved file 7 and outputs it to the auxiliary storage device 9 using the human output process 5, and reads the incremental file 6 backwards from the end to the beginning. If the page number is an unprocessed page number, it has a function of outputting the page image written in the incremental file 6 corresponding to that page number to the auxiliary storage device 9 using the human output processing means 5.

第2図はページ番号収集千段2の処理例を示す流れ図、
第3図は退避処理手段3の処理例を示す流れ図、第4図
は復元処理手段4の処理例を示す流れ図であり、以下各
図を参照して本実施例の動作を説明する。
FIG. 2 is a flowchart showing an example of processing for page number collection 1000 stages 2,
FIG. 3 is a flowchart showing an example of processing by the save processing means 3, and FIG. 4 is a flowchart showing an example of processing by the restoration processing means 4. The operation of this embodiment will be described below with reference to each figure.

先ず、第1図,第2図及び第3図を参照して退避処理に
ついて説明する。
First, the saving process will be explained with reference to FIGS. 1, 2, and 3.

第2図に於いてページ番号収集手段2は処理ステップ2
1でジャーナルファイル1から更新レコードを1件読み
込む。処理ステップ22ではジャーナルファイル1のフ
ァイルENDになったか否かを判断し、ファイルEND
になったと判断した場合は後述の処理ステソプ26を実
行し、ファイルENDでないと判断した場合は処理ステ
ップ23を実行する。処理ステソプ23では処理ステッ
プ2lでジャーナルファイル1から読み込んだ更11 新レコードを基に、当該更新レコードを含むページのペ
ージ番号を検索する。ここで、当該更新レコードの更新
イメージ内にはページ番号を示す情報が含まれているの
で、ページ番号の検索は当該情報を取り出すことにより
実現できる。
In FIG. 2, the page number collecting means 2 performs processing step 2.
1 reads one update record from journal file 1. In processing step 22, it is determined whether the file END of journal file 1 has been reached, and the file END is determined.
If it is determined that the file has reached END, processing step 26, which will be described later, is executed, and if it is determined that the file is not END, processing step 23 is executed. In the processing step 23, based on the update 11 new record read from the journal file 1 in the processing step 2l, the page number of the page containing the updated record is searched. Here, since information indicating the page number is included in the update image of the update record, the page number search can be realized by extracting the information.

次の処理ステップ24では処理ステップ23で検索した
ページ番号がページ番号収集手段2の内部に設けられて
いる退避ページ番号テーブル(図示せず)に登録されて
いるか否かをチェックし、登録されていれば再び処理ス
テップ21を実行し、登録されていなければ処理ステソ
プ25を実行した後、再び処理ステソプ21を実行する
。ここで、退避ページ番号テーブルはページ番号を昇順
に並べて格納しておくためのテーブルであり、ジャーナ
ルファイル1に同一ページに対する更新レコードがn個
存在している場合に於いても、上記同一ページの増分フ
ァイル6への退避を1回にするために使用される。処理
ステップ25では処理ステップ23で検索したページ番
号を退避ページ番号テーブルに昇順に登録する。
In the next processing step 24, it is checked whether or not the page number retrieved in the processing step 23 is registered in a save page number table (not shown) provided inside the page number collection means 2. If so, process step 21 is executed again, and if it is not registered, process step 25 is executed, and then process step 21 is executed again. Here, the evacuation page number table is a table for arranging and storing page numbers in ascending order, and even if there are n update records for the same page in the journal file 1, It is used to save to the incremental file 6 only once. In processing step 25, the page numbers retrieved in processing step 23 are registered in the evacuation page number table in ascending order.

12 そして、ジャーナルファイル1のファイルENDまで上
述した処理を行なうと(処理ステソプ22の判断結果が
yes)、ページ番号収集手段2は更新されたページの
ページ番号が昇順に登録されている退避ページ番号テー
ブルの内容を退避処理手段3に送出し(処理ステップ2
6)、処理を本冬了する。
12 Then, when the above-mentioned process is performed up to the file END of journal file 1 (the judgment result of the processing step 22 is yes), the page number collecting means 2 saves the page numbers of the updated pages in ascending order. Sends the contents of the table to the save processing means 3 (processing step 2
6) The process will be completed this winter.

退避処理手段3はページ番号収集千段2から退避ページ
番号テーブルの内容が送られてくると、第3図の流れ図
に示す処理を開始し、処理ステソプ31に於いて、送ら
れてきた退避ページ番号テーブルの内容からページ番号
を1個取り出す。次の処理ステップ32では退避ページ
番号テーブルに登録されているページ番号を全て取り出
したか否かをチェソクし、全て取り出したと判断した場
合はその処理を終了し、取り出していないと判断した場
合は処理ステソプ33を実行する。処理ステソプ33で
は処理ステップ31で取り出したページ番号を人出力処
理手段5に送出し、入出力処理手段5が上記ページ番号
に基づいて補助記憶装置9内から取り出した上記ページ
番号対応のページイメージを受け取る。次の処理ステソ
プ34では処理ステップ31で取り出したページ番号と
処理ステップ33で受け取ったページイメージとを対応
させて増分ファイル6に出力し、再び処理ステップ31
を実行する。
When the save processing means 3 receives the contents of the save page number table from the page number collection 1000 stage 2, it starts the process shown in the flowchart of FIG. Extract one page number from the contents of the number table. In the next processing step 32, it is checked whether all the page numbers registered in the evacuation page number table have been extracted. If it is determined that all the page numbers have been extracted, the process is terminated, and if it is determined that they have not been extracted, the processing step is executed. Execute 33. The processing step 33 sends the page number retrieved in the processing step 31 to the human output processing means 5, and the input/output processing means 5 generates a page image corresponding to the page number retrieved from the auxiliary storage device 9 based on the page number. receive. In the next processing step 34, the page number taken out in the processing step 31 and the page image received in the processing step 33 are outputted to the incremental file 6 in correspondence, and again in the processing step 31.
Execute.

以上説明したように、退避処理は、ページ番号収集手段
2でジャーナルファイルlから更新されたページのペー
ジ番号を収集し、退避処理手段3で人出力処理手段5を
用いて当該ページ番号のページイメージを補助記憶装W
9から取り出し、取り出したページイメージを増分ファ
イル6に出力することにより実現している。
As explained above, in the saving process, the page number collecting means 2 collects the page number of the updated page from the journal file l, and the saving processing means 3 uses the human output processing means 5 to generate a page image of the page number. Auxiliary memory W
9 and outputs the extracted page image to the incremental file 6.

次に復元処理について第l図及び第4図を参照して説明
する。
Next, the restoration process will be explained with reference to FIGS. 1 and 4.

第4図に於いて、復元処理手段4は処理ステップ41で
先ず退避媒体8から全退避ファイル7を読み込み、読み
込んだ全退避ファイル7を入出力処理手段5を用いて補
助記憶装置9へ出力する。
In FIG. 4, the restoration processing means 4 first reads all saved files 7 from the saved medium 8 in processing step 41, and outputs the read all saved files 7 to the auxiliary storage device 9 using the input/output processing means 5. .

この段階で補助記憶装置9内のデータファイルは定期的
或いは適時行なっている全ファイル退避時のイメージに
復元される。次の処理ステップ42では増分ファイル6
をその終端から始端に向かって1ページ分逆読みし、ペ
ージ番号とページイメージとを得る。
At this stage, the data files in the auxiliary storage device 9 are restored to the image at the time when all files were saved periodically or at an appropriate time. In the next processing step 42, the incremental file 6
is read backwards by one page from the end to the beginning to obtain the page number and page image.

次の処理ステソブ43では増分ファイル6に格納されて
いる全てのページ番号及びページイメーシを読み込んだ
か否かを判断し、全て読み込んだと判断した場合はその
処理を終了し、読み込んでいないと判断した場合は処理
ステソプ44を実行する。処理ステソプ44では処理ス
テップ42で読み込んだページ番号対応のページが既に
復元されているか否かを、退避処理千段4内に設けられ
、既に復元されたページのページ番号が格納されている
復元ページ番号テーブル(図示せず)を参照してチェソ
クする。そして、処理ステップ44に於いて既に復元さ
れていると判断した場合は、再び処理ステソプ42を実
行し、まだ復元が済んでいないと判断した場合は処理ス
テップ45を実行する。処理ステップ45では先ず処理
ステップ415 2で増分ファイル6から読み込んだページ番号とページ
イメージとを人出力処理千段5に送出する。
In the next processing step 43, it is determined whether all page numbers and page images stored in the incremental file 6 have been read, and if it is determined that all have been read, the process is terminated, and it is determined that they have not been read. If so, the processing step 44 is executed. In the processing step 44, it is determined whether or not the page corresponding to the page number read in the processing step 42 has already been restored. Check by referring to a number table (not shown). If it is determined in processing step 44 that the data has already been restored, processing step 42 is executed again, and if it is determined that restoration has not yet been completed, processing step 45 is performed. In processing step 45, first, the page number and page image read from incremental file 6 in processing step 4152 are sent to human output processing stage 5.

入出力処理千段5は復元処理手段4からページ番号とペ
ージイメージとが加えられることにより、補助記憶装置
9上の上記ページ番号対応のページに復元処理手段4か
ら加えられたページイメージを書き込む。従って、この
段階で補助記憶装置9上の上記ページ番号対応のページ
は最新更新イメージに復元されたことになる。更に、処
理ステップ45に於いて復元処理千段4は処理ステノプ
42で読み込んだページ番号を、復元ページ番号テーブ
ルに昇順に登録し、再び処理ステップ42を実行する。
When the page number and page image are added from the restoration processing means 4, the input/output processing stage 5 writes the page image added from the restoration processing means 4 to the page corresponding to the page number on the auxiliary storage device 9. Therefore, at this stage, the page corresponding to the above page number on the auxiliary storage device 9 has been restored to the latest updated image. Further, in processing step 45, the restoration processing 1000 steps 4 registers the page numbers read by the processing stepper 42 in the restoration page number table in ascending order, and executes processing step 42 again.

ここで、処理ステップ42で増分ファイル6を逆読みし
、処理ステップ44で未処理と判断されたページに対し
てのみ復元処理(処理ステップ45)を行なうようにし
たのは次の理由からである。
Here, the reason why the incremental file 6 is read backwards in processing step 42 and the restoration process (processing step 45) is performed only on the pages determined to be unprocessed in processing step 44 is as follows. .

即ち、全退避ファイル7に全ファイルを退避させた後、
同一ページに対する更新処理がn回行なわれたとすると
、増分ファイル6には上記同一ペー16 ジのページ番号とページイメージとが最低で1回、最高
でn回出力されていることになる。上記同一ページのペ
ージ番号及びページイメージの出力回数は退避処理(第
2図及び第3図の処理)を行なった回数に影響され、全
ファイル退避以降に増分ファイル6への退避処理を1回
しか行なっていなければ、上記同一ページに対する増分
ファイル6への出力回数は1回となるが、全ファイル退
避以降に増分ファイル6への退避処理をn回行なってい
れば、各退避処理で上記同一ページのページ番号及びペ
ージイメージが増分ファイル6に出力されている可能性
があるので、上記同一ページに対ずる増分ファイル6へ
の出力回数は最高n回となる。このように、増分ファイ
ル6には同一ページのページ番号及びページイメージが
複数格納されている場合があるが、上述したように、増
分ファイル6を逆読みし、未処理のページについてのみ
復元処理を行なうことにより、同一ページに対しては1
回の復元処理を行なうだけで補助記憶装置9上の該当す
るページを最新更新イメージに復元ずることができ、復
元処理時間を短縮させることができるからである。
That is, after all files are saved to the all save file 7,
Assuming that the same page has been updated n times, the page number and page image of the same page 16 have been output to the incremental file 6 at least once and at most n times. The number of times the page number and page image of the same page are output is affected by the number of times the save process (the process shown in Figures 2 and 3) is performed, and the save process to incremental file 6 is performed only once after saving all files. If not, the same page will be output to the incremental file 6 once, but if the save process to the incremental file 6 has been performed n times after saving all files, each save process will output the same page to the incremental file 6 once. Since there is a possibility that the page number and page image have been output to the incremental file 6, the number of times the same page is output to the incremental file 6 is n times at most. In this way, the incremental file 6 may store multiple page numbers and page images of the same page, but as described above, the incremental file 6 is read backwards and the restoration process is performed only for unprocessed pages. By doing this, 1 for the same page
This is because the corresponding page on the auxiliary storage device 9 can be restored to the latest updated image just by performing the restoration process once, and the restoration processing time can be shortened.

以上説明したように、復元処理は復元処理手段4が読み
込んだ全退避ファイル7を人出力処理手段5を用いて補
助記憶装置9に出力した後、増分ファイル6を逆読みす
ることにより得た最新更新イメージを同様に入出力処理
手段5を用いて補助記憶装置9に出力することにより実
現している。
As explained above, the restoration process is performed by outputting all the saved files 7 read by the restoration processing means 4 to the auxiliary storage device 9 using the human output processing means 5, and then reading the incremental files 6 backwards. This is realized by similarly outputting the updated image to the auxiliary storage device 9 using the input/output processing means 5.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明はジャーナルファイルに基
づいて退避処理を行なうので、業務プログラムの走行時
のオーハヘソトを大きくすることがなくなる効果がある
。また、本発明は同一ジャーナルファイル中に同一ペー
ジに対する更新情報が複数存在する場合でも、同一ペー
ジに対しては1回のみしか退避処理を行なわないので、
退避ファイル容量,退避処理時間の増大を防ぐことがで
きる効果もある。更に、本発明は同一ページに対する復
元処理はページ単位で1回しか行なわないので、復元処
理時間を短縮することができる効果もある。
As described above, since the present invention performs the saving process based on the journal file, there is an effect that the overflow during running of the business program is not increased. Furthermore, in the present invention, even if there is multiple update information for the same page in the same journal file, the same page is saved only once.
This also has the effect of preventing an increase in the backup file size and backup processing time. Furthermore, since the present invention performs the restoration process on the same page only once for each page, it also has the effect of shortening the restoration process time.

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

第1図は本発明の実施例のブロソク図、第2図はページ
番号収集手段2の処理例を示す流れ図、 第3図は退避処理千段3の処理例を示す流れ図及び、 第4図は復元処理手段4の処理例を示す流れ図である。 図に於いて、1・・・ジャーナルファイル、2・・・ペ
ージ番号収集手段、3・・・退避処理手段、4・・・復
元処理手段、5・・・入出力処理手段、6・・・増分フ
ァイル、7・・・全退避ファイル、8・・・退避媒体、
9・・・補助記憶装置。
FIG. 1 is a flowchart of an embodiment of the present invention, FIG. 2 is a flowchart showing an example of the processing of the page number collection means 2, FIG. 3 is a flowchart showing an example of the processing of the evacuation process 3, 5 is a flowchart showing an example of processing by the restoration processing means 4. FIG. In the figure, 1... journal file, 2... page number collection means, 3... saving processing means, 4... restoring processing means, 5... input/output processing means, 6... Incremental file, 7... All save files, 8... Save medium,
9... Auxiliary storage device.

Claims (1)

【特許請求の範囲】 ファイルが格納された補助記憶装置と、 該補助記憶装置に格納されているファイルが全退避ファ
イルとして退避させられる記憶媒体と、該記憶媒体に前
記ファイルを退避させた後の前記ファイルに対する更新
内容が順次蓄積されるジャーナルファイルとを備えたシ
ステムに於いて、前記記憶媒体に増分ファイルを設ける
と共に、前記ジャーナルファイルを読み込み、その内容
に基づいて前記補助記憶装置上のファイル中の更新のあ
ったページのページ番号を更新のあった各ページについ
て1つずつ収集するページ番号収集手段と、 該ページ番号収集手段が収集したページ番号に対応する
ページのページイメージを前記補助記憶装置上のファイ
ルから読み込み、読み込んだページイメージとそのペー
ジ番号とを対応させて前記増分ファイルに退避させる退
避処理手段と、前記全退避ファイルを前記補助記憶装置
上に復元した後、前記増分ファイルを終端から始端に向
かって逆読みし、未処理のページ番号を読み込んだ場合
のみ、そのページ番号と対応して前記増分ファイルに退
避させられているページイメージを前記補助記憶装置上
に復元する復元処理手段とを設けたことを特徴とする退
避復元方式。
[Claims] An auxiliary storage device in which files are stored, a storage medium from which all files stored in the auxiliary storage device are evacuated as all evacuated files, and a storage medium after the files are evacuated to the storage medium. In a system equipped with a journal file in which updated contents of the file are sequentially accumulated, an incremental file is provided in the storage medium, and the journal file is read and the contents of the file on the auxiliary storage device are updated based on the contents of the journal file. a page number collection means for collecting page numbers of updated pages one by one for each updated page; and a page number collection means for collecting page numbers of pages corresponding to the page numbers collected by the page number collection means, and storing the page image of the page corresponding to the page number collected by the page number collection means in the auxiliary storage device. a saving processing means that reads from the above file, associates the read page image with its page number, and saves it to the incremental file; and after restoring all the saved files onto the auxiliary storage device, terminates the incremental file. restoration processing means that reads backwards from the beginning toward the starting end, and restores the page image saved in the incremental file corresponding to the page number onto the auxiliary storage device only when an unprocessed page number is read; An evacuation and restoration method characterized by providing the following.
JP1240854A 1989-09-19 1989-09-19 Save and restoration system Pending JPH03103943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1240854A JPH03103943A (en) 1989-09-19 1989-09-19 Save and restoration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1240854A JPH03103943A (en) 1989-09-19 1989-09-19 Save and restoration system

Publications (1)

Publication Number Publication Date
JPH03103943A true JPH03103943A (en) 1991-04-30

Family

ID=17065700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1240854A Pending JPH03103943A (en) 1989-09-19 1989-09-19 Save and restoration system

Country Status (1)

Country Link
JP (1) JPH03103943A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0683677A (en) * 1992-04-20 1994-03-25 Internatl Business Mach Corp <Ibm> Method and system for increment time-zero backup copy of data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0683677A (en) * 1992-04-20 1994-03-25 Internatl Business Mach Corp <Ibm> Method and system for increment time-zero backup copy of data

Similar Documents

Publication Publication Date Title
JPH03103943A (en) Save and restoration system
JPH0381843A (en) File saving/restoring processor
JPH07152627A (en) File recovery system
JPH03122728A (en) Saving/restoration system
JPS62224843A (en) Database medium content maintaining system
JPH04184641A (en) Data base restoring system
JPH0210977B2 (en)
CN112612648B (en) SQL Server database recovery method, terminal equipment and storage medium
JP2001188690A (en) Computer system and checkpoint information preserving method
JP2679602B2 (en) Evacuation medium creation system
JPH07230401A (en) Method and system for file maintenance
JPH0447344A (en) History journal recording system
CN115840664A (en) Incremental backup method and device for Elasticissearch index library
JPH01111240A (en) Saving restoration system
JPH03271841A (en) Recovery system for data base
JPH0353351A (en) Saving restoring device
JPH09171476A (en) Dump file compressing system
JPH02304640A (en) Memory dump collecting system
JPH0350648A (en) Fault restoration method for data base
JPH0485635A (en) Forward recover/restoration system for data base file
JPH02257229A (en) File recovery system for computer system
JPH0241052B2 (en)
JPS63174129A (en) System for recovering corrective source program library file
JP2828131B2 (en) Database processing unit
JPH0239252A (en) Back-up generating system