Loading…
First we need to make sure that the backup files are not created in the file system that is internal to the container. Because in that case all data would be lost when the container is stopped. Therefore the backup directory must be in a volume. For now we only consider the most simple case, where the backup dir is a local dir on the Docker host. The location of the backup dir in the container can be arbitrarily chosen. In this example we choose the local dir ``otobo_backup`` as the location on the host, and ``/otobo_backup`` as the location in the container.
最初に、コンテナの内部にあるファイルシステムにバックアップファイルが作成されていないことを確認する必要があります。 その場合、コンテナを停止すると全てのデータが失われるためです。 従って、バックアップディレクトリはボリューム内にある必要があります。 今のところ、バックアップディレクトリがDockerホストのローカルディレクトリである最も単純なケースのみを検討します。 コンテナ内のバックアップディレクトリの場所は任意に選択できます。 この例では、ローカルディレクトリ 「otobo_backup」をホスト上の場所として選択し、 「/ otobo_backup」をコンテナ内の場所として選択します。