Recovery with Persistence

You can set up recovery with persistence by:

  • Using the API Operations
  • Using the Admin CLI

Setting up Recovery Using the API Operations

The C API provides the following recover API settings, which are specified using the metaspace object, space name, and recovery options and passing a struct:

struct _tibasRecoveryOptions {
 tibas_boolean recoverWithData;
};

The default value for recoverWithData (TIBAS_TRUE) specifies recovery with data; if you specify TIBAS_FALSE, recovery without data is set.

You can also use tibasMetaspace_RecoverSpaceEx(metaspace, spaceName, recoveryOptions).

The Java and .NET APIs provide similar APIs.

Setting up Recovery Using the CLI

To set up recovery using the Admin CLI:

Connect to the metaspace and enter recovery commands as shown in the following example:

as-admin> recover space "myspace" with data
Space myspace recovery started
as-admin> show space "myspace"