Restore Internal Object Store¶
Before you start¶
Goal
- Restore a backup of the Altair SLC Hub internal object store
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.
Internal Object Store restore procedure¶
To restore the internal object store, the data 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 data directory:
rm -rf [var directory]/objstore/data
Then, restore the data from the backup as superuser to preserve ownership and permissions:
sudo tar --same-owner -xvpf HubObjectStoreBackup.tar [var directory]/objstore
Delete the [var directory]\objstore\data
directory.
Now right click on the backup zip file, select Extract all, set the directory to be extracted to as [var directory]\objstore
and click Extract.
Verification¶
Backup Restored
- Verify the backup has been extracted to the directory correctly