I want to upgrade Teamcity 9.16 to 10. I want to proceed with manual back-up and then restore it . I am using external database - mysql . i want to upgrade database as well. How should i proceed with this?
TeamCity documentation states that
Backups created with TeamCity 6.0+ can be restored using the same or more recent TeamCity versions
so you should be able to create a backup in TC9 and then restore it in TC10.
The simplest way to create a backup is to navigate to the Administration | Backup
section in the server UI to specify some parameters and run the backup, as described here.
The other options are
maintainDB
command-line tool — it is basically the same option, as backup via the UIwhich are described on the corresponding page of the TC documentation.
Restoring data from backup is performed using the maintainDB
tool, basically the steps for your case are:
lib/jdbc
in new data directoryuse the maintainDB
utility located in the <TeamCity Home>/bin
to run restore
command:
maintainDB.[cmd|sh] restore -A <absolute path to the Data Directory> -F <path to the TeamCity backup file> -T <absolute path to the database.properties file>
More details could be found on the corresponding page.