Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
Automate TC server backup process
Permanently deleted user
Created
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?
Yes, we have MaintainDB tool for that.
Michael
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
Thank you!