JPS63196959A - Saving and restoring system for file - Google Patents

Saving and restoring system for file

Info

Publication number
JPS63196959A
JPS63196959A JP62028591A JP2859187A JPS63196959A JP S63196959 A JPS63196959 A JP S63196959A JP 62028591 A JP62028591 A JP 62028591A JP 2859187 A JP2859187 A JP 2859187A JP S63196959 A JPS63196959 A JP S63196959A
Authority
JP
Japan
Prior art keywords
file
storage device
external storage
attribute information
physical
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
JP62028591A
Other languages
Japanese (ja)
Other versions
JP2587417B2 (en
Inventor
Takuji Tomiyama
卓二 富山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to 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

Landscapes

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

Abstract

PURPOSE:To simplify an operation for saving and restoring a file, and also, to improve the efficiency for saving and restoring the file, by providing an attribute reading means, a deciding means, a converting means, and plural input means and output means. CONSTITUTION:Physical attribute information of an external storage device 2 from a file catalogue 1 which has been read by an attribute reading means 3, and file attribute information of a file 2a which has become a saving object are written in a saving medium 6 together with a data of the file 2a through the first input and output means. Also, at the time of restoring the file, a second input means 9 reads physical attribute information 7a, file attribute information 7b and a saved data 8 from the medium 6, adds the information 7a, 7b to a deciding means 10, and adds the data 8 to a converting means 11. Subsequently, in accordance with a result of decision from the means 10, a logical converting instruction, a physical converting instruction or a non-converting instruction is given to the means 11, and a conversion processing is executed by the mean 11. In such a way, an operation for saving and restoring the file can be simplified and also, the efficiency for saving and restoring the file can be improved.

Description

【発明の詳細な説明】[Detailed description of the invention]

〔産業上の利用分野〕 本発明は、計算機のファイルシステムに於いて、ファイ
ルを退避、復元するファイルの退避復元方式に関する。 〔従来の技術〕 外部記憶装置に作成されたファイルを別の外部記憶装置
に退避させたり、また、退避させたファイルを元の外部
記憶装置或いは別の外部記憶装置に復元する機能を持っ
たファイルシステムに於いて、サポートされるプログラ
ムは多種多様なものがある。 例えば、退避機能であれば、外部記憶装置に記録された
物理的イメージ(磁気ディスク装置であればトランクイ
メージ)をそのまま退避用の外部記憶装置へ移送するプ
ロゲラふ及び外部記憶装置に記録されている物理的イメ
ージから論理レコードを抽出して退避用の外部記憶装置
へ移送するプログラムが存在する。更に、復元機能では
、上記退避方法にあわせてそれぞれ物理的、論理的イメ
ージで復元を行なうプログラムがある。 処理効率の面から考えると、物理的イメージで退避させ
、物理的イメージで復元する方法が最も効率的であるが
、この方法は退避させるファイルが作成されている外部
記憶装置と復元されるファイルが含まれている復元光の
外部記憶装置との物理的属性([気ディスクであればト
ラック容量)が等しく、且つ退避させるファイルと復元
するファイルとのファイル属性(ブロック長、レコード
長等)が等しい場合しか適用することができず、物理的
属性、ファイル属性が異なる場合は、外部記憶装置に記
録されている物理的イメージから論理レコードを抽出し
て退避用の外部記憶装置へ移送するプログラムを用いて
ファイルを退避させ、論理的イメージで復元を行なうプ
ログラムを用いてファイルを復元しなければならず、物
理的イメージで退避、復元する場合に比較して処理効率
が低下する。昨今、計算機に蓄積されるデータは従来の
数値データからマルチメディアデータへ中心が移りつつ
あり、それに呼応してハードウェアの面でも多様な外部
記憶装置が準備されるようになってきているため、論理
的イメージによるファイルの退避、復元がますます多く
行なわれるようになってきている。 また、従来は、ファイルを退避、復元させる場合にどの
プログラムを実行させるかは、オペレータが外部記憶装
置の物理的属性、ファイル属性を考慮して決定するよう
にしている。即ち、外部記憶装置の物理的属性、ファイ
ル属性が等しい場合は、物理的イメージにより退避、復
元を行なう効率の良いプログラムを実行させるようにし
、物理的属性、ファイル属性が異なる場合は論理的イメ
ージにより退避、復元を行なうプログラムを実行させる
ようにしている。そして、ファイルを退避する場合、ど
こにファイルを復元するかが予め決定されていない場合
は、物理的属性、ファイル属性の異なる外部記憶装置へ
の復元の可能性に備えて、必ず、論理的イメージにより
退避、復元を行なうプログラムを準備するようにしてい
る。
[Industrial Application Field] The present invention relates to a file saving and restoring method for saving and restoring files in a computer file system. [Prior Art] A file that has the 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 programs supported by the system. For example, with the evacuation function, the physical image recorded on the external storage device (trunk image in the case of a magnetic disk device) is transferred as is to the external storage device for evacuation, and the physical image recorded on the external storage device is There are programs that extract logical records from a physical image and move them to an external storage device for backup. Furthermore, as for the restoration function, there are programs that perform restoration with physical and logical images, respectively, in accordance with the above-mentioned saving method. From a processing efficiency perspective, the most efficient method is to save as a physical image and then restore as a physical image, but this method requires that the external storage device where the file to be evacuated is created and the file to be restored are The physical attributes of the included restoration light and the external storage device (track capacity for hard disks) are the same, and the file attributes (block length, record length, etc.) of the file to be evacuated and the file to be restored are the same. If the physical attributes and file attributes are different, use a program that extracts the logical record from the physical image recorded on the external storage device and moves it to the external storage device for backup. The file must be saved using a logical image and then restored using a program that restores the file using a logical image, which results in lower processing efficiency than when saving and restoring using a physical image. Recently, the data stored in computers has been shifting from traditional numerical data to multimedia data, and in response, a variety of external storage devices have become available in terms of hardware. Files are increasingly being saved and restored using logical images. Furthermore, conventionally, when saving and restoring files, the operator decides which program to run, taking into consideration the physical attributes of the external storage device and the file attributes. In other words, if the physical attributes and file attributes of the external storage device are the same, an efficient program for saving and restoring is executed using a physical image, and when the physical attributes and file attributes are different, a logical image is used to execute the program. I am trying to run a program to save and restore. When saving files, if it is not decided in advance where to restore the files, be sure to use a logical image to prepare for the possibility of restoring to an external storage device with different physical and file attributes. I am trying to prepare a program to save and restore.

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

上述したように、従来は、外部記憶装置の物理的属性及
びファイル属性に応じて退避、復元時に実行するプログ
ラムを使い分けるようにしているため、ファイルの退避
、復元時の操作が煩わしいものとなる問題があり、また
、ファイルをどこに復元するかが決定されていない場合
や外部記憶装置の物理的属性及びファイル属性が異なる
場合は、必ず論理的イメージにより退避、復元を行なう
プログラムを実行させなければならないため、処理効率
が悪くなる問題があった。 本発明は前述の如き問題点を解決したものであり、その
目的は、ファイルを退避、復旧させる際の操作を簡単な
ものとすると共にファイルの退避。 復元を効率良く行なうことができるようにすることにあ
る。 〔問題点を解決するための手段〕 本発明は前述の如き問題点を解決するため、第1の外部
記憶装置に作成されたファイルを第2の外部記憶装置に
退避させ、該第2の外部記憶装置に退避させたファイル
を前記第1の外部記憶装置或いは第3の外部記憶装置に
復元する機能を有するファイルシステムに於いて、 前記第1の外部記憶装置に作成されたファイルのファイ
ル属性情報及び前記第1の外部記憶装置の物理的属性情
報を管理ファイルから読込む属性読込手段と、 前記第1の外部記憶装置に作成されたファイルの物理的
イメージをそのまま読込む第1の入力手段と、 該第1の入力手段が読込んだ物理的イメージをそのまま
の形で前記属性読込手段が読込んだファイル属性情報及
び物理的属性情報と併せて前記第2の外部記憶装置に書
込む第1の出力手段と、前記第2の外部記憶装置に書込
まれている物理的イメージをそのままの形で読込むと共
に該物理的イメージと併せて書込まれているファイル属
性情報及び物理的属性情報を読込む第2の入力手段と、 該第2の入力手段が読込んだ退避されたファイルのファ
イル属性情報と復元するファイルのファイル属性情報と
を比較すると共に、該第2の入力手段が読込んだ前記第
1の外部記憶装置の物理的属性情報と前記復元するファ
イルが作成されている外部記憶装置の物理的属性情報と
を比較し、比較結果に基づいて前記第2の入力手段が読
込んだ物理的イメージをどのように変換するかを判定す
る判定手段と、 該判定手段の判定結果に応じて前記第2の入力手段が読
込んだ物理的イメージの変換を行なう変換手段と、 該変換手段の変換結果を復元光の外部記憶装置に物理的
イメージで出力する第2の出力手段とを設けたものであ
る。 〔作 用〕 第1の外部記憶装置に作成されたファイルを退避させる
場合、上記ファイルのファイル属性情報。 第1の外部記憶装置の物理的属性情報もファイルの物理
的イメージと併せて退避媒体である第2の外部記憶装置
に書込まれる。第2の外部記憶装置に退避させられたフ
ァイルを復元する場合、判定手段は退避させられたファ
イルのファイル属性情報と復元するファイルのファイル
属性情報とを比較すると共に、第1の外部記憶装置の物
理的属性情報と上記復元するファイルが作成されている
外部記憶装置の物理的属性情報とを比較し、比較結果に
基づいて、物理的イメージをどのように変換するかを判
定し、変換手段は判定手段の判定結果に応じた変換処理
を行なう。 (実施例) 次に本発明の実施例について図面を参照して説明する。 第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から読込
んだ外部記憶装置13に作成される復元すべきファイル
13aのファイル属性情報とを比較すると共に、外部記
憶装置2の物理的属性情報7aとファイルカタログ14
aから読込んだ外部記憶装置13の物理的属性情報とを
比較し、比較結果に応じた変換指示を出力する判定手段
lOと、判定手段10から加えられた変換指示の内容に
応じて退避データ8を変換して出力する変換手段11と
、変換手段11の出力を外部記憶装置13に書込む第2
の出力手段12とを含んでいる。 次に第1図の動作を説明する。尚、本実施例に於いては
、ファイル属性情報はファイル固成、ブロック長及びレ
コード長を示すものとする。 第1の入力手段4は外部記憶装置2に作成されている退
避対象となったファイル2aのデータを物理的イメージ
でそのまま読込み、属性読込手段3はファイルカタログ
1から外部記憶装置2の物理的属性情報及びファイル2
aのファイル属性情報を読込む。第1の出力手段5は第
1の入力手段4が読込んだ退避データをそのまま退避媒
体6に書込むと共に属性読込手段3が読込んだ物理的属
性情報及びファイル属性情報を退避媒体6に書込む。 第2の入力手段9はファイルの復元時、退避媒体6から
物理的属性情報7aとファイル属性情報7bと退避デー
タ8とを読込み、物理的属性情報7a及びファイル属性
情報7bを判定手段10に加え、退避データ8を変換手
段11に加える。 判定手段10は物理的属性情報7a及びファイル属性情
!7bが加えられると、第2図のフローチャートに示す
処理を開始する。即ち、判定手段lOは、先ず退避させ
たファイル2aのファイル編成と復元するファイル13
aのファイル編成とが一敗するか否かを各ファイル2a
、13aのファイル属性情報を比較することにより調べ
(ステップ21)、ファイル編成が一致している場合は
ファイル2a。 13aのブロック長及びレコード長が共に等しいか否か
を各ファイル2a、13aのファイル属性情報を比較す
ることにより調べる(ステップ22)、尚、ファイル編
成が不一致の場合は、復元不可となる。 そして、ステップ22でファイル2a、13aのブロッ
ク長及びレコード長が共に等しいと判定された場合は、
外部記憶装置2.13の物理的属性が一致しているか否
かを判定する(ステップ23)。そして、物理的属性が
一致していないと判定した場合は、退避データ8に対し
て物理的変換を行なう必要があるとして変換手段11に
物理的変換指示を加え(ステップ25)、物理属性が一
致していると判定した場合は、退避データに対して何隻
変換を行なう必要がないとして変換手段11に無変換指
示を加える(ステップ24)、また、ステップ22の判
断結果がNOの場合、即ち、ブロック長とレコード長と
の内の少なくとも何れか一方が異なっている場合は、退
避データ8に対して論理的変換を行なうことが必要であ
るとして変換手段11に論理的変換指示を加える(ステ
ップ26)。 変換手段11は判定手段10から論理的変換指示。 物理的変換指示或いは無変換指示が加えられることによ
り、第3図のフローチャートに示す処理を行なう。 変換手段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)。 第4図は変換手段11で行なわれる論理的変換の一例を
示す図である。今、例えば、退避データ8中の物理的イ
メージの1単位が同図+a)に示すように、2個のブロ
ックBl、B2から構成され、各ブロックBl、B2に
はそれぞれ4個の論理レコードR1〜R4,R5〜R8
が格納されているとし、復元先の外部記憶装置13の物
理的イメージの1単位が4個のブロックB’ 1−B’
 4から構成され、各ブロックB’l〜B’4には2個
の論理レコードが格納されるとすると、ステップ34の
処理を行なうことにより、同図(blに示すように、ブ
ロックB’1に論理レコードR1,R2が格納され、ブ
ロックB’2に論理レコードR3,R4が格納され、ブ
ロックB’3に論理レコードR5,R6が格納され、ブ
ロックB’4に論理レコードR7,R8が格納され、ス
テップ35の処理を行なうことにより、ブロックB’l
、 B’2.8’3.8’4の順で出力される。 また、第5図は変換手段11で行なわれる物理的変換の
一例を示す図である。今、例えば、退避データ8中の物
理的イメージの1単位が同図(alに示すように、3個
のブロックBl、B2.B3から構成され、各ブロック
B1.B2.B3にはそれぞれ3個のレコードR1〜R
3,R4〜R6,R7〜R9が格納されているとし、復
元先の外部記憶装置13の物理的イメージの1単位当た
りの容量が2つのブロックを格納する容量しか有してい
ないとすると、変換手段11は外部記憶装置13の物理
的イメージの1単位に対して同図(blに示すように、
ブロックBl、B2のみを出力し、ブロックB3は次の
1単位に対して出力するものである。 〔発明の効果〕 以上説明したように、本発明は、ファイルを退避させる
際、上記ファイルのファイル属性情報。 上記ファイルが作成されている外部記憶装置の物理的属
性情報も併せて退避させるようにし、ファイルを復元す
る時は、上記ファイル属性情報、復元先のファイルのフ
ァイル属性情報、上記物理的属性情報及び復元するファ
イルが作成される外部記憶装置の物理的属性情報に基づ
いて、退避させたファイルの物理的イメージをどのよう
に変換するかを判定し、判定結果に応じた変換処理を行
なうものであり、唯一つの方法でファイルを退避。 復元させることができるので、外部記憶装置の物理的属
性、ファイル属性の違いにより実行するプログラムを使
いわけなければならなかった従来例に比較してファイル
の退避、復元作業を容易なものとすることができる効果
がある。また、更に、本発明は、ファイルを退避させる
際、常に、ファイルを物理的イメージでそのまま退避さ
せるので、処理効率を従来例に比較して高いものとする
ことができる効果もある。
As mentioned above, conventionally, programs to be executed when saving and restoring are used differently depending on the physical attributes of the external storage device and the file attributes, which causes the problem of cumbersome operations when saving and restoring files. In addition, if it has not been determined where to restore the file, or if the physical attributes and file attributes of the external storage device are different, a program that saves and restores using a logical image must be executed. Therefore, there was a problem that processing efficiency deteriorated. The present invention solves the above-mentioned problems, and its purpose is to simplify operations for saving and restoring files, and to save files. The purpose is to enable efficient restoration. [Means for Solving the Problems] In order to solve the above-mentioned problems, the present invention saves files created in a first external storage device to a second external storage device, and In a file system having a function of restoring files evacuated to a storage device to the first external storage device or the third external storage device, file attribute information of files created in the first external storage device. and attribute reading means for reading physical attribute information of the first external storage device from a management file; and first input means for reading the physical image of the file created in the first external storage device as it is. , a first method for writing the physical image read by the first input means into the second external storage device as it is together with the file attribute information and the physical attribute information read by the attribute reading means; an output means for reading the physical image written in the second external storage device as it is, and outputting file attribute information and physical attribute information written together with the physical image. A second input means for reading compares the file attribute information of the saved file read by the second input means with the file attribute information of the file to be restored, and also compares the file attribute information of the file to be restored. The physical attribute information of the first external storage device is compared with the physical attribute information of the external storage device in which the file to be restored is created, and the second input means reads the data based on the comparison result. a determining means for determining how to convert the physical image; a converting means for converting the physical image read by the second input means according to the determination result of the determining means; A second output means is provided for outputting the conversion result of the means as a physical image to an external storage device of restored light. [Function] When saving a file created in the first external storage device, file attribute information of the above file. The physical attribute information of the first external storage device is also written to the second external storage device, which is the evacuation medium, together with the physical image of the file. When restoring a file evacuated to the second external storage device, the determination means compares the file attribute information of the evacuated file with the file attribute information of the file to be restored, and also compares the file attribute information of the evacuated file with the file attribute information of the file to be restored. 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, it is determined how to convert the physical image, and the conversion means Conversion processing is performed according to the determination result of the determination means. (Example) Next, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention, in which a song file 2a to be saved is created in an external storage device 2.
Attribute reading means 3 reads the file attribute information of the external storage device 2 and the physical attribute information of the external storage device 2 from a management file such as the file catalog 1a created in the external storage device 1; A first input means 4 that reads in the physical image as it is, and an attribute reading means 3
a first output means 5 that writes the physical attribute information read by the save medium 6, the file attribute information read by the input means 4, and the data read by the input means 4 to the save medium 6; and the physical attribute information 7a written to the save medium 6. a second input means 9 that reads file attribute information 7b and saved data 8; and file attribute information 7b of the file 2a read by the second input means 9 and a file catalog created in the external storage device 14. The file attribute information of the file 13a to be restored created in the external storage device 13 read from the external storage device 14a is compared, and the physical attribute information 7a of the external storage device 2 and the file catalog 14 are compared.
a determining means lO that compares the physical attribute information of the external storage device 13 read from a and outputs a conversion instruction according to the comparison result; a converting means 11 for converting and outputting 8, and a second converting means 11 for converting and outputting the converted signal;
output means 12. Next, the operation shown in FIG. 1 will be explained. In this embodiment, the file attribute information indicates file fixation, block length, and record length. The first input means 4 reads the data of the file 2a created in the external storage device 2 to be saved as it is as a physical image, and the attribute reading means 3 reads the physical attributes of the external storage device 2 from the file catalog 1. Information and files 2
Read the file attribute information of a. The first output means 5 writes the save data read by the first input means 4 to the save medium 6 as is, and also writes the physical attribute information and file attribute information read by the attribute reading means 3 to the save medium 6. It's crowded. When restoring a file, the second input means 9 reads the physical attribute information 7a, the file attribute information 7b, and the saved data 8 from the save medium 6, and adds the physical attribute information 7a and the file attribute information 7b to the determining means 10. , the saved data 8 is added to the conversion means 11. The determining means 10 uses physical attribute information 7a and file attribute information! 7b is added, the process shown in the flowchart of FIG. 2 is started. That is, the determining means 1O first determines the file organization of the evacuated file 2a and the file 13 to be restored.
For each file 2a, check whether or not the file organization of a
, 13a (step 21), and if the file organization matches, the file 2a. It is checked whether the block length and record length of the files 13a are equal by comparing the file attribute information of each file 2a and 13a (step 22). If the file organization does not match, restoration is impossible. If it is determined in step 22 that the block length and record length of files 2a and 13a are equal,
It is determined whether the physical attributes of the external storage devices 2.13 match (step 23). If it is determined that the physical attributes do not match, a physical conversion instruction is given to the conversion means 11 as it is necessary to perform physical conversion on the saved data 8 (step 25), and the physical attributes are matched. If it is determined that the number of ships has been converted to the evacuation data, it is assumed that there is no need to convert the evacuation data, and a non-conversion instruction is added to the conversion means 11 (step 24).If the judgment result in step 22 is NO, that is, , if at least one of the block length and record length is different, it is necessary to perform logical conversion on the saved data 8, and a logical conversion instruction is added to the conversion means 11 (step 26). The conversion means 11 receives a logical conversion instruction from the determination means 10. By adding a physical conversion instruction or a no-conversion instruction, the processing shown in the flowchart of FIG. 3 is performed. 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 in steps 31 and 32, and distributes the conversion work. Logical conversion takes place in steps 33 to 35. In step 33, a block image is extracted from the physical image of the saved data 8, and a logical record is extracted from the block image. In step 34, the logical record is stored according to the block length of the file 13a to be restored, When a block is full, the process of storing records in the next block is performed for all the logical records extracted in step 33.If the record length of file 2a and the record length of file 13a are different, the records are stored in the next block in step 33. After performing processing to make the record length of the logical record equal to the record length of file 13a, processing is performed to store it in a block,
If the record length of file 2a is shorter, a predetermined value is added to the logical record extracted in step 33 to make the record length match the record length of file 13a, and then the process is performed to store it in a block, If the record length of file 2a is longer, delete the later items that cannot be stored in the logical record items extracted in step 33 or the separately specified items to make the record length match the record length of file 13a. After that, processing is performed to store it in a block. In step 35, the blocks created in step 34 are sequentially arranged to create and output a physical image (track image in the case of a magnetic disk device) for the external storage device 13. If it is determined that the instruction from is a physical conversion instruction, the extracted block image is arranged in accordance with the physical image of the restoration device (step 36).In any of the above cases, the restoration The capacity of the previous file 13a is larger than that of file 2a.
When the capacity is larger than the capacity of the block, an empty image is created in the surplus block. Further, when the conversion means 11 determines in step 31 that the instruction from the determination means 10 is a non-conversion instruction, the conversion means 11 outputs the saved data 8 from the second input means 9.
is output as is (step 37). FIG. 4 is a diagram showing an example of logical conversion performed by the conversion means 11. Now, for example, one unit of the physical image in the saved data 8 is composed of two blocks Bl and B2, as shown in +a) of the same figure, and each block Bl and B2 has four logical records R1, respectively. ~R4, R5~R8
is stored, and one unit of the physical image of the restoration destination external storage device 13 consists of four blocks B'1-B'
4, and two logical records are stored in each block B'l to B'4. By performing the process of step 34, the block B'1 to B'4 is Logical records R1 and R2 are stored in block B'2, logical records R3 and R4 are stored in block B'3, logical records R5 and R6 are stored in block B'3, and logical records R7 and R8 are stored in block B'4. By performing the process of step 35, block B'l
, B'2.8'3.8'4. Further, 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 saved data 8 is composed of three blocks Bl, B2.B3, and each block B1.B2.B3 has three blocks, as shown in the figure (al). Records R1 to R
3, R4 to R6, R7 to R9 are stored, and assuming that the physical image of the external storage device 13 at the restoration destination has a capacity per unit that can only store two blocks, the conversion The means 11 stores data for one unit of the physical image of the external storage device 13, as shown in the same figure (bl).
Only blocks B1 and B2 are output, and block B3 is output for the next unit. [Effects of the Invention] As explained above, the present invention saves file attribute information of the file when saving a file. The physical attribute information of the external storage device in which the above file is created is also saved, and when restoring the file, the above file attribute information, the file attribute information of the file to be restored, the above physical attribute information, and It determines how to convert the physical image of the evacuated file based on the physical attribute information of the external storage device where the file to be restored is created, and performs the conversion process according to the determination result. , evacuate files in only one way. Since the data can be restored, it is easier to save and restore files compared to the conventional method in which different programs had to be used depending on the physical attributes of the external storage device and the file attributes. It has the effect of Further, since the present invention always saves the file as a physical image when saving the file, processing efficiency can be increased compared to the conventional example.

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

第1図は本発明の実施例のブロック図、第2図は判定手
段10の処理内容を示すフローチャート、 第3図は変換手段11の処理内容を示すフローチャート
、 第4図は論理的変換の一例を示す図及び、第5図は物理
的変換の一例を示す図である。 1、 2.13.14・・・外部記憶装置、la、14
a・・・ファイルカタログ、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 determination means 10, FIG. 3 is a flowchart showing the processing contents of the conversion means 11, and FIG. 4 is an example of logical conversion. and FIG. 5 are diagrams showing an example of physical conversion. 1, 2.13.14...external storage device, la, 14
a... File catalog, 2a, 13a... File, 3... Attribute reading means, 4... First input means,
5... First output means, 6... Saving medium, 7a...
・Physical attribute information, 7b...File attribute information, 8.
...Evacuation data, 9...Second input means, 10...
Judgment means, 11... Conversion means, 12... Second output means.

Claims (1)

【特許請求の範囲】 第1の外部記憶装置に作成されたファイルを第2の外部
記憶装置に退避させ、該第2の外部記憶装置に退避させ
たファイルを前記第1の外部記憶装置或いは第3の外部
記憶装置に復元する機能を有するファイルシステムに於
いて、 前記第1の外部記憶装置に作成されたファイルのファイ
ル属性情報及び前記第1の外部記憶装置の物理的属性情
報を管理ファイルから読込む属性読込手段と、 前記第1の外部記憶装置に作成されたファイルの物理的
イメージをそのまま読込む第1の入力手段と、 該第1の入力手段が読込んだ物理的イメージをそのまま
の形で前記属性読込手段が読込んだファイル属性情報及
び物理的属性情報と併せて前記第2の外部記憶装置に書
込む第1の出力手段と、前記第2の外部記憶装置に書込
まれている物理的イメージをそのままの形で読込むと共
に該物理的イメージと併せて書込まれているファイル属
性情報及び物理的属性情報を読込む第2の入力手段と、 該第2の入力手段が読込んだ退避されたファイルのファ
イル属性情報と復元するファイルのファイル属性情報と
を比較すると共に、該第2の入力手段が読込んだ前記第
1の外部記憶装置の物理的属性情報と前記復元するファ
イルが作成されている外部記憶装置の物理的属性情報と
を比較し、比較結果に基づいて前記第2の入力手段が読
込んだ物理的イメージをどのように変換するかを判定す
る判定手段と、 該判定手段の判定結果に応じて前記第2の入力手段が読
込んだ物理的イメージの変換を行なう変換手段と、 該変換手段の変換結果を復元先の外部記憶装置に物理的
イメージで出力する第2の出力手段とを有することを特
徴とするファイルの退避復元方式。
[Scope of Claims] 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 second external storage device. In the file system having a function of restoring to an external storage device according to No. 3, file attribute information of a file created in the first external storage device and physical attribute information of the first external storage device are retrieved from a management file. attribute reading means for reading; a first input means for reading the physical image of the file created in the first external storage device; and a first input means for reading the physical image read by the first input means as it is. a first output means for writing to the second external storage device together with the file attribute information and the physical attribute information read by the attribute reading means; a second input means for reading a physical image as it is, and reading file attribute information and physical attribute information written together with the physical image; Compare the file attribute information of the saved file and the file attribute information of the file to be restored, and also compare the physical attribute information of the first external storage device read by the second input means with the restored file. determining means for comparing the physical attribute information of the external storage device in which the file is created and determining how to convert the physical image read by the second input means based on the comparison result; , converting means for converting the physical image read by the second input means according to the determination result of the determining means; and outputting the conversion result of the converting means as a physical image to an external storage device as a restoration destination. and a second output means for saving and restoring files.
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 true JPS63196959A (en) 1988-08-15
JP2587417B2 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02287643A (en) * 1989-04-27 1990-11-27 Toshiba Corp Fault recovery system for shared file
JP2002297424A (en) * 2001-01-23 2002-10-11 Sharp Corp Transfer device for restoration
JP2007048066A (en) * 2005-08-10 2007-02-22 Fuji Xerox Co Ltd Device management device, method and program

Citations (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

Patent Citations (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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02287643A (en) * 1989-04-27 1990-11-27 Toshiba Corp Fault recovery system for shared file
JP2002297424A (en) * 2001-01-23 2002-10-11 Sharp Corp Transfer device for restoration
JP4606654B2 (en) * 2001-01-23 2011-01-05 シャープ株式会社 Transfer device for restoration
JP2007048066A (en) * 2005-08-10 2007-02-22 Fuji Xerox Co Ltd Device management device, method and program

Also Published As

Publication number Publication date
JP2587417B2 (en) 1997-03-05

Similar Documents

Publication Publication Date Title
CN107391544A (en) Processing method, device, equipment and the computer storage media of column data storage
JPH06250906A (en) Backup/recovery system for data developed in main storage device
US7689623B1 (en) Method for performing an external (disk-based) sort of a large data file which takes advantage of “presorted” data already present in the input
JPH039494B2 (en)
JPS63196959A (en) Saving and restoring system for file
US5682494A (en) Memory management system and method
JP2925042B2 (en) Information link generation method
JPS62224843A (en) Database medium content maintaining system
JP2822869B2 (en) Library file management device
JPS593567A (en) Buffer number setting system of tree structure
US20010018683A1 (en) High-speed audio/video information server and magnetic disk device extension method thereof
JP2742162B2 (en) Data backup method for direct organization files
JP2923952B2 (en) Merge processing method
JP3428482B2 (en) File save system, apparatus and method, and recording medium
JP2507399B2 (en) Database equipment
JPS61133450A (en) Data base revision log processing system
JPH01255028A (en) Method for making access to external storage device
JPH0447344A (en) History journal recording system
JPH04209044A (en) Data base control system
JPH08263349A (en) Data management system
JPH0484342A (en) System for storing tree-structure data in file
JPS63257962A (en) Data saving/recovering system for magnetic disk at the time of reformatting
JPH02297180A (en) Document editing system
JPH03280136A (en) Record positioning system for sequentially programmed file
JPH04178726A (en) Mass storage data classification processing system