Back up and restore Tricentis File Service

Tricentis recommends that you back up Tricentis File Service regularly. You can use your backup if you migrate Tricentis Tosca to a new machine, or if you run into issues with your data.

Only users with Windows access and delete rights can back up and restore Tricentis File Service.

Create the backup

How many backups you need to create depends on your setup:

  • If you have multiple projects that use the same Tricentis File Service instance, you only need to create one backup.

  • If you have multiple projects that use different Tricentis File Service instances, you need to create a separate backup for each instance.

Backup process

To create a backup, follow the steps below:

  1. Stop Tricentis File Service. If the service is running and Tricentis Tosca writes to the service while you create your backup, the backup may become corrupted.

  2. Back up fileService.db, which contains the metadata. By default, this file is located at C:\ProgramData\TRICENTIS\FileService\fileService.db.

  3. Back up the actual files. The files are in the storage directory that you specified in the Tricentis Service Configuration.

  4. Start Tricentis File Service.

Restore data

To restore your data from a Tricentis File Service backup, follow the steps below:

  1. Stop Tricentis File Service.

  2. Move the backup of the database fileService.db to the default location C:\ProgramData\TRICENTIS\FileService\fileService.db.

  3. Move the backup of the actual files to the storage directory that you specified in the Tricentis Service Configuration.

  4. Start Tricentis File Service.

Restore Tricentis File Service after migrating Tricentis Tosca to new machines

After you have installed Tricentis Tosca and Tosca Server on the new machines, make sure to restore your data in the right order:

  1. Enable Tricentis File Service.

  2. Restore the data from the Tricentis File Service backup.

  3. Restore the data from the Tricentis Tosca repository backup.