The real cost and risk of in-house backup scripts
SUMMARY
- An in-house (DIY) backup script takes one sprint to build, then needs maintenance for as long as it runs.
- Platforms are retiring the credentials backup scripts use: Bitbucket removed app passwords in 2026, and Azure DevOps retires global personal access tokens (PATs) in January 2027.
- The 7 hidden costs range from API changes and silent failures to audit evidence and knowledge gaps.
- The 6 warning signs show whether your DIY backup script has already become a maintenance project.
On July 28, 2026, Bitbucket Cloud stopped accepting app passwords. Any backup script that still used one to authenticate lost access to the API and to Git over HTTPS that day. Atlassian had announced in 2025 that API tokens would replace app passwords, and ran scheduled brownouts for 7 weeks before the cutoff. Even with that much notice, a failed backup doesn’t interrupt anyone’s daily work, so the problem can stay hidden until someone needs a restore and finds that the newest backup dates from before the cutoff.
Script upkeep is the part of a DIY backup that rarely makes it into the plan. Writing the script is a short, visible task, often done in a single sprint. Keeping it working as platforms change their APIs and authentication methods is a separate job with no end date, and it rarely has a budget line of its own.
In-house backup costs more after launch than before it
A backup script’s cost comes in 3 layers, and only the first one shows up in a plan. The second is spread across your team’s time, and the third stays hidden until someone needs a restore.
|
Build cost is the one in the plan
This layer covers one sprint of work: someone writes the script, the team reviews it, and it gets approved once.
|
|
Run cost lasts as long as the script runs
This layer covers monitoring, patches after platform changes, test restores, storage and the on-call time when a job fails at night. None of it is a single task, so none of it gets a single estimate.
|
|
Risk cost shows up at restore time
This layer covers the backup that turns out incomplete or months old, the downtime while someone writes recovery code, and the audit finding when you can’t prove the data comes back.
|
Put numbers on all 3 layers
You can add up the full cost with one formula:
DIY backup cost = build hours × hourly rate + yearly maintenance hours × hourly rate + opportunity cost + cost of downtime
Each variable is yours to fill in. Opportunity cost is the product work those maintenance hours would have gone to. Downtime cost depends on how long your teams can’t ship, so it’s worth estimating before an incident rather than during one.
Rather than a precise total, the formula shows that the build is the smallest term, and that most of a script’s cost comes after it goes live.
→ Read more about the real cost of DevOps backup scripts
→ Compare your own Git backup script with repository backup software
2026 showed how fast platforms can break a backup script
In 2026, Bitbucket broke backup scripts outright. GitHub and Azure DevOps set dates for changes that will break any script nobody updates, and GitLab follows a fixed yearly cycle of breaking changes. None of these was an outage. Together, they turned changelog reading into a recurring task.
Bitbucket Cloud removed app passwords on July 28, 2026
Before that, Atlassian ran brownouts from June 9 to July 27, 4 times a day, growing from 15 minutes to 5 hours. During each window, API requests authenticated with an app password failed with HTTP 401, and Git operations over HTTPS failed with HTTP 410. The replacement, API tokens with scopes and an expiry date, adds a rotation schedule someone has to own.
GitHub started the countdown on its oldest API version
On March 10, 2026, GitHub published REST API version 2026-03-10, the first calendar version with breaking changes. Version 2022-11-28 stays supported for at least 24 months, and GitHub’s documentation lists its end of support as March 10, 2028. After that, requests that specify it get 410 Gone, and requests without the X-GitHub-Api-Version header move to the next oldest supported version, so a script’s behavior can change without a single code change. It’s a migration window, not an outage, but someone still has to plan and test it.
Azure DevOps global PATs stop working on January 27, 2027
In Azure DevOps Services, global personal access tokens (PATs) work across every organization a user belongs to. Azure DevOps Server isn’t affected. Microsoft first announced a block on creating global PATs from March 15, 2026, and a shutdown on December 1, 2026. It then dropped the creation block and pushed the shutdown back by 8 weeks. A plan that changed twice means a script tracking it has to be checked twice, too.
GitLab bundles breaking changes into one yearly release
Minor releases ship monthly, while backward-incompatible changes wait for the major release, scheduled each May by default. That’s predictable, but it still means a yearly review of the deprecations list against every call your script makes.
Four small changes add up to a standing job
Every one of these was announced in advance.
The cost lies elsewhere: someone has to read 4 changelogs, map every change to the script, and ship the fix before the deadline, year after year.
The costs below run from the daily work of keeping a script alive to the business risk it carries. Few of them ever appear as a line item.
Tracking every API and auth change
Someone has to read the changelog of every platform you back up, decide what affects the script, patch it, test it and redeploy. In 2026, the changes hit authentication as much as endpoints: Bitbucket app passwords went away, and Azure DevOps global PATs follow in January 2027. Every new token type brings its own scopes, expiry dates and rotation schedule.
In practice, in-house backups tend to break quietly when an API changes, and the gap surfaces only when someone needs a restore.
The same upkeep applies if you run Bitbucket on your own servers. Atlassian’s DIY Backup for Bitbucket Server 4.0 and later is a documented method rather than a finished tool: your team writes the backup scripts with Atlassian’s REST API and your own database and file system snapshot tools, then maintains them like any other script.
→ Read more about Bitbucket DIY Backup and its alternatives
Silent failures and the monitoring you build yourself
A backup script can fail in 2 ways that look alike from the outside. It can exit cleanly after backing up less than it should, for example when an expired token returns an empty list. Or it can crash with an error that lands in a log nobody reads.
Catching both takes alerts on failure, retries, a last-success timestamp per repository and a check for sudden drops in backup size. That’s a monitoring project of its own, with its own maintenance, built on top of the script it watches.
→ See why monitoring is the hardest part to build into your own script
Missing metadata and a restore script nobody wrote
git clone --mirror copies commits, branches and tags. It doesn’t copy issues, pull requests, review comments, wikis or pipeline settings, because those live in the platform’s API or, for wikis, in a separate repository. Each one needs more API calls, a storage format and its own error handling.
A copy also isn’t a restore. To bring data back, you need a second script that recreates repositories, re-imports issues and links pull requests to their commits. In practice, that script often gets written during the incident, under time pressure.
→ Read why git clone and a backup script aren’t enough
Rate limits, longer backup windows, growing storage
A script written for a few dozen repositories behaves differently at several hundred. API rate limits throttle the metadata calls, the backup window stretches into working hours, and nightly full copies fill storage faster than planned. Fixing that means incremental logic, retention rules and parallel jobs, which is closer to a rewrite than a patch.
Coverage is the quieter problem. New repositories join the backup only when someone adds them to the list, so a gap opens every time a team creates a project and nobody updates the script.
→ Compare scripted, CI-based and dedicated ways to automate repository backups
Securing the backup itself
A backup script needs broad read access, usually through a long-lived token with organization-wide scope, stored in a config file or a CI variable. That token is one of the most valuable credentials you hold. The copies need protection as well: encryption with keys you control, immutable storage so nobody can alter or delete them, and a location outside production.
If the backup sits inside the same permission perimeter as production, one compromised account can reach both. The backup then fails at the exact moment it should help.
Audit evidence assembled by hand
When an auditor reviews backup controls under SOC 2, ISO 27001, NIS2 or DORA, the question that matters is whether your data comes back. A successful backup job doesn’t answer it. A logged, successful restore does.
With a script, that evidence is a mix of cron logs, screenshots and a restore test someone ran months ago, collected by hand before each audit. Each audit cycle repeats the work.
Knowledge locked in one engineer’s head
Most backup scripts have one author who knows why a retry is set to 3, which repositories are excluded and where the keys live. When that person changes teams or leaves, the knowledge leaves too, and the next platform change lands on someone reading the code for the first time. Documentation and handover help, but they’re one more maintenance task nobody budgeted for.
6 signs your in-house backup is already costing you
If 2 or more of these apply to your setup, the script is already a maintenance project, and the next platform change will make it a bigger one.
Check them against the script you run today, not the one you planned to write.
| Warning sign | Why it costs you |
|---|---|
| Your scripts still rely on an authentication method or API version that a platform has deprecated or scheduled for retirement | Deprecated credentials and API versions stop working on a set date, and that date can move. In 2026 alone, Bitbucket removed app passwords and Azure DevOps moved the shutdown of global PATs, so any script that depends on something a platform has flagged for retirement is already working against a deadline. |
| Nobody on the team can name the date of the last successful test restore | A finished backup job only proves that a copy was written. Until you restore from it, you can’t tell whether that copy is complete, current and usable, and an incident is the worst time to find out. |
| The backup covers code, but not issues, pull requests or wikis | A repository restored without them gives the team its code back, but not the decisions, reviews and documentation around it. Rebuilding that context by hand is slow work, and parts of it are usually gone for good. |
| A failed job alerts no one, or the alert lands in a channel nobody reads | The script’s only real monitor is then the next restore attempt. Every day a failure goes unnoticed makes your newest good backup one day older. |
| Only one engineer understands how the script works and where its credentials live | That person is a single point of failure for your backup, just like a single storage location would be. A vacation, a team change or a resignation is enough to leave the next platform change without an owner. |
| You can’t hand an auditor proof of recovery without screenshots and an afternoon of log digging | That work returns with every audit cycle and pulls an engineer away from product work each time. The evidence is also only as complete as the logs the script happened to keep. |
The first sign is the cheapest to check. Search your scripts and CI variables for the credentials they use and the API version they call, and you’ll know how exposed you are to the changes listed above. The second takes one afternoon: restore a single repository, with its issues and pull requests, to a test location and see what comes back.
Two habits close the most common gaps, whatever tool you use. Alert on the time since the last successful backup, not only on errors, and alert when a backup is suddenly much smaller than the one before it.
How GitProtect takes the maintenance off your team
GitProtect is backup and Disaster Recovery software for DevOps and SaaS tools. It protects GitHub, GitLab, Bitbucket and Azure DevOps, as well as Jira, Confluence and Microsoft 365, from one console.
Instead of a script you maintain by hand, your backups run as scheduled jobs that GitProtect monitors for you. The table below compares how a DIY script and GitProtect handle each of the 7 hidden costs.
| Cost | With an in-house script | With GitProtect |
|---|---|---|
| API and auth changes | Your team reads changelogs, patches and redeploys | GitProtect adds support for new authentication methods before the platform’s deadline. You swap the token once in the console and get an alert if it stops working. |
| Silent failures | Monitoring is a separate project you build | Job dashboard, email, Slack and webhook notifications, daily SLA summaries and a Remediation Center |
| Metadata and restore | Code only; restore needs a second script | Repositories with issues, pull requests, pipelines and wikis; point-in-time, granular and cross-over restore; free test restore to a sandbox |
| Scale and coverage | Manual repo lists, rate-limit tuning | Auto-discovery of new repositories, schedules as often as every 10 minutes, event-driven backups via webhooks or REST API |
| Backup security | Broad token in a config file, storage you secure | AES-256 encryption with your own key (BYOK), write once, read many (WORM) immutable storage, replication across storage locations |
| Audit evidence | Logs and screenshots collected by hand | Audit logs and exportable compliance history; GitProtect is SOC 2 Type II and ISO 27001 certified |
| Knowledge | Lives with the script’s author | Backup policies, schedules and restore history in one console the whole team can read |
You keep control over where the data lives. Store backups in GitProtect Cloud or in your own storage, such as AWS S3, Azure Blob Storage or an on-premises server, and keep copies in several locations to follow the 3-2-1 rule. If you ever stop using GitProtect, you can restore your data to a local machine or to storage you manage.
For your engineers, the hours that went into keeping a script alive go back to product work.
→ Read the broader case for backing up your DevOps stack
Retire the script, keep the protection
A backup script is only finished on the day you write it. Every platform changelog after that adds work to it, and 2026 added plenty.
Book a discovery call to walk through your current scripts and see how GitProtect would cover the same repositories.


