ja:documentation:07_technical_annexes:07_backup_and_restore_procedures

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
ja:documentation:07_technical_annexes:07_backup_and_restore_procedures [2021/06/26 07:53] – [データベースバックアップ] junichija:documentation:07_technical_annexes:07_backup_and_restore_procedures [2023/11/14 06:21] – [手動リストア] junichi
行 6: 行 6:
 ===== バックアップ手順 ===== ===== バックアップ手順 =====
  
-==== 目的 ==== +
-このドキュメントの目的は、Pandora FMS アプライアンスのバックアップおよびリストア手順の説明です。+
  
 ==== データベースバックアップ ==== ==== データベースバックアップ ====
行 30: 行 29:
  
 </code> </code>
 +=== Pandora FMS データベースバックアップユーティリティ ===
 +
 +Pandora FMS allows to [[:en:documentation:03_monitoring:04_discovery#console_tasks|periodically perform a backup of the database]] that can be programmed in the following ways **Discovery** -> **New console task** and selecting from the drop-down menu **Backup Pandora FMS database**.
 +
 +Pandora FMS では、**自動検出(Discovery) > 新しいコンソールタスク(New console task)** から、ドロップダウンで **"Pandora FMS データベースのバックアップ(Backup Pandora FMS database)"** を選択することにより、[[:ja:documentation:03_monitoring:04_discovery#コンソールタスク|定期的なデータベースのバックアップ]] を設定できます。
 +
 +{{  :wiki:pfms-create-new-console-task-backup-db.png  }}
 +
 +To create a new database backup:
 +
 +新規データベースバックアップの作成には次のようにします。
 +
 +  * Select the backup frequency or one-time with "Not scheduled".
 +  * Select exactly when the "Next execution" backup task will be started.
 +  * You need to indicate the content of which groups to support (or select all "All").
 +  * By default it is stored in ''/var/www/html/pandora_console/attachment/backups''  but you can specify any directory to which you have write and read rights.
 +
 +  * 定期バックアップもしくは、"Not scheduled" で一回のみのバックアップを選択します。
 +  * "次の実行(Next execution)" バックアップタスクを開始するタイミングを正確に選択します。
 +  * サポートするグループの内容を指定する必要があります(または "すべて(All)" を選択します)。
 +  * デフォルトでは ''/var/www/html/pandora_console/attachment/backups''  に保存されますが、読み書きできる任意のディレクトリを指定することができます。
 +
 +Once you have finished filling in the fields, click on the Create button.
 +
 +フィールドへの入力が完了したら、作成(Create) ボタンをクリックします。
  
  
行 68: 行 92:
  
 ===== リストア手順 ===== ===== リストア手順 =====
-==== 4.1 アプライアンスのインストール ==== 
-サーバに CD を入れ起動画面でキーを押します。起動メニューが表示されます。 
  
 +Perform the [[:en:documentation:02_installation:01_installing|installation]] procedure.
  
- +[[:ja:documentation:02_installation:01_installing|インストール]] 手順をします。
-{{ wiki:centos2.png?600 }} +
- +
- +
- +
-"Install (Text mode)" を選択すると、テキストモードでインストール行されます。インストールオプションを選択すると、グラフィカルなインストールが開始されます(推奨)。いずれかのオプションを選択し、インストール後、マシンを再起動します。+
  
 ==== データベースリストア ==== ==== データベースリストア ====
行 85: 行 103:
  
 === 手動リストア === === 手動リストア ===
 +
 データベースが起動し、Pandora サーバとエージェントが停止していることを確認します。 データベースが起動し、Pandora サーバとエージェントが停止していることを確認します。
  
行 94: 行 113:
 [root@localhost ~]# /etc/init.d/pandora_agent_daemon stop [root@localhost ~]# /etc/init.d/pandora_agent_daemon stop
 Stopping Pandora Agent. Stopping Pandora Agent.
 +
 </code> </code>
  
-その後、データベースをリストアします。+<WRAP center round tip 60%>\\ 
 +From version NG 754 onwards, [[:en:documentation:05_big_environments:07_server_management#manual_startupshutdown_for_pandora_fms_servers|additional options are available for manual startup and shutdown]] of High Availability (HA) environments.\\ 
 +</WRAP>
  
 +<WRAP center round tip 60%>\\
 +バージョン NG 754 以降では、高可用性(HA)環境の[[:ja:documentation:02_installation:06_server_management#pandora_fms_サーバの手動起動・停止|手動起動および停止のための追加オプションがあります。]]\\
 +</WRAP>
 +
 +その後、データベースをリストアします。
 <code> <code>
 +
 [root@localhost ~]# gunzip pandora.sql.gz [root@localhost ~]# gunzip pandora.sql.gz
 [root@localhost ~]# cat pandoradb.sql | mysql -u root -p pandora [root@localhost ~]# cat pandoradb.sql | mysql -u root -p pandora
 Enter password: <enter the password in console> Enter password: <enter the password in console>
 +
 </code> </code>
  
 次の方法でもリカバリできます。 次の方法でもリカバリできます。
- 
 <code> <code>
 +
 mysql –u root –p pandora mysql –u root –p pandora
 create database pandora; create database pandora;
 use pandora; use pandora;
 source PATH BACKUP; source PATH BACKUP;
 +
 </code> </code>
  
-<WRAP center round important 60%> +<WRAP center round important 60%> 作成するデータベース名は、バックアップしたものと同じである必要があります。 </WRAP>
-作成するデータベース名は、バックアップしたものと同じである必要があります。 +
-</WRAP> +
- +
-=== Pandora FMS データベースバックアップユーティリティを使ってのリカバリ === +
-<WRAP center round important 60%> +
-この処理は、このツールを用いて作成したバックアップでのみ有効です。 +
-</WRAP> +
- +
-{{ wiki:Recuperacion_backup_utility.png |Recuperacion_backup_utility.png}} +
- +
- +
-バックアップをリストアするには、作成したバックアップの一覧からリカバリしたいバックアップを選択し、'このバックアップへ戻す(Rollback to this backup)' オプションをクリックします。その後、選択したデータベースを復元するための手動の手順を示すメッセージがコンソールに表示されます。+
  
-{{ wiki:Recuperacion_backup_utility2.png |Recuperacion_backup_utility2.png}}