# バックアップと復元

Keeperコネクションマネージャーはパッケージ化された上でご利用の環境にインストールされます。そのため、必要に応じて環境を復元するためにバックアップを取る必要があります。

以下のコンポーネントのバックアップを取ることを推奨します。

1. [サーバーのバックアップ](#sbnobakkuappu)
2. [データベースのスナップショット](#dtabsunosunappushotto)
3. [Docker composeおよびその他の重要ファイル](#docker-compose)　

### サーバーのバックアップ手順

* Keeperコネクションマネージャーインスタンスのスナップショットを毎日取得することをお勧めします。
* ほとんどのインストールでは、ローカルまたはDockerコンテナ内で実行されるデータベースに接続とユーザーに関するデータが格納されています。インスタンスをバックアップする場合は、データベースを必ずお含めください。
* Linuxの高度なインストールメソッドを使用する場合は、/etc/guacamole/フォルダをスナップショットに必ずお含めください。

### データベースのスナップショット

* Dockerインストールの場合、`kcm-setup.run backup`コマンドはローカルでバックアップを実行します。
* その他のインストールの場合は、データベースプラットフォームのバックアップ機能をご使用ください。たとえば、MySQLによるインストールでは、`mysqladmin`をご使用ください。

### Docker compose

* `/etc/kcm-setup/` にあるファイル (`docker-compose.yml`など) をバックアップし、コンテナで使用されているその他のファイルを保護してください。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/keeper-connection-manager/jp/installation/backup-and-recovery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
