Automate TC server backup process

The TC GUI does not provide a automated way to do a backup of the file system and the database. Is there a way
to automate the backup process via a script?

Comment actions Permalink

Yes, we have MaintainDB tool for that.


Comment actions Permalink

you can also do this via the REST API

as per the documentation:

Data Backup

Start backup: POST http://teamcity:8111/httpAuth/app/rest/server/backup?includeConfigs=true&includeDatabase=true&includeBuildLogs=true&fileName=<fileName> where <fileName> in the prefix of the file to save backup to
Get current backup status (idle/running): GET http://teamcity:8111/httpAuth/app/rest/server/backup

I am currently writing a .NET API wrapper that will make this type of task very easy to do


Please sign in to leave a comment.