JPH06168171A - Data backup system - Google Patents

Data backup system

Info

Publication number
JPH06168171A
JPH06168171A JP4319083A JP31908392A JPH06168171A JP H06168171 A JPH06168171 A JP H06168171A JP 4319083 A JP4319083 A JP 4319083A JP 31908392 A JP31908392 A JP 31908392A JP H06168171 A JPH06168171 A JP H06168171A
Authority
JP
Japan
Prior art keywords
area information
data
small area
storage unit
external 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.)
Granted
Application number
JP4319083A
Other languages
Japanese (ja)
Other versions
JP3133525B2 (en
Inventor
Akira Uchida
昭 内田
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP04319083A priority Critical patent/JP3133525B2/en
Publication of JPH06168171A publication Critical patent/JPH06168171A/en
Application granted granted Critical
Publication of JP3133525B2 publication Critical patent/JP3133525B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To decrease the data amounts of backup. CONSTITUTION:Small area information and large area information is stored in a main storage part 12, and a magnetic disk 14. Whether or not data are changed in the magnetic disk 14 is stored for each area, in those small and large area information. Then, normally the backup is operated by using only the small area information in the main storage part 12. On the other hand, the large area information is always updated when the data in the magnetic disk 14 are changed. And also, the small area information is transferred in a prescribed interval to the magnetic disk 14. Then, at the time of an abnormal end, the backup is operated based on the small area information and the large area information. Thus, the two kinds of large and small information related with change is provided, so that an operating time at the time of the normal processing can be sufficiently shortened by the integration, and the efficient backup can be attained.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータにおける
磁気ディスクなど外部記憶装置のデータを他の記憶手段
に転送するデータバックアップシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data backup system for transferring data in an external storage device such as a magnetic disk in a computer to another storage means.

【0002】[0002]

【従来の技術】コンピュータは、磁気ディスク等の外部
記憶装置を有しており、ここに各種データを記憶する。
そして、業務の実行によりこの外部記憶装置に記憶され
ているデータが変更される。ところが、磁気ディスク等
の外部記憶装置は、何等かの障害によって失われる可能
性があり、このような事態が発生した場合の対策を講じ
ておく必要がある。このため、業務が終了した時点で、
磁気ディスク内のデータを磁気テープ等の他の記録媒体
に転送し、バックアップすることが行われている。
2. Description of the Related Art A computer has an external storage device such as a magnetic disk and stores various data therein.
Then, the data stored in the external storage device is changed by the execution of the business. However, the external storage device such as a magnetic disk may be lost due to some failure, and it is necessary to take measures against such a situation. Therefore, when the work is completed,
Data in a magnetic disk is transferred to another recording medium such as a magnetic tape and backed up.

【0003】ところが、業務の種類によっては、データ
量が多く、すべてのデータをバックアップすると、その
時間が非常に長くなってしまう。そこで、特開昭64−
8848号公報では、すべてのデータをバックアップす
るのではなく、変更のあったデータのみをバックアップ
するようにしている。この手法によって、1回のバック
アップの際のデータ転送量を減少することができ、効率
的なバックアップを行うことができる。
However, depending on the type of business, the amount of data is large, and if all data is backed up, the time will be extremely long. Therefore, JP-A-64-
In Japanese Patent No. 8848, not all data is backed up, but only changed data is backed up. With this method, the amount of data transferred in one backup can be reduced, and efficient backup can be performed.

【0004】[0004]

【発明が解決しようとする課題】しかし、上記従来技術
においては、磁気ディスク装置内に制御メモリを有し、
この制御メモリに変更があった箇所についてのデータを
記憶する。通常の磁気ディスク装置は、このような制御
メモリは有しておらず、そのままでは適用できないとい
う問題点があった。さらに、変更があったか否かを判定
する単位(領域)を細かくすれば、それだけ変更があっ
たか否かの判定を細かく設定できるため、バックアップ
のデータ量を少なくすることができる。しかし、領域を
小さく設定すると、制御メモリの容量が大きくなってし
まうという問題点があった。
However, in the above-mentioned prior art, the magnetic disk device has a control memory,
Data about the changed portion is stored in the control memory. An ordinary magnetic disk device does not have such a control memory and cannot be applied as it is. Furthermore, if the unit (area) for determining whether or not there has been a change is made finer, the determination as to whether or not there has been a change can be set more finely, so the amount of backup data can be reduced. However, when the area is set small, there is a problem that the capacity of the control memory becomes large.

【0005】本発明は、上記問題点を解決することを課
題としてなされたものであり、変更があった箇所を効率
的にバックアップできるデータバックアップシステムを
提供することを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a data backup system capable of efficiently backing up a changed portion.

【0006】[0006]

【課題を解決するための手段】本発明は、各種データ処
理の際に必要なデータ、プログラム等を一時的に記憶す
るための主記憶部と、データ処理によって得られたデー
タを記憶するための第1の外部記憶手段と、この第1の
外部記憶手段に記憶されているデータをバックアップす
るための第2の外部記憶手段とを含むデータバックアッ
プシステムであって、主記憶部上に設けられ、第1の外
部記憶手段を所定の小エリア毎に分けその範囲内のデー
タが変更されたか否かについての小エリア情報を記憶す
る小エリア情報記憶部と、第1の外部記憶手段上に設け
られ第1の外部記憶手段を所定の大エリア毎に分け、そ
の範囲内のデータが変更されたか否かの大エリア情報を
記憶する大エリア情報記憶部とを有し、主記憶部内の小
エリア情報記憶部のデータが利用可能な場合にはこの小
エリア制御メモリ内のデータに基づいて第1の外部記憶
手段におけるデータの変更された小エリアのデータを第
2の外部記憶手段に転送し、主記憶部内の小エリア情報
記憶部のデータが利用不能である場合には大エリア情報
記憶部のデータに基づいて第1外部記憶手段のデータを
第2外部記憶手段に転送してデータのバックアップを行
うことを特徴とする。
According to the present invention, there is provided a main storage unit for temporarily storing data, programs, etc. necessary for various data processing, and a data storage unit for storing data obtained by the data processing. A data backup system including a first external storage means and a second external storage means for backing up data stored in the first external storage means, the data backup system being provided on a main storage part, A small area information storage unit that divides the first external storage unit into predetermined small areas and stores small area information regarding whether or not the data within the range has been changed, and is provided on the first external storage unit. The first external storage means is divided into predetermined large areas, and a large area information storage section for storing large area information indicating whether or not the data within the range is changed is provided, and the small area information in the main storage section is provided. Memory When the data is available, the data in the small area in which the data in the first external storage means is changed based on the data in the small area control memory is transferred to the second external storage means, and the data in the main storage section is stored. When the data in the small area information storage unit is unavailable, the data in the first external storage unit is transferred to the second external storage unit based on the data in the large area information storage unit to back up the data. And

【0007】また、上記小エリア情報記憶部に記憶され
ている小エリア情報を所定時間毎に第1の外部記憶手段
へ転送して記憶し、主記憶部内の小エリア情報記憶部の
データが利用不能である場合には第1の外部記憶手段に
記憶されている大エリア情報および小エリア情報の両方
に基づいてバックアップを行うことを特徴とする。
Further, the small area information stored in the small area information storage section is transferred to the first external storage means and stored at predetermined intervals, and the data in the small area information storage section in the main storage section is used. If it is impossible, the backup is performed based on both the large area information and the small area information stored in the first external storage means.

【0008】また、大エリア情報はその書き込み時間に
ついての情報を含むと共に、主記憶部内の小エリア情報
を第1外部記憶手段に転送した際にはその転送時間につ
いての情報を小エリア情報と共に書き込み、主記憶部内
の小エリア情報記憶部のデータが利用不能である場合に
は小エリア情報および小エリア情報転送後の大エリア情
報に基づいてデータバックアップを行うことを特徴とす
る。
Further, the large area information includes information on the writing time, and when the small area information in the main memory is transferred to the first external storage means, the information on the transfer time is written together with the small area information. When the data in the small area information storage unit in the main storage unit is unavailable, data backup is performed based on the small area information and the large area information after the transfer of the small area information.

【0009】また、上記小エリア情報は、当該小エリア
内のデータがすべて0に変更されたか否かを示すデータ
を含むことを特徴とする。
Further, the small area information includes data indicating whether or not all the data in the small area is changed to 0.

【0010】[0010]

【作用】主記憶部における小エリア毎の変更部分につい
ての記憶を行うため、きめ細かな変更データを持つこと
ができ、処理時間を最低限の増加に抑えることができ
る。そして、磁気ディスクに大エリア毎の変更情報を記
憶するため、毎回の磁気ディスクに対するアクセス時間
の増加を最低限とできる。そして、データのバックアッ
プは、小エリア情報に基づいて行うが、異常終了の際に
は、大エリア情報に基づいたバックアップが行え、異常
時においてもバックアップを行うことができる。
Since the changed portion for each small area in the main storage portion is stored, it is possible to have fine-tuned changed data, and the processing time can be suppressed to the minimum increase. Then, since the change information for each large area is stored in the magnetic disk, the increase in the access time to the magnetic disk each time can be minimized. Then, the data is backed up based on the small area information, but at the time of abnormal termination, the backup based on the large area information can be performed, and the backup can also be performed at the time of abnormality.

【0011】また、第1の外部記憶手段中に小エリア情
報を所定時間毎に書き込む。そこで、異常終了時におけ
るバックアップを、この所定時間毎の小エリア情報に基
づいて行うことができる。このため、大エリア情報のみ
から行うバックアップに比べ、バックアップの効率化を
図ることができる。そして、この小エリア情報の記憶は
毎回行うわけではないため、通常処理に対する悪影響を
最小限とできる。
Further, the small area information is written in the first external storage means at predetermined time intervals. Therefore, backup at the time of abnormal termination can be performed based on the small area information for each predetermined time. Therefore, it is possible to improve the efficiency of backup as compared with the backup performed only from the large area information. Since the small area information is not stored every time, the adverse effect on the normal processing can be minimized.

【0012】また、小エリア情報の磁気ディスクへの転
送及び大エリア情報はタイムスタンプを有しているた
め、このタイムスタンプを利用して小エリア情報と大エ
リア情報の好適な組合わせを行うことができる。
Further, since the transfer of the small area information to the magnetic disk and the large area information have a time stamp, the small area information and the large area information are preferably combined using this time stamp. You can

【0013】さらに、磁気ディスク14内の書き替えデ
ータが、0データによるクリアであった場合には、これ
を識別し、バックアップするデータ量を小さくすること
ができる。
Further, when the rewritten data in the magnetic disk 14 is clear by 0 data, it can be identified and the amount of data to be backed up can be reduced.

【0014】[0014]

【実施例】以下、本発明の実施例について、図面に基づ
いて説明する。図1は、実施例の全体構成を説明するブ
ロック図であり、各種処理を制御するCPU10と、C
PU10の動作時に必要なデータを記憶する揮発性のメ
モリである主記憶部12と、処理結果についてのデータ
等を記憶する外部記憶装置である磁気ディスク14と、
データバックアップ用の外部記憶装置である磁気テープ
16を有している。そして、記憶部18内には、業務プ
ログラム20と、バックアッププログラム22、小エリ
ア情報記録プログラム24、更新情報管理プログラム2
6及び小エリア情報再生プログラム28が記憶されてい
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram illustrating the overall configuration of the embodiment, which includes a CPU 10 for controlling various processes and a C
A main storage unit 12 that is a volatile memory that stores data required when the PU 10 operates; a magnetic disk 14 that is an external storage device that stores data regarding processing results;
It has a magnetic tape 16 which is an external storage device for data backup. Then, in the storage unit 18, a business program 20, a backup program 22, a small area information recording program 24, an update information management program 2
6 and a small area information reproducing program 28 are stored.

【0015】そして、通常の業務を行う場合には、業務
プログラム20を実行して、キーボード等の入力手段
(図示せず)から入力されるデータを処理し、処理結果
についてのデータを磁気ディスク14に書き込む。例え
ば、医療事務用のコンピュータであれば、患者の登録処
理、診療データの入力や診療報酬明細書の打ち出しなど
を業務プログラムの実行によって行う。
Then, in the case of performing a normal business, the business program 20 is executed to process the data input from the input means (not shown) such as a keyboard, and the data about the processing result is stored in the magnetic disk 14. Write in. For example, in the case of a computer for medical office work, the registration process of a patient, the input of medical care data, the specification of a medical treatment fee statement, etc. are performed by executing a business program.

【0016】そして、本実施例においては、このような
業務プログラムの実行中に、磁気ディスク14内のデー
タ変更についてのデータを所定の方式で記憶し、磁気デ
ィスク14内のデータの磁気テープ16によるバックア
ップの効率化を図る。このために、主記憶部12には、
小エリア情報、大エリア情報が記憶されて、また磁気デ
ィスク14内には、小エリア情報及び大エリア情報が通
常の情報に加えて記憶されている。
In the present embodiment, during the execution of such a business program, the data about the data change in the magnetic disk 14 is stored by a predetermined method, and the data in the magnetic disk 14 is recorded by the magnetic tape 16. Improve backup efficiency. Therefore, in the main memory 12,
Small area information and large area information are stored, and small area information and large area information are stored in the magnetic disk 14 in addition to normal information.

【0017】ここで、小エリア情報及び大エリア情報に
ついて説明する。
Here, the small area information and the large area information will be described.

【0018】小エリア情報 小エリア情報は、磁気ディスク14に記憶されているデ
ータを比較的小さなエリア(例えば、2Kバイト程度)
に分割し、この各小エリア毎にデータが変更されたか否
かの情報を記憶するものである。すなわち、小エリア情
報は、磁気ディスク14のバックアップすべきエリアの
全体をn個の小エリアに分割した場合、小エリア毎に対
応する2ビットの小エリアデータn個と、1つのタイム
スタンプから構成される。
Small Area Information Small area information is a relatively small area (for example, about 2 Kbytes) of data stored on the magnetic disk 14.
The information is stored for each of the small areas and stores information about whether or not the data has been changed. That is, when the entire area to be backed up on the magnetic disk 14 is divided into n small areas, the small area information is composed of n 2-bit small area data corresponding to each small area and one time stamp. To be done.

【0019】ここで、小エリア毎に対応する2ビットの
データは、1ビットが、変更の内容が全てを0にクリア
するものであるか否かについての識別であり、 00:変更なし 01:全てが0で変更された 10:その他で変更された を示している。
Here, in the 2-bit data corresponding to each small area, 1 bit is an identification as to whether or not the content of the change clears all to 0, and 00: no change 01: All are changed with 0. 10: Changed with others.

【0020】また、タイムスタンプは、システム内で管
理する論理的な時刻を表すものであり、初期状態は0と
する。そして、主記憶部12内の小エリア情報を磁気デ
ィスク14に転送した際に、1が加算される。このよう
な小エリア情報は、主記憶12及び磁気ディスク14に
記憶される。
The time stamp represents a logical time managed in the system, and its initial state is 0. Then, when the small area information in the main storage unit 12 is transferred to the magnetic disk 14, 1 is added. Such small area information is stored in the main memory 12 and the magnetic disk 14.

【0021】大エリア情報 大エリア情報は、磁気ディスク14のバックアップすべ
きエリアを比較的大きなエリアである大エリアに分割
し、この大エリア毎に対応するタイムスタンプから構成
されている。例えば、磁気ディスク14のバックアップ
すべきエリアをm個の大エリアに分割する場合には、こ
れらm個の大エリアに対応するm個のタイムスタンプが
大エリアデータとなる。このタイムスタンプは、上述の
場合と同様に、システムで管理する論理的な時刻を表
し、初期状態は0としている。なお、大エリアの方が、
小エリアよりエリアが大きいため、n>mの関係があ
り、小エリア複数個を大エリア1個で代表している。
Large Area Information The large area information is formed by dividing the area to be backed up on the magnetic disk 14 into large areas which are relatively large areas, and a time stamp corresponding to each large area. For example, when the area to be backed up on the magnetic disk 14 is divided into m large areas, m time stamps corresponding to these m large areas become large area data. This time stamp represents a logical time managed by the system as in the case described above, and the initial state is set to 0. In addition, in the large area,
Since the area is larger than the small area, there is a relation of n> m, and a plurality of small areas is represented by one large area.

【0022】バックアップの全体動作 図2は、本装置におけるバックアップ処理の全体の動作
を説明するためのフローチャートである。システムの立
ち上げ時には、まず起動時処理(S1)を行う。この起
動時処理は、主記憶部12における小エリア情報を再生
する処理である。すなわち、主記憶部12は揮発性のメ
モリであるため、システムの終了によって記憶内容が消
失する。そこで、この起動時処理によって他の記憶媒体
(磁気ディスク14)からこのデータを再生する。次
に、業務プログラムの実行中において、小エリア情報、
大エリア情報についての管理を行う。これらの処理によ
り、主記憶部12内の小エリア情報、大エリア情報を順
次書き替え、適宜タイミングで大エリア情報及び小エリ
ア情報の磁気ディスク14への書込が行われる。そし
て、システムにおける処理の終了時においては、終了時
処理が行われる(S3)。この終了時処理において、磁
気ディスク14内のデータを小エリア情報及び大エリア
情報に基づいて磁気テープ16にバックアップする。
Overall Operation of Backup FIG. 2 is a flow chart for explaining the overall operation of the backup processing in this apparatus. When the system is started up, first, a startup process (S1) is performed. This startup process is a process of reproducing the small area information in the main storage unit 12. That is, since the main storage unit 12 is a volatile memory, the stored contents are lost when the system ends. Therefore, this data is reproduced from the other storage medium (magnetic disk 14) by this startup processing. Next, during execution of the business program, small area information,
Manages large area information. By these processes, the small area information and the large area information in the main storage unit 12 are sequentially rewritten, and the large area information and the small area information are written to the magnetic disk 14 at an appropriate timing. Then, at the end of the processing in the system, the end processing is performed (S3). In this termination processing, the data in the magnetic disk 14 is backed up on the magnetic tape 16 based on the small area information and the large area information.

【0023】小エリア情報の再生 図3は、起動時処理(S1)における小エリア情報の再
生の処理を示すフローチャートである。この処理は、小
エリア情報再生プログラム28に基づいて、CPU10
が動作することによって行われる。まず、システムが起
動された時に、直前のシステム動作が正常に終了したか
どうかを判定する(S11)。この終了情報は、後述す
る終了処理において、磁気ディスク14に書き込んでお
く。
Reproduction of Small Area Information FIG. 3 is a flowchart showing the processing of reproducing the small area information in the start-up processing (S1). This processing is based on the small area information reproducing program 28 and is executed by the CPU 10
Is done by operating. First, when the system is started up, it is determined whether or not the immediately preceding system operation is normally completed (S11). This end information is written in the magnetic disk 14 in the end process described later.

【0024】そして、終了情報により正常終了であると
判定された場合には、主記憶部12に磁気ディスク14
に記憶されている小エリア情報を読出す(S12)。一
方、異常終了であった場合には、主記憶部12内の小エ
リア情報を再生する(S14)。この小エリア情報の再
生は、磁気ディスク14内における小エリア情報及び大
エリア情報を利用して行う。すなわち、磁気ディスク1
4内の小エリア情報を主記憶部12に読出すと共に、こ
の小エリア情報のタイムスタンプと、各大エリアのタイ
ムスタンプを比較する。そして、小エリア情報のタイム
スタンプと同一(小さくない)タイムスタンプを有する
大エリアについてデータの更新があったものとする。こ
れは、後述するように、小エリア情報の磁気ディスク1
4へのコピー終了後に変更のあった大エリアデータのみ
が小エリア情報と同一のタイムスタンプを有するからで
ある。これによって、磁気ディスクへの小エリア情報の
転送後に磁気ディスク14へ書き込まれた場合について
のみ、大エリア情報に基づいてデータ更新があったと判
定されることになる。
When it is determined from the termination information that the termination is normal, the magnetic disk 14 is stored in the main storage unit 12.
The small area information stored in is read (S12). On the other hand, if it is an abnormal end, the small area information in the main storage unit 12 is reproduced (S14). The reproduction of the small area information is performed using the small area information and the large area information in the magnetic disk 14. That is, the magnetic disk 1
The small area information in 4 is read into the main storage unit 12, and the time stamp of this small area information is compared with the time stamp of each large area. Then, it is assumed that the data is updated for the large area having the same (not smaller) time stamp as the time stamp of the small area information. This is a magnetic disk 1 for small area information, as will be described later.
This is because only the large area data that has been changed after the copying to 4 has the same time stamp as the small area information. As a result, only when the small area information is written to the magnetic disk 14 after being transferred to the magnetic disk, it is determined that the data has been updated based on the large area information.

【0025】そして、このように更新があったと判定さ
れた大エリアについては、その大エリアに含まれる全て
の小エリアに更新があったものとして、小エリア情報が
更新される。
Then, for the large area determined to have been updated in this way, the small area information is updated on the assumption that all the small areas included in the large area have been updated.

【0026】このようにして主記憶部12内の小エリア
情報が再生された場合には、この小エリア情報を磁気デ
ィスク14内にコピーする(S15)。そして、次に、
主記憶部12及び磁気ディスク14内の大エリア情報を
クリアする(S16)。これは、磁気ディスク14にア
ップデイトされた小エリア情報が書き込まれたため、大
エリア情報は必要ないためである。
When the small area information in the main memory 12 is reproduced in this way, this small area information is copied into the magnetic disk 14 (S15). And then,
The large area information in the main memory 12 and the magnetic disk 14 is cleared (S16). This is because the updated small area information is written on the magnetic disk 14, and thus the large area information is not necessary.

【0027】また、この段階で、終了情報に異常終了を
セットする(S17)。このように異常終了を予めセッ
トしておくことにより、終了処理において正常終了がセ
ットされなかった限りは、次のシステム起動時における
S11において異常と判定されることになる。
At this stage, abnormal termination is set in the termination information (S17). By setting the abnormal termination in advance in this way, unless the normal termination is set in the termination processing, it is determined that the abnormality is abnormal in S11 at the next system startup.

【0028】更新管理 図4は、業務プログラム実行中における更新情報管理プ
ログラムの手順を示すフローチャートである。すなわ
ち、業務プログラム実行中に磁気ディスクへの出力が発
生した場合には、その出力位置の情報と出力するデータ
が全て0か否かを判定し、小エリア情報及び大エリア情
報の書き替えを行う。
Update Management FIG. 4 is a flowchart showing the procedure of the update information management program during execution of the business program. That is, when the output to the magnetic disk occurs during the execution of the business program, it is determined whether or not the output position information and the output data are all 0, and the small area information and the large area information are rewritten. .

【0029】すなわち、磁気ディスク14への出力であ
るか否かを判定し(S21)、磁気ディスク14への出
力であった場合には、出力位置の情報から対象となる小
エリアと、ここに書き込む小エリアデータを決定する。
すなわち、上述のような2ビットの小エリアデータを出
力するデータの内容から決定する(S22)。ここで、
複数の小エリアが対象であった場合には、小エリア毎に
書き込む小エリアデータが異なる場合もある。すなわ
ち、ある小エリアに対しては、全てが0のデータを書き
込むクリアであるが、他の小エリアについては通常のデ
ータ書込である場合には、小エリア毎にデータの内容が
異なることとなる。そして、データの出力位置から、対
応する小エリアデータの位置を決定し、その内容とS2
2で決定された小エリアデータを比較し、変更が必要な
場合には小エリアデータを変更する(S23)。
That is, it is determined whether or not the output is to the magnetic disk 14 (S21), and if the output is to the magnetic disk 14, the small area of interest based on the output position information Determine the small area data to write.
That is, it is determined from the content of the data that outputs the 2-bit small area data as described above (S22). here,
When a plurality of small areas are targeted, the small area data to be written may be different for each small area. In other words, it is clear that data of all 0s is written to a certain small area, but if normal data writing is performed to another small area, the content of data differs for each small area. Become. Then, the position of the corresponding small area data is determined from the output position of the data, and the contents and S2
The small area data determined in 2 are compared, and if the change is necessary, the small area data is changed (S23).

【0030】次に、出力位置についての情報から対象と
なる大エリアを決定する(S24)。この場合、書込位
置によっては、複数のエリアが対象となることもある。
そして、主記憶部12の対象となる大エリアデータを読
み出し、このタイムスタンプと、小エリア情報のタイム
スタンプを比較する(S25)。そして、両情報におけ
るタイムスタンプが異なっていた場合には、主記憶部1
2内の大エリアデータに小エリア情報のタイムスタンプ
をコピーしてこれを書き替えると共に(S26)、書き
替えた大エリアデータを磁気ディスクの対応大エリアデ
ータへコピーする(S27)。このようにして、書き替
えの行われた大エリアデータは、主記憶部12内の小エ
リア情報のタイムスタンプをコピーすることによって行
う。そこで、出力位置に対応する大エリアデータは、小
エリア情報のタイムスタンプと同一になる。また、S2
5において、タイムスタンプが同一であった場合には、
データの書き替えの必要はないため、S26の磁気ディ
スク14へのデータのコピーは行わない。従って、同一
のエリア内のデータが複数回に亘って書き替えられた場
合における磁気ディスクへのアクセスは1回となり、ア
クセス回数を減少することができる。このようにして、
更新管理プログラム26の実行により、磁気ディスク1
4の内容が書き替えられた場合には、主記憶部12内の
小エリア情報及び大エリア情報が書き替えられ、また必
要に応じて磁気ディスク14内の大エリア情報が書き替
えられることとなる。なお、主記憶部12内の小エリア
情報および大エリア情報も書き替えが必要な場合にのみ
データの書き替えが行われる。また、主記憶部12内の
データ書き替えに要する時間は非常に早く、また磁気デ
ィスク14内のデータは、大エリア情報のみの変更であ
るため、ここに要する時間も非常に短く、必ずしも毎回
行われる訳ではない。そこで、通常の業務プログラムの
実行にはほとんど影響することなく、これら情報の書き
替えを行うことができる。
Next, the target large area is determined from the information on the output position (S24). In this case, a plurality of areas may be targeted depending on the writing position.
Then, the target large area data in the main storage unit 12 is read, and this time stamp is compared with the time stamp of the small area information (S25). If the time stamps in both information are different, the main storage unit 1
The time stamp of the small area information is copied to the large area data in 2 and rewritten (S26), and the rewritten large area data is copied to the corresponding large area data of the magnetic disk (S27). In this way, the rewritten large area data is obtained by copying the time stamp of the small area information in the main storage unit 12. Therefore, the large area data corresponding to the output position becomes the same as the time stamp of the small area information. Also, S2
In 5, if the time stamps are the same,
Since it is not necessary to rewrite the data, the data is not copied to the magnetic disk 14 in S26. Therefore, when the data in the same area is rewritten a plurality of times, the magnetic disk is accessed once, and the number of accesses can be reduced. In this way
By executing the update management program 26, the magnetic disk 1
When the contents of 4 are rewritten, the small area information and the large area information in the main storage unit 12 are rewritten, and the large area information in the magnetic disk 14 is rewritten as necessary. . The data is rewritten only when the small area information and the large area information in the main storage unit 12 also need to be rewritten. In addition, the time required for rewriting the data in the main storage unit 12 is very short, and the data in the magnetic disk 14 is only a change in the large area information. I'm not told. Therefore, the information can be rewritten with almost no influence on the execution of the normal business program.

【0031】小エリア情報の記録 図5は、定期的に行われる磁気ディスク14内の小エリ
ア情報の書き替えについての動作を説明するフローチャ
ートである。この動作は、CPU10における小エリア
情報記録プログラム28の実行による。まず、小エリア
情報を磁気ディスクに転送する書込タイミングか否かを
判定する(S31)。これは、この書き込みタイミング
は、所定の時間(数分から十分程度)経過したこと、ま
たはシステムを終了する終了業務における所定のタイミ
ングで設定されている。そして、書込タイミングであっ
た場合には、主記憶部12内の小エリア情報のタイムス
タンプに1を加える(S32)と共に、タイムスタンプ
に1を加えた小エリア情報を磁気ディスク14内にコピ
ーする(S33)。
Recording of Small Area Information FIG. 5 is a flow chart for explaining the operation for rewriting the small area information in the magnetic disk 14 which is regularly performed. This operation is based on the execution of the small area information recording program 28 in the CPU 10. First, it is determined whether it is the write timing for transferring the small area information to the magnetic disk (S31). This writing timing is set when a predetermined time (several minutes to about 10 minutes) has passed or at a predetermined timing in the end work for ending the system. When it is the write timing, 1 is added to the time stamp of the small area information in the main memory 12 (S32), and the small area information with 1 added to the time stamp is copied into the magnetic disk 14. Yes (S33).

【0032】このようにして、主記憶部12内の小エリ
ア情報を磁気ディスク14内にコピーする度に、主記憶
部12および磁気ディスク14内の小エリア情報のタイ
ムスタンプに1が加算されることとなる。
In this way, each time the small area information in the main memory 12 is copied to the magnetic disk 14, 1 is added to the time stamps of the small area information in the main memory 12 and the magnetic disk 14. It will be.

【0033】一方、磁気ディスク14内の大エリア情報
の各タイムスタンプは、対応データの更新が行われた際
に小エリア情報のコピーによって更新される。そこで、
大エリア情報のタイムスタンプは小エリア情報のコピー
が行われた後に更新されたときだけ、同一の値となり、
そうでない場合には小エリア情報のタイムスタンプより
小さな値となっている。そこで、上述の図3のS13に
おける異常終了時の小エリア情報の再生において、タイ
ムスタンプの比較が行えることになる。
On the other hand, each time stamp of the large area information in the magnetic disk 14 is updated by copying the small area information when the corresponding data is updated. Therefore,
The large area information time stamp has the same value only when it is updated after the small area information is copied,
Otherwise, the value is smaller than the time stamp of the small area information. Therefore, when reproducing the small area information at the time of abnormal termination in S13 of FIG. 3, the time stamps can be compared.

【0034】バックアップ処理 図6は、終了業務の際のバックアップ処理の動作を示す
フローチャートである。まずこの終了処理においては、
バックアップ指令があるか否かを判定する(S41)。
これは、ユーザーに対しバックアップするか否かを問い
合わせ、ユーザーの回答によって判定する。通常の場
合、ディスプレイ等にバックアップするか否かの質問を
表示し、これに対しキーボードからYESまたはNOの
入力を行うことによる。そしてバックアップを行わない
場合には、終了情報に正常終了をセットし(S45)、
処理を終了する。一方、バックアップを行う場合には、
主記憶部12内の小エリア情報に従って、バックアップ
を行う。すなわち、小エリア情報により、「全てが0で
書き込まれた」の場合には、そのエリアの範囲を示す情
報と、「全てが0と書き込まれた」を示す情報をバック
アップする。一方、「その他で書き込まれた」の場合に
は、そのエリアの範囲を示す情報と、「その他で書き込
まれた」を示す情報及びそのエリアのディスク装置上の
データを一緒に磁気テープ16にコピーする。そして、
終了情報に正常終了をセットし(S45)、磁気ディス
ク上の小エリア情報をクリアして処理を終了する。この
ように、本実施例によれば、処理によって変更された小
エリアについて小エリアデータの更新が行われる。そし
て、小エリア情報は主記憶部12に記憶されている。そ
こで、小エリアを比較的小さくして、きめ細かな変更情
報をもったとしても、アクセスが非常に速く、その他処
理に問題を生じない。一方、異常終了の場合には、磁気
ディスク14内に記憶されている小エリア情報及び大エ
リア情報から小エリア情報を再生する。すなわち、磁気
ディスク14内の小エリア情報と大エリア情報内のタイ
ムスタンプを比較し、小エリア情報記録後のタイムスタ
ンプを有する大エリア情報によって小エリア情報を再生
する。そこで、大エリア情報による比較的おおまかな変
更の記録の使用を最小限としながら、バックアップ情報
を再生することができる。そして、バックアップの際に
は、このようにして再生された小エリア情報にその後の
変更のデータを加えてこれに基づきバックアップを行う
ことができる。
Backup Process FIG. 6 is a flow chart showing the operation of the backup process at the time of ending work. First, in this end process,
It is determined whether or not there is a backup command (S41).
In this case, the user is inquired whether or not to make a backup, and the answer is from the user. In a normal case, a question as to whether or not to back up is displayed on a display or the like, and YES or NO is input from the keyboard in response to this. If the backup is not performed, the end information is set to normal end (S45),
The process ends. On the other hand, when backing up,
Backup is performed according to the small area information in the main storage unit 12. That is, in the case of "all written with 0" from the small area information, the information showing the range of the area and the information showing "all written with 0" are backed up. On the other hand, in the case of “written in other area”, the information indicating the range of the area, the information indicating “written in other area” and the data on the disk device in the area are copied to the magnetic tape 16 together. To do. And
The normal end is set in the end information (S45), the small area information on the magnetic disk is cleared, and the process ends. Thus, according to this embodiment, the small area data is updated for the small area changed by the processing. The small area information is stored in the main storage unit 12. Therefore, even if the small area is made relatively small and detailed change information is provided, the access is very fast and there is no problem in other processing. On the other hand, in the case of abnormal termination, the small area information is reproduced from the small area information and the large area information stored in the magnetic disk 14. That is, the small area information in the magnetic disk 14 is compared with the time stamps in the large area information, and the small area information is reproduced by the large area information having the time stamp after recording the small area information. Therefore, the backup information can be reproduced while minimizing the use of recording a relatively rough change by the large area information. Then, at the time of backup, it is possible to add data of subsequent changes to the small area information reproduced in this way and perform backup based on this.

【0035】従って、システムが異常終了した場合にお
いても効率的なバックアップを行うことができる。特
に、大エリア情報は、逐次磁気ディスク14に書き込む
が、小エリア情報は所定の頻度で行う。そこで、磁気デ
ィスク14に対するアクセス時間を短縮しながら、効率
的なバックアップを行うことができる。
Therefore, even if the system ends abnormally, efficient backup can be performed. In particular, the large area information is sequentially written on the magnetic disk 14, but the small area information is performed at a predetermined frequency. Therefore, efficient backup can be performed while shortening the access time to the magnetic disk 14.

【0036】[0036]

【発明の効果】以上説明したように、本発明に係るバッ
クアップシステムによれば、主記憶部における小エリア
毎の変更部分についての記憶を行うため、きめ細かな変
更データを持つことができ、処理時間を最低限の増加に
押えることができる。そして、磁気ディスクに大エリア
毎の変更情報を記憶するため、毎回の磁気ディスクに対
するアクセス時間の増加を最低限とできる。そして、デ
ータのバックアップは、小エリア情報に基づいて行う
が、異常終了の際には、大エリア情報に基づいたバック
アップが行え、異常時においてもバックアップを行うこ
とができる。
As described above, according to the backup system of the present invention, since the changed portion for each small area in the main storage portion is stored, it is possible to have fine-tuned changed data and to reduce the processing time. Can be kept to a minimum increase. Then, since the change information for each large area is stored in the magnetic disk, the increase in the access time to the magnetic disk each time can be minimized. Then, the data is backed up based on the small area information, but at the time of abnormal termination, the backup based on the large area information can be performed, and the backup can also be performed at the time of abnormality.

【0037】さらに第1の外部記憶手段中に小エリア情
報を所定時間毎に書き込む。そこで、異常終了時におけ
るバックアップを、この所定時間毎の小エリア情報に基
づいて行うことができる。このため、大エリア情報のみ
から行うバックアップに比べ、バックアップの効率化を
図ることができる。そして、この小エリア情報の記憶は
毎回行うわけではないため、通常処理に対する悪影響を
最小限とできる。
Further, the small area information is written in the first external storage means at predetermined time intervals. Therefore, backup at the time of abnormal termination can be performed based on the small area information for each predetermined time. Therefore, it is possible to improve the efficiency of backup as compared with the backup performed only from the large area information. Since the small area information is not stored every time, the adverse effect on the normal processing can be minimized.

【0038】また、小エリア情報の磁気ディスクへの転
送及び大エリア情報はタイムスタンプを有しているた
め、このタイムスタンプを利用して小エリア情報と大エ
リア情報の好適な組合わせを行うことができる。
Since the small area information is transferred to the magnetic disk and the large area information has a time stamp, the small area information and the large area information are preferably combined using this time stamp. You can

【0039】さらに、磁気ディスク14内の書き替えデ
ータが、0データによるクリアであった場合には、これ
を識別し、バックアップするデータ量を小さくすること
ができる。
Further, when the rewritten data in the magnetic disk 14 is clear by 0 data, this can be identified and the amount of data to be backed up can be reduced.

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

【図1】実施例の全体構成を示すブロック図である。FIG. 1 is a block diagram showing an overall configuration of an embodiment.

【図2】処理の全体動作を説明するフローチャートであ
る。
FIG. 2 is a flowchart illustrating the overall operation of processing.

【図3】小エリア情報再生の動作を示すフローチャート
である。
FIG. 3 is a flowchart showing an operation of reproducing small area information.

【図4】更新管理の手順を示すフローチャートである。FIG. 4 is a flowchart showing a procedure of update management.

【図5】小エリア情報の定期的な記憶の動作を示すフロ
ーチャートである。
FIG. 5 is a flowchart showing an operation of periodically storing small area information.

【図6】バックアップ処理の手順を示すフローチャート
である。
FIG. 6 is a flowchart showing a procedure of backup processing.

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

10 CPU 12 主記憶部 14 磁気ディスク 16 磁気テープ 10 CPU 12 Main memory 14 Magnetic disk 16 Magnetic tape

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 各種データ処理の際に必要なデータ、プ
ログラム等を一時的に記憶するための主記憶部と、 データ処理によって得られたデータを記憶するための第
1の外部記憶手段と、 この第1の外部記憶手段に記憶されているデータをバッ
クアップするための第2の外部記憶手段と、 を含むデータバックアップシステムであって、 主記憶部上に設けられ、第1の外部記憶手段を所定の小
エリア毎に分け、その範囲内のデータが変更されたか否
かについての小エリア情報を記憶する小エリア情報記憶
部と、 第1の外部記憶手段上に設けられ、第1の外部記憶手段
を所定の大エリア毎に分け、その範囲内のデータが変更
されたか否かの大エリア情報を記憶する大エリア情報記
憶部と、 を有し、 主記憶部内の小エリア情報記憶部のデータが利用可能な
場合にはこの小エリア制御メモリ内のデータに基づいて
第1の外部記憶手段におけるデータの変更された小エリ
アのデータを第2の外部記憶手段に転送し、主記憶部内
の小エリア情報記憶部のデータが利用不能である場合に
は大エリア情報記憶部のデータに基づいて第1外部記憶
手段のデータを第2外部記憶手段に転送してデータのバ
ックアップを行うことを特徴とするデータバックアップ
システム。
1. A main storage unit for temporarily storing data, programs, etc. necessary for various data processing, and a first external storage means for storing data obtained by the data processing, A second external storage means for backing up data stored in the first external storage means, and a data backup system including: a first external storage means provided on the main storage unit. A small area information storage unit, which is divided into predetermined small areas and stores small area information regarding whether or not data within the range is changed, and a first external storage provided on the first external storage means. A large area information storage unit that stores the large area information indicating whether or not the data within the range has been changed, and the data of the small area information storage unit in the main storage unit. Profit If possible, based on the data in the small area control memory, the data in the small area in which the data in the first external storage means is changed is transferred to the second external storage means, and the small area information in the main storage section is transferred. When the data in the storage unit is unavailable, the data in the first external storage unit is transferred to the second external storage unit based on the data in the large area information storage unit to back up the data. Backup system.
【請求項2】 請求項1記載のシステムにおいて、 上記小エリア情報記憶部に記憶されている小エリア情報
を所定時間毎に第1の外部記憶手段へ転送して記憶し、
主記憶部内の小エリア情報記憶部のデータが利用不能で
ある場合には第1の外部記憶手段に記憶されている大エ
リア情報および小エリア情報の両方に基づいてバックア
ップを行うことを特徴とするデータバックアップシステ
ム。
2. The system according to claim 1, wherein the small area information stored in the small area information storage section is transferred to a first external storage means and stored at predetermined intervals,
When the data in the small area information storage unit in the main storage unit is unavailable, backup is performed based on both the large area information and the small area information stored in the first external storage unit. Data backup system.
【請求項3】 請求項2記載のシステムにおいて、 大エリア情報はその書き込み時間についての情報を含む
と共に、主記憶部内の小エリア情報を第1外部記憶手段
に転送した際にはその転送時間についての情報を小エリ
ア情報と共に書き込み、主記憶部内の小エリア情報記憶
部のデータが利用不能である場合には前記第1外部記憶
手段の小エリア情報および小エリア情報転送後の大エリ
ア情報に基づいてデータバックアップを行うことを特徴
とするデータバックアップシステム。
3. The system according to claim 2, wherein the large area information includes information about the writing time, and when the small area information in the main storage unit is transferred to the first external storage means, the transfer time is about the transfer time. Information is written together with the small area information, and when the data in the small area information storage section in the main storage section is unavailable, based on the small area information in the first external storage section and the large area information after the small area information transfer. A data backup system characterized by backing up data.
【請求項4】 請求項1記載のシステムにおいて、 上記小エリア情報は、当該小エリア内のデータがすべて
0に変更されたか否かを示すデータを含むことを特徴と
するデータバックアップシステム。
4. The data backup system according to claim 1, wherein the small area information includes data indicating whether or not all the data in the small area has been changed to 0.
JP04319083A 1992-11-27 1992-11-27 Data backup system Expired - Fee Related JP3133525B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04319083A JP3133525B2 (en) 1992-11-27 1992-11-27 Data backup system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04319083A JP3133525B2 (en) 1992-11-27 1992-11-27 Data backup system

Publications (2)

Publication Number Publication Date
JPH06168171A true JPH06168171A (en) 1994-06-14
JP3133525B2 JP3133525B2 (en) 2001-02-13

Family

ID=18106308

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04319083A Expired - Fee Related JP3133525B2 (en) 1992-11-27 1992-11-27 Data backup system

Country Status (1)

Country Link
JP (1) JP3133525B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010541060A (en) * 2007-10-01 2010-12-24 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and apparatus for migration and cancellation of thin provisioning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010541060A (en) * 2007-10-01 2010-12-24 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and apparatus for migration and cancellation of thin provisioning
US8386744B2 (en) 2007-10-01 2013-02-26 International Business Machines Corporation Thin provisioning migration and scrubbing

Also Published As

Publication number Publication date
JP3133525B2 (en) 2001-02-13

Similar Documents

Publication Publication Date Title
JP3246146B2 (en) Data transfer method for external storage device
JPH07110784A (en) Method and device for storing additional form record
US6636876B1 (en) Database copy apparatus, database copy method and recording medium recorded with database copy program
US6956798B2 (en) Information recording apparatus and method for recording information on recording medium
JP3133525B2 (en) Data backup system
JP3022011B2 (en) Data backup system
JP3921751B2 (en) Recording apparatus, recording method, and recording / reproducing apparatus
JPH0973372A (en) Method and device for storage control
JPH0793101A (en) Data backup device
US20030120689A1 (en) Database management program and recording medium
JPH03171242A (en) File backup method
JPH0235537A (en) Multiple volume update control system
JP5040051B2 (en) Information processing apparatus and method, recording medium, and program
JPS58175065A (en) Processing system of multiplex volume
JPS62269256A (en) Data storage system for semiconductor file
JPH04336638A (en) Disk exchange system in system working mode
JPH04354029A (en) System software multiplex computer system
JPS6340949A (en) File managing method
JPH0660023A (en) System switching method
JPH0335477A (en) Peripheral memory controller
KR20000037573A (en) Method and device for executing software loading frequently used library first
JP2001014198A (en) System and method for backing-up data and recording medium
JPS6254347A (en) Processing system for fault of file
JPH11272452A (en) Cd-rom activation system
JPH01196627A (en) System for updating software

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees