JPH0496838A - File backup method - Google Patents

File backup method

Info

Publication number
JPH0496838A
JPH0496838A JP2215302A JP21530290A JPH0496838A JP H0496838 A JPH0496838 A JP H0496838A JP 2215302 A JP2215302 A JP 2215302A JP 21530290 A JP21530290 A JP 21530290A JP H0496838 A JPH0496838 A JP H0496838A
Authority
JP
Japan
Prior art keywords
file
files
update
backup
updated
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
JP2215302A
Other languages
Japanese (ja)
Inventor
Masahiro Fuse
布施 昌裕
Yasuo Murai
村井 康男
Takahiro Komatsu
小松 孝浩
Yoshihisa Enomoto
榎本 圭央
Masashi Tanaka
正志 田中
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.)
Hitachi Computer Electronics Co Ltd
Hitachi Ltd
Hitachi Computer Engineering Co Ltd
Original Assignee
Hitachi Computer Electronics Co Ltd
Hitachi Ltd
Hitachi Computer Engineering 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 Hitachi Computer Electronics Co Ltd, Hitachi Ltd, Hitachi Computer Engineering Co Ltd filed Critical Hitachi Computer Electronics Co Ltd
Priority to JP2215302A priority Critical patent/JPH0496838A/en
Publication of JPH0496838A publication Critical patent/JPH0496838A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To back up a file together with related files of the corresponding generation by referring to a storage means to simultaneously back up files related to an update file at the time of updating the file. CONSTITUTION:A user program 21 registers the update file name in an update file name register file 23 simultaneously with updating of a file (c) 33. An update file backup control program 22 reads the file 24 to obtain the update file name and obtains backup file names (a) 31 to (c) 33 corresponding to the update file name from a register file 25 of file names to be backed up simultaneously with update. Files (a) 31 to (c) 33 are read in from a file group 30 based on backup file names (a) 31 to (c) 33 and are outputted to a file backup medium 23. Thus, the file is returned to the state of several generations before at a time.

Description

【発明の詳細な説明】 〔産業上の利用分野] 本発明は、互いに関連のある複数ファイルから構成され
たデータベースのファイルバックアップ方法に関し、特
にファイル更新時、関連のあるファイルの整合性を保つ
のに好適なファイルバックアップ方法に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a file backup method for a database composed of a plurality of mutually related files, and in particular, to a file backup method for maintaining the consistency of related files when updating files. This invention relates to a file backup method suitable for.

[従来の技術] 従来、データベースシステムの情報は一元管理され、複
数のプログラムがこれを利用するため、データは正しく
維持される必要がある。また、互いに関連のある複数の
ファイルから構成されたデータベースでは、ファイル相
互間の関連を含め、整合性のあるデータが要求される。
[Background Art] Conventionally, information in a database system is centrally managed and used by multiple programs, so the data needs to be maintained correctly. Furthermore, in a database composed of a plurality of files that are related to each other, consistent data is required, including the relationships between the files.

例えば、ハードウェア設計用のデータは、論理情報ファ
イル、結線情報ファイル等、複数のファイルが互いに関
連を持ち、これらがデータベースを構成する。このよう
なデータベースでは、更新したファイルをバックアップ
する場合、物理的に更新されたファイルのみがバックア
ップされ、物理的に更新されないものは更新情報に関連
があってもバックアップされない。
For example, data for hardware design includes a plurality of files that are related to each other, such as a logical information file and a connection information file, and these files constitute a database. In such a database, when backing up updated files, only physically updated files are backed up, and files that are not physically updated are not backed up even if they are related to updated information.

このため、ファイルに障害が発生した場合、バックアッ
プ媒体から回復するのに手間がかかる。
Therefore, if a file failure occurs, it takes time to recover from the backup medium.

例えば、ファイルAを現状より古いバージョンに戻す場
合には、バージョンのAのバックアップ媒体と、それに
対応するファイルB(ファイルAと関連するが物理的に
更新されなかったもの)をバックアップした媒体とを探
して回復処理する必要がある。
For example, if you want to restore file A to an older version than its current version, you must use the backup medium for version A and the medium that backed up the corresponding file B (related to file A but not physically updated). Need to find and recover.

なお、この種の方法として関連するものには、例えば特
開平1−171042号がある。
A related method of this type is, for example, Japanese Unexamined Patent Publication No. 1-171042.

[発明が解決しようとする課題] 上記従来技術では、ファイル間の関連については配慮が
なされておらず、数世代前のファイルとそれに関連した
ファイルを同時に回復しようとした場合、人手で対応す
る世代の関連ファイルを探さなくてはならないという問
題があった。
[Problem to be solved by the invention] In the above-mentioned conventional technology, no consideration is given to the relationship between files, and when an attempt is made to simultaneously recover a file from several generations ago and a file related to it, the corresponding generations must be manually restored. The problem was that I had to search for files related to .

本発明の目的は、このような問題点を改善し、更新した
ファイルをバックアップする際、同時に対応する世代の
関連ファイルを合わせてバックアップすることが可能な
ファイルバックアップ方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a file backup method that can solve these problems and simultaneously back up related files of the corresponding generation when backing up an updated file.

[課題を解決するための手段] 上記目的を達成するため、本発明のファイルバックアッ
プ方法は、互いに関連のある複数のファイルを有するデ
ータベースにおいて、ファイル間の関連をもとにして、
更新ファイルとともにバックアップするファイルのファ
イル名情報を予め記憶する手段(更新時同時バックアッ
プファイル名登録ファイル)を備え、ファイル更新時、
その記憶手段を参照して、更新ファイルに関連するファ
イルを同時にバックアップすることに特徴がある。
[Means for Solving the Problems] In order to achieve the above object, the file backup method of the present invention provides a file backup method based on the relationships between files in a database having a plurality of mutually related files.
Equipped with a means (simultaneous update backup file name registration file) for storing file name information of files to be backed up together with updated files in advance;
The feature is that files related to the updated file are simultaneously backed up by referring to the storage means.

また、上記データベースを持ち、ネットワークで接続さ
れた計算機システムにおいて、ファイル間の関連をもと
にして、更新ファイルとともにネットワークを介して転
送するファイルのファイル名情報を予め記憶する手段(
更新時同時転送ファイル名登録ファイル)を備え、ファ
イル更新時、その記憶手段を参照して、更新ファイルと
それに関連するファイルとを同時に転送することに特徴
がある。
Further, in a computer system having the above-mentioned database and connected via a network, a means (
The system is characterized in that it includes a file name registration file (simultaneous transfer at update time), and when a file is updated, the update file and related files are simultaneously transferred by referring to the storage means.

[作用] 本発明においては、更新ファイルバックアップ制御プロ
グラムが更新ファイル名登録ファイルに登録された更新
ファイル名と更新時同時バッグアップファイル名登録テ
ーブルを読み込み、バックアップするファイル名を求め
るため、更新されたファイルだけでなく、関連するファ
イルも同時にバックアップすることができる。
[Operation] In the present invention, the update file backup control program reads the update file name registered in the update file name registration file and the update simultaneous backup file name registration table, and obtains the file name to be backed up. You can back up not only files but also related files at the same time.

従って、互いに関連のある複数のファイルを有するデー
タベースのファイル更新時、更新ファイルとそれに関連
するファイルの整合性を保つことができる。
Therefore, when updating files in a database that includes a plurality of mutually related files, consistency between the updated file and its related files can be maintained.

C実施例) 以下、本発明の一実施例を図面により説明する。Example C) An embodiment of the present invention will be described below with reference to the drawings.

(第1の実施例) 第2図は、本発明の第1の実施例におけるデータヘース
システムの構成図である。
(First Embodiment) FIG. 2 is a block diagram of a data storage system according to a first embodiment of the present invention.

第2図において、21は利用者プログラム、30はファ
イル群、24は更新ファイル名登録ファイル、22は更
新ファイルバックアップ制御プログラム、25は更新時
同時バックアップファイル名登録ファイル、23はファ
イルバックアップ媒体である。また、ファイル群30は
、ファイル(イ)〜(へ)31へ36を有する。
In FIG. 2, 21 is a user program, 30 is a file group, 24 is an update file name registration file, 22 is an update file backup control program, 25 is a simultaneous backup file name registration file when updating, and 23 is a file backup medium. . Further, the file group 30 includes files (a) to (f) 31 to 36.

第3図は、本発明の第1の実施例における更新時同時バ
ックアップファイル名登録ファイルの説明図である。
FIG. 3 is an explanatory diagram of a simultaneous update backup file name registration file in the first embodiment of the present invention.

本実施例の更新時同時バックアップファイル名登録ファ
イル25は、更新されたファイルに対応するバックアッ
プファイル名を更新時同時バックアップファイル名登録
テーブル25aとして格納する。
The simultaneous update backup file name registration file 25 of this embodiment stores backup file names corresponding to updated files as a simultaneous update backup file name registration table 25a.

次に、第2図のファイル(ハ)33を更新した場合の動
作について述べる。
Next, the operation when the file (c) 33 in FIG. 2 is updated will be described.

第1図は、本発明の第1の実施例におけるファイルバッ
クアップ方法を示すフローチャートてあまず、利用者プ
ログラム21は、ファイル(ハ)33を更新し、同時に
、更新ファイル名登録ファイル24に更新ファイル名(
ファイル(ハ)33)を登録する(101)。
FIG. 1 is a flowchart showing a file backup method in the first embodiment of the present invention. First, the user program 21 updates the file (c) 33, and at the same time writes the updated file name in the updated file name registration file 24. given name(
The file (c) 33) is registered (101).

次に、更新ファイルバックアップ制御プログラム22に
制御を移し、更新ファイル名登録ファイル24を読み、
更新ファイル名(ファイル(ハ)33)を得る。さらに
、更新ファイル名登録ファイル24をクリアし、更新フ
ァイル名(ファイル(ハ)33)を消す(102)。
Next, control is transferred to the update file backup control program 22, reads the update file name registration file 24,
Obtain the updated file name (file (c) 33). Furthermore, the updated file name registration file 24 is cleared and the updated file name (file (c) 33) is deleted (102).

次に、更新ファイルバックアップ制御プログラム22は
、更新時同時バックアップファイル名登録ファイル2S
より、更新時同時バックアップファイル名登録テーブル
25aを読み込み、更新ファイル名(ファイル(ハ)3
3)に対応するバッグアップファイル名(ファイル(イ
)〜(ハ)31〜33)を得る(103)。
Next, the update file backup control program 22 executes the update simultaneous backup file name registration file 2S.
reads the update simultaneous backup file name registration table 25a and enters the update file name (file (c) 3
The backup file names (files (a) to (c) 31 to 33) corresponding to 3) are obtained (103).

最後に、更新ファイルバックアップ制御プログラム22
は、バックアップファイル名(ファイル(イ)〜(ハ)
31〜33)を元に、ファイル群30より、ファイル(
イ)〜(ハ)31〜33を読み込み、ファイルバッファ
ツク媒体23に出力する(104)。
Finally, update file backup control program 22
is the backup file name (file (a) ~ (c)
31 to 33), from file group 30, file (
A) to (c) 31 to 33 are read and output to the file buffer storage medium 23 (104).

(第2の実施例) 本実施例では、ネットワークで接続された計算機システ
ムにおけるファイルバックアップ方法について述べる。
(Second Embodiment) In this embodiment, a file backup method in a computer system connected via a network will be described.

第4図は、本発明の第2の実施例におけるデータベース
システムの構成図である。
FIG. 4 is a configuration diagram of a database system in a second embodiment of the present invention.

第4図において、45は更新側の中央処理装置、44は
通信制御装置、60はファイル群、24は更新ファイル
名登録ファイル、47は更新時同時転送ファイル名登録
ファイル、41は受信側の中央処理装置、43は通信制
御装置、50はファイル群である。
In FIG. 4, 45 is a central processing unit on the update side, 44 is a communication control device, 60 is a file group, 24 is an update file name registration file, 47 is a file name registration file that is simultaneously transferred at the time of update, and 41 is a central processing unit on the receiving side. A processing device, 43 a communication control device, and 50 a file group.

また、中央処理装置45は、利用者プログラム21およ
び更新ファイル送信制御プログラム46を備える。
The central processing unit 45 also includes a user program 21 and an update file transmission control program 46 .

また、ファイル群60はファイル(A)〜(F)61〜
66で構成される。
Further, the file group 60 includes files (A) to (F) 61 to
Consists of 66.

また、中央処理装置41は、更新ファイル受信制御プロ
グラム42を有する。
Further, the central processing unit 41 has an update file reception control program 42.

また、ファイル群50は、ファイル群60の各ファイル
(A)〜(F)に対応するファイル(a)〜(f)51
〜56で構成される。
The file group 50 also includes files (a) to (f) 51 corresponding to each file (A) to (F) of the file group 60.
~56.

次に、第4図のファイル(C)63を更新した場合の動
作について述べる。
Next, the operation when the file (C) 63 in FIG. 4 is updated will be described.

第5図は、本発明の第2の実施例におけるファイルバッ
クアップ方法を示すフローチャートである。
FIG. 5 is a flowchart showing a file backup method in the second embodiment of the present invention.

まず、利用者プログラム21は、ファイル(C)63を
更新し、同時に、更新ファイル名登録ファイル24に更
新ファイル名(ファイル(C)63)を登録する(50
1)。
First, the user program 21 updates the file (C) 63 and at the same time registers the updated file name (file (C) 63) in the updated file name registration file 24 (50
1).

次に、更新ファイル送信制御プログラム46に制御を移
し、更新ファイル名登録ファイル24を読み、更新ファ
イル名(ファイル(C)63)を得る。
Next, control is transferred to the update file transmission control program 46, which reads the update file name registration file 24 to obtain an update file name (file (C) 63).

そして、更新ファイル名登録ファイル24をクリアし、
更新ファイル名(ファイル(C)63)を消す(502
)。
Then, clear the update file name registration file 24,
Delete the updated file name (file (C) 63) (502
).

次に、更新ファイル送信制御プログラム46は、更新時
同時転送ファイル名登録ファイル47がら転送ファイル
名(ファイル(A)〜(C)61〜63)を得て(50
3)、これをもとに、ファイル群60より、ファイル(
A)〜(C)61〜63を読み込み、通信制御装置43
.44を介して更新ファイル受信制御プログラム42に
転送する(504)。
Next, the update file transmission control program 46 obtains transfer file names (files (A) to (C) 61 to 63) from the update simultaneous transfer file name registration file 47 and obtains the transfer file names (files (A) to (C) 61 to 63) and
3), based on this, file (
A) to (C) 61 to 63 are read and the communication control device 43
.. 44 to the update file reception control program 42 (504).

これを受信して、更新ファイル受信制御プログラム42
は、受信したファイル(ファイル(A)〜(C)61〜
63)とファイル(a)〜(c)51〜53を更新し、
これらのファイルをバックアップする(505)6 [発明の効果] 本発明によれば、更新されたファイルたけでなく、更新
されたファイルに関連するファイルも同時にバックアッ
プされるので、数世代前のファイルに戻す場合、該当世
代のファイルとそれに対応する世代の関連ファイルを複
数のバックアップ媒体より探し出す必要はなく、−度に
戻すことがてきる。
Upon receiving this, the update file reception control program 42
is the received file (files (A) to (C) 61 to
63) and files (a) to (c) 51 to 53,
Back up these files (505) 6 [Effects of the Invention] According to the present invention, not only updated files but also files related to updated files are backed up at the same time, so files from several generations ago can be backed up. When restoring files, there is no need to search for files of the relevant generation and related files of the corresponding generation from a plurality of backup media, and it is possible to restore files to -degrees.

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

第1図は本発明の第1の実施例におけるファイルバック
アップ方法を示すフローチャート、第2図は本発明の第
1の実施例におけるデータベースシステムの構成図、第
3図は本発明の第1の実施例における更新時同時バッグ
アップファイル名登録ファイルの説明図、第4図は本発
明の第2の実施例におけるデータベースシステムの構成
図、第5図は本発明の第2の実施例におけるファイルバ
ックアップ方法を示すフローチャートである。 21:利用者プログラム、22・更新ファイルバックア
ップ制御プログラム、23:ファイルバックアップ媒体
、24:更新ファイル名登録ファイル、25・更新時同
時バックアップファイル名登録ファイル、25a:更新
時同時バックアップファイル名登録テーブル、30.フ
ァイル群、31〜36・ファイル(イ)〜(へ)、41
.45  中央処理装置、42.更新ファイル受信制御
プログラム、43.44  通信制御装置、46・更新
ファイル送信制御プログラム、47 更新時同時転送フ
ァイル名登録ファイル、50.60+ファイル群、51
〜56:フアイル(a)〜(f) 、 61〜66、フ
ァイル(A)〜(F)。
FIG. 1 is a flowchart showing a file backup method in a first embodiment of the present invention, FIG. 2 is a configuration diagram of a database system in the first embodiment of the present invention, and FIG. 3 is a flowchart showing a file backup method in a first embodiment of the present invention. An explanatory diagram of the simultaneous backup file name registration file during update in the example, FIG. 4 is a configuration diagram of the database system in the second embodiment of the present invention, and FIG. 5 is a file backup method in the second embodiment of the present invention. It is a flowchart which shows. 21: User program, 22. Update file backup control program, 23: File backup medium, 24: Update file name registration file, 25. Update simultaneous backup file name registration file, 25a: Update simultaneous backup file name registration table. 30. File group, 31-36・File (a)-(e), 41
.. 45 central processing unit, 42. Update file reception control program, 43. 44 Communication control device, 46/Update file transmission control program, 47 Simultaneous transfer file name registration file during update, 50. 60 + file group, 51
-56: Files (a) - (f), 61 - 66, Files (A) - (F).

Claims (1)

【特許請求の範囲】 1、互いに関連のある複数のファイルを有するデータベ
ースのファイルバックアップ方法において、ファイル間
の関連をもとにして、更新ファイルとともにバックアッ
プするファイルのファイル名情報を予め記憶する手段を
備え、ファイル更新時、該記憶手段を参照して、更新フ
ァイルに関連するファイルを同時にバックアップするこ
とを特徴とするファイルバックアップ方法。 2、請求項1記載のデータベースを持ち、ネットワーク
で接続された計算機システムのファイルバックアップ方
法において、ファイル間の関連をもとにして、更新ファ
イルとともにネットワークを介して転送するファイルの
ファイル名情報を予め記憶する手段を備え、ファイル更
新時、該記憶手段を参照して、更新ファイルと該更新フ
ァイルに関連するファイルとを同時に転送することを特
徴とするファイルバックアップ方法。
[Claims] 1. In a file backup method for a database having a plurality of mutually related files, there is provided means for pre-storing file name information of files to be backed up together with updated files based on relationships between files. 1. A file backup method, comprising: when updating a file, referring to the storage means and backing up files related to the updated file at the same time. 2. In the file backup method for a computer system having a database and connected via a network as claimed in claim 1, file name information of a file to be transferred via a network together with an updated file is prepared in advance based on the relationship between the files. 1. A file backup method, comprising: storage means; when a file is updated, the storage means is referred to and an updated file and a file related to the updated file are simultaneously transferred.
JP2215302A 1990-08-15 1990-08-15 File backup method Pending JPH0496838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2215302A JPH0496838A (en) 1990-08-15 1990-08-15 File backup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2215302A JPH0496838A (en) 1990-08-15 1990-08-15 File backup method

Publications (1)

Publication Number Publication Date
JPH0496838A true JPH0496838A (en) 1992-03-30

Family

ID=16670073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2215302A Pending JPH0496838A (en) 1990-08-15 1990-08-15 File backup method

Country Status (1)

Country Link
JP (1) JPH0496838A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002014859A (en) * 2000-05-31 2002-01-18 Internatl Business Mach Corp <Ibm> Method for atomically and permanently swapping resource group and system for the same and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002014859A (en) * 2000-05-31 2002-01-18 Internatl Business Mach Corp <Ibm> Method for atomically and permanently swapping resource group and system for the same and program

Similar Documents

Publication Publication Date Title
US7571290B1 (en) Replica synchronization using copy-on-read technique
US6934877B2 (en) Data backup/recovery system
US7130868B2 (en) File system for creating switched logical I/O paths for fault recovery
US7617369B1 (en) Fast failover with multiple secondary nodes
US5724581A (en) Data base management system for recovering from an abnormal condition
EP1461700B1 (en) Appliance for management of data replication
JP2003280964A (en) Method for acquiring snapshot, storage system and disk device
JPS61502846A (en) How to back up your database
US7290100B2 (en) Computer system for managing data transfer between storage sub-systems
US20100217857A1 (en) Consolidating session information for a cluster of sessions in a coupled session environment
US6029231A (en) Retrieval of data stored on redundant disks across a network using remote procedure calls
JP2004164401A (en) Database system, center server, and access method for database
JP2001344139A (en) Database management device
JPH0496838A (en) File backup method
JP2830826B2 (en) Distributed file synchronization system and method
JPH0844609A (en) Data backup method
JP2746952B2 (en) Image processing method
JP2000020366A (en) Replication system
US10877934B2 (en) Efficient backup of compaction based databases
JPH11120056A (en) Saving and restoring method for project data
KR100536878B1 (en) Method for real time backing up main memory database of Home Location Register in mobile communication network using replication technique
JP4048037B2 (en) Data writing program and recording medium
JP2959467B2 (en) Fault recovery system, fault recovery method, and medium for storing fault recovery program in loosely coupled multi-computer system
JP2001229062A (en) Distributed file managing method
JP3008500B2 (en) Update record reading mechanism