JP2013097680A - Information processor and program - Google Patents

Information processor and program Download PDF

Info

Publication number
JP2013097680A
JP2013097680A JP2011241532A JP2011241532A JP2013097680A JP 2013097680 A JP2013097680 A JP 2013097680A JP 2011241532 A JP2011241532 A JP 2011241532A JP 2011241532 A JP2011241532 A JP 2011241532A JP 2013097680 A JP2013097680 A JP 2013097680A
Authority
JP
Japan
Prior art keywords
backup
data
control unit
image data
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.)
Granted
Application number
JP2011241532A
Other languages
Japanese (ja)
Other versions
JP5790415B2 (en
Inventor
賢治 ▲高▼橋
Kenji Takahashi
Yutaka Maruyama
裕 丸山
Isato Kato
勇人 加藤
Hiroaki Kawasaki
博章 川▲崎▼
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.)
Buffalo Inc
Original Assignee
Buffalo Inc
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 Buffalo Inc filed Critical Buffalo Inc
Priority to JP2011241532A priority Critical patent/JP5790415B2/en
Publication of JP2013097680A publication Critical patent/JP2013097680A/en
Application granted granted Critical
Publication of JP5790415B2 publication Critical patent/JP5790415B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an information processor for improving the convenience of backup.SOLUTION: The information processor stores data to be backed up, and when power disconnecting operation is detected, and predetermined overwrite backup inhibition conditions are satisfied, generates new backup data including the whole stored data separately from the backup data generated in the previous backup time, and otherwise, generates new backup data by overwriting the backup data generated in the previous backup time.

Description

本発明は、データのバックアップを行う情報処理装置及びプログラムに関する。   The present invention relates to an information processing apparatus and program for backing up data.

近年では、家庭内でも情報機器が数多く利用されるようになっている。こうした情報機器内に格納されたデータには、各家庭において貴重なデータも含まれており、バックアップ等の消失対策が要望されている。例えば電源断の際にバックアップを行う従来一般的な技術としては、特許文献1に開示されているものがある。   In recent years, many information devices have been used even in homes. The data stored in such information equipment includes valuable data in each household, and there is a demand for measures for loss such as backup. For example, as a conventional general technique for performing backup when the power is cut off, there is one disclosed in Patent Document 1.

特開平5−143248号公報JP-A-5-143248

しかしながら、データのバックアップにおいては、バックアップの対象となる記憶領域全体のバックアップを毎回作成できればよいが、これではバックアップのデータ量が大きくなりすぎてしまう。一方、常に、バックアップの対象となる記憶領域の最新の状態をバックアップすることとしている場合、例えば誤って当該記憶領域のフォーマットを行ってしまったときに、この状態でバックアップが作成されてしまうと、データが失われる結果となりかねない。このように、従来一般的なバックアップの方法では、利便性を十分に向上できない。   However, in the data backup, it is only necessary to create a backup of the entire storage area to be backed up every time, but this results in an excessive amount of backup data. On the other hand, if you always want to back up the latest state of the storage area to be backed up, for example, if you accidentally formatted the storage area, if a backup is created in this state, This can result in data loss. Thus, the conventional general backup method cannot sufficiently improve the convenience.

本発明は上記従来例の問題点に鑑みてなされたもので、バックアップの利便性を向上できる情報処理装置及びプログラムを提供することを、その目的の一つとする。   The present invention has been made in view of the above-described problems of the conventional example, and an object thereof is to provide an information processing apparatus and program that can improve the convenience of backup.

上記従来例の問題点を解決するための本発明は、情報処理装置であって、バックアップ対象のデータを保持する保持手段と、バックアップするタイミングであるか否かを判断する手段と、バックアップするタイミングであると判断された際に、予め定められた上書きバックアップ禁止条件を満足する場合には、前回のバックアップ時に生成したバックアップデータとは別に、前記保持手段に保持されたバックアップ対象のデータを複写して新たなバックアップデータを生成し、そうでない場合は前回のバックアップ時に生成したバックアップデータに上書きして新たなバックアップデータを生成するバックアップ作成手段と、を含むこととしたものである。
またここで、上書きバックアップ禁止条件は、前回バックアップを行った後に、フォーマットを行ったこと、保持手段に異常を検出したこと、新規のバックアップ先へのバックアップであること、前回バックアップを行った後に復元作業を行ったこと、のうち、少なくともいずれかを含んでもよい。
さらに、バックアップするタイミングであるか否かを判断する手段は、電源がオフとなるときに、バックアップするタイミングであると判断してもよい。
The present invention for solving the problems of the above-described conventional example is an information processing apparatus, a holding unit that holds data to be backed up, a unit that determines whether it is a backup timing, and a backup timing If it is determined that the backup backup prohibition condition is satisfied, the backup target data held in the holding means is copied separately from the backup data generated at the previous backup. New backup data is generated, and if not, backup creation means for generating new backup data by overwriting the backup data generated at the previous backup is included.
Also, here, overwrite backup prohibition conditions are that after performing the previous backup, formatting, detecting an abnormality in the holding means, backup to a new backup destination, restoring after performing the previous backup It may include at least one of the work.
Further, the means for determining whether or not it is time to back up may determine that it is time to back up when the power is turned off.

また本発明の一態様に係るプログラムは、バックアップ対象のデータを保持する保持手段に接続されたコンピュータを、バックアップするタイミングであるか否かを判断する手段と、バックアップするタイミングであると判断された際に、予め定められた上書きバックアップ禁止条件を満足する場合には、前回のバックアップ時に生成したバックアップデータとは別に、前記保持手段に保持されたバックアップ対象のデータを複写して新たなバックアップデータを生成し、そうでない場合は前回のバックアップ時に生成したバックアップデータに上書きして新たなバックアップデータを生成するバックアップ作成手段と、として機能させるものである。   The program according to one aspect of the present invention is determined to be a timing for backing up a computer connected to a holding unit that holds data to be backed up, and a timing to back up the computer. When satisfying a predetermined overwrite backup prohibition condition, separately from the backup data generated at the time of the previous backup, copy the backup target data held in the holding means and copy the new backup data. Otherwise, it is made to function as backup creation means for creating new backup data by overwriting the backup data generated at the previous backup.

本発明によると、バックアップの利便性を向上できる。   According to the present invention, the convenience of backup can be improved.

本発明の実施の形態に係る情報処理装置の例を表す構成ブロック図である。It is a block diagram showing an example of an information processing apparatus according to an embodiment of the present invention. 本発明の実施の形態に係る情報処理装置の例を表す機能ブロック図である。It is a functional block diagram showing the example of the information processing apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理装置が生成するデータベースの内容例を表す説明図である。It is explanatory drawing showing the example of the content of the database which the information processing apparatus which concerns on embodiment of this invention produces | generates. 本発明の実施の形態に係る情報処理装置によるバックアップ処理の例を表すフローチャート図である。It is a flowchart figure showing the example of the backup process by the information processing apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理装置に接続されたバックアップ先のハードディスク等の内容を概括的に表す説明図である。It is explanatory drawing which represents generally the content of the backup destination hard disk etc. which were connected to the information processing apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る情報処理装置による復元処理の例を表すフローチャート図である。It is a flowchart figure showing the example of the restoration process by the information processor concerning an embodiment of the invention.

本発明の実施の形態に係る情報処理装置1は、図1に例示するように、制御部11、記憶部12、ストレージ部13、操作部14、表示部15、及びインタフェース部16を含んで構成される。なお、本実施の形態の情報処理装置1は、これらのほか、ネットワークインタフェース等を含んでもよい。   The information processing apparatus 1 according to the embodiment of the present invention includes a control unit 11, a storage unit 12, a storage unit 13, an operation unit 14, a display unit 15, and an interface unit 16, as illustrated in FIG. Is done. In addition to the above, the information processing apparatus 1 according to the present embodiment may include a network interface or the like.

ここで制御部11は、CPU等のプログラム制御デバイスであり、記憶部12に格納されたプログラムに従って動作する。本実施の形態において、この制御部11は、バックアップするタイミングであるか否かを判断する手段、及びバックアップするタイミングであると判断された際に、予め定められた上書きバックアップ禁止条件を満足する場合には、前回のバックアップ時に生成したバックアップデータとは別に、ストレージ部13に格納されたデータ全体を含む新たなバックアップデータを生成し、そうでない場合は前回のバックアップ時に生成したバックアップデータに上書きして新たなバックアップデータを生成するバックアップ作成手段として機能する。この制御部11の詳しい動作については、後に述べる。   Here, the control unit 11 is a program control device such as a CPU, and operates according to a program stored in the storage unit 12. In the present embodiment, the control unit 11 is configured to determine whether it is time to back up, and when it is determined that it is time to back up, when a predetermined overwrite backup prohibition condition is satisfied. In addition to the backup data generated during the previous backup, new backup data including the entire data stored in the storage unit 13 is generated. If not, the backup data generated during the previous backup is overwritten. It functions as a backup creation means for generating new backup data. Detailed operation of the control unit 11 will be described later.

記憶部12は、メモリデバイス等であり、制御部11によって実行されるプログラムを保持する。このプログラムは、例えばDVD−ROM等のコンピュータ可読な記録媒体に格納されて提供され、この記憶部12に複写されて格納される。あるいは、このプログラムはネットワーク等の通信手段を介して受信され、この記憶部12に格納されたものであってもよい。また記憶部12は、制御部11のワークメモリとしても動作する。なお、記憶部12には不揮発性のメモリが含まれてもよい。この不揮発性メモリには電源断があったとしても保持しておくべきデータ(例えば起動時に必要なパラメータのデータ等)が保持される。   The storage unit 12 is a memory device or the like and holds a program executed by the control unit 11. This program is provided by being stored in a computer-readable recording medium such as a DVD-ROM, and is copied and stored in the storage unit 12. Alternatively, the program may be received via communication means such as a network and stored in the storage unit 12. The storage unit 12 also operates as a work memory for the control unit 11. Note that the storage unit 12 may include a nonvolatile memory. This non-volatile memory retains data to be retained even if the power is cut off (for example, parameter data required at startup).

ストレージ部13は、例えばハードディスク、あるいはSSD(Solid State Drive)であり、バックアップ対象のデータを保持する保持手段として動作する。一例としてこのバックアップ対象のデータは、静止画像や動画像を含んだ画像データである。このストレージ部13は、少なくとも利用開始時にフォーマットされ、予め定められたファイルシステムが形成されている。そしてストレージ部13に格納される各データは、このファイルシステム内において管理される。   The storage unit 13 is, for example, a hard disk or an SSD (Solid State Drive), and operates as a holding unit that holds data to be backed up. As an example, the backup target data is image data including a still image and a moving image. The storage unit 13 is formatted at least at the start of use, and a predetermined file system is formed. Each data stored in the storage unit 13 is managed in this file system.

操作部14は、情報処理装置1の筐体に設けられたスイッチであってもよいし、赤外線等によるリモートコントローラを含んでもよい。また、キーボードやマウス等であってもよい。この操作部14は、利用者の指示操作を受け入れて、当該指示操作の内容を制御部11に出力する。   The operation unit 14 may be a switch provided in the housing of the information processing apparatus 1 or may include a remote controller using infrared rays or the like. Moreover, a keyboard, a mouse | mouth, etc. may be sufficient. The operation unit 14 accepts a user's instruction operation and outputs the content of the instruction operation to the control unit 11.

表示部15は、家庭用テレビやディスプレイ装置への出力ポートであり、制御部11から入力される指示に従って、画面の情報をテレビやディスプレイ装置へ出力する。   The display unit 15 is an output port to a home television or display device, and outputs screen information to the television or display device in accordance with an instruction input from the control unit 11.

インタフェース部16は、USB(Universal Serial Bus)等のシリアルインタフェースや、メモリカードリーダ等を含んで構成される。このインタフェース部16には、バックアップ先となるディスクドライブ等が接続される。またインタフェース部16は、メモリカードを受け入れてもよく、この場合、インタフェース部16は制御部11に対してメモリカードが挿入されたことを表す信号を送出する。そしてインタフェース部16は、制御部11から入力される指示に従い、メモリカードからデータを読み出して制御部11に出力する。   The interface unit 16 includes a serial interface such as a USB (Universal Serial Bus), a memory card reader, and the like. The interface unit 16 is connected to a disk drive or the like serving as a backup destination. The interface unit 16 may accept a memory card. In this case, the interface unit 16 sends a signal indicating that the memory card has been inserted to the control unit 11. The interface unit 16 reads out data from the memory card and outputs the data to the control unit 11 in accordance with an instruction input from the control unit 11.

次に、制御部11の動作について説明する。本実施の形態の制御部11は、データの受入処理と、表示処理、バックアップ処理、並びに、復元処理を実行する。ここでデータの受入処理は例えば次のようなものとなる。制御部11は、インタフェース部16のメモリカードリーダにメモリカードが挿入されたことを表す信号を受け入れると、インタフェース部16に対して、挿入されたメモリカード内に格納されているデータを読み出すよう指示する。制御部11は、この指示に応答してインタフェース部16が出力するデータを受け入れて、ストレージ部13に蓄積して格納する。なお、本発明の一態様では、インタフェース部16がネットワークインタフェースを有し、制御部11は、このネットワークインタフェースを介してデータを受信して、ストレージ部13に蓄積して格納することとしてもよい。   Next, the operation of the control unit 11 will be described. The control unit 11 according to the present embodiment executes data reception processing, display processing, backup processing, and restoration processing. Here, the data receiving process is as follows, for example. When the control unit 11 accepts a signal indicating that a memory card has been inserted into the memory card reader of the interface unit 16, the control unit 11 instructs the interface unit 16 to read data stored in the inserted memory card. To do. In response to this instruction, the control unit 11 accepts data output from the interface unit 16 and accumulates and stores the data in the storage unit 13. In one aspect of the present invention, the interface unit 16 may have a network interface, and the control unit 11 may receive data via the network interface and accumulate and store the data in the storage unit 13.

具体的にここでのデータは写真等の画像データであってもよい。また、制御部11は、ストレージ部13に既に格納されているデータと同じデータがインタフェース部16から入力された場合は、当該データを格納することなく破棄してもよい。ここで既に格納されているデータと入力されたデータとが同じであるか否かは、例えばファイル名やそのハッシュ値、あるいはデータサイズ等を比較して行うこととしてもよいし、各データのハッシュ値を比較して行うこととしても構わない。この処理により、ストレージ部13には、データが格納された状態となる。なお、この処理は一例であり、例えば制御部11は、利用者からキーボードやマウスによる操作を受け入れて文書を作成する処理を実行し、当該作成した文書のデータをストレージ部13に格納するようにしてもよい。   Specifically, the data here may be image data such as photographs. Further, when the same data as the data already stored in the storage unit 13 is input from the interface unit 16, the control unit 11 may discard the data without storing it. Here, whether the data already stored and the input data are the same may be determined by comparing, for example, the file name, its hash value, or the data size, and the hash of each data It may be performed by comparing values. By this processing, the storage unit 13 is in a state where data is stored. Note that this process is an example. For example, the control unit 11 executes a process of creating a document by accepting a keyboard or mouse operation from a user, and stores the data of the created document in the storage unit 13. May be.

また制御部11の表示処理は、次のようなものである。すなわち制御部11は、利用者からストレージ部13に格納したデータの指定と、当該指定されたデータを表示するべき旨の指示とを受け入れると、当該指示に従ってストレージ部13に格納されているデータのうち、指定されたデータを読み出して、当該データに係る画像を生成して表示部15を介して出力する。   The display process of the control unit 11 is as follows. That is, when the control unit 11 receives a specification of data stored in the storage unit 13 and an instruction to display the specified data from the user, the control unit 11 stores the data stored in the storage unit 13 according to the instruction. Among them, the designated data is read out, and an image related to the data is generated and output via the display unit 15.

次に制御部11のバックアップ処理について説明する。このバックアップ処理を実行する制御部11は、機能的には、図2に例示するように、バックアップ要否判定部21と、バックアップ条件判断部22と、上書きバックアップ生成部23と、新規バックアップ生成部24とを含んで構成される。   Next, backup processing of the control unit 11 will be described. As illustrated in FIG. 2, the control unit 11 that executes the backup process functionally includes a backup necessity determination unit 21, a backup condition determination unit 22, an overwrite backup generation unit 23, and a new backup generation unit. 24.

バックアップ要否判定部21は、まずバックアップを行うべきタイミングであるか否かを判断する。ここでバックアップを行うべきタイミングか否かの判断は例えば次のように行う。すなわちバックアップ要否判定部21は、本実施の形態の情報処理装置1の電源がオフ(電源断)となろうとしている場合にバックアップを行うべきタイミングと判断してもよい。また、バックアップ要否判定部21は、利用者がバックアップを指示したときに、バックアップを行うべきタイミングであると判断してもよい。バックアップ要否判定部21は、バックアップを行うべきタイミングであると判断すると、前回バックアップデータを生成してから、ストレージ部13内のバックアップ対象のデータに変化があったか否かを調べ、変化があった場合にバックアップが必要と判断し、変化がなかったときにはバックアップ不要と判断する。   The backup necessity determination unit 21 first determines whether it is time to perform backup. Here, determination as to whether or not it is time to perform backup is performed as follows, for example. That is, the backup necessity determination unit 21 may determine that the backup should be performed when the information processing apparatus 1 according to the present embodiment is about to be turned off (power is cut off). Further, the backup necessity determination unit 21 may determine that it is time to perform backup when the user instructs backup. If the backup necessity determination unit 21 determines that it is time to perform the backup, it checks whether or not the backup target data in the storage unit 13 has changed since the previous generation of backup data. In this case, it is determined that backup is necessary, and when there is no change, it is determined that backup is unnecessary.

前回バックアップデータを生成してから、ストレージ部13内のバックアップ対象のデータに変化があったか否かは、ストレージ部13への最終書き込み日時の情報と、前回バックアップデータを生成した日時の情報とを記録しておき、これらを比較することによって行うなど、種々の方法があり、どのような方法を採用しても構わない。   Whether or not the data to be backed up in the storage unit 13 has changed since the previous generation of backup data has been recorded is information on the date and time of the last write to the storage unit 13 and information on the date and time when the previous backup data was generated. There are various methods such as comparing these, and any method may be adopted.

また、このバックアップ要否判定部21は、さらに、インタフェース部16にバックアップ先となるデバイス(ハードディスクやSSD等)が接続されているか否かを判断し、接続されていなければ、ストレージ部13内のバックアップ対象のデータに変化があったとしてもバックアップ不要と判断することとしてもよい。   The backup necessity determination unit 21 further determines whether a backup destination device (hard disk, SSD, or the like) is connected to the interface unit 16. Even if there is a change in the data to be backed up, it may be determined that the backup is unnecessary.

バックアップ条件判断部22は、上書きバックアップを行うか新規バックアップを行うかを、予め定められた上書きバックアップ禁止条件が満足されるか否かを判断することによって行う。この上書きバックアップ禁止条件は例えば、ストレージ部13に対して、前回バックアップデータを生成した後にフォーマットを行ったこと、保持手段であるストレージ部13に異常を検出したこと、新規のバックアップ先へのバックアップであること、前回バックアップデータを生成した後に、バックアップからの復元作業を行ったこと等である。   The backup condition determination unit 22 determines whether to perform overwrite backup or new backup by determining whether a predetermined overwrite backup prohibition condition is satisfied. This overwriting backup prohibition condition is, for example, that the storage unit 13 has been formatted after the previous generation of backup data, that an abnormality has been detected in the storage unit 13 that is a holding means, or that a backup to a new backup destination is performed. That is, after the previous generation of backup data, restoration work from backup was performed.

バックアップ条件判断部22は、これらの条件のいずれかを満足すると判断したときには、新規バックアップ生成部24に対してバックアップデータの生成を指示する。また、これらの条件をいずれも満足しないと判断したときには、上書きバックアップ生成部23に対してバックアップデータの生成を指示する。なお、本実施の形態の上書きバックアップ生成部23または新規バックアップ生成部24は、情報処理装置1に固有の識別情報を名称としたディレクトリを、バックアップ先のハードディスク等に作成し、当該ディレクトリ内にバックアップ対象のデータを複写する。このデータが複写されたディレクトリがバックアップデータに相当する。そこでバックアップ条件判断部22は、インタフェース部16に接続されたバックアップ先に、当該情報処理装置1に固有の識別情報を名称としたディレクトリがなければ、新規のバックアップ先であると判断する。この固有の識別情報は、時間が経過しても変わらないものとする。例えば情報処理装置1がネットワークインタフェースを備える場合は、当該ネットワークインタフェースのMACアドレスを用いることができる。   When the backup condition determination unit 22 determines that any of these conditions is satisfied, the backup condition determination unit 22 instructs the new backup generation unit 24 to generate backup data. When it is determined that none of these conditions is satisfied, the overwrite backup generation unit 23 is instructed to generate backup data. The overwrite backup generation unit 23 or the new backup generation unit 24 according to the present embodiment creates a directory with the identification information unique to the information processing apparatus 1 as a name on the backup destination hard disk or the like, and backs up the directory in the directory. Copy the target data. The directory where this data is copied corresponds to the backup data. Therefore, the backup condition determination unit 22 determines that the backup destination connected to the interface unit 16 is a new backup destination if there is no directory whose name is identification information unique to the information processing apparatus 1. It is assumed that this unique identification information does not change over time. For example, when the information processing apparatus 1 includes a network interface, the MAC address of the network interface can be used.

上書きバックアップ生成部23は、インタフェース部16に接続されたバックアップ先にある情報処理装置1に固有の識別情報を名称としたディレクトリに、ストレージ部13に格納されたバックアップの対象となるデータを複写する。この際、同じ内容のデータがある場合は、複写せず、現在インタフェース部16に接続されたバックアップ先にあるデータに上書きしないこととしてもよい。また、上書きバックアップ生成部23は、ストレージ部13に格納されていないデータであって、インタフェース部16に接続されたバックアップ先に格納されているデータがあれば、当該データをバックアップ先から削除してもよい。   The overwrite backup generation unit 23 copies the data to be backed up stored in the storage unit 13 to a directory whose name is identification information unique to the information processing apparatus 1 at the backup destination connected to the interface unit 16. . At this time, if there is data having the same content, the data at the backup destination currently connected to the interface unit 16 may not be overwritten without copying. In addition, if there is data stored in the backup destination connected to the interface unit 16 and not stored in the storage unit 13, the overwrite backup generation unit 23 deletes the data from the backup destination. Also good.

新規バックアップ生成部24は、インタフェース部16に接続されたバックアップ先に、情報処理装置1に固有の識別情報を名称としたディレクトリがあるか否かを調べ、当該ディレクトリがあれば、そのディレクトリの名称を変更する。そして新規バックアップ生成部24は、新たに、情報処理装置1に固有の識別情報を名称としたディレクトリを、バックアップ先に作成し、当該ディレクトリ内に、ストレージ部13に格納されたバックアップの対象となるデータを複写する。   The new backup generation unit 24 checks whether there is a directory whose name is identification information unique to the information processing apparatus 1 at the backup destination connected to the interface unit 16. If there is such a directory, the name of the directory To change. Then, the new backup generation unit 24 newly creates a directory with the identification information unique to the information processing apparatus 1 as the name of the backup destination, and becomes a backup target stored in the storage unit 13 in the directory. Duplicate data.

さらに本実施の形態の制御部11は、バックアップされたデータからストレージ部13の内容を復元する復元処理として次のような処理を行う。復元処理では制御部11は、インタフェース部16に接続されたバックアップ先に格納されているディレクトリ名の一覧を取得して表示部15を介してディスプレイ等に表示する。制御部11は、この一覧のうちから、復元元を一つ選択する利用者の操作を受け入れると、ストレージ部13に現在格納されているデータを削除し、当該選択された復元元のディレクトリ名に対応する、バックアップ先のディレクトリに格納されたデータを読み出して、ストレージ部13に複写する。   Further, the control unit 11 according to the present embodiment performs the following process as a restoration process for restoring the contents of the storage unit 13 from the backed up data. In the restoration process, the control unit 11 acquires a list of directory names stored in the backup destination connected to the interface unit 16 and displays the list on the display or the like via the display unit 15. When the control unit 11 accepts a user's operation for selecting one restoration source from the list, the control unit 11 deletes the data currently stored in the storage unit 13 and sets the directory name of the selected restoration source. The corresponding data stored in the backup destination directory is read and copied to the storage unit 13.

なお、ここまでの説明において、データが画像データである場合は、制御部11は、データの受入時にそのサムネイル画像(縮小画像)を生成し、元の画像データに関連付けてストレージ部13に格納してもよい。また、ストレージ部13には、バックアップ対象のデータごとに、当該データのファイル名と、当該データに関連する情報(例えばサムネイル画像のデータを特定する情報として、サムネイル画像データのファイル名などを含む)とを関連付けたエントリー(E)を含んだデータベースが格納されていてもよい(図3)。   In the above description, if the data is image data, the control unit 11 generates a thumbnail image (reduced image) when the data is received, and stores the thumbnail image in the storage unit 13 in association with the original image data. May be. Further, the storage unit 13 includes, for each backup target data, a file name of the data and information related to the data (for example, a file name of thumbnail image data is included as information for specifying thumbnail image data). A database including an entry (E) that associates with each other may be stored (FIG. 3).

本実施の形態の情報処理装置1は、以上の構成を備えており、次に例示するように動作する。なお、ここでの動作例の説明では、データは画像データであるものとする。例えば、このデータは、デジタルカメラ等で撮影された、JPEG(Joint Picture Experts Group)形式の画像データ本体と、メタデータ部とを含んだExif(Exchangeable image file format)フォーマットのデータであってもよい。また、このデータは、動画像データであってもよい。またここでは、データには撮影日の情報や撮影場所を表す緯度経度標高の情報(いわゆるジオタグ)等の付加情報が含まれるものとする。また付加情報には、利用者が本実施の形態の情報処理装置1を操作して付加する情報(例えば「お気に入り」であることを表す情報等)を含んでもよい。   The information processing apparatus 1 according to the present embodiment has the above-described configuration and operates as exemplified below. In the description of the operation example here, it is assumed that the data is image data. For example, this data may be data in Exif (Exchangeable image file format) format including a JPEG (Joint Picture Experts Group) format image data main body and a metadata portion, which is captured by a digital camera or the like. . Further, this data may be moving image data. Here, it is assumed that the data includes additional information such as shooting date information and latitude / longitude elevation information (so-called geotag) indicating the shooting location. The additional information may include information added by the user operating the information processing apparatus 1 according to the present embodiment (for example, information indicating “favorite”).

制御部11は、電源投入後、利用者からデータの取り込み指示を受けると、インタフェース部16に含まれるメモリカードリーダに挿入されたメモリカードから、メモリカードに格納された画像データを読み出す。そして、読み出した画像データのファイル名が既にストレージ部13に格納されている画像データのファイル名のうちに含まれていなければ、当該画像データをストレージ部13に複写して格納する。   When the control unit 11 receives a data capture instruction from the user after the power is turned on, the control unit 11 reads the image data stored in the memory card from the memory card inserted in the memory card reader included in the interface unit 16. If the file name of the read image data is not included in the file name of the image data already stored in the storage unit 13, the image data is copied and stored in the storage unit 13.

また制御部11は、この複写した画像データについてサムネイル画像のデータを生成してストレージ部13に格納し、画像データのファイル名と、このサムネイル画像のデータのファイル名とを関連付けてデータベースに格納する。   Further, the control unit 11 generates thumbnail image data for the copied image data, stores the thumbnail image data in the storage unit 13, and stores the file name of the image data in association with the file name of the thumbnail image data in the database. .

制御部11は、また利用者から画像データを表示する指示を受け入れる。例えば利用者は、付加情報を特定して、当該特定した付加情報を含む画像データの画像を選択的に表示させてもよい。一例として付加情報の一例である撮影日の情報を入力して、特定の撮影日に撮影された画像データを表示するよう求める操作を利用者が行うと、制御部11は、ストレージ部13に格納されている画像データのうち、付加情報に当該入力された情報で特定される撮影日の情報を含む画像データを選択的に読み出す。そして制御部11は、読み出した画像データの画像を表示部15に出力して表示を行わせる。なお、読み出した画像データが複数ある場合は、制御部11は、当該画像データの一覧の画像を生成し、当該一覧の画像を表示させるようにしてもよい。そして利用者から当該一覧のうちから画像データの一つを選択する操作が行われると、制御部11は、当該選択された画像データの画像を表示する処理を行う。   The control unit 11 also receives an instruction to display image data from the user. For example, the user may specify additional information and selectively display an image of image data including the specified additional information. For example, when the user performs an operation of inputting information on a shooting date, which is an example of additional information, and displaying image data shot on a specific shooting date, the control unit 11 stores the data in the storage unit 13. Among the image data, the image data including information on the shooting date specified by the input information as the additional information is selectively read out. Then, the control unit 11 outputs the image of the read image data to the display unit 15 for display. If there are a plurality of read image data, the control unit 11 may generate an image of a list of the image data and display the image of the list. When the user performs an operation of selecting one of the image data from the list, the control unit 11 performs a process of displaying an image of the selected image data.

さらに制御部11は、利用者から表示している画像データに対して、「お気に入り」の付加情報を付加するべき指示を受け入れると、表示している画像データに「お気に入り」であることを表す付加情報を含める。   Further, when the control unit 11 accepts an instruction to add “favorite” additional information to the displayed image data, the control unit 11 adds “favorite” to the displayed image data. Include information.

また制御部11は、利用者から、画像データの指定と、指定した画像データを削除するべき旨の指示を受けると、例えば、ストレージ部13から当該指定された画像データを削除し、またデータベースから当該画像データのファイル名を含むエントリーを削除する。   When the control unit 11 receives designation of image data and an instruction to delete the designated image data from the user, for example, the control unit 11 deletes the designated image data from the storage unit 13 and from the database. The entry including the file name of the image data is deleted.

本実施の形態のある例では、この情報処理装置1の電源断の時にバックアップの処理が開始される。すなわち利用者により電源断の操作が行われたか、または図示しないタイマー等により、利用者が操作をしなくなってから一定時間が経過したことを検出した場合など、何らかの原因で電源がオフとなろうとするタイミングで、バックアップの処理を開始する。
すなわち制御部11は、電源がオフとなろうとしていることを検知し、バックアップの処理を開始する(図4)。なお、以下の例では、バックアップ処理中に異常が発生した場合に、後にその旨を検出できるよう、バックアップフラグと呼ばれる情報をストレージ部13に保持しておくものとする。この情報は例えば予め定めたファイル名の空のファイルとすることができる。なお、ここではインタフェース部16にはバックアップ先となるハードディスクが接続されているものとする。
In an example of the present embodiment, backup processing is started when the information processing apparatus 1 is powered off. In other words, the power may be turned off for some reason, such as when the user has performed an operation to turn off the power, or when it is detected by a timer (not shown) that a certain time has elapsed since the user stopped operating. The backup process starts at the timing.
That is, the control unit 11 detects that the power is about to be turned off and starts the backup process (FIG. 4). In the following example, when an abnormality occurs during the backup process, information called a backup flag is held in the storage unit 13 so that the fact can be detected later. This information can be, for example, an empty file with a predetermined file name. Here, it is assumed that a hard disk serving as a backup destination is connected to the interface unit 16.

制御部11は、バックアップの処理を開始すると、まず、前回バックアップデータを生成してから、データベースに更新があったか否かを判断する(S1)。具体的に制御部11は、バックアップデータを生成するごとにデータベースのハッシュ値を作成し、バックアップ先に格納しておく。制御部11は、処理S1においてこの処理の実行時点でのデータベースのハッシュ値を演算し、バックアップ先に格納されているハッシュ値があれば、当該バックアップ先に格納されていたハッシュ値と、演算したハッシュ値とを比較する。そしてこれらが異なっていれば、前回バックアップデータを生成してから、データベースに更新があったと判断する。   When starting the backup process, the control unit 11 first determines whether or not the database has been updated since the previous backup data was generated (S1). Specifically, every time the backup data is generated, the control unit 11 creates a hash value of the database and stores it in the backup destination. The control unit 11 calculates the hash value of the database at the time of execution of this process in process S1 and, if there is a hash value stored in the backup destination, calculates the hash value stored in the backup destination. Compare the hash value. If they are different, it is determined that the database has been updated since the last time backup data was generated.

処理S1において制御部11が前回バックアップデータを生成してから、データベースに更新があったと判断すると(Yesであると)、制御部11は、上書きバックアップを行うか新規バックアップを行うかを判断する(S2)。具体的にここでは制御部11は、ストレージ部13に対して、前回バックアップデータを生成した後にフォーマットが行われている場合、保持手段であるストレージ部13に異常を検出した場合、新規のバックアップ先へのバックアップである場合、前回バックアップデータを生成した後にバックアップデータからの復元作業を行った場合のいずれかの場合に該当するときに、新規バックアップを行うべきと判断する。   If it is determined that the database has been updated since the control unit 11 generated the previous backup data in the process S1 (Yes), the control unit 11 determines whether to perform an overwrite backup or a new backup ( S2). Specifically, here, when the storage unit 13 is formatted after the previous generation of backup data, when the storage unit 13 that is a holding unit detects an abnormality, the control unit 11 creates a new backup destination. In the case of the backup to the backup data, it is determined that the new backup should be performed when any of the cases where the restoration work from the backup data is performed after the previous generation of the backup data.

すなわち制御部11は、前回バックアップデータを生成した後にフォーマットが行われているか否かを判断する。この判断は、例えば次のようにして行う。制御部11は、ストレージ部13のフォーマットを指示により行うが、フォーマット後に、フォーマットしたことを表す情報をストレージ部13または記憶部12に保持しておく。そして制御部11は、この情報がストレージ部13または記憶部12に保持されているときに、前回電源投入したときからの間にフォーマットが行われたものと判断する。また制御部11は、この判断終了後には、当該フォーマットしたことを表す情報を削除しておく。   That is, the control unit 11 determines whether formatting has been performed after the previous generation of backup data. This determination is made as follows, for example. The control unit 11 performs the formatting of the storage unit 13 according to an instruction. After the formatting, the control unit 11 holds information indicating that the formatting is performed in the storage unit 13 or the storage unit 12. When this information is held in the storage unit 13 or the storage unit 12, the control unit 11 determines that formatting has been performed since the previous power-on. Moreover, the control part 11 deletes the information showing that it performed the format after this determination is complete | finished.

また制御部11は、保持手段であるストレージ部13を予め定めたタイミングごとに検査する。この検査は、ファイルシステムごとに種々の方法があるが、例えばUNIX(登録商標)互換のオペレーティングシステム標準のファイルシステムであれば、fsck(ファイルシステムチェック)等のコマンドが行うものと同じ処理により検査を行うことができる。この検査において異常が検出された場合は、制御部11は、ストレージ部13に異常が検出されたと判断する。   In addition, the control unit 11 inspects the storage unit 13 that is a holding unit at predetermined timings. There are various methods for this check for each file system. For example, if the file system is an operating system standard compatible with UNIX (registered trademark), the check is performed by the same process as the command such as fsck (file system check) It can be performed. When an abnormality is detected in this inspection, the control unit 11 determines that an abnormality has been detected in the storage unit 13.

また制御部11は、前回バックアップデータを生成した後に、バックアップデータ(当該前回生成したバックアップデータであると、他のバックアップデータであるとを問わない)からの復元作業を行ったか否かを、次のように判断する。制御部11は、復元処理を行う際に、復元処理を行ったことを表す情報をストレージ部13または記憶部12に保持しておく。そして制御部11は、この情報がストレージ部13または記憶部12に保持されているときに、前回バックアップデータを生成した後にバックアップデータからの復元が行われたものと判断する。また制御部11は、この判断終了後には、当該復元処理を行ったことを表す情報を削除しておく。   Further, the control unit 11 determines whether or not the restoration work from the backup data (whether the backup data was generated last time or other backup data) has been performed after the previous backup data was generated. Judge as follows. When performing the restoration process, the control unit 11 holds information indicating that the restoration process has been performed in the storage unit 13 or the storage unit 12. Then, when this information is held in the storage unit 13 or the storage unit 12, the control unit 11 determines that restoration from the backup data has been performed after the previous generation of backup data. Further, after this determination is completed, the control unit 11 deletes information indicating that the restoration process has been performed.

なお、新規のバックアップ先へのバックアップであるか否かの判断の例は既に述べたので、繰り返しての説明を省略する。   Since an example of determining whether or not the backup is to a new backup destination has already been described, repeated description will be omitted.

制御部11は、処理S2において、新規バックアップを行うべきと判断すると(図4において「新規」)、新規バックアップ処理を実行する(S3)。すなわち制御部11は、インタフェース部16に接続されたバックアップ先に、情報処理装置1に固有の識別情報(情報処理装置1のネットワークインタフェースのMACアドレスとする)を名称としたディレクトリがあるか否かを調べ、当該ディレクトリがあれば、そのディレクトリの名称を異なるものに変更する。そして制御部11は、新たに、情報処理装置1に固有の識別情報を名称としたディレクトリを、バックアップ先に作成する。   When the control unit 11 determines in step S2 that a new backup should be performed ("new" in FIG. 4), the control unit 11 executes a new backup process (S3). That is, the control unit 11 determines whether or not there is a directory whose name is identification information unique to the information processing device 1 (the MAC address of the network interface of the information processing device 1) at the backup destination connected to the interface unit 16. If there is such a directory, change the name of the directory to a different one. Then, the control unit 11 newly creates a directory whose name is identification information unique to the information processing apparatus 1 at the backup destination.

制御部11は、バックアップフラグを立てる(S4)。ここではバックアップフラグとしてのファイルを生成することとする。そして制御部11は、バックアップ先に作成されている、情報処理装置1に固有の識別情報を名称としたディレクトリ(以下、バックアップ先ディレクトリと呼ぶ)内に、ストレージ部13に格納されているデータベースを複写する(S5)。この際、バックアップ先に当該データベースが既に格納されていれば、当該データベースに上書きする。なお、処理S2において、新規バックアップを行うべきと判断しないときには(図4において「上書き」)、処理S4に移行して処理を続ける。   The control unit 11 sets a backup flag (S4). Here, a file as a backup flag is generated. Then, the control unit 11 stores a database stored in the storage unit 13 in a directory (hereinafter, referred to as a backup destination directory) that is created at the backup destination and has identification information unique to the information processing apparatus 1 as a name. Copy (S5). At this time, if the database is already stored in the backup destination, the database is overwritten. If it is not determined in process S2 that a new backup should be performed ("Overwrite" in FIG. 4), the process proceeds to process S4 and the process is continued.

制御部11は、データベースの複写を行うと、次に、画像データの複写処理を開始する。以下の説明では、バックアップ先の容量を勘案した処理が行われる場合を例として述べる。   After copying the database, the control unit 11 then starts image data copy processing. In the following description, a case where processing is performed in consideration of the capacity of the backup destination will be described as an example.

制御部11は、データベースを参照して、当該データベースに格納されているファイル名のうち、未だ読み出していないものを一つ読み出して、当該データベースから読み出したファイル名に対応する画像データを、ストレージ部13から読み出す(S6)。そして制御部11は、当該読み出した画像データを注目画像データとして、注目画像データの複写処理を行う(S7)。この複写処理では、制御部11は、注目画像データと同じ内容のデータが、既にバックアップ先ディレクトリ内に格納されているか否かを調べる。そして制御部11は、注目画像データと同じ内容のデータが、既にバックアップ先ディレクトリ内に格納されている場合は、注目画像データを複写しない。また制御部11は、注目画像データと同じ内容のデータが、既にバックアップ先ディレクトリ内に格納されていないならば、注目画像データを、バックアップ先ディレクトリ内に複写する。   The control unit 11 refers to the database, reads one of the file names stored in the database that has not yet been read, and stores the image data corresponding to the file name read from the database in the storage unit 13 is read (S6). Then, the control unit 11 performs a process of copying the target image data using the read image data as the target image data (S7). In this copying process, the control unit 11 checks whether data having the same content as the target image data is already stored in the backup destination directory. Then, the control unit 11 does not copy the target image data when data having the same content as the target image data is already stored in the backup destination directory. Further, if data having the same content as the target image data is not already stored in the backup destination directory, the control unit 11 copies the target image data in the backup destination directory.

制御部11は、データベースに保持されている、すべてのファイル名に係る画像データについて、複写処理の対象としたか否かを調べる(S8)。そしてすべての画像データについて複写処理が行われていなければ、つまり、未だ複写処理の対象となっていない画像データがあれば(Noならば)、Aに移行して、バックアップ先となっているハードディスク等の空き容量が予め定めたしきい値を下回るか否かを調べる(S9)。ここで空き容量が予め定めたしきい値を下回る場合は(Yesならば)、バックアップ先ディレクトリから、現在格納されているサムネイル画像のデータをすべて削除し(S10)、再度バックアップ先となっているハードディスク等の空き容量が予め定めたしきい値を下回るか否かを調べる(S11)。ここでもさらに空き容量が予め定めたしきい値を下回る場合は(Yesならば)、エラーを報知してバックアップフラグのファイルを削除し、処理を終了してもよい。なお、これらの処理におけるしきい値は、例えば予め定めたn枚の平均的なサイズの画像データを格納可能な容量に相当する値などとして定める。   The control unit 11 checks whether or not the image data relating to all the file names held in the database has been subjected to copy processing (S8). If all the image data has not been copied, that is, if there is image data that has not yet been copied (if No), the process proceeds to A and the backup destination hard disk It is checked whether or not the free space such as is below a predetermined threshold value (S9). If the free space falls below a predetermined threshold (if Yes), all the thumbnail image data currently stored is deleted from the backup destination directory (S10), and becomes the backup destination again. It is checked whether the free space of the hard disk or the like is below a predetermined threshold value (S11). Again, if the free space falls below a predetermined threshold (if yes), an error may be notified and the backup flag file may be deleted and the process terminated. Note that the threshold value in these processes is determined as a value corresponding to a capacity that can store, for example, predetermined n average size image data.

また処理S11において、空き容量が予め定めたしきい値を下回る場合は(Yesならば)、さらに、付加情報に基づいてバックアップする画像データを選択し、選択した画像データ以外の画像データをバックアップ先ディレクトリから削除するようにしてもよい。例えば制御部11は、処理S11において、空き容量が予め定めたしきい値を下回ると判断すると、図4に例示するように、「お気に入り」であることを表す付加情報が付加されている画像データ以外の画像データを、バックアップ先ディレクトリから削除する(S12)。そしてさらにバックアップ先となっているハードディスク等の空き容量が予め定めたしきい値を下回るか否かを調べ(S13)、空き容量が予め定めたしきい値を下回る場合は(Yesならば)、エラーを報知して(S14)、バックアップフラグを消去して(S15)、処理を終了してもよい。ここでの例ではバックアップフラグの消去は、バックアップフラグのファイルを削除する処理に相当する。   In step S11, if the free space falls below a predetermined threshold value (if Yes), image data to be backed up is further selected based on the additional information, and image data other than the selected image data is selected as the backup destination. It may be deleted from the directory. For example, when the control unit 11 determines in step S11 that the free space is below a predetermined threshold, image data to which additional information indicating “favorite” is added as illustrated in FIG. Image data other than are deleted from the backup destination directory (S12). Further, it is checked whether or not the free capacity of the hard disk or the like serving as the backup destination is below a predetermined threshold value (S13). If the free capacity is below the predetermined threshold value (if Yes), An error may be notified (S14), the backup flag may be deleted (S15), and the process may be terminated. In this example, erasing the backup flag corresponds to processing for deleting the backup flag file.

また、処理S9、S11、S13において、空き容量が予め定めたしきい値を下回らないならば(Noならば)、制御部11は、処理S6に戻って処理を続ける。制御部11は、処理S8において、データベースに格納されているファイル名のすべてについて以上の処理を行ったと判断すると(処理S8でYesであると)、今回のバックアップ処理においてサムネイル画像を削除する処理を行ったか否かを調べる(S16)。ここでサムネイル画像を削除する処理を行っていれば(Yesならば)、制御部11は、処理S15に移行して処理を終了する。   If the free space does not fall below the predetermined threshold value in the processes S9, S11, and S13 (if No), the control unit 11 returns to the process S6 and continues the process. If the control unit 11 determines in the process S8 that the above process has been performed for all the file names stored in the database (Yes in the process S8), the control unit 11 performs a process of deleting the thumbnail image in the current backup process. It is checked whether or not it has been carried out (S16). If the process of deleting the thumbnail image is performed (if Yes), the control unit 11 proceeds to the process S15 and ends the process.

一方処理S16において、サムネイル画像を削除する処理を行っていなければ(Yesならば)、制御部11は、データベースを参照して、データベースの各エントリーに含まれるサムネイル画像のファイル名を読み出し、当該ファイル名のサムネイル画像をストレージ部13からバックアップ先ディレクトリに複写する(S17)。そして制御部11は、処理S15に移行して処理を終了する。   On the other hand, in the process S16, if the process of deleting the thumbnail image is not performed (if Yes), the control unit 11 refers to the database, reads the file name of the thumbnail image included in each entry of the database, and The thumbnail image of the name is copied from the storage unit 13 to the backup destination directory (S17). And the control part 11 transfers to process S15, and complete | finishes a process.

さらに、図4の処理S1において、制御部11がデータベースに更新がなかったと判断すると(Noであると)、制御部11は、バックアップフラグが立っているかを調べる(S18)。ここでの例ではバックアップフラグのファイルがあるか否かを調べることになる。そして、バックアップフラグのファイルがあれば(Yesならば)、制御部11は、処理S2に移行して処理を続ける。またバックアップフラグのファイルがなければ(Noならば)、制御部11は、処理を終了する。   Further, when the control unit 11 determines that the database has not been updated in the processing S1 of FIG. 4 (No), the control unit 11 checks whether a backup flag is set (S18). In this example, it is checked whether there is a backup flag file. If there is a backup flag file (if Yes), the control unit 11 proceeds to the process S2 and continues the process. If there is no backup flag file (if No), the control unit 11 terminates the process.

このような本実施の形態の情報処理装置1によると、例えば利用者が誤ってストレージ部13をフォーマットしてしまった場合を想定すると、次のような動作が行われる。すなわち、情報処理装置1は、図5に例示するように、フォーマット後に電源断操作が行われたとき、バックアップの処理を開始するが、このバックアップ処理では、以前のバックアップのデータは別名に変更して(図では名称「aaaa」から「aaaa-bak1」に変更して)そのまま維持し(A)、新規のバックアップデータ(B)を生成することになる。この新規のバックアップデータには、変更前の(A)の名称(ここでは「aaaa」)が付される。図5は、バックアップ先のハードディスク等の内容を概括的に表す説明図である。このとき新規のバックアップデータ(B)は、フォーマット後のストレージ部13の内容を反映したものとなるが、フォーマットにより削除される前のデータは、以前のバックアップのデータとしてそのまま維持されている(A)。従って、利用者は、誤ってフォーマットした場合にも以前のバックアップデータから、元のデータを復元できる。   According to the information processing apparatus 1 of the present embodiment as described above, for example, assuming that the user has accidentally formatted the storage unit 13, the following operation is performed. That is, as illustrated in FIG. 5, the information processing apparatus 1 starts backup processing when a power-off operation is performed after formatting. In this backup processing, the previous backup data is changed to an alias. (A name is changed from “aaaa” to “aaaa-bak1” in the figure) and is maintained as it is (A), and new backup data (B) is generated. This new backup data is assigned the name (A) (“aaaa” here) before the change. FIG. 5 is an explanatory diagram generally showing the contents of a backup destination hard disk or the like. At this time, the new backup data (B) reflects the contents of the storage unit 13 after the formatting, but the data before being deleted by the formatting is maintained as the data of the previous backup (A ). Therefore, the user can restore the original data from the previous backup data even if it is formatted by mistake.

また、ストレージ部13に異常が生じ、内部のデータが破損した場合を想定すると、この場合本実施の形態の情報処理装置1は、以前のバックアップデータは別名に変更してそのまま維持し、新規のバックアップを作成することになる。従って、利用者はデータが破損していた場合にも、以前のバックアップデータから元のデータを復元することができるようになる。   Also, assuming that the storage unit 13 is abnormal and the internal data is damaged, in this case, the information processing apparatus 1 according to the present embodiment changes the previous backup data to an alias and maintains it as is. You will create a backup. Therefore, even if the data is damaged, the user can restore the original data from the previous backup data.

またバックアップフラグの情報を用いることで、バックアップ処理中に強制的に電源が断たれた(コンセントが引き抜かれるなどした)場合や、バックアップ処理中にインタフェース部16とバックアップ先となったハードディスク等との接続が断たれた場合にバックアップフラグが削除されずに残存することとなり、前回のバックアップ時に処理が正常に終了したか否かを調べることが可能となる。そして前回のバックアップ処理が正常に終了していなければ、データベースに更新がなかったとしても、バックアップの処理を行うこととしている。これにより、バックアップの処理をより確実なものにできる。   Also, by using the backup flag information, if the power is forcibly cut off during the backup process (such as when the outlet is pulled out), or if the interface unit 16 and the hard disk that is the backup destination are backed up during the backup process When the connection is cut off, the backup flag remains without being deleted, and it is possible to check whether or not the processing is normally completed at the time of the previous backup. If the previous backup process is not completed normally, the backup process is performed even if the database has not been updated. Thereby, the backup process can be made more reliable.

また本実施の形態の情報処理装置1は、利用者から復元処理を行うべき旨の指示を受けて、次の図6に例示するように動作する。すなわち情報処理装置1は、インタフェース部16に接続されたバックアップ先のハードディスク等に格納されているバックアップ先ディレクトリの一覧を表示する(S21)。図5に示した例であれば、ディレクトリ(A),(B)がリストとして表示される。   Further, the information processing apparatus 1 according to the present embodiment operates as illustrated in FIG. 6 in response to an instruction from the user to perform the restoration process. That is, the information processing apparatus 1 displays a list of backup destination directories stored in a backup destination hard disk or the like connected to the interface unit 16 (S21). In the example shown in FIG. 5, directories (A) and (B) are displayed as a list.

ここで利用者がいずれかのディレクトリを選択する操作を行うと、情報処理装置1は当該操作を受け入れて、選択されたディレクトリを復元元ディレクトリ(復元対象のバックアップデータ)とし(S22)、復元元ディレクトリからストレージ部13に対して、データベースと、データとを複写する(S23)。またこの処理S23において情報処理装置1は、サムネイル画像のデータが復元元ディレクトリにあれば、復元元ディレクトリからストレージ部13に対して、当該サムネイル画像のデータも複写してもよい。   When the user performs an operation of selecting any one of the directories, the information processing apparatus 1 accepts the operation, sets the selected directory as a restoration source directory (recovery target backup data) (S22), and restores the source. The database and data are copied from the directory to the storage unit 13 (S23). In this process S23, if the thumbnail image data is in the restoration source directory, the information processing apparatus 1 may copy the thumbnail image data from the restoration source directory to the storage unit 13.

そして情報処理装置1は、ストレージ部13に複写した画像データについて、改めてサムネイル画像のデータを生成する(S24)。なお既にサムネイル画像のデータが生成されている画像データについては、当該画像データについては、サムネイル画像を新たに作り直さなくてもよい。ここでサムネイル画像のデータのファイル名は、サムネイル画像の元となった画像データのファイル名に、例えば「S」なる文字列を付加したものとしておく。このようにすると、ある画像データに対応するサムネイル画像は常に同じファイル名となる。そこで情報処理装置1は、処理S24においては、生成したサムネイル画像のファイル名と同じファイル名のサムネイル画像が既にストレージ部13に格納されている場合は、そのサムネイル画像を生成しないよう制御する。   Then, the information processing apparatus 1 newly generates thumbnail image data for the image data copied to the storage unit 13 (S24). For image data for which thumbnail image data has already been generated, a new thumbnail image need not be recreated for the image data. Here, the file name of the thumbnail image data is obtained by adding, for example, a character string “S” to the file name of the image data that is the source of the thumbnail image. In this way, thumbnail images corresponding to certain image data always have the same file name. Therefore, in the process S24, if a thumbnail image having the same file name as that of the generated thumbnail image is already stored in the storage unit 13, the information processing apparatus 1 controls not to generate the thumbnail image.

このように、復元元のディレクトリを利用者が選択することで、例えば、別の情報処理装置1で生成したバックアップデータのリストも、この処理S21におけるリストに提示されることとなり、別の情報処理装置1で生成したバックアップデータから復元することも可能となる。   In this way, when the user selects the restoration source directory, for example, a list of backup data generated by another information processing apparatus 1 is also presented in the list in this processing S21, and another information processing is performed. It is also possible to restore from backup data generated by the apparatus 1.

なお、制御部11は、ストレージ部13に格納するデータベースについては、その更新を行うごとに、更新の日時を表す情報を、図示しないカレンダーIC等から取得して、データベースに関連付けて保持することとしてもよい。そして制御部11は、このデータベースの更新の日時を表す情報を、利用者の求めに応じて表示出力するようにしてもよい。   As for the database stored in the storage unit 13, the control unit 11 obtains information indicating the date and time of update from a calendar IC (not shown) or the like and holds it in association with the database every time the database is updated. Also good. And the control part 11 may be made to display-output the information showing the update date of this database according to a user's request | requirement.

なお、ここまでの説明では、サムネイル画像のデータが一種類であるものとして説明したが、互いに異なるサイズの複数のサムネイル画像のデータ、あるいは、縮小ではなく予め定めた方法で画像データの一部を切り出すことによって作成したサムネイル画像のデータなど、一つの画像データについて、複数種類のサムネイル画像のデータを生成してもよい。この場合、処理S10では複数種類のサムネイル画像のうち、作成の処理負荷の低いものから順に削除して空き容量を調べるといった処理を繰り返してもよい。そして一部種類のサムネイル画像が削除された時点で、空き容量がしきい値を下回らないこととなったときには処理S6に戻って処理を続けることとすればよい。   In the above description, the thumbnail image data is assumed to be one type. However, a plurality of thumbnail image data having different sizes, or a part of the image data by a predetermined method instead of reduction. A plurality of types of thumbnail image data may be generated for one piece of image data, such as thumbnail image data created by clipping. In this case, in the process S10, the process of deleting the plurality of types of thumbnail images in ascending order of creation processing load and checking the free space may be repeated. Then, at the time when some types of thumbnail images are deleted, if the free space does not fall below the threshold value, the process may return to step S6 and continue the process.

また、ここまでの説明では、バックアップ先はディレクトリであるものとしたが、これに限られず、例えばzip等で圧縮されるアーカイブであってもよい。この場合は当該アーカイブがバックアップデータとなる。   In the above description, the backup destination is a directory. However, the backup destination is not limited to this. For example, the backup destination may be an archive compressed by zip or the like. In this case, the archive becomes backup data.

さらに、ここではバックアップ先は、インタフェース部16に接続されたハードディスク等であるものとしたが、インタフェース16がネットワークインタフェースを備える場合は、バックアップ先として、例えばURL(Uniform Resource Locator)で指定されるネットワーク上のサーバ等であってもよい。   Further, here, the backup destination is assumed to be a hard disk or the like connected to the interface unit 16. However, when the interface 16 includes a network interface, for example, a network specified by a URL (Uniform Resource Locator) as the backup destination. The above server or the like may be used.

1 情報処理装置、11 制御部、12 記憶部、13 ストレージ部、14 操作部、15 表示部、16 インタフェース部、21 バックアップ要否判定部、22 バックアップ条件判断部、23 上書きバックアップ生成部、24 新規バックアップ生成部。   DESCRIPTION OF SYMBOLS 1 Information processing apparatus, 11 Control part, 12 Storage part, 13 Storage part, 14 Operation part, 15 Display part, 16 Interface part, 21 Backup necessity judgment part, 22 Backup condition judgment part, 23 Overwrite backup generation part, 24 New Backup generation unit.

Claims (4)

バックアップ対象のデータを保持する保持手段と、
バックアップするタイミングであるか否かを判断する手段と、
バックアップするタイミングであると判断された際に、予め定められた上書きバックアップ禁止条件を満足する場合には、前回のバックアップ時に生成したバックアップデータとは別に、前記保持手段に保持されたバックアップ対象のデータを複写して新たなバックアップデータを生成し、そうでない場合は前回のバックアップ時に生成したバックアップデータに上書きして新たなバックアップデータを生成するバックアップ作成手段と、
を含む情報処理装置。
Holding means for holding the data to be backed up;
Means for determining whether it is time to back up;
When it is determined that it is time to back up, if the predetermined overwrite backup prohibition condition is satisfied, the backup target data held in the holding means is separate from the backup data generated during the previous backup. To create new backup data by copying the backup data, if not, overwriting the backup data generated during the previous backup and creating new backup data,
An information processing apparatus including:
請求項1記載の情報処理装置であって、
前記上書きバックアップ禁止条件が、
前回バックアップを行った後に、フォーマットを行ったこと、
保持手段に異常を検出したこと、
新規のバックアップ先へのバックアップであること、
前回バックアップを行った後に復元作業を行ったこと、
のうち、少なくともいずれかを含む情報処理装置。
The information processing apparatus according to claim 1,
The overwrite backup prohibition condition is
That the file was formatted after the last backup,
Detecting an abnormality in the holding means,
The backup is to a new backup destination,
The restoration work was performed after the last backup,
An information processing apparatus including at least one of them.
請求項1または2記載の情報処理装置であって、
前記バックアップするタイミングであるか否かを判断する手段は、電源がオフとなるときに、バックアップするタイミングであると判断する情報処理装置。
The information processing apparatus according to claim 1, wherein
The information processing apparatus, wherein the means for determining whether or not it is time to back up determines that it is time to back up when the power is turned off.
バックアップ対象のデータを保持する保持手段に接続されたコンピュータを、
バックアップするタイミングであるか否かを判断する手段と、
バックアップするタイミングであると判断された際に、予め定められた上書きバックアップ禁止条件を満足する場合には、前回のバックアップ時に生成したバックアップデータとは別に、前記保持手段に保持されたバックアップ対象のデータを複写して新たなバックアップデータを生成し、そうでない場合は前回のバックアップ時に生成したバックアップデータに上書きして新たなバックアップデータを生成するバックアップ作成手段と、
として機能させるプログラム。
A computer connected to the holding means that holds the data to be backed up,
Means for determining whether it is time to back up;
When it is determined that it is time to back up, if the predetermined overwrite backup prohibition condition is satisfied, the backup target data held in the holding means is separate from the backup data generated during the previous backup. To create new backup data by copying the backup data, if not, overwriting the backup data generated during the previous backup and creating new backup data,
Program to function as.
JP2011241532A 2011-11-02 2011-11-02 Information processing apparatus and program Active JP5790415B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011241532A JP5790415B2 (en) 2011-11-02 2011-11-02 Information processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011241532A JP5790415B2 (en) 2011-11-02 2011-11-02 Information processing apparatus and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2015104006A Division JP5994901B2 (en) 2015-05-21 2015-05-21 Information processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2013097680A true JP2013097680A (en) 2013-05-20
JP5790415B2 JP5790415B2 (en) 2015-10-07

Family

ID=48619533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011241532A Active JP5790415B2 (en) 2011-11-02 2011-11-02 Information processing apparatus and program

Country Status (1)

Country Link
JP (1) JP5790415B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014233041A (en) * 2013-05-30 2014-12-11 株式会社バッファロー Storage device and computer
JP2016139210A (en) * 2015-01-26 2016-08-04 株式会社バッファロー Information processor, network storage, and program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000003299A (en) * 1998-06-16 2000-01-07 Casio Comput Co Ltd Data processor and storage medium
JP2004213296A (en) * 2002-12-27 2004-07-29 Toshiba Tec Corp Data processor
JP2005196358A (en) * 2004-01-05 2005-07-21 Seiko Epson Corp Electronic device, backup program, and backup method
US20060047929A1 (en) * 2004-09-02 2006-03-02 Hitachi, Ltd. Storage system
US20090125577A1 (en) * 2007-11-09 2009-05-14 Hitachi, Ltd. Backup executability judging system
JP2011028716A (en) * 2009-06-26 2011-02-10 Victor Co Of Japan Ltd Backup device and backup method
JP2011034166A (en) * 2009-07-30 2011-02-17 Panasonic Corp Data processing device, content management software and data processing system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000003299A (en) * 1998-06-16 2000-01-07 Casio Comput Co Ltd Data processor and storage medium
JP2004213296A (en) * 2002-12-27 2004-07-29 Toshiba Tec Corp Data processor
JP2005196358A (en) * 2004-01-05 2005-07-21 Seiko Epson Corp Electronic device, backup program, and backup method
US20060047929A1 (en) * 2004-09-02 2006-03-02 Hitachi, Ltd. Storage system
US20090125577A1 (en) * 2007-11-09 2009-05-14 Hitachi, Ltd. Backup executability judging system
JP2009116773A (en) * 2007-11-09 2009-05-28 Hitachi Ltd Backup executability judging system
JP2011028716A (en) * 2009-06-26 2011-02-10 Victor Co Of Japan Ltd Backup device and backup method
JP2011034166A (en) * 2009-07-30 2011-02-17 Panasonic Corp Data processing device, content management software and data processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014233041A (en) * 2013-05-30 2014-12-11 株式会社バッファロー Storage device and computer
JP2016139210A (en) * 2015-01-26 2016-08-04 株式会社バッファロー Information processor, network storage, and program

Also Published As

Publication number Publication date
JP5790415B2 (en) 2015-10-07

Similar Documents

Publication Publication Date Title
JP4393588B2 (en) System, method, and computer-readable medium for correlating processing data and image data in a digital camera device
JP4557759B2 (en) Information processing apparatus, information processing method, and data update method
JP2009070143A (en) Method for restoring data in differential remote backup of nas device, and computer system
JP6085609B2 (en) Method for automatic management of image collection and apparatus corresponding thereto
US8456533B2 (en) Image capturing apparatus and control method of the same
WO2013044794A1 (en) Terminal backup and recovery method
JP2007179435A (en) Information processor, information processing method, and program
JP2007073007A (en) Image data selection method and image data processor
KR20080060155A (en) Information processing apparatus, information processing method, and program
WO2013181957A1 (en) Method and system for data recovery of mobile terminal
JP5790415B2 (en) Information processing apparatus and program
JP4595936B2 (en) Information processing apparatus, information processing method, and program
JP5994901B2 (en) Information processing apparatus and program
JP6278078B2 (en) Information processing apparatus and program
JP2011028716A (en) Backup device and backup method
TW201227268A (en) Data backup system and data backup and retrival method
JP2007036581A (en) Information management apparatus and method
WO2009142294A1 (en) Image processing device
JP4771113B2 (en) Image processing apparatus and client apparatus
KR101542329B1 (en) Automatic Data Backup System and Operating Method thereof
JP2011160386A (en) Apparatus, method and program for processing image file
JP5585565B2 (en) File management apparatus, file management apparatus control method, and program thereof
JP2017219970A (en) Image forming apparatus, method for controlling the same, and program
JP5183393B2 (en) Image reproduction system, image reproduction control apparatus, image reproduction method, and program
EP1686452B1 (en) Data management method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140718

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150324

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150521

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150707

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150720

R150 Certificate of patent or registration of utility model

Ref document number: 5790415

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250