Skip to main content

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 IDjjideenschmiede/jetbrains-hub-backup-data
MarketplaceJetBrains Hub Backup Data
Source codeGitHub

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.

warning

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​

InputRequiredDescription
Hub Base URLYesBase URL of the instance. The recipe appends the path /hub/api/rest/settings/backupData to this URL.
Hub Permanent TokenYesPermanent token for authentication with the Hub API
Hub Target VersionYesTarget version for the backup, for example current or a specific version number

Error Messages​

HTTP statusMeaning
400Bad request, usually an invalid target version
403Authentication failed — check the permissions of the token
404Endpoint not found — check the base URL
500Server 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.