Restore Internal Database¶
Before you start¶
Goal
- Restore the Altair SLC Hub internal database from a backup
Restore the internal database¶
Firstly, ensure that all Altair SLC Hub services are not active. To verify this, check the output of the following command shows an Active state of 'Inactive' for all services:
hubctl service status
If any services are running, stop them by running:
hubctl service stop
With all Altair SLC Hub services inactive, you can now restore the internal database.
Warning
Before performing an internal database restoration, it is important to note that all existing data will be wiped as part of this process.
To restore the database, run the following command, changing the file path to the actual backup file you are restoring from:
hubctl restore internaldb /var/slc-hub/backups/backup001.zip
hubctl restore internaldb "C:\slc-hub\backups\backup001.zip"
You will be asked to confirm you understand that existing data will be wiped before the restoration can take place. Type 'Y' and press 'Return' if you are happy to continue or 'N' and press 'Return' if not. You can bypass this confirmation by adding the -y
flag to the hubctl restore internaldb
command.
Verification¶
Verify restoration
- Check the output from hubctl restore internaldb
You should see a message reading Hub internal database restoration complete
.