How to restore

Edge for Private Cloud v4.18.05

You can restore a component from the file you created when backing up that component.

Use the following command to perform a restore:

/opt/apigee/apigee-service/bin/apigee-service component_name restore backupFile

Where backupFile is the name of the backup file and component_name is the name of the component. component_name can be one of the following:

  • apigee-cassandra (Cassandra)
  • apigee-openldap (OpenLDAP)
  • apigee-postgresql (PostgreSQL database)
  • apigee-qpidd (Qpidd)
  • apigee-sso (Edge SSO)
  • apigee-zookeeper (ZooKeeper)
  • edge-management-server (Management Server)
  • edge-management-ui (new 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)

For example:

/opt/apigee/apigee-service/bin/apigee-service apigee-cassandra restore backup-2016.03.17,14.40.41.tar.gz

The backup file is optional. If omitted, Apigee uses the most recent file in /opt/apigee/backup/component_name.

The restore command:

  1. Uses the specified backup file or gets the latest backup file, if a filename was not specified.
  2. Checks to see if the following directories are empty:
    /opt/apigee/data/component_name
    /opt/apigee/etc/component_name.d
  3. If the above directories are not empty, the restore command stops and asks you to remove them.
  4. Stops the component.
  5. Restore the component from the backup.