[go: up one dir, main page]

JP2004341840A - Backup method, system therefor, and restoration method - Google Patents

Backup method, system therefor, and restoration method Download PDF

Info

Publication number
JP2004341840A
JP2004341840A JP2003137864A JP2003137864A JP2004341840A JP 2004341840 A JP2004341840 A JP 2004341840A JP 2003137864 A JP2003137864 A JP 2003137864A JP 2003137864 A JP2003137864 A JP 2003137864A JP 2004341840 A JP2004341840 A JP 2004341840A
Authority
JP
Japan
Prior art keywords
backup
data file
full
generation
storage unit
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
JP2003137864A
Other languages
Japanese (ja)
Inventor
Teruyuki Kobayashi
照幸 小林
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.)
Shinano Kenshi Co Ltd
Original Assignee
Shinano Kenshi 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 Shinano Kenshi Co Ltd filed Critical Shinano Kenshi Co Ltd
Priority to JP2003137864A priority Critical patent/JP2004341840A/en
Publication of JP2004341840A publication Critical patent/JP2004341840A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To execute the restoration of the latest generation or the restoration to a past generation near the latest generation in a short time in the generation management of a backup. <P>SOLUTION: A backup data storage part 34 is divided into a full backup region FL in which a full data file of latest generation is stored, a difference region DF in which difference data files of past generations are stored and an empty region EM. In backup processing, the full data file of the full backup region FL is compared with the full data file of the data storage part of a PC, and the data file having difference among the full data files of the full backup region FL is transferred to the difference region DL as the one-generation-anterior difference data file, and then the data file having difference among the full data files of the data storage part is written over the full backup region FL. Accordingly, the full data file of latest generation is stored in the full backup region FL. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、バックアップ方法及びそのシステム並びに復元方法に関し、特に、バックアップデータを世代管理する際に、各世代データを差分管理するバックアップ方法及びそのシステム並びに復元方法に関する。
【0002】
【従来の技術】
通常、バックアップ装置はバックアップされたデータファイルを世代管理している。これにより、ユーザーはデータの内容及びシステムの動作環境等を何世代か前の状態に復元することができる。
【0003】
バックアップデータファイルの世代管理には、従来から、次の2つの方法が使用されている。1つの方法は、全ての世代のフルデータファイルを記憶して世代管理する方法である。この方法では、バックアップを実行して世代が更新されるたびに、最新世代のフルデータファイルがバックアップ装置の記憶媒体に複製される。図9は、全ての世代のフルデータファイルを記憶する方法における、バックアップデータファイルの論理的な格納構造を表す概略図である。この方法を使用すれば、各世代の参照が簡単であり、世代を指定するだけで、短い時間で指定された世代のフルデータファイルを復元できる。
【0004】
もう1つの方法は、特許文献1に記載されている、各世代の差分データファイルを記憶して世代管理する方法である。この方法では、最初のバックアップで第1世代のフルデータファイルがバックアップ装置の記憶媒体に複製される。その後、順次バックアップを実行して世代が更新されるたびに、最新世代のフルデータファイルと最新世代からみて1つ前の世代のフルデータファイルの差分をとることにより得られる差分データファイルが、最新世代の差分データファイルとしてバックアップ装置の記憶媒体に複製される。図10は、各世代の差分データファイルを記憶する方法における、バックアップデータファイルの論理的な格納構造を表す概略図である。この方法を使用すれば、バックアップ装置の記憶媒体における、1世代あたりのデータ占有スペースが節約されるので、より多くの世代のバックアップをとることができる。
【0005】
【特許文献1】
特許番号2845886号
【0006】
【発明が解決しようとする課題】
しかしながら、上述した従来の全ての世代のフルデータファイルを記憶して世代管理する方法では、毎回のバックアップにおいて、全てのデータファイルがバックアップ装置の記憶媒体に複製されるため、バックアップに時間がかかる。また、各世代において、変更されないデータファイルが重複するため、バックアップ装置の記憶媒体における、1世代あたりのデータ占有スペースが浪費されるので、多くの世代のバックアップをとることができない。
【0007】
また、上述した従来の各世代の差分データファイルを記憶して世代管理する方法では、過去世代の復元処理を行うには、復元対象の過去世代までの各差分データファイルに基づき、第1世代のフルデータファイルを順次更新する必要があるので、最新世代の復元、または最新世代に近い過去世代への復元に時間がかかってしまう。一般的に過去世代の復元の頻度は、最新世代に近い過去世代ほど多い。
【0008】
本発明は、このような課題を解決するためになされたものであって、バックアップデータファイルの世代管理において、バックアップにかかる時間を短くし、かつ、バックアップ装置の記憶媒体の1世代あたりのデータ占有スペースを節約して、さらに、最新世代の復元、または最新世代に近い過去世代への復元を短時間で実行できる、バックアップ方法及びそのシステム並びに復元方法を提供することを目的とする。
【0009】
【課題を解決するための手段】
上記の目的を達成するために、請求項1の発明は、データファイルを格納する格納部を有し、前記データファイルを更新しつつ処理を行う処理装置から、前記更新に応じて世代管理をしつつ、前記処理装置に接続されたバックアップ装置へ前記データファイルをバックアップする方法であって、入力されたバックアップ開始指令に応じて、1回目のバックアップ処理では、前記格納部に格納された全てのデータファイルを、最新世代のフルデータファイルとして前記バックアップ装置のフルバックアップ領域部にバックアップし、2回目以降のバックアップ処理では、前記格納部に格納された前記全てのデータファイルと、前記フルバックアップ領域部に格納された前記フルデータファイルの差分をとり、前記フルバックアップ領域部側の差分データファイルを、過去世代の差分データファイルとして前記バックアップ装置の差分領域部に移すと共に、前記格納部に格納された前記データファイルを、前記最新世代のフルデータファイルとして前記フルバックアップ領域部にバックアップすることを特徴とする。
【0010】
このバックアップ方法では、データファイルを格納する格納部を有する処理装置から、データファイルの更新に応じて世代管理しつつ、処理装置に接続されたバックアップ装置へデータファイルをバックアップする。具体的には、外部から入力されたバックアップ開始指令に応じて、1回目のバックアップ処理では、格納部に格納された全てのデータファイルを、最新世代のフルデータファイルとしてバックアップ装置のフルバックアップ領域部にバックアップし、2回目以降のバックアップ処理では、格納部に格納された全てのデータファイルと、フルバックアップ領域部に格納されたフルデータファイルとの間で差分をとり、フルバックアップ領域部側の差分データファイルを、過去世代の差分データファイルとしてバックアップ装置の差分領域部に移すと共に、格納部に格納されたデータファイルを、最新世代のフルデータファイルとしてフルバックアップ領域部にバックアップする。したがって、差分バックアップ方法において、フルバックアップ領域部のデータファイルは、常に最新世代のデータファイルなので、最新世代の復元、または最新世代に近い過去世代の復元を短時間で実行できる。
【0011】
請求項2の発明は、請求項1に記載のバックアップ方法であり、前記2回目以降のバックアップ処理における、前記格納部に格納された前記データファイルは、前記差分により得られる前記格納部側の差分データファイルであることを特徴とする。
【0012】
このバックアップ方法では、2回目以降のバックアップ処理において、バックアップ装置のフルバックアップ領域部にバックアップされる、格納部に格納されたデータファイルは、格納部に格納された全てのデータファイルとフルバックアップ領域部に格納されたフルデータファイルとの間の差分により得られる格納部側の差分データファイルである。したがって、格納部側の差分データファイル数が、格納部に格納された全てのデータファイル数よりある程度少ない場合には、バックアップにかかる時間を短くできる。
【0013】
請求項3の発明は、請求項1に記載のバックアップ方法であり、前記2回目以降のバックアップ処理における、前記格納部に格納された前記データファイルは、前記格納部に格納された前記全てのデータファイルであることを特徴とする。
【0014】
このバックアップ方法では、2回目以降のバックアップ処理において、バックアップ装置のフルバックアップ領域部にバックアップされる、格納部に格納されたデータファイルは、格納部に格納された全てのデータファイルである。したがって、格納部側の差分データファイル数が、格納部に格納された全てのデータファイル数とほぼ同じ場合には、バックアップにかかる時間を短くできる。
【0015】
請求項4の発明は、請求項1に記載のバックアップ方法であり、前記2回目以降のバックアップ処理における、前記格納部に格納された前記データファイルは、前記差分により得られる前記格納部側の差分データファイル数と、前記格納部に格納された前記全てのデータファイル数との相対関係に依存して、前記格納部側の差分データファイル、または前記格納部に格納された前記全てのデータファイルに対応することを特徴とする。
【0016】
このバックアップ方法では、2回目以降のバックアップ処理において、バックアップ装置のフルバックアップ領域部にバックアップされる、格納部に格納されたデータファイルは、格納部に格納された全てのデータファイルとフルバックアップ領域部に格納されたフルデータファイルとの間の差分により得られる格納部側の差分データファイルの数と、格納部に格納された全てのデータファイルの数との相対関係に依存して、格納部側の差分データファイル、または格納部に格納された全てのデータファイルに対応する。したがって、格納部側の差分データファイル数と格納部に格納された全てのデータファイル数の関係に関わらず、バックアップにかかる時間を短くできる。
【0017】
上記の目的を達成するために、請求項5の発明は、データファイルを格納する格納部を有し、前記データファイルを更新しつつ処理を行う処理装置と、前記格納部に格納された前記データファイルがバックアップされるバックアップ装置と、を備えるバックアップシステムであって、前記バックアップ装置は、最新世代のフルデータファイルが格納されるフルバックアップ領域部と、各過去世代の差分データファイルが格納される差分領域部と、を有し、前記処理装置は、入力されたバックアップ開始指令に応じて、前記格納部に格納された全てのデータファイルと、前記フルバックアップ領域部に格納された前記フルデータファイルの差分をとり、前記フルバックアップ領域部側の差分データファイルを、過去世代の差分データファイルとして前記差分領域部に移すと共に、前記格納部に格納された前記データファイルを、前記最新世代のフルデータファイルとして前記フルバックアップ領域部に格納するバックアップ処理部を有することを特徴とする。
【0018】
このバックアップシステムは、データファイルを格納する格納部を有し、データファイルを更新しつつ処理を行う処理装置と、格納部に格納されたデータファイルがバックアップされるバックアップ装置とを備える。また、バックアップ装置は、最新世代のフルデータファイルが格納されるバックアップ領域部と、各過去世代の差分データファイルが格納される差分領域部とを有する。さらに、処理装置は、入力されたバックアップ開始指令に応じて、格納部に格納された全てのデータファイルと、フルバックアップ領域部に格納されたフルデータファイルの差分をとり、フルバックアップ領域部側の差分データファイルを、過去世代の差分データファイルとして差分領域に移すと共に、格納部に格納されたデータファイルを、最新世代のフルデータファイルとしてフルバックアップ領域部に格納するバックアップ処理部を有する。したがって、差分バックアップを行うシステムにおいて、フルバックアップ領域部のデータファイルは、常に最新世代のデータファイルなので、最新世代の復元、または最新世代に近い過去世代の復元を短時間で実行できる。
【0019】
上記の目的を達成するために、請求項6の発明は、最新世代のフルデータファイルが格納されるフルバックアップ領域部と、各過去世代の差分データファイルが格納される差分領域部と、を有するバックアップ装置から、復元対象の過去世代のデータファイルを、前記データファイルを格納する格納部を有し、前記データファイルの処理を行う処理装置に復元する復元方法であって、前記最新世代のフルデータファイルを前記格納部に格納し、復元開始指示として入力された復元対象の過去世代情報に応じて、前記復元対象の過去世代に達するまで、前記差分データファイルに基づき前記格納部に格納された前記フルデータファイルを更新して前記復元対象の過去世代のデータファイルを復元することを特徴とする。
【0020】
この復元方法では、最新世代のフルデータファイルが格納されるフルバックアップ領域部と、各過去世代の差分データファイルが格納される差分領域部とを有するバックアップ装置から、復元対象の過去世代のデータファイルを、データファイルを格納する格納部を有し、データファイルの処理を行う処理装置に復元する。具体的には、最新世代のフルデータファイルを格納部に格納し、復元開始指示として入力された復元対象の過去世代情報に応じて、復元対象の過去世代に達するまで、差分データファイルに基づき、格納部に格納されたフルデータファイルを更新して、復元対象の過去世代のデータファイルを復元する。したがって、フルバックアップ領域部のデータファイルは、常に最新世代のデータファイルなので、最新世代の復元、または最新世代に近い過去世代の復元を短時間で実行できる。
【0021】
【発明の実施の形態】
以下に図面を参照しながら、本発明の実施形態について詳細に説明する。
【0022】
図1は、本発明の実施形態にかかるバックアップシステム1の構成図である。
バックアップシステム1は、パーソナルコンピュータ(PC)10、入力部20、表示部22、バックアップ装置30、ユニバーサルシリアルバス(USB)インターフェース40、から構成される。PC10は、USBインターフェース40を介して、バックアップ装置30と双方向にデータ交換可能に接続される。また、PC10は、入出力インターフェースを介して、入力部20及び表示部22に接続される。なお、USBインターフェイス40は、他にもSCSIインターフェース、RS−232Cインターフェイス等であってもよい。
【0023】
PC10は、USBインターフェース制御部12、処理部14、データ格納部16から構成される。USBインターフェース制御部12は、PC10がバックアップ装置20にUSBインターフェース40を介して接続されたとき、その接続を認識して、USBプロトコルを使用したバックアップ装置20とのデータ送受信を制御する。処理部14は、CPU及びメモリなどから構成され、一連のバックアップ処理を行う。また、処理部14は、入出力インターフェースを介して、入力部20及び表示部22に接続されており、入力部20及び表示部22との入出力を制御する。データ格納部16は、ハードディスク等の不揮発性の記憶媒体であり、PC10で使用されるユーザファイル及びシステムファイルなどを格納している。
【0024】
入力部20は、キーボード及びマウス等の入力機器から構成され、ユーザからの指示やデータ入力を受付け、これらの入力情報を処理部14に伝達する。表示部22は、CRTディスプレイ等の出力機器から構成され、処理部14の制御のもとで、入力部20から入力されたデータや制御情報、処理部14のメモリ上のデータを表示する。
【0025】
バックアップ装置30は、USBインターフェース制御部32、バックアップデータ格納部34、世代管理部36から構成される。USBインターフェース制御部32は、バックアップ装置30がPC10にUSBインターフェース40を介して接続されたとき、その接続を認識して、USBプロトコルを使用したPC10とのデータ送受信を制御する。バックアップデータ格納部34は、ハードディスク等の不揮発性の記憶媒体であり、バックアップデータファイルを格納している。世代管理部36は、バックアップデータ格納部34に格納されているバックアップデータファイルの世代管理を行うためのデータベースを有する。
【0026】
次に、バックアップ装置30のバックアップデータ格納部34における論理的なデータファイル格納構造について説明する。図2は、本実施形態に係るバックアップデータファイルの論理的な格納構造を説明する図である。バックアップデータ格納部34は、最新世代のフルデータファイルが格納されるフルバックアップ領域FL、各過去世代の差分データファイルが格納される差分領域DF、及び空き領域EMに分けられる。なお、フルバックアップ領域FL及び差分領域DFは、ともに可変領域であり、最新世代のフルデータファイルのサイズまたは過去世代の差分データファイルの合計サイズに依存して、フルバックアップ領域FLのサイズまたは差分領域DFのサイズは変化する。
【0027】
バックアップデータ格納部34において、バックアップデータファイルが格納される領域が、フルバックアップ領域FLと差分領域DFの2つ存在することに対応して、世代管理部36のデータベースも、フルバックアップ領域FL用の世代管理データベースFLDと、差分領域DF用の世代管理データベースDFDの2つが存在する。図3は、フルバックアップ領域FL用の世代管理データベースFLD、及び差分領域DF用の世代管理データベースDFDを表した図である。
【0028】
図3(a)に示すように、世代管理データベースFLDは、FLアドレス及びタイムスタンプの2項目を有する。FLアドレスは、対象のデータファイルを格納しているフルバックアップ領域FLのアドレスを表している。タイムスタンプは、対象のデータファイルに対して与えられる属性情報である。具体的には、例えば、バックアップ処理の後で、PC10のデータ格納部16に格納されていたデータの内容が2003年4月12日に変更されたとすると、次のバックアップ処理において、この変更されたデータを含むデータファイルはフルバックアップ領域FLに複製される。このとき、世代管理データベースFLDのタイムスタンプ項目には、この複製されたデータファイルの属性情報として変更時刻2003年4月12日が登録される。また、バックアップ処理の後で、新規のデータが、2003年4月12日にPC10のデータ格納部16に追加されたとすると、次のバックアップ処理において、この追加されたデータを含むデータファイルはフルバックアップ領域FLに複製される。このとき、世代管理データベースFLDのタイムスタンプ項目には、この複製されたデータファイルの属性情報として追加時刻2003年4月12日が登録される。また、バックアップ処理の後で、PC10のデータ格納部16に格納されていたデータの内容が削除されると、次のバックアップ処理において、フルバックアップ領域に格納されていた、対応する削除前のデータを含むデータファイルは差分領域に移動し、そのアドレスはデータファイル未格納状態を示す。これに伴って、世代管理データベースFLDのタイムスタンプ項目には、削除されたデータファイルの属性情報として0が登録される。なお、世代管理データベースFLDで各データファイルに与えられる属性情報は、タイムスタンプに限られず、データファイルサイズ等でもよい。
【0029】
図3(b)に示すように、世代管理データベースDFDは、DFアドレス、FLアドレス、世代番号、及び処理の種類の4項目を有する。DFアドレスは、対象の差分データファイルを格納している差分領域DFのアドレスを表している。
世代番号は、対象の差分データファイルが、最初のバックアップ処理の終了時点から数えて何回目のバックアップ処理で差分領域FLに複製されたのかを表している。処理の種類は、対象の差分データファイが差分領域DFに移動する契機となった、対応するデータファイルに対してPC10で施された処理の種類を表している。また、世代管理データベースDFDにおいて、同一世代の差分データファイルはFLアドレスの値の小さい順に並んでいる。
【0030】
次に、このように構成されたバックアップシステム1を用いたデータのバックアップ方法を説明する。図4は、本実施形態に係るバックアップ方法を説明するフローチャートである。このバックアップシステム1の操作者は、USBインターフェース40を介して、バックアップ装置30をPC10に接続させた後(ステップS1)、PC10側でバックアップ専用のアプリケーションを起動させて、表示部22の画面情報に基づいてバックアップ開始指令を、入力部20から処理部14に入力する(ステップS2)。バックアップ開始指令が処理部14で受付けられると、処理部14は世代管理部36のフルバックアップ領域FL用の世代管理データベースFLDを読み出し、バックアップデータ格納部34のフルバックアップ領域FLに最新世代のフルデータファイルが格納されているか否かを調べる(ステップS3)。
【0031】
ステップS3において、バックアップデータ格納部34のフルバックアップ領域FLに最新世代のフルデータファイルが格納されていると処理部14が判断した場合、PC10のデータ格納部16に格納されているユーザファイル及びシステムファイル等の、バックアップ対象のデータファイルのタイムスタンプと、世代管理部36の世代管理データベースFLDに記録されている、バックアップ対象のデータファイルに対応するデータファイルのタイムスタンプと、を順次比較する。そして、データ格納部16に格納されているバックアップ対象のデータファイルの中から、変更されたデータファイル及び追加されたデータファイル、すなわち、PC側差分データファイルを割り出す。また、バックアップ格納部34のフルバックアップ領域FLに格納されている最新世代のフルデータファイルの中から、変更されたデータファイル及び削除されたデータファイル、すなわちFL側差分データファイルを割り出す(ステップS4)。PC側差分データファイル及びFL側差分データファイルが求められると、フルバックアップ領域FLに格納されているFL側差分データファイルが、同一の過去世代として差分領域DFに移動する(ステップS5)。それから、データ格納部16に格納されているPC側差分データファイルが、最新世代のデータファイルとしてフルバックアップ領域FLに書き込まれる(ステップS6)。具体的には、変更されたデータファイルは、対応するデータファイルが格納されていたフルバックアップ領域FLのアドレスに書き込まれ、追加されたデータファイルは、フルバックアップ領域FLの新規のアドレスに書き込まれる。これにより、フルバックアップ領域FLのデータファイルは常に最新世代のフルバックアップデータを有し、差分領域DFのデータファイルは常に過去世代の差分バックアップデータを有する。
【0032】
ここで、ある特定の過去世代のフルデータファイルを復元する過程において、差分領域DF用の世代管理データベースDFDを参照するだけで、ある特定の過去世代を復元可能とするために、PC側差分データファイルの中から追加されたデータファイルが、ステップS5において差分領域DFに移動したFL側差分データファイルと同一の過去世代として、差分領域DFに書き込まれる。
【0033】
また、ステップS3において、バックアップデータ格納部34のフルバックアップ領域FLに最新データファイルが格納されていないと処理部14が判断した場合、PC10のデータ格納部16に格納されているユーザファイル及びシステムファイル等のバックアップ対象のデータファイルが、フルバックアップ領域FLに書き込まれる(ステップS7)。
【0034】
ステップS6またはステップS7の処理が終了すると、処理部14は表示部22にバックアップ終了の文字を表示させて、一連のバックアップ作業を終了する。
【0035】
さらに、図5及び図6を参照しながら、世代の更新について具体的に説明する。図5は、バックアップデータ格納部34におけるフルバックアップ領域FL及び差分領域DFの更新履歴を説明する図である。図6は、図5に示したフルバックアップ領域FL及び差分領域DFの更新に伴って世代管理部36で作成される世代管理データベースFLD及び世代管理データベースDFDの更新履歴を説明する図である。
【0036】
図5(a)に示すように、第1世代のフルバックアップ領域FLのみにデータファイルがバックアップされていたとすると、それに伴って、世代管理部36では、図6(a)に示すように、世代管理データベースFLDが作成される。
【0037】
次に、第1世代のフルバックアップ領域FLのFLアドレス4に格納されていたデータファイル“D”が“X”に変更されたとすると、第2世代では、図5(b)に示すような、最新世代のフルデータファイルがフルバックアップ領域FLに構成される。これに伴って、世代管理部36の世代管理データベースFLDは図6(b)に示すような値をとる。さらに、差分領域DFのDFアドレス1には、変更されたデータファイル“D”が格納され、これに伴って、世代管理データベースDFDは図6(b)に示すような値をとる。
【0038】
次に、第2世代のフルバックアップ領域FLのFLアドレス2,3に格納されていたデータファイル“B”及び“C”が、“Y”及び“Z”にそれぞれ更新され、かつ、FLアドレス6にデータファイル“P”が追加されたとすると、第3世代では、図5(c)に示すような、最新世代のフルデータファイルがフルバックアップ領域FLに構成される。それに伴って、世代管理部36の世代管理データベースFLDは図6(c)に示すような値をとる。さらに、差分領域DFのDFアドレス2,3,4には、更新されたデータファイル“B”,“C”、及び追加されたデータファイル“P”が格納され、これに伴って、世代管理データベースDFDは図6(c)に示すような値をとる。
【0039】
次に、第3世代のフルバックアップ領域FLのFLアドレス4に格納されていたデータファイル“X”が“Q”に変更され、かつ、FLアドレス3に格納されていたデータファイル“Z”が削除されたとすると、第4世代では、図5(d)に示すような、最新世代のフルデータファイルがフルバックアップ領域FLに構成される。それに伴って、世代管理部36の世代管理データベースFLDは図6(d)に示すような値をとる。さらに、差分領域DFのDFアドレス5,6には、削除されたデータファイル“Z”、及び更新されたデータファイル“X”が格納され,これに伴って、世代管理データベースDFDは図6(d)に示すような値をとる。
【0040】
図7は、本実施形態に係る過去世代の復元方法を説明するフローチャ−トである。図7を参照しながら、フルバックアップ領域FLの世代管理データベースFLD及び差分領域DFの世代管理データベースDFDを用いた、バックアップシステム1による過去世代の復元方法を説明する。
【0041】
操作者は、USBインターフェース40を介して、バックアップ装置30をPC10に接続させた後、PC10側で復元専用のアプリケーションを起動させて、表示部22の画面情報に基づいて復元対象の世代を、入力部20から処理部14に入力する(ステップS10)。復元対象の世代が処理部14で受付けられると、フルバックアップ領域FLに格納されている最新世代の各データファイルのFLアドレスを、世代管理部36の世代管理データベースFLDから処理部14に書き込む(ステップS11)。最新世代の各データファイルのFLアドレスが処理部14に書き込まれると、処理部14は復元対象の世代が最新世代か否かを判断する(ステップS12)。復元対象の世代が最新世代であるならば、ステップS22に進む。また、復元対象の世代が最新世代でないと、ステップS13に進む。
【0042】
復元対象の世代が最新世代でない場合、処理部14は、世代管理部36の世代管理データベースDFDから、最大のDFアドレスの値を有する行を選択して、その行の処理の種類を読み込み(ステップS13)。それから、処理の種類が変更であるか否かを判断する(ステップS14)。処理の種類が変更の場合、その行のFLアドレスと同じ値を有する、処理部14に書き込んだFLアドレスの値に、その行のDFアドレスの値を上書きして、ステップS20に進む(ステップS15)。処理の種類が変更でない場合、処理の種類が追加であるか否かを判断する(ステップS16)。処理の種類が追加である場合、その行のFLアドレスと同じ値を有する、処理部14に書き込んだFLアドレスの値を削除して、ステップS20に進む(ステップS17)。処理の種類が追加でない場合、処理の種類が削除であるか否かを判断する(ステップS18)。処理の種類が削除である場合、その行のFLアドレスと同じ値を有する、処理部14に書き込んだFLアドレスの値に、その行のDFアドレスの値を上書きして、ステップS20に進む(ステップS19)。処理の種類が削除でない場合には表示部22にエラーの文字を表示させる。その行の処理の種類に依存した処理が終了すると、DFアドレスを1つ戻して(ステップS20)、その行の世代番号が復元対象の世代から1を引いた数であるか否かを判断する(ステップS21)。世代番号が復元対象の世代から1を引いた数でないならば、ステップS14に戻る。世代番号が復元対象の世代から1を引いた数であるならば、処理部14に書き込まれたFLアドレス及びDFアドレスを参照して、フルバックアップ領域FL及び差分領域DFから、復元対象の世代の各データファイルをPC10のデータ格納部16に書き込み復元する(ステップS22)。
【0043】
なお、このような方式をとれば、全ての過去世代の差分情報が差分領域DFに存在しなくても、復元対象の過去世代の各データファイルをPC10のデータ格納部16に復元できる。それゆえ、過去世代の差分データファイルの合計サイズが増加するにつれて差分領域DFの空き容量が少なくなっても、差分領域DFの第1世代(最古世代)の差分データファイルから順に削除すれば、その分空き領域が生成されるので、バックアップ作業を停止することなく続けられる。特に、差分領域DFを固定領域とした場合に、その効果が顕著に現れる。
【0044】
図8は本実施形態の第1変形例を説明するフローチャートである。図8に示したフローチャートは、図4に示したフローチャートと比べてステップS6の処理内容のみが異なる。図8のステップS9に示すように、本実施形態の第1変形例として、図4のステップS6で実行されるPC側の差分データファイルをフルバックアップ領域FLに書き込む代わりに、PC10のデータ格納部16に格納されている全てのデータファイルをフルバックアップ領域FLに上書きする。この方法によれば、PC側の各差分データファイルを格納すべき、対応するフルバックアップ領域FLのアドレスを随時検出する必要がないため、PC側の差分データファイル数がPC10のデータ格納部16に格納されている全てのデータファイル数とほぼ同じ場合には、短い時間でバックアップ処理を終わらせることができる。
【0045】
本実施形態の第2変形例として、図4のステップS6で実行されるPC側の差分データファイルをフルバックアップ領域FLに書き込む代わりに、また、図8のステップS9で実行されるPC10のデータ格納部16に格納されている全てのデータファイルをフルバックアップ領域FLに上書きする代わりに、差分データファイル数と全てのデータファイル数との相対関係により、随時、図4のステップS6、または、図8のステップS9において、PC側の差分データファイルをフルバックアップ領域FLに書き込むか、PC10のデータ格納部16に格納されている全てのデータファイルをフルバックアップ領域FLに上書きするか選択してもよい。この方法によれば、PC側の差分データファイル数がPC10のデータ格納部16に格納されている全てのデータファイル数よりある程度少ない場合には、PC側差分データファイルのみをフルバックアップ領域FLに書き込めば、短い時間でバックアップ処理を終わらすことができる。また、PC側の差分データファイル数が、PC10のデータ格納部16に格納されている全てのデータファイル数とほぼ同じ場合には、PC10のデータ格納部16に格納されている全てのデータファイルをフルバックアップ領域FLに上書きすれば、短い時間でバックアップ処理を終わらせることができる。
【0046】
【発明の効果】
請求項1に係るバックアップ方法を使用する場合、最新世代の復元、または最新世代に近い過去世代の復元を短時間で実行できる。また、差分領域の空き容量が少なくなっても、差分領域に格納されている最古世代の差分データファイルから順に差分データファイルを削除すれば、バックアップ作業を続けられる。
【0047】
請求項2に係るバックアップ方法を使用する場合、データ格納部側の差分データファイル数が、データ格納部の全てのデータファイル数よりある程度少ない場合には、バックアップにかかる時間を短くできる。
【0048】
請求項3に係るバックアップ方法を使用する場合、データ格納部側の差分データファイル数が、データ格納部側の全てのデータファイル数とほぼ同じ場合には、バックアップにかかる時間を短くできる。
【0049】
請求項4に係るバックアップ方法を使用する場合、データ格納部側の差分データファイル数とデータ格納部の全てのデータファイル数の関係に関わらず、バックアップにかかる時間を短くできる。
【0050】
請求項5に係るバックアップ装置を使用する場合、最新世代の復元、または最新世代に近い過去世代の復元を短時間で実行できる。また、差分領域の空き容量が少なくなっても、差分領域に格納されている最古世代の差分データファイルから順に差分データファイルを削除すれば、バックアップ作業を続けられる。
【0051】
請求項6に係る復元方法を使用する場合、最新世代の復元、または最新世代に近い過去世代の復元を短時間で実行できる。
【図面の簡単な説明】
【図1】本発明の実施形態にかかるバックアップシステムの構成図である。
【図2】本発明の実施形態にかかるバックアップデータファイルの論理的な格納構造を表す概略図である。
【図3】本発明の実施形態にかかるフルバックアップ領域用の世代管理データベース及び差分領域用の世代管理データべ−スを表す図である。
【図4】本発明の実施形態にかかるバックアップ方法を説明するフローチャートである。
【図5】バックアップデータ格納部における、フルバックアップ領域及び差分領域の更新履歴を説明する図である。
【図6】世代管理部における、フルバックアップ領域用の世代管理データベース及び差分領域用の世代管理データベースの更新履歴を説明する図である。
【図7】本発明の実施形態にかかる過去世代の復元方法を説明するフローチャートである。
【図8】本発明の実施形態の第1変形例にかかるバックアップ方法を説明するフローチャートである。
【図9】従来のバックアップデータファイルの論理的な格納構造を表す概略図である。
【図10】従来のバックアップデータファイルの論理的な格納構造を表す概略図である。
【符号の説明】
1 バックアップシステム
10 パーソナルコンピュータ
14 処理部
16 データ格納部
30 バックアップ装置
34 バックアップデータ格納部
36 世代管理部
40 ユニバーサルシリアルバスインターフェース
FL フルバックアップ領域
DF 差分領域
FLD フルバックアップ領域用の世代管理データベース
DFD 差分領域用の世代管理データベース
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a backup method, a system therefor, and a restoration method, and more particularly, to a backup method, a system and a restoration method for differentially managing each generation data at the time of generation management of backup data.
[0002]
[Prior art]
Usually, the backup device manages the generation of the backed up data file. As a result, the user can restore the contents of data, the operating environment of the system, and the like to the state several generations ago.
[0003]
Conventionally, the following two methods have been used for generation management of backup data files. One method is a method of storing full data files of all generations and managing generations. In this method, each time a backup is executed and the generation is updated, the latest generation full data file is copied to the storage medium of the backup device. FIG. 9 is a schematic diagram showing a logical storage structure of a backup data file in a method of storing full data files of all generations. Using this method, each generation can be easily referred to, and a full data file of the specified generation can be restored in a short time only by specifying the generation.
[0004]
Another method is a method described in Patent Literature 1 in which a difference data file of each generation is stored and generation management is performed. In this method, the first generation full data file is copied to the storage medium of the backup device in the first backup. Thereafter, each time a generation is updated by successively executing backups, the difference data file obtained by taking the difference between the full data file of the latest generation and the full data file of the immediately preceding generation as viewed from the latest generation becomes the latest data. The data is copied to the storage medium of the backup device as a generation difference data file. FIG. 10 is a schematic diagram showing a logical storage structure of the backup data file in the method of storing the difference data files of each generation. By using this method, the data occupied space per generation in the storage medium of the backup device can be saved, so that more generations can be backed up.
[0005]
[Patent Document 1]
Patent No. 2845886
[0006]
[Problems to be solved by the invention]
However, in the above-described conventional method of storing full data files of all generations and managing generations, in each backup, all data files are copied to the storage medium of the backup device, so that it takes time to back up. In addition, since data files that are not changed are duplicated in each generation, the data occupied space per generation in the storage medium of the backup device is wasted, so that many generations cannot be backed up.
[0007]
In addition, in the above-described conventional method of managing the generation by storing the difference data files of each generation, the restoration processing of the past generation is performed based on the difference data files up to the past generation to be restored. Since it is necessary to sequentially update the full data file, it takes time to restore the latest generation or to a past generation close to the latest generation. Generally, the frequency of restoration of the past generation is higher for the past generation closer to the latest generation.
[0008]
SUMMARY OF THE INVENTION The present invention has been made to solve such a problem. In generation management of a backup data file, the time required for backup is reduced, and the data occupation per generation of the storage medium of the backup device is reduced. It is an object of the present invention to provide a backup method, a system thereof, and a restoration method that can save space and restore a latest generation or a past generation close to the latest generation in a short time.
[0009]
[Means for Solving the Problems]
In order to achieve the above object, the invention according to claim 1 has a storage unit for storing a data file, and performs generation management according to the update from a processing device that performs processing while updating the data file. And a method of backing up the data file to a backup device connected to the processing device, wherein in a first backup process, all data stored in the storage unit are read in response to an input backup start command. The file is backed up as a full data file of the latest generation in the full backup area of the backup device, and in the second and subsequent backup processing, all of the data files stored in the storage section and the full backup area are stored in the full backup area. The difference between the stored full data files is calculated, and the difference on the side of the full backup area is determined. A data file is transferred to the differential area of the backup device as a differential data file of the past generation, and the data file stored in the storage unit is backed up to the full backup area as the full data file of the latest generation. It is characterized by the following.
[0010]
In this backup method, a data file is backed up from a processing device having a storage unit for storing a data file to a backup device connected to the processing device while performing generation management according to the update of the data file. Specifically, in response to a backup start command input from the outside, in the first backup processing, all data files stored in the storage unit are used as the latest generation full data files in the full backup area of the backup device. In the second and subsequent backup processes, a difference is obtained between all data files stored in the storage unit and the full data files stored in the full backup area, and the difference on the full backup area side is calculated. The data file is transferred to the differential area of the backup device as a differential data file of the past generation, and the data file stored in the storage unit is backed up to the full backup area as a full data file of the latest generation. Therefore, in the differential backup method, since the data file in the full backup area is always the latest generation data file, restoration of the latest generation or restoration of a past generation close to the latest generation can be executed in a short time.
[0011]
A second aspect of the present invention is the backup method according to the first aspect, wherein the data file stored in the storage unit in the second and subsequent backup processing is a difference between the storage unit side obtained from the difference. It is a data file.
[0012]
In this backup method, in the second and subsequent backup processes, the data files stored in the storage unit, which are backed up in the full backup area of the backup device, are all data files stored in the storage unit and the full backup area. Is a difference data file on the storage unit side obtained by a difference from the full data file stored in the storage unit. Therefore, when the number of difference data files on the storage unit side is somewhat smaller than the number of all data files stored in the storage unit, the time required for backup can be reduced.
[0013]
A third aspect of the present invention is the backup method according to the first aspect, wherein the data files stored in the storage unit in the second and subsequent backup processes are all the data files stored in the storage unit. It is a file.
[0014]
In this backup method, in the second and subsequent backup processes, the data files stored in the storage unit that are backed up in the full backup area of the backup device are all data files stored in the storage unit. Therefore, when the number of difference data files in the storage unit is substantially the same as the number of all data files stored in the storage unit, the time required for backup can be reduced.
[0015]
A fourth aspect of the present invention is the backup method according to the first aspect, wherein in the second and subsequent backup processes, the data file stored in the storage unit is a difference on the storage unit side obtained by the difference. Depending on the relative relationship between the number of data files and the number of all the data files stored in the storage unit, the difference data file on the storage unit side or the all data files stored in the storage unit It is characterized by corresponding.
[0016]
In this backup method, in the second and subsequent backup processes, the data files stored in the storage unit, which are backed up in the full backup area of the backup device, are all data files stored in the storage unit and the full backup area. Depends on the relative relationship between the number of difference data files on the storage unit obtained by the difference between the full data files stored on the storage unit and the number of all data files stored on the storage unit. , Or all the data files stored in the storage unit. Therefore, regardless of the relationship between the number of difference data files in the storage unit and the number of all data files stored in the storage unit, the time required for backup can be reduced.
[0017]
In order to achieve the above object, the invention according to claim 5, further comprising: a processing device having a storage unit for storing a data file, performing a process while updating the data file, and the data stored in the storage unit. A backup device for backing up files, the backup device comprising: a full backup area for storing the latest generation of full data files; and a differential for storing each past generation of differential data files. Area unit, and the processing device, in response to the input backup start command, all the data files stored in the storage unit, and the full data file stored in the full backup area unit By taking the difference, the difference data file on the side of the full backup area is referred to as the difference data file of the past generation. Together transferred to the differential area portion Te, the data file stored in the storage unit, and having a backup processor to be stored in the full backup area portion as a full data file of the latest generation.
[0018]
This backup system includes a processing device having a storage unit for storing a data file and performing processing while updating the data file, and a backup device for backing up the data file stored in the storage unit. The backup device also has a backup area for storing the latest generation full data file and a difference area for storing each past generation difference data file. Further, the processing device calculates a difference between all the data files stored in the storage unit and the full data files stored in the full backup area unit in response to the input backup start command, and A backup processing unit that transfers the differential data file to the differential area as a differential data file of the past generation, and stores the data file stored in the storage unit as a full data file of the latest generation in the full backup area unit; Therefore, in a system that performs differential backup, since the data file in the full backup area is always the latest generation data file, restoration of the latest generation or restoration of a past generation close to the latest generation can be executed in a short time.
[0019]
In order to achieve the above object, the invention of claim 6 has a full backup area for storing the latest generation full data file and a difference area for storing each past generation difference data file. A restoration method for restoring a data file of the past generation to be restored from a backup device to a processing device that has a storage unit for storing the data file and processes the data file, wherein the full-data of the latest generation The file is stored in the storage unit, and in accordance with the past generation information of the restoration target input as the restoration start instruction, the file stored in the storage unit based on the difference data file until the past generation of the restoration target is reached. The method is characterized in that a full data file is updated to restore the previous generation data file to be restored.
[0020]
In this restoration method, a data file of a past generation data file to be restored is transferred from a backup device having a full backup area for storing the latest generation full data file and a difference area for storing each past generation difference data file. Is restored to a processing device having a storage unit for storing the data file and performing the processing of the data file. Specifically, a full data file of the latest generation is stored in the storage unit, and according to the past generation information of the restoration target input as the restoration start instruction, based on the difference data file, until the past generation of the restoration target is reached. The full data file stored in the storage unit is updated, and the data file of the past generation to be restored is restored. Therefore, since the data file in the full backup area is always the latest generation data file, restoration of the latest generation or restoration of a past generation close to the latest generation can be executed in a short time.
[0021]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0022]
FIG. 1 is a configuration diagram of a backup system 1 according to an embodiment of the present invention.
The backup system 1 includes a personal computer (PC) 10, an input unit 20, a display unit 22, a backup device 30, and a universal serial bus (USB) interface 40. The PC 10 is connected to the backup device 30 via the USB interface 40 so that data can be exchanged in both directions. The PC 10 is connected to the input unit 20 and the display unit 22 via an input / output interface. The USB interface 40 may be a SCSI interface, an RS-232C interface, or the like.
[0023]
The PC 10 includes a USB interface control unit 12, a processing unit 14, and a data storage unit 16. When the PC 10 is connected to the backup device 20 via the USB interface 40, the USB interface control unit 12 recognizes the connection and controls data transmission and reception with the backup device 20 using the USB protocol. The processing unit 14 includes a CPU, a memory, and the like, and performs a series of backup processing. The processing unit 14 is connected to the input unit 20 and the display unit 22 via an input / output interface, and controls input and output between the input unit 20 and the display unit 22. The data storage unit 16 is a non-volatile storage medium such as a hard disk, and stores user files and system files used by the PC 10.
[0024]
The input unit 20 includes input devices such as a keyboard and a mouse, receives instructions and data input from a user, and transmits these input information to the processing unit 14. The display unit 22 includes an output device such as a CRT display, and displays data and control information input from the input unit 20 and data on a memory of the processing unit 14 under the control of the processing unit 14.
[0025]
The backup device 30 includes a USB interface control unit 32, a backup data storage unit 34, and a generation management unit 36. When the backup device 30 is connected to the PC 10 via the USB interface 40, the USB interface control unit 32 recognizes the connection and controls data transmission and reception with the PC 10 using the USB protocol. The backup data storage unit 34 is a non-volatile storage medium such as a hard disk, and stores a backup data file. The generation management unit 36 has a database for performing generation management of the backup data file stored in the backup data storage unit 34.
[0026]
Next, a logical data file storage structure in the backup data storage unit 34 of the backup device 30 will be described. FIG. 2 is a diagram illustrating a logical storage structure of the backup data file according to the present embodiment. The backup data storage unit 34 is divided into a full backup area FL where the latest generation full data file is stored, a difference area DF where each past generation difference data file is stored, and a free area EM. The full backup area FL and the difference area DF are both variable areas, and depend on the size of the latest generation full data file or the total size of the past generation difference data file, or the size of the full backup area FL or the difference area. The size of the DF changes.
[0027]
In the backup data storage unit 34, the database of the generation management unit 36 also stores the backup data file for the full backup area FL corresponding to the fact that there are two areas for storing the backup data file, the full backup area FL and the difference area DF. There are two generation management databases FLD and a generation management database DFD for the difference area DF. FIG. 3 illustrates a generation management database FLD for the full backup area FL and a generation management database DFD for the difference area DF.
[0028]
As shown in FIG. 3A, the generation management database FLD has two items: an FL address and a time stamp. The FL address indicates the address of the full backup area FL that stores the target data file. The time stamp is attribute information given to the target data file. Specifically, for example, if the content of the data stored in the data storage unit 16 of the PC 10 is changed on April 12, 2003 after the backup process, the changed content is changed in the next backup process. The data file containing the data is copied to the full backup area FL. At this time, in the time stamp item of the generation management database FLD, a change time of April 12, 2003 is registered as attribute information of the copied data file. Further, if new data is added to the data storage unit 16 of the PC 10 on April 12, 2003 after the backup processing, in the next backup processing, the data file including the added data is fully backed up. Copied in the area FL. At this time, in the time stamp item of the generation management database FLD, the additional time April 12, 2003 is registered as attribute information of the copied data file. When the content of the data stored in the data storage unit 16 of the PC 10 is deleted after the backup processing, the corresponding data before deletion stored in the full backup area is deleted in the next backup processing. The included data file is moved to the difference area, and its address indicates that the data file has not been stored. Accordingly, 0 is registered as attribute information of the deleted data file in the time stamp item of the generation management database FLD. The attribute information given to each data file in the generation management database FLD is not limited to a time stamp, but may be a data file size or the like.
[0029]
As shown in FIG. 3B, the generation management database DFD has four items: a DF address, an FL address, a generation number, and a processing type. The DF address indicates the address of the difference area DF that stores the target difference data file.
The generation number indicates how many times the target differential data file has been copied to the differential area FL from the end of the first backup process. The type of processing indicates the type of processing performed by the PC 10 on the corresponding data file that triggered the movement of the target differential data file to the differential area DF. In the generation management database DFD, difference data files of the same generation are arranged in ascending order of the FL address value.
[0030]
Next, a data backup method using the backup system 1 configured as described above will be described. FIG. 4 is a flowchart illustrating the backup method according to the present embodiment. The operator of the backup system 1 connects the backup device 30 to the PC 10 via the USB interface 40 (step S1), activates a backup-dedicated application on the PC 10, and displays the screen information on the display unit 22. A backup start command is input from the input unit 20 to the processing unit 14 based on the command (step S2). When the backup start command is received by the processing unit 14, the processing unit 14 reads the generation management database FLD for the full backup area FL of the generation management unit 36, and stores the latest generation full data in the full backup area FL of the backup data storage unit 34. It is checked whether a file is stored (step S3).
[0031]
In step S3, when the processing unit 14 determines that the latest generation full data file is stored in the full backup area FL of the backup data storage unit 34, the user file and the system stored in the data storage unit 16 of the PC 10 The time stamp of the data file to be backed up, such as a file, and the time stamp of the data file corresponding to the data file to be backed up recorded in the generation management database FLD of the generation management unit 36 are sequentially compared. Then, from the data files to be backed up stored in the data storage unit 16, the changed data file and the added data file, that is, the PC side difference data file are determined. Further, from the latest generation full data files stored in the full backup area FL of the backup storage unit 34, the changed data file and the deleted data file, that is, the FL side difference data file are determined (step S4). . When the PC side difference data file and the FL side difference data file are obtained, the FL side difference data file stored in the full backup area FL is moved to the difference area DF as the same past generation (Step S5). Then, the PC-side differential data file stored in the data storage unit 16 is written to the full backup area FL as the latest generation data file (step S6). Specifically, the changed data file is written to the address of the full backup area FL where the corresponding data file is stored, and the added data file is written to a new address of the full backup area FL. As a result, the data file in the full backup area FL always has the latest backup data of the latest generation, and the data file in the difference area DF always has the differential backup data of the past generation.
[0032]
Here, in the process of restoring a full data file of a specific past generation, the PC-side differential data can be restored only by referring to the generation management database DFD for the difference area DF. The data file added from the files is written to the difference area DF as the same past generation as the FL-side difference data file moved to the difference area DF in step S5.
[0033]
In step S3, if the processing unit 14 determines that the latest data file is not stored in the full backup area FL of the backup data storage unit 34, the user file and the system file stored in the data storage unit 16 of the PC 10 Is written to the full backup area FL (step S7).
[0034]
When the processing in step S6 or step S7 is completed, the processing unit 14 causes the display unit 22 to display a character indicating the end of the backup, and ends a series of backup operations.
[0035]
Further, the update of the generation will be specifically described with reference to FIGS. FIG. 5 is a diagram illustrating the update history of the full backup area FL and the difference area DF in the backup data storage unit 34. FIG. 6 is a diagram illustrating the update history of the generation management database FLD and the generation management database DFD created by the generation management unit 36 in accordance with the update of the full backup area FL and the difference area DF shown in FIG.
[0036]
As shown in FIG. 5A, assuming that the data file is backed up only in the first generation full backup area FL, the generation management unit 36 generates the data file as shown in FIG. A management database FLD is created.
[0037]
Next, assuming that the data file "D" stored at the FL address 4 of the first generation full backup area FL has been changed to "X", the second generation generates a data file as shown in FIG. The latest generation full data file is configured in the full backup area FL. Accordingly, the generation management database FLD of the generation management unit 36 takes a value as shown in FIG. Further, the changed data file “D” is stored in the DF address 1 of the difference area DF, and accordingly, the generation management database DFD takes a value as shown in FIG. 6B.
[0038]
Next, the data files “B” and “C” stored at the FL addresses 2 and 3 of the second generation full backup area FL are updated to “Y” and “Z”, respectively, and the FL address 6 If the data file “P” is added to the third generation, the latest generation full data file is configured in the full backup area FL in the third generation as shown in FIG. 5C. Accordingly, the generation management database FLD of the generation management unit 36 takes a value as shown in FIG. Further, updated data files “B” and “C” and an added data file “P” are stored in the DF addresses 2, 3, and 4 of the difference area DF. The DFD takes a value as shown in FIG.
[0039]
Next, the data file “X” stored at the FL address 4 of the third generation full backup area FL is changed to “Q”, and the data file “Z” stored at the FL address 3 is deleted. If so, in the fourth generation, the latest generation full data file is configured in the full backup area FL as shown in FIG. 5D. Accordingly, the generation management database FLD of the generation management unit 36 takes a value as shown in FIG. Further, the deleted data file “Z” and the updated data file “X” are stored in the DF addresses 5 and 6 of the difference area DF, and accordingly, the generation management database DFD is stored in FIG. ).
[0040]
FIG. 7 is a flowchart illustrating a method of restoring a past generation according to the present embodiment. A method of restoring a past generation by the backup system 1 using the generation management database FLD of the full backup area FL and the generation management database DFD of the difference area DF will be described with reference to FIG.
[0041]
After connecting the backup device 30 to the PC 10 via the USB interface 40, the operator starts an application dedicated for restoration on the PC 10 side, and inputs the generation to be restored based on the screen information of the display unit 22. The data is input from the unit 20 to the processing unit 14 (step S10). When the generation to be restored is accepted by the processing unit 14, the FL address of each data file of the latest generation stored in the full backup area FL is written from the generation management database FLD of the generation management unit 36 to the processing unit 14 (step S11). When the FL address of each data file of the latest generation is written into the processing unit 14, the processing unit 14 determines whether the generation to be restored is the latest generation (step S12). If the generation to be restored is the latest generation, the process proceeds to step S22. If the generation to be restored is not the latest generation, the process proceeds to step S13.
[0042]
If the generation to be restored is not the latest generation, the processing unit 14 selects the row having the maximum DF address value from the generation management database DFD of the generation management unit 36, and reads the type of processing of the row (step S13). Then, it is determined whether or not the type of processing is a change (step S14). When the type of processing is changed, the FL address value written in the processing unit 14 having the same value as the FL address of the row is overwritten with the DF address value of the row, and the process proceeds to step S20 (step S15). ). If the processing type is not changed, it is determined whether the processing type is additional (step S16). If the type of processing is additional, the value of the FL address written in the processing unit 14 having the same value as the FL address of the row is deleted, and the process proceeds to step S20 (step S17). If the processing type is not added, it is determined whether the processing type is deletion (step S18). If the type of processing is deletion, the value of the DF address of the row is overwritten with the value of the FL address written in the processing unit 14 having the same value as the FL address of the row, and the process proceeds to step S20 (step S20). S19). If the type of processing is not deletion, an error character is displayed on the display unit 22. When the processing depending on the processing type of the row is completed, the DF address is returned by one (step S20), and it is determined whether or not the generation number of the row is a number obtained by subtracting 1 from the generation to be restored. (Step S21). If the generation number is not the number obtained by subtracting 1 from the generation to be restored, the process returns to step S14. If the generation number is a number obtained by subtracting 1 from the generation to be restored, the FL address and the DF address written to the processing unit 14 are referred to, and the generation of the generation to be restored is extracted from the full backup area FL and the difference area DF. Each data file is written and restored in the data storage unit 16 of the PC 10 (Step S22).
[0043]
In addition, by adopting such a method, each data file of the past generation to be restored can be restored to the data storage unit 16 of the PC 10 even if all the past generation difference information does not exist in the difference area DF. Therefore, even if the free space of the difference area DF decreases as the total size of the difference data files of the past generation increases, by sequentially deleting the difference data files of the first generation (oldest generation) of the difference area DF, Since the free space is generated correspondingly, the backup operation can be continued without stopping. In particular, when the difference area DF is a fixed area, the effect is remarkably exhibited.
[0044]
FIG. 8 is a flowchart illustrating a first modification of the present embodiment. The flowchart shown in FIG. 8 differs from the flowchart shown in FIG. 4 only in the processing content of step S6. As shown in step S9 of FIG. 8, as a first modification of the present embodiment, instead of writing the PC-side differential data file executed in step S6 of FIG. 4 to the full backup area FL, the data storage unit of the PC 10 16 overwrites the full backup area FL with all data files. According to this method, it is not necessary to detect the address of the corresponding full backup area FL where each differential data file on the PC side is to be stored at any time, so that the number of differential data files on the PC side is stored in the data storage unit 16 of the PC 10. If the number of all stored data files is almost the same, the backup process can be completed in a short time.
[0045]
As a second modified example of the present embodiment, instead of writing the differential data file on the PC side executed in step S6 of FIG. 4 to the full backup area FL, data storage of the PC 10 executed in step S9 of FIG. Instead of overwriting all the data files stored in the unit 16 in the full backup area FL, the relative relationship between the number of difference data files and the number of all data files is used as needed, in step S6 in FIG. In step S9, it may be selected whether to write the differential data file on the PC side to the full backup area FL or to overwrite all the data files stored in the data storage unit 16 of the PC 10 on the full backup area FL. According to this method, if the number of differential data files on the PC side is somewhat smaller than the total number of data files stored in the data storage unit 16 of the PC 10, only the PC-side differential data files can be written to the full backup area FL. For example, the backup process can be completed in a short time. When the number of difference data files on the PC side is substantially the same as the number of all data files stored in the data storage unit 16 of the PC 10, all the data files stored in the data storage unit 16 of the PC 10 are deleted. By overwriting the full backup area FL, the backup processing can be completed in a short time.
[0046]
【The invention's effect】
When the backup method according to claim 1 is used, restoration of the latest generation or restoration of a past generation close to the latest generation can be executed in a short time. Even if the free space in the difference area becomes small, the backup operation can be continued by sequentially deleting the difference data files from the oldest generation difference data file stored in the difference area.
[0047]
When the backup method according to claim 2 is used, when the number of difference data files on the data storage unit side is somewhat smaller than the number of all data files in the data storage unit, the time required for backup can be reduced.
[0048]
When the backup method according to claim 3 is used, when the number of difference data files on the data storage unit side is substantially the same as the number of all data files on the data storage unit side, the time required for backup can be reduced.
[0049]
When the backup method according to claim 4 is used, the time required for backup can be shortened regardless of the relationship between the number of differential data files on the data storage unit side and the number of all data files in the data storage unit.
[0050]
When the backup device according to claim 5 is used, restoration of the latest generation or restoration of a past generation close to the latest generation can be executed in a short time. Even if the free space in the difference area becomes small, the backup operation can be continued by sequentially deleting the difference data files from the oldest generation difference data file stored in the difference area.
[0051]
When the restoration method according to claim 6 is used, restoration of the latest generation or restoration of a past generation close to the latest generation can be executed in a short time.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a backup system according to an embodiment of the present invention.
FIG. 2 is a schematic diagram illustrating a logical storage structure of a backup data file according to the embodiment of the present invention.
FIG. 3 is a diagram showing a generation management database for a full backup area and a generation management database for a difference area according to the embodiment of the present invention.
FIG. 4 is a flowchart illustrating a backup method according to the embodiment of the present invention.
FIG. 5 is a diagram illustrating update histories of a full backup area and a difference area in a backup data storage unit.
FIG. 6 is a diagram illustrating update history of a generation management database for a full backup area and a generation management database for a difference area in a generation management unit.
FIG. 7 is a flowchart illustrating a method for restoring a past generation according to the embodiment of the present invention.
FIG. 8 is a flowchart illustrating a backup method according to a first modification of the embodiment of the present invention.
FIG. 9 is a schematic diagram showing a conventional logical storage structure of a backup data file.
FIG. 10 is a schematic diagram showing a conventional logical storage structure of a backup data file.
[Explanation of symbols]
1 Backup system
10 Personal computer
14 Processing unit
16 Data storage
30 Backup device
34 Backup data storage
36 Generation Management Department
40 Universal Serial Bus Interface
FL full backup area
DF difference area
Generation management database for FLD full backup area
DFD generation management database for difference area

Claims (6)

データファイルを格納する格納部を有し、前記データファイルを更新しつつ処理を行う処理装置から、前記更新に応じて世代管理をしつつ、前記処理装置に接続されたバックアップ装置へ前記データファイルをバックアップする方法であって、
入力されたバックアップ開始指令に応じて、1回目のバックアップ処理では、前記格納部に格納された全てのデータファイルを、最新世代のフルデータファイルとして前記バックアップ装置のフルバックアップ領域部にバックアップし、
2回目以降のバックアップ処理では、前記格納部に格納された前記全てのデータファイルと、前記フルバックアップ領域部に格納された前記フルデータファイルの差分をとり、前記フルバックアップ領域部側の差分データファイルを、過去世代の差分データファイルとして前記バックアップ装置の差分領域部に移すと共に、前記格納部に格納された前記データファイルを、前記最新世代のフルデータファイルとして前記フルバックアップ領域部にバックアップすることを特徴とするバックアップ方法。
A processing unit that has a storage unit for storing the data file and performs processing while updating the data file, while performing generation management according to the update, and transfers the data file to a backup device connected to the processing device. Backup method,
In response to the input backup start command, in the first backup process, all data files stored in the storage unit are backed up to the full backup area of the backup device as the latest generation full data files,
In the second and subsequent backup processing, the difference between all the data files stored in the storage unit and the full data file stored in the full backup area is calculated, and the difference data file on the side of the full backup area is calculated. Is transferred to the differential area of the backup device as a differential data file of the past generation, and the data file stored in the storage unit is backed up to the full backup area as the full data file of the latest generation. Characterized backup method.
前記2回目以降のバックアップ処理における、前記格納部に格納された前記データファイルは、前記差分により得られる前記格納部側の差分データファイルであることを特徴とする請求項1に記載のバックアップ方法。2. The backup method according to claim 1, wherein in the second and subsequent backup processing, the data file stored in the storage unit is a difference data file on the storage unit side obtained by the difference. 前記2回目以降のバックアップ処理における、前記格納部に格納された前記データファイルは、前記格納部に格納された前記全てのデータファイルであることを特徴とする請求項1に記載のバックアップ方法。2. The backup method according to claim 1, wherein in the second and subsequent backup processes, the data files stored in the storage unit are all the data files stored in the storage unit. 前記2回目以降のバックアップ処理における、前記格納部に格納された前記データファイルは、前記差分により得られる前記格納部側の差分データファイル数と、前記格納部に格納された前記全てのデータファイル数との相対関係に依存して、前記格納部側の差分データファイル、または前記格納部に格納された前記全てのデータファイルに対応することを特徴とする請求項1に記載のバックアップ方法。In the second and subsequent backup processing, the number of data files stored in the storage unit is the number of difference data files on the storage unit side obtained by the difference, and the number of all data files stored in the storage unit. 2. The backup method according to claim 1, wherein the backup method corresponds to the difference data file on the storage unit side or all of the data files stored in the storage unit depending on a relative relationship with the storage unit. データファイルを格納する格納部を有し、前記データファイルを更新しつつ処理を行う処理装置と、前記格納部に格納された前記データファイルがバックアップされるバックアップ装置と、を備えるバックアップシステムであって、
前記バックアップ装置は、
最新世代のフルデータファイルが格納されるフルバックアップ領域部と、
各過去世代の差分データファイルが格納される差分領域部と、を有し、
前記処理装置は、入力されたバックアップ開始指令に応じて、前記格納部に格納された全てのデータファイルと、前記フルバックアップ領域部に格納された前記フルデータファイルの差分をとり、前記フルバックアップ領域部側の差分データファイルを、過去世代の差分データファイルとして前記差分領域部に移すと共に、前記格納部に格納された前記データファイルを、前記最新世代のフルデータファイルとして前記フルバックアップ領域部に格納するバックアップ処理部を有することを特徴とするバックアップシステム。
A backup system having a storage unit for storing a data file and performing a process while updating the data file, and a backup device for backing up the data file stored in the storage unit, ,
The backup device,
A full backup area where the latest generation full data files are stored,
And a difference area portion in which difference data files of each past generation are stored.
The processing device calculates a difference between all the data files stored in the storage unit and the full data files stored in the full backup area unit in response to the input backup start command, and The difference data file of the copy unit is transferred to the difference area as a difference data file of the past generation, and the data file stored in the storage unit is stored in the full backup area as the full data file of the latest generation. A backup system, comprising: a backup processing unit that performs a backup process.
最新世代のフルデータファイルが格納されるフルバックアップ領域部と、各過去世代の差分データファイルが格納される差分領域部と、を有するバックアップ装置から、復元対象の過去世代のデータファイルを、前記データファイルを格納する格納部を有し、前記データファイルの処理を行う処理装置に復元する復元方法であって、
前記最新世代のフルデータファイルを前記格納部に格納し、
復元開始指示として入力された復元対象の過去世代情報に応じて、前記復元対象の過去世代に達するまで、前記差分データファイルに基づき前記格納部に格納された前記フルデータファイルを更新して前記復元対象の過去世代のデータファイルを復元することを特徴とする復元方法。
From a backup device having a full backup area where the latest generation full data file is stored and a difference area where each past generation difference data file is stored, the data file of the past generation to be restored is A restoration method having a storage unit for storing a file, and restoring to a processing device that processes the data file,
Storing the latest generation full data file in the storage unit;
Updating the full data file stored in the storage unit based on the difference data file until the restoration target past generation is reached according to the restoration target past generation information input as a restoration start instruction, A restoration method characterized by restoring a target past generation data file.
JP2003137864A 2003-05-15 2003-05-15 Backup method, system therefor, and restoration method Pending JP2004341840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003137864A JP2004341840A (en) 2003-05-15 2003-05-15 Backup method, system therefor, and restoration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003137864A JP2004341840A (en) 2003-05-15 2003-05-15 Backup method, system therefor, and restoration method

Publications (1)

Publication Number Publication Date
JP2004341840A true JP2004341840A (en) 2004-12-02

Family

ID=33527426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003137864A Pending JP2004341840A (en) 2003-05-15 2003-05-15 Backup method, system therefor, and restoration method

Country Status (1)

Country Link
JP (1) JP2004341840A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007140700A (en) * 2005-11-15 2007-06-07 Hitachi Ltd Computer system, management computer, storage system, and backup management method
JP2007242018A (en) * 2006-03-06 2007-09-20 Hewlett-Packard Development Co Lp Distributed data-storage system
JP2009245448A (en) * 2009-06-15 2009-10-22 Fujitsu Ltd Data restoration device
KR101247083B1 (en) 2005-02-18 2013-03-25 마이크로소프트 코포레이션 System and method for using a file system automatically backup a file as generational file
US9152351B2 (en) 2013-01-17 2015-10-06 Fujitsu Limited Storage device and method for backing up source volume

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101247083B1 (en) 2005-02-18 2013-03-25 마이크로소프트 코포레이션 System and method for using a file system automatically backup a file as generational file
JP2007140700A (en) * 2005-11-15 2007-06-07 Hitachi Ltd Computer system, management computer, storage system, and backup management method
JP2007242018A (en) * 2006-03-06 2007-09-20 Hewlett-Packard Development Co Lp Distributed data-storage system
JP2009245448A (en) * 2009-06-15 2009-10-22 Fujitsu Ltd Data restoration device
US9152351B2 (en) 2013-01-17 2015-10-06 Fujitsu Limited Storage device and method for backing up source volume

Similar Documents

Publication Publication Date Title
USRE45901E1 (en) Server-side recycle bin system
US8135677B2 (en) File management system and method
US8015155B2 (en) Non-disruptive backup copy in a database online reorganization environment
US20030005235A1 (en) Computer storage systems
JPH04312141A (en) How to update files for electronic printing systems
US7376946B2 (en) Program management method for computer to which storage medium is attached, computer and storage medium
JPH08278908A (en) Method,memory and apparatus for archiving of storage region based on physical partition
JP2004341840A (en) Backup method, system therefor, and restoration method
US9158781B1 (en) Version mapped incremental backups with version creation condition
US6988179B2 (en) Method, system, and program for ordering of physical extents
JP3037183B2 (en) Hard disk device management method and method
WO2007099636A1 (en) File system migration method, program and apparatus
JP2002023964A (en) Method for controlling information stored in recording medium of computer system
JP3636773B2 (en) Information processing device for database check
JP6708943B1 (en) Information processing device, program, and information processing system
JPH05113920A (en) File management method and device
JP5240086B2 (en) Data management program
JP2007128448A (en) File system and file information processing method
JPH11212845A (en) Device and method for backup data management and recording medium
JP2002055783A (en) Copy processing apparatus between disks, copy processing method, program for causing a computer to execute the method, and computer-readable recording medium storing the program
JP3795204B2 (en) File management apparatus, computer system, file management method, and recording medium
JP3022011B2 (en) Data backup system
JP2004341841A (en) Restoration method and system
JP2005293272A (en) Data management system, data management method, data management program, and file management program
JPH0659959A (en) File protection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090310

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090707