Migrate teamcity server from one host to other

Hi,

I had a question regarding migrating teamcity server from one host to another. I understand that I'll have to do the following steps:

1. Create a backup of the teamcity instance running on the old host

2. Install the same version of teamcity on new host

3. restore the backup on the new host and change the server url at places.

I wanted to know, if this process will also copy over the current list of users that were registered with the old host. Or would I need to setup the users once again on the new host?

Thanks

3 comments

Hi,

The first three steps looks right (use the maintainDN tool for backup and restore, as described at http://confluence.jetbrains.net/display/TCD5/Backing+up+TeamCity+Data ).
Do you use internal or external database? In case of external one, is database server installed on the same host or not? If your database server is migrated too, you will have to write a new 'database.properties' file BEFORE restoring from the backup.

As of users - all should be OK, all user data are stored inside the database.

Best regards,
Leonid

0

Hi Leonid,

Thanks for the details. We use internal database, so would we need to do anything specific to migrate the db? or would that get migrated with the backup?

Regards,

Sangeeta

0

Hi,

in case of internal database the simplest way to migrate is:

1) shut down the TC server;
2) copy all files to the new location;
3) start it up from the new location;
4) correct the URL.

The other way is to use the maintainDB tool:

1) shut down the TC server;

2) backup all using maintainDB;
3) restore all into the new location using maintainDB;

4) start it up from the new location;
5) correct the URL.




Best regards,
Leonid
0

Please sign in to leave a comment.