Restore TeamCity data into a newer TeamCity version
I am trying to understand if it's possible to restore the TeamCity data into a newer version of TeamCity server.
We are performing backups of the TeamCity Data Directory.
The rest of the data is stored in:
1. MySQL DB
2. S3 (build artifacts)
Does the following restore procedure make sense:
1. Backup TeamCity Data Directory
2. Shutdown TeamCity server
3. Install new TeamCity server *higher version* on another machine (because we want to keep the working Server as a backup)
5. Restore TeamCity Data Directory
6. Connect to existing MYSQL DB
7. configure AWS S3 Artifact Storage plugin to work with the existing S3 folder
10x,
Alex
Please sign in to leave a comment.
Hi Alex,
We have instructions, including the note that restoring from any older version after 6 should work, on our documentation here: https://confluence.jetbrains.com/display/TCD10/Restoring+TeamCity+Data+from+Backup
The procedure looks correct to me, but with a couple caveats:
-Connecting to the database is performed through the configuration in the data directory. If you restore it, then it should be maintained and not needed to be configured again.
-Once you have upgraded, downgrade is only possible from a backup, so keeping the "older" server will need it to be upgraded to work as a backup server, or else work with old data. Also notice that build agents will downgrade/upgrade as required, so that could take a while for them to be brought back up.