This section describes backing up and restoring a repository on Windows. The backup script and restore script files are installed with the repository server software and are named backup.ps1 and restore.ps1.
The backup process creates two back up directories, one that contains the repository files and one that contains the repository server files. When you run the restore script, the backup files are restored to the location from which they were originally copied.
To back up a repository on Windows
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.
As administrator, open a Windows PowerShell command line window.
Navigate to the backup and restore script directory. By default this is the Trillium repository server bin directory. For example, C:\Program Files\Trillium Software\MBSW\17\bin\
Run the following backup script:
.\backup.ps1
When prompted, supply the location where you want to create the back up, and specify the locations of the server and repository installation:
Enter the path for the backup directories. To specify the current directory, press Enter without specifying a path.
Enter the path for the Repository Server location. For example, C:\Program Files\Trillium Software\MBSW\17
Enter the path for the Repository location. For example, C:\ProgramData\Trillium Software\MBSW\17\Data
To restore a repository on Windows
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.
As administrator, open a Windows PowerShell command line window.
Navigate to the backup and restore script directory. By default this is the Trillium repository server bin directory. For example, C:\Program Files\Trillium Software\MBSW\17\bin\
Run the following restore script:
.\restore.ps1
When prompted, supply the location where you created the backup directories, and specify the locations of the server and repository installation:
Enter the path for the backup directories. To specify the current directory, press Enter.
Enter the path for the Repository Server location. For example, C:\Program Files\Trillium Software\MBSW\17
Enter the path for the Repository location. For example, C:\ProgramData\Trillium Software\MBSW\17\Data
Note: The repository must be restored to the exact location from which the backup was made.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:
From the Start menu, click Trillium Software > TSS 17 > Repository Administration Command Promptto open the Repository Administration Command Prompt.
Log in using the Trillium repository administrator credentials. For Windows authentication, provide the fully qualified Windows user name (for example, tssadmin@domain.com).
Press Enter.
When you are prompted for a repository name, type _control: and press Enter.
At the prompt _control:, enter
activate
then press Enter. You see the message: Successfully activated license.Type
exit
to close the command prompt.