JetBrains Hub Backup Data
The JetBrains Hub Backup Data recipe triggers a backup of the data of a JetBrains Hub instance using the Hub REST API. Combined with a schedule trigger, backups can be started regularly from TeamCity.
| Recipe ID | jjideenschmiede/jetbrains-hub-backup-data |
| Marketplace | JetBrains Hub Backup Data |
| Source code | GitHub |
How It Works
The recipe sends a request to the endpoint /hub/api/rest/settings/backupData of the Hub instance and passes the configured target version. If Hub confirms the request, the build step ends successfully and logs whether the backup is still in progress or already completed.
The backup is triggered asynchronously. A successful build step means that Hub has started the backup — not that it has completed. Check the Hub administration to verify completion.
Installation
The recipe requires TeamCity 2025.03 or later. How to add it to a build configuration is described under Using a Recipe.
Inputs
| Input | Required | Description |
|---|---|---|
| Hub Base URL | Yes | Base URL of the instance. The recipe appends the path /hub/api/rest/settings/backupData to this URL. |
| Hub Permanent Token | Yes | Permanent token for authentication with the Hub API |
| Hub Target Version | Yes | Target version for the backup, for example current or a specific version number |
Error Messages
| HTTP status | Meaning |
|---|---|
400 | Bad request, usually an invalid target version |
403 | Authentication failed — check the permissions of the token |
404 | Endpoint not found — check the base URL |
500 | Server error in Hub |
Notes
-
A trailing slash in the base URL is ignored. The timeout is 30 seconds for connecting and 60 seconds for the request.
-
The input field for the token is a text field. Store the token as a parameter of the type Password and reference it in the input field, so that it is not kept in plain text in the configuration.
-
The TeamCity agent must be able to reach the Hub instance over the network.