TeamCity artifact backup
Is there a way to just backup artifacts that are part of a pinned build? It becomes an issue that if TeamCity is your main holder for artifacts and you pin that build, that if you lost that server you lost your artifacts even though they may be located on the installed server it would be nice to have the ability to restore and have them available again via the UI.
Please sign in to leave a comment.
Hello Jason,
What database do you use?
If you use HSQLDB, internal database, artifacts are stored in the files residing directly in <TeamCity Data Directory>/system/artifacts folder.
Please also see corresponding section in our docs http://confluence.jetbrains.net/display/TCD5/TeamCity+Data+Backup.
Kind regards,
Marina
I realize this is an old thread, but I'm running TeamCity 2022.10 and trying to figure out how to backup only artifacts associated with pinned builds. Is there any obvious/simple/supported way to do this? Presumably I can use the REST API to build a script that compiles a list of pinned builds, and then backs up only the artifacts associated with those builds. I'm hoping that there's a simpler approach that has already been tried, or an existing script available to do this.