Backing Up and Restoring

Autonomous Identity stores its entitlement analytics results, association rules, predictions, and confidence scores in the Apache Cassandra database. Cassandra is an open-source, NoSQL database system where data is distributed across multiple nodes in a master-less cluster.

For single-node deployments, however, you need to back up Cassandra on a regular basis. If the machine goes down for any reason, you need to restore the database as required.

To simplify the backup process, ForgeRock provides backup and restore scripts, available on the ForgeRock Google Cloud Registry (gcr.io).

Backing Up Cassandra

  1. On the ForgeRock Google Cloud Registry (gcr.io), download the cassandra-backup.sh script.

  2. Move the script to the Cassandra home directory on your deployment.

  3. Run the backup.

    $ ./cassandra-backup.sh \
      -d <Cassandra Database path> \
      -b <Backup folder path> \
      -u <Cassandra Username> \
      -p <Cassandra Password> \
      -s <SSL enable true/false> \
      -k <Keyspace (optional) default value: zoran>

Restore Cassandra

  1. On the ForgeRock Google Cloud Registry (gcr.io), download the cassandra-restore.sh script.

  2. Move the script to the Cassandra home directory on your deployment.

  3. Run the restore.

    $ ./cassandra-restore.sh \
      -d <Cassandra Database path> \
      -b <Snapshot Backup tar file> \
      -f <Schema file> \
      -u <Cassandra Username> \
      -p <Cassandra Password> \
      -c <Cassandra commitlog path> \
      -i <Cassandra install path> \
      -s <SSL enable true/false> \
      -k <Keyspace (optional) default value: zoran>
Read a different version of :