JP2587417B2 - File backup and restoration method - Google Patents

File backup and restoration method

Info

Publication number
JP2587417B2
JP2587417B2 JP62028591A JP2859187A JP2587417B2 JP 2587417 B2 JP2587417 B2 JP 2587417B2 JP 62028591 A JP62028591 A JP 62028591A JP 2859187 A JP2859187 A JP 2859187A JP 2587417 B2 JP2587417 B2 JP 2587417B2
Authority
JP
Japan
Prior art keywords
file
external storage
storage device
physical
attribute information
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.)
Expired - Lifetime
Application number
JP62028591A
Other languages
Japanese (ja)
Other versions
JPS63196959A (en
Inventor
卓二 富山
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
Nippon 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP62028591A priority Critical patent/JP2587417B2/en
Publication of JPS63196959A publication Critical patent/JPS63196959A/en
Application granted granted Critical
Publication of JP2587417B2 publication Critical patent/JP2587417B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、計算機のファイルシステムに於いて、ファ
イルを退避,復元するファイルの退避復元方式に関す
る。
The present invention relates to a file save / restore method for saving and restoring files in a file system of a computer.

〔従来の技術〕[Conventional technology]

外部記憶装置に作成されたファイルを別の外部記憶装
置に退避させたり、また、退避させたファイルを元の外
部記憶装置或いは別の外部記憶装置に復元する機能を持
ったファイルシステムに於いて、サポートされるプログ
ラムは多種多様なものがある。
In a file system having a function of saving a file created in an external storage device to another external storage device and restoring the saved file to the original external storage device or another external storage device, There are a wide variety of supported programs.

例えば、退避機能であれば、外部記憶装置に記録され
た物理的イメージ(磁気ディスク装置であればトラック
イメージ)をそのまま退避用の外部記憶装置へ移送する
プログラム及び外部記憶装置に記録されている物理的イ
メージから論理レコードを抽出して退避用の外部記憶装
置へ移送するプログラムが存在する。更に、復元機能で
は、上記退避方法にあわせてそれぞれ物理的,論理的イ
メージで復元を行なうプログラムがある。
For example, in the case of an evacuation function, a program for transferring a physical image (a track image in the case of a magnetic disk device) recorded in an external storage device to an external storage device for evacuation and a physical program recorded in the external storage device There is a program that extracts a logical record from a logical image and transfers it to an external storage device for evacuation. Further, in the restoration function, there is a program for restoring with a physical and logical image in accordance with the above-mentioned saving method.

処理効率の面から考えると、物理的イメージで退避さ
せ、物理的イメージで復元する方法が最も効率的である
が、この方法は退避させるファイルが作成されている外
部記憶装置と復元されるファイルが含まれている復元先
の外部記憶装置との物理的属性(磁気ディスクであれば
トラック容量)が等しく、且つ退避させるファイルと復
元するファイルとのファイル属性(ブロック長,レコー
ド長等)が等しい場合しか適用することができず、物理
的属性,ファイル属性が異なる場合は、外部記憶装置に
記録されている物理的イメージから論理レコードを抽出
して退避用の外部記憶装置へ移送するプログラムを用い
てファイルを退避させ、論理的イメージで復元を行なう
プログラムを用いてファイルを復元しなければならず、
物理的イメージで退避,復元する場合に比較して処理効
率が低下する。昨今、計算機に蓄積されるデータは従来
の数値データからマルチメディアデータへ中心が移りつ
つあり、それに呼応してハードウェアの面でも多様な外
部記憶装置が準備されるようになってきているため、論
理的イメージによるファイルの退避,復元がますます多
く行なわれるようになってきている。
From the viewpoint of processing efficiency, the method of evacuating with a physical image and restoring with a physical image is the most efficient, but this method requires that the external storage device in which the file to be evacuated is created and the file to be restored are When the physical attributes (track capacity in the case of a magnetic disk) of the included external storage device are equal, and the file attributes (block length, record length, etc.) of the file to be saved and the file to be restored are equal. If the physical attributes and file attributes are different, use a program that extracts a logical record from a physical image recorded in the external storage device and transfers it to the external storage device for evacuation. Files must be evacuated and restored using a logical image restoration program.
The processing efficiency is lower than when saving and restoring with a physical image. In recent years, data stored in computers has shifted from conventional numerical data to multimedia data, and various external storage devices have been prepared in hardware in response to this. The saving and restoring of files by logical images is becoming more and more common.

また、従来は、ファイルを退避,復元させる場合にど
のプログラムを実行させるかは、オペレータが外部記憶
装置の物理的属性,ファイル属性を考慮して決定するよ
うにしている。即ち、外部記憶装置の物理的属性,ファ
イル属性が等しい場合は、物理的イメージにより退避,
復元を行なう効率の良いプログラムを実行させるように
し、物理的属性,ファイル属性が異なる場合は論理的イ
メージにより退避,復元を行なうプログラムを実行させ
るようにしている。そして、ファイルを退避する場合、
どこにファイルを復元するかが予め決定されていない場
合は、物理的属性,ファイル属性の異なる外部記憶装置
への復元の可能性に備えて、必ず、論理的イメージによ
り退避,復元を行なうプログラムを準備するようにして
いる。
Conventionally, which program is executed when a file is saved and restored is determined by an operator in consideration of a physical attribute of an external storage device and a file attribute. That is, if the physical attributes and file attributes of the external storage device are the same, the physical image
An efficient program for restoring is executed, and when physical attributes and file attributes are different, a program for saving and restoring is executed by a logical image. And when saving files,
If it is not determined in advance where the file is to be restored, prepare a program for saving and restoring with a logical image in preparation for the possibility of restoring to an external storage device with different physical attributes and file attributes. I am trying to do it.

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

上述したように、従来は、外部記憶装置の物理的属性
及びファイル属性に応じて退避,復元時に実行するプロ
グラムを使い分けるようにしているため、ファイルの退
避,復元時の操作が煩わしいものとなる問題があり、ま
た、ファイルをどこに復元するかが決定されていない場
合や外部記憶装置の物理的属性及びファイル属性が異な
る場合は、必ず論理的イメージにより退避,復元を行な
うプログラムを実行させなければならないため、処理効
率が悪くなる問題があった。
As described above, conventionally, the program executed at the time of saving and restoring is selectively used according to the physical attribute and the file attribute of the external storage device, so that the operation at the time of saving and restoring the file becomes cumbersome. If the location of the file to be restored is not determined, or if the physical attribute and file attribute of the external storage device are different, a program for saving and restoring by a logical image must be executed. Therefore, there is a problem that the processing efficiency is deteriorated.

本発明は前述の如き問題点を解決したものであり、そ
の目的は、ファイルを退避,復旧させる際の操作を簡単
なものとすると共にファイルの退避,復元を効率良く行
なうことができるようにすることがある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to simplify operations for saving and restoring files and to efficiently save and restore files. Sometimes.

〔問題点を解決するための手段〕[Means for solving the problem]

本発明のファイル退避復元装置は、第1の外部記憶装
置に作成されたファイルを第2の外部記憶装置に退避さ
せ、該第2の外部記憶装置に退避させたファイルを前記
第1の外部記憶装置或いは第3の外部記憶装置に復元す
るファイル退避復元装置において、 前記第1の外部記憶装置に作成されたファイルのファ
イル属性情報及び前記第1の外部記憶装置の物理的属性
情報を管理ファイルから読込む属性読込手段と、 前記第1の外部記憶装置に作成されたファイルの物理
的イメージをそのまま読込む第1の入力手段と、 該第1の入力手段が読込んだ物理的イメージをそのま
まの形で前記属性読込手段が読込んだファイル属性情報
及び物理的属性情報と併せて前記第2の外部記憶装置に
書込む第1の出力手段と、 前記第2の外部記憶装置に書込まれている物理的イメ
ージをそのままの形で読込むと共に該物理的イメージと
併せて書込まれているファイル属性情報及び物理的属性
情報を読込む第2の入力手段と、 該第2の入力手段が読込だ退避されたファイルのファ
イル属性情報と復元するファイルのファイル属性情報と
を比較すると共に、該第2の入力手段が読込んだ前記第
1の外部記憶装置の物理的属性情報と前記復元するファ
イルが作成される外部記憶装置の物理的属性情報とを比
較し、比較結果に基づいて前記第2の入力手段が読込ん
だ物理的イメージを前記復元するファイルのファイル属
性及び前記復元するファイルが作成される外部記憶装置
の物理的属性と合うように変換するための変換方法を判
定する判定手段と、 該判定手段の判定結果に応じて前記第2の入力手段が
読込んだ物理的イメージの変換を行なう変換手段と、 該変換手段の変換結果を復元先の外部記憶装置に物理
的イメージで出力する第2の出力手段とを含んでいる。
The file save / restore device of the present invention saves a file created in a first external storage device to a second external storage device, and saves the file saved in the second external storage device to the first external storage device. In a file save / restore device for restoring to a device or a third external storage device, file attribute information of a file created in the first external storage device and physical attribute information of the first external storage device are stored from a management file. Attribute reading means for reading, first input means for reading the physical image of the file created in the first external storage device as it is, and physical image read by the first input means as it is. First output means for writing to the second external storage device together with the file attribute information and physical attribute information read by the attribute reading means in a form; and writing to the second external storage device Second input means for reading the physical image that has been written as it is and reading the file attribute information and the physical attribute information written together with the physical image; and the second input means. Compares the file attribute information of the file saved and the file attribute information of the file to be restored, and compares the physical attribute information of the first external storage device read by the second input unit with the file attribute information of the file to be restored. The file attribute of the file for restoring the physical image read by the second input means based on the comparison result is compared with the physical attribute information of the external storage device in which the file to be created is created, and the file to be restored Determining means for determining a conversion method for performing conversion so as to match the physical attribute of the external storage device to be created; and the second input means according to the determination result of the determining means. Conversion means for converting the physical image forme, and a second output means for outputting a physical image to an external storage device will be restored to the conversion result of the converting means.

〔作 用〕(Operation)

第1の外部記憶装置に作成されたファイルを退避させ
る場合、上記ファイルのファイル属性情報,第1の外部
記憶装置の物理的属性情報もファイルの物理的イメージ
と併せて退避媒体である第2の外部記憶装置に書込まれ
る。第2の外部記憶装置に退避させられたファイルを復
元する場合、判定手段は退避させられたファイルのファ
イル属性情報と復元するファイルのファイル属性情報と
を比較すると共に、第1の外部記憶装置の物理的属性情
報と上記復元するファイルが作成されている外部記憶装
置の物理的属性情報とを比較し、比較結果に基づいて、
物理的イメージを復元するファイルのファイル属性及び
復元するファイルが作成されている外部記憶装置の物理
的属性と合うように変換するための変換方法を判定し、
変換手段は判定手段の判定結果に応じた変換処理を行な
う。
When the file created in the first external storage device is saved, the file attribute information of the file and the physical attribute information of the first external storage device are also stored together with the physical image of the file in the second storage medium. Written to external storage. When restoring a file evacuated to the second external storage device, the determination unit compares the file attribute information of the evacuated file with the file attribute information of the file to be restored, and The physical attribute information is compared with the physical attribute information of the external storage device in which the file to be restored is created, and based on the comparison result,
Determining a file attribute of a file for restoring a physical image and a conversion method for converting the file to be restored to match the physical attributes of the external storage device in which the file is created,
The conversion means performs a conversion process according to the determination result of the determination means.

〔実施例〕〔Example〕

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

第1図は本発明の実施例のブロック図であり、外部記
憶装置2に作成されている退避対象となったファイル2a
のファイル属性情報及び外部記憶装置2の物理的属性情
報を外部記憶装置1に作成されているファイルカタログ
1a等の管理ファイルから読込む属性読込手段3と、退避
対象となったファイル2aのデータを物理的イメージでそ
のまま読込む第1の入力手段4と、属性読込手段3が読
込んだ物理的属性情報,ファイル属性情報及び入力手段
4が読込んだデータをそのまま退避媒体6へ書込む第1
の出力手段5と、退避媒体6に書込まれた物理的属性情
報7aとファイル属性情報7bと退避データ8とを読込む第
2の入力手段9と、第2の入力手段9が読込んだファイ
ル2aのファイル属性情報7bと外部記憶装置14に作成され
ているファイルカタログ14aから読込んだ外部記憶装置1
3に作成される復元すべきファイル13aのファイル属性情
報とを比較すると共に、外部記憶装置2の物理的属性情
報7aとファイルカタログ14aから読込んだ外部記憶装置1
3の物理的属性情報とを比較し、比較結果に応じた変換
指示を出力する判定手段10と、判定手段10から加えられ
た変換指示の内容に応じて退避データ8を変換して出力
する変換手段11と、変換手段11の出力を外部記憶装置13
に書込む第2の出力手段12とを含んでいる。
FIG. 1 is a block diagram of an embodiment of the present invention.
The file attribute information of the external storage device 2 and the physical attribute information of the external storage device 2 are stored in a file catalog created in the external storage device 1.
An attribute reading means 3 for reading from a management file such as 1a; a first input means 4 for reading data of the file 2a to be saved as a physical image as it is; a physical attribute read by the attribute reading means 3 Information, file attribute information and the data read by the input means 4 are written directly to the save medium 6
Output means 5, second input means 9 for reading physical attribute information 7 a, file attribute information 7 b and save data 8 written on save medium 6, and second input means 9 for reading The external storage device 1 read from the file attribute information 7b of the file 2a and the file catalog 14a created in the external storage device 14.
3 is compared with the file attribute information of the file 13a to be restored, the physical attribute information 7a of the external storage device 2 and the external storage device 1 read from the file catalog 14a.
A determination unit that compares the physical attribute information with the physical attribute information and outputs a conversion instruction according to the comparison result; and a conversion unit that converts and outputs the save data according to the content of the conversion instruction added from the determination unit. Means 11 and the output of the conversion means 11 to an external storage device 13
And second output means 12 for writing to

次に第1図の動作を説明する。尚、本実施例に於いて
は、ファイル属性情報はファイル編成,ブロック長及び
レコード長を示すものとする。
Next, the operation of FIG. 1 will be described. In this embodiment, the file attribute information indicates the file organization, block length, and record length.

第1の入力手段4は外部記憶装置2に作成されている
退避対象となったファイル2aのデータを物理的イメージ
でそのまま読込み、属性読込手段3はファイルカタログ
1から外部記憶装置2の物理的属性情報及びファイル2a
のファイル属性情報を読込む。第1の出力手段5は第1
の入力手段4が読込んだ退避データをそのまま退避媒体
6に書込むと共に属性読込手段3が読込んだ物理的属性
情報及びファイル属性情報を退避媒体6に書込む。
The first input unit 4 reads the data of the file 2a to be saved created in the external storage device 2 as a physical image as it is, and the attribute reading unit 3 reads the physical attribute of the external storage device 2 from the file catalog 1. Information and file 2a
Read the file attribute information of The first output means 5 is
The save data read by the input means 4 is written to the save medium 6 as it is, and the physical attribute information and the file attribute information read by the attribute read means 3 are written to the save medium 6.

第2の入力手段9はファイルの復元時、退避媒体6か
ら物理的属性情報7aとファイル属性情報7a及びファイル
属性情報7bを判定手段10に加え、退避データ8を変換手
段11に加える。
When restoring a file, the second input means 9 applies the physical attribute information 7a, the file attribute information 7a and the file attribute information 7b from the save medium 6 to the determination means 10, and adds the save data 8 to the conversion means 11.

判定手段10は物理的属性情報7a及びファイル属性情報
7bが加えられると、第2図のフローチャートに示す処理
を開始する。即ち、判定手段10は、先ず退避させたファ
イル2aのファイル編成と復元するファイル13aのファイ
ル編成とが一致するか否かを各ファイル2a,13aのファイ
ル属性情報を比較することにより調べ(ステップ21)、
ファイル編成が一致している場合はファイル2a,13aのブ
ロック長及びレコード長が共に等しいか否かを各ファイ
ル2a,13aのファイル属性情報を比較することにより調べ
る(ステップ22)。尚、ファイル編成が不一致の場合
は、復元不可となる。
The judging means 10 includes physical attribute information 7a and file attribute information
When 7b is added, the processing shown in the flowchart of FIG. 2 is started. That is, the determination unit 10 first checks whether the file organization of the saved file 2a and the file organization of the restored file 13a match by comparing the file attribute information of the files 2a and 13a (step 21). ),
If the file organization is the same, it is checked whether or not the block length and the record length of the files 2a and 13a are equal by comparing the file attribute information of each of the files 2a and 13a (step 22). If the file organization does not match, it cannot be restored.

そして、ステップ22でファイル2a,13aのブロック長及
びレコード長が共に等しいと判定された場合は、外部記
憶装置2,13の物理的属性が一致しているか否かを判定す
る(ステップ23)。そして、物理的属性が一致していな
いと判定した場合は、退避データ8に対して物理的変換
を行なう必要があるとして変換手段11に物理的変換指示
を加え(ステップ25)、物理属性が一致していると判定
した場合は、退避データに対して何等変換を行なう必要
がないとして変換手段11に無変換指示を加える(ステッ
プ24)。また、ステップ22の判断結果がNOの場合、即
ち、ブロック長とレコード長との内の少なくとも何れか
一方が異なっている場合は、退避データ8に対して論理
的変換を行なうことが必要であるとして変換手段11に論
理的変換指示を加える(ステップ26)。
If it is determined in step 22 that both the block length and the record length of the files 2a and 13a are equal, it is determined whether the physical attributes of the external storage devices 2 and 13 match (step 23). If it is determined that the physical attributes do not match, it is determined that the save data 8 needs to be physically converted, and a physical conversion instruction is added to the conversion means 11 (step 25). If it is determined that the conversion is performed, it is determined that there is no need to perform any conversion on the save data, and a non-conversion instruction is added to the conversion means 11 (step 24). If the determination result of step 22 is NO, that is, if at least one of the block length and the record length is different, it is necessary to perform a logical conversion on the save data 8. Then, a logical conversion instruction is added to the conversion means 11 (step 26).

変換手段11は判定手段10から論理的変換指示,物理的
変換指示或いは無変換指示が加えられることにより、第
3図のフローチャートに示す処理を行なう。
The conversion means 11 performs the processing shown in the flowchart of FIG. 3 when a logical conversion instruction, a physical conversion instruction, or a non-conversion instruction is added from the determination means 10.

変換手段11はステップ31,32で判定手段10からの指示
が論理的変換指示,物理的変換指示,無変換指示の何れ
であるかを判断し、変換作業を振り分ける。論理的変換
はステップ33からステップ35で行なわれる。ステップ33
では退避のデータ8の物理的イメージからブロックのイ
メージを抽出し、ブロックのイメージから論理レコード
を抽出する処理を行なう。ステップ34では復元するファ
イル13aのブロック長に合わせて論理レコードを格納
し、ブロックが一杯になれば次のブロックにレコードを
格納する処理をステップ33で抽出した論理レコード全て
について行なう。尚、ファイル2aのレコード長とファイ
ル13aのレコード長とが異なる場合は、ステップ33で抽
出した論理レコードのレコード長をファイル13aのレコ
ード長に一致させる処理を行なった後、ブロックに格納
する処理を行なうものであり、ファイル2aのレコード長
の方が短い場合は、ステップ33で抽出した論理レコード
に所定値を付加してそのレコード長をファイル13aのレ
コード長に一致させた後、ブロックに格納する処理を行
ない、ファイル2aのレコード長の方が長い場合は、ステ
ップ33で抽出した論理レコードの項目の格納しきれない
後部の項目或いは別途指定された項目を削除してそのレ
コード長をファイル13aのレコード長と一致させた後、
ブロックに格納する処理を行なうものである。ステップ
35ではステップ34で作成したブロックを連続的に並べて
外部記憶装置13に対する物理的イメージ(磁気ディスク
装置であれば、トラックイメージ)を作成,出力する処
理が行なう。また、ステップ32で判定手段10からの指示
が物理的変換指示があると判断した場合は、抽出したブ
ロックイメージを復元装置の物理的イメージに合わせて
配置する(ステップ36)。尚、上記した何れの場合に於
いても、復元先のファイル13aの容量の方がファイル2a
の容量よりも大きい時には余剰ブロックに空のイメージ
を作成するものである。また、変換手段11は、ステップ
31で判定手段10からの指示が無変換指示であると判断し
た場合は、第2の入力手段9からの退避データ8をその
まま出力する(ステップ37)。
In steps 31 and 32, the conversion means 11 determines whether the instruction from the determination means 10 is a logical conversion instruction, a physical conversion instruction, or a non-conversion instruction, and distributes the conversion work. Logical conversion is performed in steps 33 to 35. Step 33
Then, a process of extracting a block image from the physical image of the saved data 8 and extracting a logical record from the block image is performed. In step 34, the logical records are stored in accordance with the block length of the file 13a to be restored, and when the blocks are full, the process of storing the records in the next block is performed for all the logical records extracted in step 33. If the record length of the file 2a is different from the record length of the file 13a, the process of matching the record length of the logical record extracted in step 33 with the record length of the file 13a is performed, and then the process of storing the record in the block If the record length of the file 2a is shorter, a predetermined value is added to the logical record extracted in step 33, the record length is made to match the record length of the file 13a, and then stored in a block. If the record length of the file 2a is longer than that of the file 13a, the trailing item or the separately designated item which cannot store the logical record item extracted in step 33 is deleted, and the record length of the file 13a is deleted. After matching the record length,
This is to perform processing for storing in a block. Steps
In step 35, a process of creating and outputting a physical image (or a track image in the case of a magnetic disk device) for the external storage device 13 by continuously arranging the blocks created in step 34 is performed. If it is determined in step 32 that the instruction from the determination means 10 includes a physical conversion instruction, the extracted block image is arranged according to the physical image of the restoration device (step 36). In any of the above cases, the capacity of the restoration destination file 13a is larger than that of the file 2a.
When the capacity is larger than the capacity, an empty image is created in the surplus block. In addition, the conversion means 11
If it is determined in step 31 that the instruction from the determination means 10 is a non-conversion instruction, the save data 8 from the second input means 9 is output as it is (step 37).

第4図は変換手段11で行なわれる論理的変換の一例を
示す図である。今、例えば、退避データ8中の物理的イ
メージの1単位が同図(a)に示すように、2個のブロ
ックB1,B2から構成され、各ブロックB1,B2にはそれぞれ
4個の論理レコードR1〜R4,R5〜R8が格納されていると
し、復元先の外部記憶装置13の物理的イメージの1単位
が4個のブロックB′1〜B′4から構成され、各ブロ
ックB′1〜B′4には2個の論理レコードが格納され
るとすると、ステップ34の処理を行なうことにより、同
図(b)に示すように、ブロックB′1に論理レコード
R1,R2が格納され、ブロックB′2に論理レコードR3,R4
が格納され、ブロックB′3に論理レコードR5,R6が格
納され、ブロックB′4に論理レコードR7,R8が格納さ
れ、ステップ35の処理を行なうことにより、ブロック
B′1,B′2,B′3,B′4の順で出力される。
FIG. 4 is a diagram showing an example of the logical conversion performed by the conversion means 11. Now, for example, one unit of the physical image in the save data 8 is composed of two blocks B1 and B2 as shown in FIG. 3A, and each block B1 and B2 has four logical records. Assume that R1 to R4 and R5 to R8 are stored, and one unit of the physical image of the external storage device 13 at the restoration destination is composed of four blocks B'1 to B'4. Assuming that two logical records are stored in B'4, the processing of step 34 is performed, and as shown in FIG.
R1 and R2 are stored, and logical records R3 and R4 are stored in block B'2.
Are stored in the block B'3, the logical records R5 and R6 are stored in the block B'3, and the logical records R7 and R8 are stored in the block B'4. It is output in the order of B'3, B'4.

また、第5図は変換手段11で行なわれる物理的変換の
一例を示す図である。今、例えば、退避データ8中の物
理的イメージの1単位が同図(a)に示すように、3個
のブロックB1,B2,B3から構成され、各ブロックB1,B2,B3
にはそれぞれ3個のレコードR1〜R3,R4〜R6,R7〜R9が格
納されているとし、復元先の外部記憶装置13の物理的イ
メージの1単位当たりの容量が2つのブロックを格納す
る容量しか有していないとすると、変換手段11は外部記
憶装置13の物理的イメージの1単位に対して同図(b)
に示すように、ブロックB1,B2のみを出力し、ブロックB
3は次の1単位に対して出力するものである。
FIG. 5 is a diagram showing an example of the physical conversion performed by the conversion means 11. Now, for example, one unit of the physical image in the save data 8 is composed of three blocks B1, B2, B3 as shown in FIG.
Has three records R1 to R3, R4 to R6, and R7 to R9, respectively, and the capacity per unit of the physical image of the external storage device 13 at the restoration destination is the capacity to store two blocks. If the conversion means 11 has only one physical image in the external storage device 13,
As shown in the figure, only blocks B1 and B2 are output and block B
3 is output for the next unit.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明は、ファイルを退避させ
る際、上記ファイルのファイル属性情報,上記ファイル
が作成されている外部記憶装置の物理的属性情報も併せ
て退避させるようにし、ファイルを復元する時は、上記
ファイル属性情報,復元先のファイルのファイル属性情
報,上記物理的属性情報及び復元するファイルが作成さ
れる外部記憶装置の物理的属性情報に基づいて、退避さ
せたファイルの物理的イメージをどのように変換するか
を判定し、判定結果に応じた変換処理を行なうものであ
り、退避元と復元先のファイル属性,物理的属性が同一
の場合,異なる場合とも同一プログラムを使用してファ
イルの退避,復元が可能となり、外部記憶装置の物理的
属性,ファイル属性の違いにより実行するプログラムを
使いわけなければならなかった従来例に比較してファイ
ルの退避,復元作業を容易なものとすることができる効
果がある。また、更に、本発明は、ファイルを退避させ
る際、常に、ファイルを物理的イメージでそのまま退避
させるので、処理効率を従来例に比較して高いものとす
ることができる効果もある。
As described above, according to the present invention, when a file is saved, the file attribute information of the file and the physical attribute information of the external storage device in which the file is created are also saved, and the file is restored. At this time, the physical image of the file saved based on the file attribute information, the file attribute information of the file to be restored, the physical attribute information, and the physical attribute information of the external storage device in which the file to be restored is created. Is determined in accordance with the result of the determination, and the same program is used regardless of whether the file attributes and physical attributes of the save source and the restore destination are the same or different. Files can be saved and restored, and different programs must be used depending on the physical attributes of external storage devices and file attributes. Compared to the conventional example was not saving the file, there is an effect that can be made easy restoration work. Further, according to the present invention, when a file is saved, the file is always saved as it is as a physical image, so that there is an effect that the processing efficiency can be increased as compared with the conventional example.

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

第1図は本発明の実施例のブロック図、 第2図は判定手段10の処理内容を示すフローチャート、 第3図は変換手段11の処理内容を示すフローチャート、 第4図は論理的変換の一例を示す図及び、 第5図は物理的変換の一例を示す図である。 1,2,13,14……外部記憶装置、1a,14a……ファイルカタ
ログ、2a,13a……ファイル、3……属性読込手段、4…
…第1の入力手段、5……第1の出力手段、6……退避
媒体、7a……物理的属性情報、7b……ファイル属性情
報、8……退避データ、9……第2の入力手段、10……
判定手段、11……変換手段、12……第2の出力手段。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flowchart showing the processing contents of the judging means 10, FIG. 3 is a flowchart showing the processing contents of the conversion means 11, and FIG. FIG. 5 is a diagram showing an example of physical conversion. 1, 2, 13, 14 ... external storage device, 1a, 14a ... file catalog, 2a, 13a ... file, 3 ... attribute reading means, 4 ...
... First input means, 5... First output means, 6... Save medium, 7a... Physical attribute information, 7b... File attribute information, 8. Means, 10 ……
Determination means, 11 conversion means, 12 second output means;

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】第1の外部記憶装置に作成されたファイル
を第2の外部記憶装置に退避させ、該第2の外部記憶装
置に退避させたファイルを前記第1の外部記憶装置或い
は第3の外部記憶装置に復元するファイル退避復元装置
において、 前記第1の外部記憶装置に作成されたファイルのファイ
ル属性情報及び前記第1の外部記憶装置の物理的属性情
報を管理ファイルから読込む属性読込手段と、 前記第1の外部記憶装置に作成されたファイルの物理的
イメージをそのまま読込む第1の入力手段と、 該第1の入力手段が読込んだ物理的イメージをそのまま
の形で前記属性読込手段が読込んだファイル属性情報及
び物理的属性情報と併せて前記第2の外部記憶装置に書
込む第1の出力手段と、 前記第2の外部記憶装置に書込まれている物理的イメー
ジをそのままの形で読込むと共に該物理的イメージと併
せて書込まれているファイル属性情報及び物理的属性情
報を読込む第2の入力手段と、 該第2の入力手段が読込んだ退避されたファイルのファ
イル属性情報と復元するファイルのファイル属性情報と
を比較すると共に、該第2の入力手段が読込んだ前記第
1の外部記憶装置の物理的属性情報と前記復元するファ
イルが作成される外部記憶装置の物理的属性情報とを比
較し、比較結果に基づいて前記第2の入力手段が読込ん
だ物理的イメージを前記復元するファイルのファイル属
性及び前記復元するファイルが作成される外部記憶装置
の物理的属性と合うように変換するための変換方法を判
定する判定手段と、 該判定手段の判定結果に応じて前記第2の入力手段が読
込んだ物理的イメージの変換を行なう変換手段と、 該変換手段の変換結果を復元先の外部記憶装置に物理的
イメージで出力する第2の出力手段とを含むことを特徴
とするファイル退避復元装置。
A file created in a first external storage device is saved in a second external storage device, and a file saved in the second external storage device is saved in the first external storage device or the third external storage device. A file save / restore device for restoring the file in the external storage device, wherein the attribute reading of reading the file attribute information of the file created in the first external storage device and the physical attribute information of the first external storage device from the management file Means, first input means for reading a physical image of a file created in the first external storage device as it is, and the attribute as the physical image read by the first input means as it is A first output unit that writes the file attribute information and the physical attribute information read by the reading unit into the second external storage device; and a physical image that is written into the second external storage device. A second input means for reading the file attribute information and the physical attribute information written together with the physical image while reading the page as it is, and the second input means The file attribute information of the saved file is compared with the file attribute information of the file to be restored, and the physical attribute information of the first external storage device read by the second input means and the file to be restored are compared. A file attribute of the file for restoring the physical image read by the second input means and a file for restoring the file are created based on the comparison result with the physical attribute information of the external storage device to be created. Determining means for determining a conversion method for performing conversion so as to match the physical attribute of the external storage device, and a physical image read by the second input means in accordance with the determination result of the determining means. Conversion means for converting the di-, file saving and restoration apparatus which comprises a second output means for outputting a physical image conversion result of the converting means to restore the external storage device.
JP62028591A 1987-02-10 1987-02-10 File backup and restoration method Expired - Lifetime JP2587417B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62028591A JP2587417B2 (en) 1987-02-10 1987-02-10 File backup and restoration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62028591A JP2587417B2 (en) 1987-02-10 1987-02-10 File backup and restoration method

Publications (2)

Publication Number Publication Date
JPS63196959A JPS63196959A (en) 1988-08-15
JP2587417B2 true JP2587417B2 (en) 1997-03-05

Family

ID=12252837

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62028591A Expired - Lifetime JP2587417B2 (en) 1987-02-10 1987-02-10 File backup and restoration method

Country Status (1)

Country Link
JP (1) JP2587417B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2938088B2 (en) * 1989-04-27 1999-08-23 株式会社東芝 Disaster recovery method for shared files
JP4606654B2 (en) * 2001-01-23 2011-01-05 シャープ株式会社 Transfer device for restoration
JP4788233B2 (en) * 2005-08-10 2011-10-05 富士ゼロックス株式会社 Device management device, device management program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57109048A (en) * 1980-12-26 1982-07-07 Fujitsu Ltd Recovery system of data set
JPS59125460A (en) * 1982-12-30 1984-07-19 Fujitsu Ltd Saving and restoring system of file
JPS6126098A (en) * 1984-07-16 1986-02-05 セイコーインスツルメンツ株式会社 Scale detector

Also Published As

Publication number Publication date
JPS63196959A (en) 1988-08-15

Similar Documents

Publication Publication Date Title
JPH06250906A (en) Backup/recovery system for data developed in main storage device
US6754680B1 (en) Data control equipment, method to control data and recording medium to record data control procedure
JP2587417B2 (en) File backup and restoration method
JPH08227371A (en) Method for managing data
JP2822869B2 (en) Library file management device
JP2679602B2 (en) Evacuation medium creation system
JPH0635780A (en) File controlling method of large capacity storage device
JPH0644118A (en) File backup system
JP3428482B2 (en) File save system, apparatus and method, and recording medium
JPH10254740A (en) Data processing system
JPS63108580A (en) Restoring method for file area
JPH05134815A (en) Data management processing system
JPH11220693A (en) Moving image recording device
JPH04209044A (en) Data base control system
JPH0573476A (en) Dma device
JPH08263349A (en) Data management system
JPH0259838A (en) File restoring system applying optimization of storing position for file restoring information
JPS63292251A (en) Volume condense processing system
JPS61221817A (en) Output processing system
JPH05108444A (en) Journal extraction system
JPS63200229A (en) Maintenance control system for memory medium
JPH02228769A (en) Picture storage device
JPH04112245A (en) Method for making file structure virtual
JPS63271787A (en) Information processor
JPH09231139A (en) Data doubling device