Taking frequent backups and the ability to restore them when needed is an essential requirement for any production system. In this section, we will talk about some of the strategies to back up and restore TeamCity data.
Through Administration | Backup, we can take a backup of almost all the server-related files and data. The page to create backups from the TeamCity server UI is shown in the following screenshot:
We can change the Backup scope option to include only Basic Data—the database and server settings, projects, build configuration, and plugins. This leaves out the build logs and personal build changes from the backup. We can choose All except build artifacts to back up all the data. There is also a Custom option available, where we can pick and choose the data to be included in the backup.
Clicking on Start Backup starts the backup process and creates the appropriate backup file in the location specified.