This section describes backing up and restoring a repository on Linux. The backup script and restore script files are installed with the repository server software in the server bin directory and are named backup.sh and restore.sh. The back up is created as a tar file called full_local.tar.gz.
To back up a repository on Linux
-
Ensure all users are logged out of Trillium applications, including Repository Manager, Control Center, Discovery Center, and Administration Center.
-
Log on to the server where the Trillium repository server is installed.
-
Stop the TSS Scheduler by entering the command:
./scheduler -stop
-
Change directories to the server bin directory. For example, /server_path/metabase/bin
-
Run the back up script using the following syntax:
./backup.sh --server_dir path --backup_dir path
--server_dir path is the repository server path where the server directory is created on the server. You must use the path you specified at the prompt Directory path to install the TSS 17 - Repository Server software. --backup_dirpath is the path where you want to store the backup file (full_local.tar.gz) you are creating.
Example
./backup.sh --server_dir /opt/trillium/server --backup_dir /home/tssadmin/backup
The following options are available:
Table 1. Options for backup.sh/restore.sh Option
Description
--help
Prints the help information.
--debug
Debug option to trace the script as it executes.
--backup_dir
Backup path where the backup file full_local.tar.gz is stored.
--server_dir
Repository server path where the server directory is created on the server.
-
After the backup is complete, change directories to /server_path/metabase/bin
-
Start the Scheduler by entering the command:
./scheduler -start
To restore a repository on Linux
-
Log on to the server where the Trillium repository server is installed.
-
Change directories to the server bin directory. For example, /server_path/metabase/bin
-
Run the restore script using the following syntax:
./restore.sh --backup_dir path --server_dir path
--backup_dir path is the path where the backup file (full_local.tar.gz) is stored. --server_dirpath is the repository server path where the backup is restored to.
Note: The repository must be restored to the exact location from which the backup was made.Example
./restore.sh --backup_dir /home/tssadmin/backup --server_dir /opt/trillium/server
See the options in table Options for backup.sh/restore.sh.
When the script finishes running, your repository server and repository (including projects and entities) will be in the state they were in when the backup was created.
-
Re-activate your Trillium license on the server:
-
Change directories to the metabase/bin directory of the repository server path.
-
Type the following command:
./mtb_admin
-
When prompted, enter the repository administrator's username and password. For Windows authentication, provide the fully qualified user name (for example, tssadmin@domain.com).
-
At the prompt _control: enter
activate
and press Enter.
-