Restoring Configuration Files

The information in this section applies to standalone broker configurations only.

Do not use this procedure for event broker services in PubSub+ Cloud. Using this procedure in PubSub+ Cloud may result in a degradation of service. Instead, see Backing up Event Broker Services for more information.

If you need to restore backed up configuration files, you may use local or external backups. Restoring configuration files may cause an interruption in service and should be performed at a time when it will be minimally disruptive.

Some configuration information is not backed up, including:

  • product keys
  • TLS/SSL server certificate files
  • TLS/SSL server certificate configuration
  • client certificates for the following:
    • Message VPN bridges
    • replication bridges
    • rest delivery points
    • Dynamic Message Routing (DMR)
    • Multi-Node Routing (MNR)
  • Kerberos Keytabs
  • trusted-root configuration (for appliances prior to software version 8.2.0 and software event brokers prior to version 8.7.0)
  • software broker storage group
  • software broker scaling parameters
  • monitoring agents running in the broker (Datadog, SolGeneos)

In addition, messaging data is not backed up, including:

  • the guaranteed message spool
  • queued messages
  • replay log messages

If you have spooled messages on an event broker and you need to restore a configuration file from a backup, contact Solace for assistance before using this procedure. Care is required to maintain the spooled messages when restoring a configuration file.

When to Restore

Restoring a configuration causes a disruption in service because the reload command restarts the event broker. It is best to restart the event broker at a time when a service disruption is of minimal impact to the publishers and subscribers on the messaging network.

Restoring a backup configuration file might be necessary in a number of circumstances:

  • to move management information from one event broker to another (for example to upgrade to a newer hardware platform)
  • if catastrophic hardware or software failure occurs, and network management must continue using alternate hardware
  • to return configuration information back to an event broker after performing a software downgrade
  • if the event broker databases are otherwise corrupted or their integrity is compromised, for example, from an accidental deletion by an operator

When restoring from a backup file, it is vitally important that the event broker on which the restore is being performed is identical to, and compatible with, that from which the backup was taken. In particular:

  • The software version for the restored event broker must be exactly the same as the event broker the backup was taken on, including the maintenance and build version.
  • There must be sufficient disk space on the event broker being restored to for the restored configuration file.
  • The hardware configuration for the event broker being restored to must be the same as the event broker the backup was taken on, that is, the same set of blades must be installed in the same set of slots.

Restoring Configurations to the Factory Default

To reload the default configuration file on an event broker, follow this procedure:

  1. Enter the following commands:
    solace> enable
    solace# reload default-config

When reloading to default configuration, the management IP address remains unchanged.

Restoring Configurations From Local Backups

To restore a local backup configuration file on an event broker, follow this procedure:

  1. Enter the following commands to display and identify the backup file to be restored:
    solace> enable
    solace# dir configs

    An example response is:

    -rw-rw----    admin solgroup  1569027 Mar 13 13:06 backup
    -rw-rw-rw-     root     root 25749320 Mar 24 03:15 autobackup
    -rw-rw-rw-     root     root 25749348 Mar 24 20:10 autobackup.1
    -rw-rw-rw-     root     root 25749348 Mar 31 03:15 autobackup.2
    -rw-rw-rw-     root     root 25749348 Mar 31 20:10 autobackup.3
  2. Enter the following command to restore a backup file and activate it.
    solace# reload config <config-file>

    Where:

    <config-file> is the location from where to retrieve the event broker’s configuration file on restart

    Example:

    solace# reload config //autobackup.3

    If left unspecified, the event broker is restarted with no change to the configuration database.

    Restoring a configuration causes a disruption in service because the reload command restarts the event broker. It is best to restart the event broker at a time when a service disruption is of minimal impact to the publishers and subscribers on the messaging network.

    The event broker restarts, and the configuration file that was previously backed up is restored.

    When a backup configuration that used TLS/SSL service is reloaded, TLS/SSL service is administratively enabled but operationally down until a server certificate is configured. A server certificate can only be installed after the reload is complete.

Restoring Configurations From File Servers Using SFTP or SCP

To restore a backup configuration file from an external file server (using either SFTP or SCP) to the event broker, follow this procedure:

Ensure that you have a file server on the event broker network to which you have IP connectivity.

  1. Enter the following commands to copy the desired backup file from an external file server (using either SFTP or SCP) to the /configs subdirectory on the event broker:
    solace> enable
    solace# copy sftp://[<username>@]<ip-addr>/<remote-pathname> /configs/<config-file>

    Or

    solace> enable
    solace# copy scp://[<username>@]<ip-addr>/<remote-pathname> /configs/<config-file>

    Where:

    <username> is your SFTP or SCP username and <ip-addr> and <remote-pathname> point to the location where the backup configuration file is located on the SFTP or SCP server

    <config-file> is where to place the backup configuration file on the event broker

  2. After successfully transferring the backup file from the external file server to the /configs subdirectory, enter the following command to restore the backup file and activate it:
    solace# reload config <config-file>

    Where:

    <config-file> is the location from where to retrieve the event broker’s configuration file on restart

    If left unspecified, the local current configuration file is used.

    Restoring a configuration causes a disruption in service because the reload command restarts the event broker. It is best to restart the event broker at a time when a service disruption is of minimal impact to the publishers and subscribers on the messaging network.

    The event broker restarts, and the configuration file that was previously backed up is loaded onto the event broker and restored.