The Simplest Way to Make Teamcity and Veeam Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Using teamcity and veeam together links your build pipelines with your data backup system. This setup lets teams trigger snapshots before big releases and test backup restores during builds. Build servers hold critical source rules, build history, and test logs. If a release breaks a database, you need a clean backup ready to go. By linking your build tool to your backup software, you automate safety checks. Every deploy can verify that a fresh snapshot exists before changing live apps. How t

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Using teamcity and veeam together links your build pipelines with your data backup system. This setup lets teams trigger snapshots before big releases and test backup restores during builds.

Build servers hold critical source rules, build history, and test logs. If a release breaks a database, you need a clean backup ready to go. By linking your build tool to your backup software, you automate safety checks. Every deploy can verify that a fresh snapshot exists before changing live apps.

How teamcity and veeam share keys and data

In a standard setup, the build agent sends web requests to the backup server. First, the build runner logs in using a set role and key. Next, the backup server checks if that role can run the requested job. Then the backup tool takes a snapshot or starts a test restore.

During this flow, the build agent polls the backup server for status updates. The backup tool sends back job status messages until the task finishes. Once the backup is safe, the build pipeline moves to the next deploy step. If the snapshot fails, the pipeline stops right away to protect live data.

This workflow also works in reverse for disaster testing. A nightly build job can ask the backup server to spin up a test machine. The build agent then runs smoke tests against that restored machine to check data health. When the tests pass, the pipeline tells the backup server to delete the test copy.

Common failure modes and how to scope roles

Many teams make the mistake of using one shared admin account for all build jobs. If a bad actor reads that broad key, they can delete all company backups. Shared accounts also make it hard to see which pipeline triggered a heavy backup job.

Long-lived keys stored inside build variables create another big risk. Developers who can edit build steps might print those secret keys into plain text logs. Unlogged requests between build agents and backup servers also leave security teams blind during audits.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, create a narrow role on the backup server for each project. Give a deploy pipeline the right to start backups, but never the right to delete them. Give a test pipeline the right to restore data only to isolated test networks. Rotate keys often and restrict network paths so only trusted build agents reach the backup API.

Protecting build server state with scheduled snapshots

Beyond pipeline triggers, you also need to back up the build server itself. The central build server stores project settings, build queues, and artifact files on disk. It also relies on an external database to track build results and user roles.

If you back up the disk and database at different times, the state will not match. You should pause the build queue for a moment or use database-aware snapshot tools. This ensures the file system and the database match when you restore the server.

Test your build server backups every month on a separate host. Make sure that restored build agents can still log in and run basic tasks. Also check that sensitive fields like user emails or card numbers in test logs stay safe. Masking rules can rewrite matched fields in results so test data stays clean.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Can a build job trigger a backup before deploying code?

Yes, a build step can send an API call to start a snapshot job. The pipeline waits for a success message before it pushes new code to production.

Should build agents have full admin rights on the backup server?

No, build agents only need rights to start specific jobs or read job status. Never give a build agent the right to delete backups or change server rules.

How do we back up the build server without losing active data?

Use a backup job that pauses disk writes for a few seconds during the snapshot. Always back up the build database and the data directory on the same schedule.

The query runs. The emails stay hidden.