Skip to content

Restore Configuration

Before you start

Goal

  • Restore a backup of the Altair SLC Hub configuration

Prerequisites

  • A previously taken backup
  • If you are using Windows, you will need to login as a user that is a member of the Administrators group, and the command prompt must be started 'as Administrator'. These steps will permit use of the hubctl command.

Configuration restore procedure

To restore the configuration, the config.d directory is restored from a backup.

To restore a backup, make sure the Hub is stopped. This can be done by running:

hubctl service stop

Warning

This may cause data loss if you haven't created a backup.

Run the following command to clear the existing configuration directory:

rm -rf [etc directory]/config.d

Then, restore the configuration from the backup as superuser to preserve ownership and permissions and avoid errors:

sudo tar --same-owner -xvpf HubConfigBackup.tar [etc directory]

Delete the [etc directory]\config.d directory. Now right click on the backup zip file, select Extract all, set the directory to be extracted to as [etc directory] and click Extract.

Verification

Configuration Restored

  • Verify the backup has been extracted to the [etc directory]\config.d directory correctly. It should contain only yaml files.