CAUTION |
To minimize the possibility of losing data migrated / stored since the last database backup was created, contact Spectra Logic Technical Support (see Contacting Spectra Logic) before using the instructions in this section to restore the database from a backup. |
IMPORTANT |
Database backups are specific to each operating system. Database backups and the Database Archive and Restore actions cannot be used to migrate the database across operating system server platforms. For example, you cannot restore a database to a Windows system if it was originally created by a Linux system, and vice versa. |
Use the following instructions to restore a database from a database backup. Database restorations are typically performed when a system is damaged or upgraded.
1. | Re-install the StorCycle software. See Download and Install the StorCycle Software. Make note of the installation directory. |
2. | Stop the StorCycle service. Navigate to the Services screen. Select the StorCycle Service. Click the Stop Service button in the upper left corner of the screen. |
3. | Find the database backup file. In your destination storage locations, look for backup files which are named ssc-nodeId-hh-mm-ssZ.zip. The file with the latest date code is the most recent backup. |
4. | Unzip the database backup file. |
5. | Open a Command Prompt window as an administrator and change directory to the StorCycle install directory used in Step 1. |
6. | Execute ssc.exe database restore <path to unzipped database directory>. |
Note: | Use database restore --help to view help for the command. |
7. | Restart the StorCycle service. Navigate to the Services screen. Select the StorCycle Service. Click the Start Service button in the upper left corner of the screen. |
1. | Ensure the Mongo database repository is updated and compatible. See Create the StorCycle Mongo Database Repository. |
2. | Re-install the StorCycle software. See Install the StorCycle Solution. Make note of the installation directory. |
3. | Find the database backup file. In your destination storage locations, look for the ssc-db-backup directory. The backup files are named ssc-nodeId-hh-mm-ssZ.zip. The file with the latest date code is the most recent backup. |
4. | Unzip the database backup file. |
unzip -d target_directory -u -q the_database_zip_file
5. | Stop the StorCycle service. |
If you are the root user, execute:
systemctl stop ssc
If you are a user who has root access, execute:
sudo systemctl stop ssc
To check that the StorCycle service has stopped, execute:
sudo systemctl status ssc
6. | If you are the root user, execute: |
/usr/sbin/ssc database restore <path to unzipped database directory>/ssc-xxxxxxZ
If you are a user who has root access, execute:
sudo /usr/sbin/ssc database restore <path to unzipped database directory>/ssc-xxxxxxZ.
You will be prompted to enter the root password.
Note: | Use /usr/sbin/ssc database restore --help to view help for the command. |
7. | Restart the StorCycle service. |