バックアップする方法

バックアップを実行するには、次のコマンドを使用します。

/opt/apigee/apigee-service/bin/apigee-service component_name backup

ここで、component_name はコンポーネントの名前です。有効な値は次のとおりです。

  • apigee-cassandra(Cassandra)
  • apigee-openldap(OpenLDAP)
  • apigee-postgresql(PostgreSQL データベース)
  • apigee-qpidd(Qpidd)
  • apigee-sso(Edge SSO)
  • apigee-zookeeper(ZooKeeper)
  • edge-management-server(Management Server)
  • edge-management-ui(新しい Edge UI)
  • edge-message-processor(Message Processor)
  • edge-postgres-server(Postgres Server)
  • edge-qpid-server(Qpid Server)
  • edge-router(Edge Router)
  • edge-ui(Classic UI)

例:

/opt/apigee/apigee-service/bin/apigee-service apigee-cassandra backup

バックアップを実行するには:

  1. コンポーネントを停止します(PostgreSQL と Cassandra。 バックアップ)。

    /opt/apigee/apigee-service/bin/apigee-service component_name stop
  2. バックアップ コマンドを実行します。

    /opt/apigee/apigee-service/bin/apigee-service component_name backup

    バックアップ コマンドは次の処理を行います。

    • 次のディレクトリとファイルの tar ファイルを作成します。 component_name はコンポーネントの名前です。 <ph type="x-smartling-placeholder">
        </ph>
      1. ディレクトリ <ph type="x-smartling-placeholder">
          </ph>
        • /opt/apigee/data/component_name
        • /opt/apigee/etc/component_name.d
      2. ファイル(存在する場合) <ph type="x-smartling-placeholder">
          </ph>
        • /opt/apigee/token/application/component_name.properties
        • /opt/apigee/customer/application/component_name.properties
        • /opt/apigee/customer/defaults.sh
        • /opt/apigee/customer/conf/license.txt
    • /opt/apigee/backup/component_name ディレクトリに .tar.gz ファイルを作成します。「 次のような形式になります。
      backup-year.month.day,hour.min.seconds.tar.gz

      例:

      backup-2018.05.29,11.13.42.tar.gz

      PostgreSQL の場合、ファイル名の形式は次のとおりです。

      year.month.day,hour.min.seconds.dump
  3. コンポーネントを起動します(ただし、PostgreSQL と Cassandra はバックアップ時に実行する必要があります)。

    /opt/apigee/apigee-service/bin/apigee-service component_name start

同じノードに複数の Edge コンポーネントをインストールしている場合、 1 つのコマンドで実行できます。

/opt/apigee/apigee-service/bin/apigee-all backup

このコマンドにより、ノード上の各コンポーネントのバックアップ ファイルを作成します。