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?

3 comments
Comment actions Permalink

Yes, we have MaintainDB tool for that.

Michael

0
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

0

Please sign in to leave a comment.