Backups

This page describes how to back up an existing BPC installation and restore it if necessary.

This refers to the relevant files of a BPC installation. In addition, BPC and OpenSearch offer a separate backup feature for OpenSearch indices; see Backups of OpenSearch indices.

See also Troubleshooting.

Full Backup of the Installation

To perform a full backup of the BPC installation, the Karaf and OpenSearch services must be stopped. Afterward, the entire installation folder—for example, /opt/bpc —can be backed up in its entirety.

Backing Up Important Directories and Files

As an alternative to backing up the entire installation directory, individual files can also be backed up.

The following is a list of relevant directories and files that should be backed up in many cases.

Central Configuration File

Most customizations to the BPC are made in Central configuration file and should be backed up: <BPC-INSTALL-DIR>/bpc_env.sh|cmd

Karaf

The following files should be backed up for Karaf:

  • All files that you have modified or added under the etc directory. (Note: It is generally recommended to configure Karaf using the central configuration file.)

  • The etc/users.properties file, if you are using the local Karaf as an identity provider and, for example, have added users or changed passwords via the BPC interface.

  • All files located in the deploy directory.

OpenSearch

For OpenSearch, the following files should be backed up. When backing up the Indices, make sure the OpenSearch service is stopped.

  • The file <BPC-INSTALL-DIR>/opensearch_config/opensearch.yml, if you have made any customizations.

  • The directory <BPC-INSTALL-DIR>/opensearch_data containing the OpenSearch indices and snapshots, if the latter are stored on the file system.

  • If the OpenSearch backups/snapshots are stored in an S3 bucket, use its backup functionality.

Restore

Ensure that the Karaf and OpenSearch Services are stopped. You can now restore the backup you created earlier. If you did not create a full backup, you must first perform a Installation. After that, you can restore the directories and files from your backup and then start both services. If the OpenSearch backups/snapshots are stored in an S3 repository, use its restore functionality.


Keywords: