JPH03122728A - Saving/restoration system - Google Patents

Saving/restoration system

Info

Publication number
JPH03122728A
JPH03122728A JP1260623A JP26062389A JPH03122728A JP H03122728 A JPH03122728 A JP H03122728A JP 1260623 A JP1260623 A JP 1260623A JP 26062389 A JP26062389 A JP 26062389A JP H03122728 A JPH03122728 A JP H03122728A
Authority
JP
Japan
Prior art keywords
page
file
files
page number
incremental
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
JP1260623A
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 JP1260623A priority Critical patent/JPH03122728A/en
Publication of JPH03122728A publication Critical patent/JPH03122728A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the capacity of saving files and to shorten restoration processing time by restoring a page image saved in an increment file used for the current saving processing out of two increment files on an auxiliary storage device. CONSTITUTION:A page number collecting means 2 reads in a journal file 1 and collects the page number of an updated page in the file stored in the auxiliary storage device 10 based upon the contents of the file into each updated page. A saving processing means 3 reads in a page image corresponding to the page number collected by the means 2 from the file stored in the device 10, saves the read file into the increment files 6, 7 and also saves page images whose page numbers are not collected and the page numbers into the files 6, 7. A restoration processing means 4 restores the files saved in all saveing files 8 on the device 10 and then restores the page images also on the device 10. Consequently, the capacity of saveing files can be reduced and the restoration processing time can be 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]

補助記憶装置上のファイルを別媒体に保存しておき、フ
ァイル障害等によりファイルを復元することが必要にな
った場合、別媒体に保存しておいたファイルを利用して
補助記憶装置上のファイルを復元するということは従来
より行なわれており、従来のこの種の退避復元方式とし
ては次の5つのものがある。
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 on the auxiliary storage device can be restored using the file saved on the other medium. Restoring data has been carried out for a long time, and there are five conventional saving and restoring methods of this type as follows.

第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 saved data files 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. When it becomes necessary, files are 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 a separate medium to the auxiliary storage device, and then restoring the updated page images or updates of 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 created 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 to another medium once, then save the updated files file by file to another medium, and when it becomes necessary to restore the files, After outputting all the data files that have been saved to a separate medium to the auxiliary storage device, the refile is restored by 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.

第5の従来方式は補助記憶装置上の全データファイルを
1回別媒体に退避させた後は、定期的または必要に応じ
てジャーナルファイルから更新ページを収集し、収集し
た更新ページ情報に基づいて更新されたページのみをペ
ージ単位で別媒体に退避させ、ファイルの復元が必要に
なった場合は、別媒体に退避させておいた全データファ
イルを補助記憶装置に出力した後、退避させておいた更
新後のページイメージを補助記憶装置に出力することに
よりファイルの復元を行なう。
The fifth conventional method is to save all data files on the auxiliary storage device once to another medium, and then collect updated pages from the journal file periodically or as needed, and based on the collected updated page information. If you save only the updated pages page by page to another medium, and if you need to restore the files, output all the data files saved to the other medium to the auxiliary storage device, and then save them. The file is restored by outputting the 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, resulting in a disadvantage that the restoration processing time becomes longer.

第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の従来方式に比較して退避ファイルの
容量を小さくすることはできるが、退避処理を行なう回
数が増えると、同一ページに対する更新ページイメージ
が何回も退避させられる可能性があるため、退避ファイ
ルの容量を充分小さくすることが難しいという問題があ
った。また、更に、第4の従来方式は更新ページ情報の
収集処理はデータファイルが更新される毎に行なわれる
ので、業務プログラムの走行時のオーバヘッドが大きく
なるという欠点がある。
The fourth conventional method saves updated pages page by page, so it is possible to reduce the size of the save file compared to the third conventional method, but as the number of times the save process increases, There is a problem that it is difficult to make the capacity of the saved file sufficiently small because there is a possibility that the updated page image for the page will be saved many times. Furthermore, in the fourth conventional method, since the process of collecting updated page information is performed every time a data file is updated, there is a drawback that the overhead during running of a business program becomes large.

第5の従来方式はジャーナルファイルに基づいて退避処
理を行なうので、業務プログラムの走行時のオーバヘッ
ドを大きくすることはないが、第4の従来方式と同様に
退避処理の回数が増えると、同一ページに対する更新イ
メージが何回も退避させられる可能性があるため、退避
ファイルの容量を充分に小さくすることが難しいという
問題があった。
The fifth conventional method performs evacuation processing based on journal files, so it does not increase the overhead when running business programs, but as with the fourth conventional method, when the number of evacuation processing increases, the same page There is a problem in that it is difficult to reduce the capacity of the saved file to a sufficiently small size because the updated image for the file may be saved many times.

本発明の目的は業務プログラムの走行時のオーバヘッド
を大きくすることなく、退避ファイルの容量を少なくで
きるようにすると共に、復元処理時間を短縮化できるよ
うにすることにある。
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]

本発明は上記目的を達成するため、 ファイルが格納された補助記憶装置と、該補助記憶装置
に格納されているファイルが退避させられる全退避ファ
イルを有する記憶媒体と、該記憶媒体に前記ファイルを
退避させた後の前記ファイルに対する更新内容が順次蓄
積されるジャーナルファイルとを備えたシステムに於い
て、前記記憶媒体に2つの増分ファイルを設けると共に
、 前記ジャーナルファイルを読み込み、その内容に基づい
て前記補助記憶装置上のファイル中の更新のあったペー
ジのページ番号を更新のあった各ページについて1つず
つ収集するページ番号収集手段と、 該ページ番号収集手段が収集したページ番号に対応する
ページイメージを前記補助記憶装置上のファイルから読
み込み、読み込んだページイメージとそのページ番号と
を対応させて前記2つの増分ファイルの内の前回の退避
処理で使用されなかった増分ファイルに退避させると共
に、前記2つの増分ファイルの内の前回の退避処理で使
用された増分ファイルに退避させられているページイメ
ージであって、前記ページ番号収集手段で対応するペー
ジ番号が収集されなかったページイメージとそのページ
番号とを対応させて前記2つの増分ファイルの内の前回
の退避処理で使用されなかった増分ファイルに退避させ
る退避処理手段と、前記全退避ファイルに退避させられ
ているファイルを前記補助記憶装置上に復元した後、前
記2つの増分ファイルの内の今回の退避処理で使用され
た増分ファイルに退避させられているページイメージを
前記補助記憶装置上に復元する復元処理手段とを設けた
ものである。
In order to achieve the above object, the present invention provides an auxiliary storage device in which files are stored, a storage medium having all evacuation files from which the files stored in the auxiliary storage device are evacuated, and a storage medium in which the files are saved in the storage medium. In a system equipped with a journal file that sequentially accumulates updated contents of the file after it has been evacuated, two incremental files are provided in the storage medium, and the journal file is read and the updated contents are stored based on the contents of the journal file. a page number collection means for collecting page numbers of updated pages in a file on an auxiliary storage device, one for each updated page; and a page image corresponding to the page number collected by the page number collection means. is read from a file on the auxiliary storage device, the read page image is associated with its page number, and is saved to the incremental file that was not used in the previous saving process among the two incremental files, and Page images that have been saved to the incremental file used in the previous saving process among the two incremental files, and for which the corresponding page numbers were not collected by the page number collecting means, and their page numbers. evacuation processing means for correlating and evacuation of the files to an incremental file that was not used in the previous evacuation process among the two incremental files, and restoring the files saved to the all evacuation file onto the auxiliary storage device. and a restoration processing means for restoring the page image saved in the incremental file used in the current saving process of the two incremental files onto the auxiliary storage device.

〔作 用〕[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.

退避処理手段はページ番号収集手段が収集したページ番
号対応のページイメージを補助記憶装置上のファイルか
ら読み込み、読み込んだページイメージとそのページ番
号とを対応させて2つの増分ファイルの内の前回の退避
処理で使用しなかった増分ファイルに退避させると共に
、2つの増分ファイルの内の前回の退避処理で使用され
た増分ファイルに退避させられているページイメージで
あって、ページ番号収集手段で対応するページ番号が収
集されなかったページイメージとそのページ番号とを2
つの増分ファイルの内の前回の退避処理で使用されなか
った増分ファイルに退避させる。
The saving processing means reads the page image corresponding to the page number collected by the page number collecting means from the file on the auxiliary storage device, associates the read page image with the page number, and saves the previous one of the two incremental files. A page image that is saved in an incremental file that was not used in the process and also saved in an incremental file that was used in the previous save process among the two incremental files, and that is a page that corresponds to the page number collection means. 2. Page images whose numbers were not collected and their page numbers.
The data is saved to one of the two incremental files that was not used in the previous save process.

復元処理手段は全退避ファイルに退避させられているフ
ァイルを補助記憶装置上に復元した後、2つの増分ファ
イルの内の今回の退避処理で使用された増分ファイルに
退避させられているページイメージを補助記憶装置上に
復元する。
The restoration processing means restores the files saved in the all-saved files onto the auxiliary storage device, and then restores the page images saved in the incremental file used in the current saving process among the two incremental files. Restore to auxiliary storage.

〔実施例〕〔Example〕

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

第1図は本発明の実施例のブロック図であり、ジャーナ
ルファイル1と、ページ番号収集手段2と、退避処理手
段3と、復元処理手段4と、入出力処理手段5と、2つ
の増分ファイル6.7及び全退避ファイル8が設けられ
た退避媒体9と、補助記憶装置10とから構成されてい
る。尚、同図に於いて実線の矢印は退避処理時のデータ
の流れを、破線の矢印は復元処理時のデータの流れを示
している。
FIG. 1 is a block diagram of an embodiment of the present invention, which includes a journal file 1, page number collection means 2, save processing means 3, restoration processing means 4, input/output processing means 5, and two incremental files. 6.7 and all the saved files 8 are provided, and an auxiliary storage device 10. 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に渡して補助記憶
装置10から該当ページのページイメージを読み込み、
読み込んだページイメージ及びそのページ番号を2つの
増分ファイル6.7の内の今回の退避処理に使用する増
分ファイル(新増分ファイルと称す)に書き込む機能及
び増分ファイル6.7の内の前回の退避処理に於いて使
用された増分ファイル(旧増分ファイルと称す)に退避
させられているページイメージであって、ページ番号収
集手段2で対応するページ番号が収集されなかったペー
ジイメージ及びそのページ番号を増分ファイル6.7の
内の新増分ファイルに書き込む機能を有する。復元処理
手段4は全退避ファイル8を読み込み、入出力処理手段
5を用いて補助記憶装置10に出力する機能及び増分フ
ァイル6.7の内の新増分ファイルに退避させられてい
るページイメージを入出力処理手段5を用いて補助記憶
装置10に出力する機能を有する。
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 saving processing means 3. The saving processing means 3 passes the page number passed from the page number collecting means 2 to the input/output processing means 5 and reads the page image of the corresponding page from the auxiliary storage device 10.
A function to write the read page image and its page number to an incremental file (referred to as a new incremental file) used for the current backup process among the two incremental files 6.7, and a function to write the previous backup among the incremental files 6.7. Page images that have been saved in incremental files used in processing (referred to as old incremental files) and whose corresponding page numbers have not been collected by the page number collection means 2, and their page numbers. It has a function to write to a new incremental file among the incremental files 6.7. The restoration processing means 4 has a function of reading all the saved files 8, outputting them to the auxiliary storage device 10 using the input/output processing means 5, and inputting the saved page images to a new incremental file among the incremental files 6.7. It has a function of outputting to the auxiliary storage device 10 using the output processing means 5.

第2図はページ番号収集手段2の処理例を示す流れ図、
第3図は退避処理手段3の処理例を示す流れ図、第4図
は復元処理手段4の処理例を示す流れ図であり、以下各
図を参照して本実施例の動作を説明する。
FIG. 2 is a flowchart showing a processing example of the page number collection means 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図を参照して退避処理に
ついて説明する。尚、以下の説明に於いては、増分ファ
イル6を旧増分ファイル、増分ファイル7を新増分ファ
イルとして説明を行なう。
First, the saving process will be explained with reference to FIGS. 1, 2, and 3. In the following explanation, the incremental file 6 is assumed to be the old incremental file, and the incremental file 7 is assumed to be the new incremental file.

第2図に於いてページ番号収集手段2は処理ステップ2
1でジャーナルファイル1から更新レコードを1件読み
込む。処理ステップ22ではジャーナルファイル1のフ
ァイルENDになったか否かを判断し、ファイルEND
になったと判断した場合は後述の処理ステップ26を実
行し、ファイルENDでないと判断した場合は処理ステ
ップ23を実行する。処理ステップ23では処理ステッ
プ21でジャーナルファイル1から読み込んだ更新レコ
ードを基に、当該更新レコードを含むページのページ番
号を検索する。ここで、当該更新レコードの更新イメー
ジ内にはページ番号を示す情報が含まれているので、ペ
ージ番号の検索は当該情報を取り出すことにより実現で
きる。
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 processing step 23, based on the update record read from the journal file 1 in processing step 21, the page number of the page containing the update 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を実行し、登録されていなければ処理ステップ2
5を実行した後、再び処理ステップ21を実行する。こ
こで、ページ番号テーブルはページ番号を昇順に並べて
格納しておくためのテーブルであり、ジャーナルファイ
ル1に同一ページに対する更新レコードがn個存在して
いる場合に於いても、上記同一べ一ジの増分ファイル6
或いは増分ファイル7への退避を1回にするために使用
される。処理ステップ25では処理ステップ23で検索
したページ番号をページ番号テーブルに昇順に登録する
In the next processing step 24, it is checked whether the page number retrieved in the processing step 23 is registered in a page number table (not shown) provided inside the page number collection means 2, and if it is registered. If it is not registered, execute process step 21 again, and if it is not registered, execute process step 2.
After executing step 5, process step 21 is executed again. Here, the 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, Incremental file 6
Alternatively, it is used to save to the incremental file 7 only once. In processing step 25, the page numbers retrieved in processing step 23 are registered in the page number table in ascending order.

そして、ジャーナルファイル1のファイルENDまで上
述した処理を行なうとく処理ステップ22の判断結果が
yes)、ページ番号収集手段2は更新されたページの
ページ番号が昇順に登録されているページ番号テーブル
の内容を退避処理手段3に送出しく処理ステップ26)
、処理を終了する。
Then, if the above-mentioned processing is performed up to the file END of journal file 1 (the judgment result in processing step 22 is yes), the page number collection means 2 stores the contents of the page number table in which the page numbers of the updated pages are registered in ascending order. processing step 26).
, ends the process.

退避処理手段3はページ番号収集手段2からページ番号
テーブルの内容が送られてくると、第3図の流れ図に示
す処理を開始し、処理ステップ31に於いて、ページ番
号テーブルリードスイッチTR3及び旧増分ファイルリ
ードスイッチFR3をONとする。次いで、処理ステッ
プ32に於いてページ番号テーブルリードスイッチTR
5がONになっているか否かをチエツクし、ONならば
処理ステップ33を実行し、OFFならば後述の処理ス
テップ36を実行する。処理ステップ33ではジャーナ
ルファイルlから送られてきたページ番号テーブルの内
容から昇順にページ番号を1つ取り出し、それをレジス
タTPNにセントする処理を行ない、続く処理ステップ
34ではページ番号テーブルに書き込まれているページ
番号を全て取り出したか否かをチエツクする。そして、
全て取り出していないと判断した場合は処理ステップ3
6を実行し、全て取り出したと判断した場合は処理ステ
ップ35でレジスタTPNに予め定められているmax
値をセットし、ページ番号テーブルに書き込まれている
ページ番号を全て取り出したことを表示した後、処理ス
テップ36を実行する。
When the save processing means 3 receives the contents of the page number table from the page number collection means 2, it starts the process shown in the flowchart of FIG. Turn on the incremental file read switch FR3. Next, in processing step 32, the page number table read switch TR
5 is ON, and if it is ON, processing step 33 is executed, and if it is OFF, processing step 36, which will be described later, is executed. In processing step 33, one page number is extracted in ascending order from the contents of the page number table sent from journal file l, and it is sent to register TPN, and in the following processing step 34, the page number is written to the page number table. Check whether all page numbers on the page have been retrieved. and,
If it is determined that not all have been taken out, proceed to processing step 3.
6, and if it is determined that all have been taken out, in processing step 35, the max predetermined in the register TPN is
After setting the value and displaying that all page numbers written in the page number table have been retrieved, processing step 36 is executed.

処理ステップ36では旧増分ファイルリードスイッチF
R3がONになっているか否かをチエツクし、ONなら
ば処理ステップ37を実行し、OFFならば後述の処理
ステップ310を実行する。
In processing step 36, the old incremental file read switch F
It is checked whether R3 is ON or not, and if it is ON, processing step 37 is executed, and if it is OFF, processing step 310, which will be described later, is executed.

処理ステップ37では旧増分ファイル6からそれにペー
ジイメージが退避させられているページのページ番号を
昇順に1つ読み込み、レジスタFPNにセットする処理
を行ない、続く処理ステップ38では旧増分ファイル6
に書き込まれているページ番号を全て読み出したか否か
をチエツクする。
In processing step 37, the page numbers of the pages whose page images are saved are read one by one in ascending order from the old incremental file 6, and are set in the register FPN.
Check whether all page numbers written in the page have been read out.

そして、全て読み出していないと判断した場合は処理ス
テップ310を実行し、全て読み出したと判断した場合
は処理ステップ39でレジスタFPNに予め定められて
いるmax値をセントした後、処理ステップ310を実
行する。
If it is determined that not all have been read out, processing step 310 is executed; if it is determined that all have been read out, a predetermined max value is set in the register FPN in processing step 39, and then processing step 310 is executed. .

処理ステップ310ではページ番号テーブルと旧増分フ
ァイル6から読み込んだページ番号をマージするために
、レジスタTPNの内容とレジスタFPNの内容との比
較を行なう。ここで、TPN > F P Nであれば
、旧増分ファイル6から読み込んだページ番号対応のペ
ージが前回の退避処理の後は更新されていないというこ
とになり、TPN<FPNであれば、ページ番号テーブ
ルの内容から取り出したページ番号対応のページが全退
避処理後に初めて更新されたということになり、TPN
=FPNであれば、そのページ番号対応のページが前回
の退避処理の後に更新されたということになる。
In processing step 310, in order to merge the page number table and the page number read from the old incremental file 6, the contents of register TPN and the contents of register FPN are compared. Here, if TPN > F P N, it means that the page corresponding to the page number read from the old incremental file 6 has not been updated after the previous save processing, and if TPN < FPN, the page corresponding to the page number read from the old incremental file 6 has not been updated. This means that the page corresponding to the page number extracted from the table contents has been updated for the first time after all evacuation processing, and the TPN
If =FPN, it means that the page corresponding to that page number was updated after the previous save process.

従って、処理ステップ310の判断結果に基づいて、以
下の処理を行なうことにより、全ファイル退避後に更新
の行なわれたページの最新のページイメージのみを新増
分ファイル7に退避させることが可能となる。
Therefore, by performing the following process based on the determination result of processing step 310, it is possible to save only the latest page image of a page that has been updated after saving all files to the new incremental file 7.

即ち、処理ステップ310でTPN>FPNと判断され
た場合(旧増分ファイル6から読み込んだページ番号対
応のページが前回の退避処理の後は更新されていない場
合)は旧増分ファイル6から読み込んだページ番号とペ
ージイメージとを新増分ファイル7に出力した後(処理
ステップ311)、旧増分ファイル6から次のページ番
号を読み出すためにページ番号テーブルリードスイッチ
TR3=OFF、旧増分ファイルリードスイッチFR3
−ONとしく処理ステップ312)、処理ステップ32
に戻る。ここで、旧増分ファイルリードスイッチFR3
のみをONとしたのは、ページ番号テーブルの内容から
取り出したページ番号については、まだ処理を行なって
おらず、新たに読み込む必要がないからである。
That is, if it is determined in processing step 310 that TPN>FPN (the page corresponding to the page number read from the old incremental file 6 has not been updated after the previous save processing), the page read from the old incremental file 6 After outputting the number and page image to the new incremental file 7 (processing step 311), in order to read the next page number from the old incremental file 6, the page number table read switch TR3=OFF, the old incremental file read switch FR3
-ON processing step 312), processing step 32
Return to Here, old incremental file read switch FR3
The reason why only the page number is set to ON is that the page number extracted from the contents of the page number table has not been processed yet and there is no need to newly read it.

またζ処理ステップ310でTPN<FPNと判断され
た場合(ページ番号テーブルの内容から取り出したペー
ジ番号対応のページが全ファイル退避後に初めて更新さ
れた場合)はページ番号テーブルの内容から取り出した
ページ番号を入出力処理手段5に送出して上記ページ番
号対応のページイメージを補助記憶装置10から取り出
すことを指示し、入出力処理手段5が取り出したページ
イメージを受は取り(処理ステップ316)、受は取っ
たページイメージとそのページ番号とを新増分ファイル
7に出力した後(処理ステップ317)、ページ番号テ
ーブルから次のページ番号を取り出すためにページ番号
テーブルリードスイッチTR3=ON、旧増分ファイル
リードスイッチFR3−OFFとしく処理ステップ31
8)、処理ステップ32に戻る。ここで、ページ番号テ
ーブルリードスイッチTR3のみをONとしたのは、日
増分ファイル6から取り出したページ番号については、
まだ処理を行なっておらず、新たに読み込む必要がない
からである。
In addition, if it is determined in ζ processing step 310 that TPN<FPN (when the page corresponding to the page number extracted from the contents of the page number table is updated for the first time after saving all files), the page number extracted from the contents of the page number table is sent to the input/output processing means 5 to instruct the retrieval of the page image corresponding to the above page number from the auxiliary storage device 10, and the reception receives the page image retrieved by the input/output processing means 5 (processing step 316). After outputting the captured page image and its page number to the new incremental file 7 (processing step 317), in order to retrieve the next page number from the page number table, turn on the page number table read switch TR3 and read the old incremental file. Switch FR3-OFF processing step 31
8), return to processing step 32. Here, only the page number table read switch TR3 was turned ON because the page number extracted from the daily incremental file 6 was
This is because it has not been processed yet and there is no need to newly read it.

また、処理ステップ310でTPN=FPNと判断され
た場合(ページ番号テーブルの内容から取り出したペー
ジ番号対応のページが前回の退避処理の後に更新されて
いる場合)はFPNの内容が予め定められているmax
値になっているか否かを判断しく処理ステップ319)
、max値になっていると判断した場合はその処理を終
了し、max値になっていないと判断した場合はページ
番号テーブルの内容から取り出したページ番号を入出力
処理手段5に送出して上記ページ番号対応のページイメ
ージを補助記憶装置10から取り出すことを指示し、入
出力処理手段5が取り出したページイメージを受取り(
処理ステップ313)、受取ったページイメージとその
ページ番号とを新増分ファイル7に出力した後(処理ス
テップ314)、ページ番号テーブル及び旧増分ファイ
ル6の両方からページ番号を読み出すためにページ番号
テーブルリードスイッチTR3=ON、旧増分ファイル
リードスイッチFR3=ONとしく処理ステップ315
)、処理ステップ32に戻る。
Furthermore, if it is determined that TPN=FPN in processing step 310 (if the page corresponding to the page number extracted from the contents of the page number table has been updated after the previous evacuation process), the contents of FPN are predetermined. Max
Step 319)
, if it is determined that the max value has been reached, the process is terminated; if it is determined that the max value has not been reached, the page number extracted from the contents of the page number table is sent to the input/output processing means 5 and the above An instruction is given to retrieve the page image corresponding to the page number from the auxiliary storage device 10, and the input/output processing means 5 receives the retrieved page image (
After outputting the received page image and its page number to the new incremental file 7 (processing step 313), a page number table read is performed to read the page number from both the page number table and the old incremental file 6 (processing step 314). Switch TR3=ON, old incremental file read switch FR3=ON Process step 315
), the process returns to step 32.

以上説明したように、退避処理は、ページ番号収集手段
2でジャーナルファイル1から更新されたページのペー
ジ番号を収集し、退避処理手段3で当該ページ番号と旧
増分ファイル6から読み込んだページ番号とに基づいて
、前回の退避処理後に更新されたページ及び旧増分ファ
イル6に退避させられているページでなおかつ前回の退
避処理後は更新の行なわれなかったページを求め、前回
の退避処理後に更新されたページについては、そのペー
ジイメージを補助記憶装置10から読み出し、読み出し
たページイメージとそのページ番号とを新増分ファイル
7に出力し、旧増分ファイル6に退避させられているペ
ージであってなおかつ前回の退避処理後は更新の行なわ
れなかったページについては旧増分ファイル6から読み
込んだページイメージ及びそのページ番号を新増分ファ
イル7に出力することにより実現している。
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 1, and the saving processing means 3 combines the page number with the page number read from the old incremental file 6. Based on this, the page that has been updated after the previous evacuation process and the page that has been saved to the old incremental file 6, but has not been updated since the previous evacuation process, is found, and the page that has been updated after the previous evacuation process is found. For pages that have been saved in the old incremental file 6, the page image is read from the auxiliary storage device 10, and the read page image and its page number are output to the new incremental file 7. This is achieved by outputting the page image read from the old incremental file 6 and its page number to the new incremental file 7 for pages that have not been updated after the saving process.

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

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

この段階で補助記憶装置10内のデータファイルは定期
的或いは適時行なっている全ファイル退避時のイメージ
に復元される。次の処理ステップ42では新増分ファイ
ル7からページ番号とページイメージとを1ページ分読
み込み、続く処理ステップ43では新増分ファイル7に
格納されている全テのページ番号及びページイメージを
読み込んだか否かをチエツクし、全て読み込んだと判断
した場合はその処理を終了し、読み込んでいないと判断
した場合は処理ステップ44を実行する。処理ステップ
44では処理ステップ42で読み込んだページ番号とペ
ージイメージとを入出力処理手段5に送出し、その後、
処理ステップ42に戻る。
At this stage, the data files in the auxiliary storage device 10 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 page number and page image for one page are read from the new incremental file 7, and in the following processing step 43, it is determined whether the page numbers and page images of all the pages stored in the new incremental file 7 have been read. If it is determined that all the data has been read, the process is terminated, and if it is determined that the data has not been read, processing step 44 is executed. In processing step 44, the page number and page image read in processing step 42 are sent to input/output processing means 5, and then,
Return to processing step 42.

入出力処理手段5は復元処理手段4からページ番号とペ
ージイメージとが加えられることにより、補助記憶装置
10上の上記ページ番号対応のページに復元処理手段4
から加えられたページイメージを書き込む。ここで、新
増分ファイル7には、全退避ファイル8に全データファ
イルを退避させた後に更新されたページのページ番号と
当該ページの最新のページイメージのみが退避されてい
るので、この段階で補助記憶装置10上の上記ぺジ番号
対応のページは最新更新イメージに復元されたことにな
る。即ち、同一ページに対する復元処理は1回だけで良
いことになる。
By adding the page number and page image from the restoration processing means 4, the input/output processing means 5 restores the page corresponding to the page number on the auxiliary storage device 10 to the restoration processing means 4.
Write the page image added from. Here, the new incremental file 7 saves only the page number of the page updated after all data files were saved to the all save file 8 and the latest page image of the page, so at this stage, the This means that the page corresponding to the above page number on the storage device 10 has been restored to the latest updated image. In other words, the restoration process for the same page only needs to be performed once.

以上説明したように、復元処理は復元処理手段4が読み
込んだ全退避ファイル8を入出力処理手段5を用いて補
助記憶装置9に出力した後、新増分ファイル7に退避さ
れているページイメージを入出力処理手段5を補助記憶
装置10に出力することにより実現している。
As explained above, in the restoration process, after outputting all saved files 8 read by the restoration processing means 4 to the auxiliary storage device 9 using the input/output processing means 5, page images saved in the new incremental file 7 are output. This is realized by outputting the input/output processing means 5 to the auxiliary storage device 10.

〔発明の効果〕 以上説明したように、本発明はジャーナルファイルに基
づいて退避処理を行なうので、業務プログラムの走行時
のオーバヘッドを大きくすることがなくなる効果がある
。また、本発明は全ファイル退避処理が行なわれた後に
更新されたページの最新ページイメージのみを退避させ
るようにしているので、退避ファイルの容量を少ないも
のにすることができる効果がある。更に、本発明は同一
ページに対する復元処理はページ単位で1回しか行なわ
ないので、復元処理時間を短縮することができる効果も
ある。
[Effects of the Invention] As explained above, since the present invention performs the saving process based on the journal file, there is an effect that the overhead during running of the business program is not increased. Furthermore, since the present invention saves only the latest page image of the updated page after all files have been saved, the capacity of the save file can be reduced. 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・・・退避媒
体、10・・・補助記憶装置。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flowchart showing a processing example of the page number collection means 2, FIG. 3 is a flowchart showing a processing example of the saving processing means 3, and FIG. 4 is a restoration 5 is a flowchart showing an example of processing by the 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, 7. . . . Incremental file, 8 . . . All evacuation files, 9 . . . evacuation medium, 10 . . . auxiliary storage device.

Claims (1)

【特許請求の範囲】 ファイルが格納された補助記憶装置と、 該補助記憶装置に格納されているファイルが退避させら
れる全退避ファイルを有する記憶媒体と、該記憶媒体に
前記ファイルを退避させた後の前記ファイルに対する更
新内容が順次蓄積されるジャーナルファイルとを備えた
システムに於いて、前記記憶媒体に2つの増分ファイル
を設けると共に、 前記ジャーナルファイルを読み込み、その内容に基づい
て前記補助記憶装置上のファイル中の更新のあったペー
ジのページ番号を更新のあった各ページについて1つず
つ収集するページ番号収集手段と、 該ページ番号収集手段が収集したページ番号に対応する
ページイメージを前記補助記憶装置上のファイルから読
み込み、読み込んだページイメージとそのページ番号と
を対応させて前記2つの増分ファイルの内の前回の退避
処理で使用されなかった増分ファイルに退避させると共
に、前記2つの増分ファイルの内の前回の退避処理で使
用された増分ファイルに退避させられているページイメ
ージであって、前記ページ番号収集手段で対応するペー
ジ番号が収集されなかったページイメージとそのページ
番号とを対応させて前記2つの増分ファイルの内の前回
の退避処理で使用されなかった増分ファイルに退避させ
る退避処理手段と、前記全退避ファイルに退避させられ
ているファイルを前記補助記憶装置上に復元した後、前
記2つの増分ファイルの内の今回の退避処理で使用され
た増分ファイルに退避させられているページイメージを
前記補助記憶装置上に復元する復元処理手段とを設けた
ことを特徴とする退避復元方式。
[Claims] An auxiliary storage device in which files are stored, a storage medium having all evacuation files from which files stored in the auxiliary storage device are evacuated, and 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, two incremental files are provided in the storage medium, and the journal file is read and the update contents are stored in the auxiliary storage device based on the contents. page number collection means for collecting page numbers of updated pages in the file, one for each updated page, and a page image corresponding to the page number collected by the page number collection means in the auxiliary memory. Read from a file on the device, match the read page image with its page number, and save it to an incremental file that was not used in the previous save process among the two incremental files. A page image that is saved in an incremental file that was used in the previous save process in which the corresponding page number was not collected by the page number collecting means is associated with that page number. a saving processing means for saving to an incremental file that was not used in the previous saving process among the two incremental files, and restoring the files saved to the all saved files on the auxiliary storage device; A saving and restoring method, comprising: a restoring processing means for restoring a page image saved in the incremental file used in the current saving process out of two incremental files onto the auxiliary storage device.
JP1260623A 1989-10-05 1989-10-05 Saving/restoration system Pending JPH03122728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1260623A JPH03122728A (en) 1989-10-05 1989-10-05 Saving/restoration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1260623A JPH03122728A (en) 1989-10-05 1989-10-05 Saving/restoration system

Publications (1)

Publication Number Publication Date
JPH03122728A true JPH03122728A (en) 1991-05-24

Family

ID=17350495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1260623A Pending JPH03122728A (en) 1989-10-05 1989-10-05 Saving/restoration system

Country Status (1)

Country Link
JP (1) JPH03122728A (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
JPH03122728A (en) Saving/restoration system
JPH0381843A (en) File saving/restoring processor
JPH07152627A (en) File recovery system
JPH03103943A (en) Save and restoration system
JP2679602B2 (en) Evacuation medium creation system
JPS63187347A (en) Data base file recovering system
JPH0210977B2 (en)
JPH11353215A (en) Journal-after-update collecting process system
JPH04184641A (en) Data base restoring system
JPH0447344A (en) History journal recording system
JP2001188690A (en) Computer system and checkpoint information preserving method
JP2835854B2 (en) Control method of image file device
CN115840664A (en) Incremental backup method and device for Elasticissearch index library
JPS63174129A (en) System for recovering corrective source program library file
JPH0239252A (en) Back-up generating system
JPH01140353A (en) System for maintaining data in data base
JPH01111240A (en) Saving restoration system
JPH09171476A (en) Dump file compressing system
JP2738245B2 (en) File recovery system
JP3189804B2 (en) Data backup method and device
JPH06309202A (en) Document processor
JPH03259357A (en) Data base recovery system
JPH07160564A (en) Base journal capacity reducing system
JPH07262069A (en) Failure recovery method
JPH0612307A (en) Storage system for history after data base update