r/devops • • Sep 20 '26

Discussion Do you really test your backup

Hi šŸ‘‹

It's all in the title… Do you really test your backup restores regularly ?

If so, how often ?

If not, why ? What's the biggest thing holding you back ?

27 Upvotes

61 comments sorted by

81

u/CorpulentPutrescence Sep 20 '26

If you think you have backups and you haven't tested restores, you don't have backups.

3

u/Forgotthebloodypassw Sep 20 '26

And if you don't have one set of backups geographically removed from the main system, it's not much use.

4

u/DoStopBelieving Sep 20 '26

No it's still useful; just not for geographically based outages. The backups can still be used to assist with offline DB operations and restoring data.

Also if smaller parts of the DB are corrupted but don't merit a full failover/restore then the backups can help to fix the data - that's a real scenario I encountered.

That said it is still much better to have the backups replicated to a geographically separate location.

1

u/Forgotthebloodypassw Sep 20 '26

True enough.

I worked for a small publisher in the early 1990s and we got burgled. The bastards stole every computer in the building and the designer was supposed to backup the data and take the hard drive home daily, but wasn't doing that. We had to work two 100-hour weeks to make up the damage and I've never forgotten it.

Backups are like running out of toilet paper - if you need it and it isn't there, things will get ugly.

1

u/Benjamin-7933 Sep 20 '26

And how often do you do it?

6

u/CorpulentPutrescence Sep 20 '26

GitHub Actions and workflows to test the restore from scratch and summarize the outcome.Ā 

3

u/BlueHatBrit Sep 20 '26

Every backup gets tested, otherwise it's not a proven backup.

2

u/bilingual-german Sep 20 '26

Try to automate it as much as possible. With Claude or Codex that should not take too long and then you can test your backups as much as you need.

I think, trying to restore every system once a year would be good test. If you have systems which are changing, do it more often. You really don't want to loose any production data and each passed test gives you peace of mind.

2

u/TheOneShorter Sep 20 '26

And yet, many haven’t been tested

-2

u/Pretend_Listen Sep 20 '26

False, it's an untested backup

18

u/d2xdy2 DevOps/SRE Sep 20 '26

Per compliance obligations I’ve got to demonstrate a full backup restore every quarter. I’ve never had to exercise it in anger, but knowing that I can do it and running through it regularly is nice.

0

u/Benjamin-7933 Sep 20 '26

Fair enough, but once a quarter, isn't that a bit thin? If they get compromised on day 10, how do you find out? I'm thinking of a ransomware that poisons your backups first.

2

u/patsfreak27 Sep 20 '26

We run daily backup integrity checks for this reason. Loads the RDS backup into dynamodb and checksums a fixed table

1

u/Benjamin-7933 Sep 20 '26

That exactly what I'm building. Nice šŸ‘

1

u/patsfreak27 Sep 20 '26

Great! Add alarms or the checks are worthless

I'm a huge fan of checksum integrity checks, pretty underutilized in my experience

5

u/d2xdy2 DevOps/SRE Sep 20 '26 edited Sep 20 '26

I think at the end of the day you’ve gotta balance threat modeling and protections against the broader set of shit you gotta deal with.

Not impossible that an outside actor somehow gets access to my databases, but I’d have alarm bells going off just about every step of the way. More regulatory compliance obligations.

Worst comes to worst we have offsite dumps and binlogs. My contracted RPO is 24 hours, so any data loss between the last valid offsite and when an attack happens is more than fine. Annoying maybe, but I’m not getting sued or owing anyone money.

Also, this business about ā€œwhat if it happens on day 10ā€. It’s not that I do quarterly backups, it’s that I do quarterly full prod restores.

I take a full backup every few hours and take incrementals every few minutes. I can exercise this at will if I wanted.

1

u/mok47 Sep 20 '26

I’m curious what’s a quick summary of how got to where you are now career wise? I’m in infra eng and thinking about doing something similar in the future

3

u/d2xdy2 DevOps/SRE Sep 21 '26 edited Sep 21 '26

I wouldn’t know where to really start. I came up through a media enterprise doing SWE right when DevOps really took off. Took that expertise to smaller startups after a few years. Road one of them into its own enterprise scale. I left that shithole and fell into my current role/situation. I’ve run the Infra/Platform/SRE department a few times.

I’m a fairly zealous advocate for the end user/customer. If the experience is ā€œbad for my grandmaā€ then I’m pretty motivated to fix it. I take a lot of pride in my work and the outcomes. I’m also mindful of everyone’s budgets and contracted requirements. I’ll give you the best you can continue to afford, but not more than you really need.

I often work very closely with the security office/CISO about SOC2 or other types of compliance stuff. You wouldn’t believe the shit that having banks as customers comes with.

Somehow I’ve survived every layoff at every company I’ve worked at, though I’ve quit after a few of them.

9

u/Powerful_Attention_6 Sep 20 '26

If you think redundancy is backup, you don't have backups
If you think RAID is back, you don't have backup
If you think backup on the same computer or on the same disk is backup, you don't have backup

For the really crucial backups, if you think you have backup but it is in the same building, you don't have backups

3-2-1 backup rule has emerged as a consensus how do to a proper backup

1

u/Benjamin-7933 Sep 20 '26

The issue isn't so much the definition as it is how you handle this at home or at your company

1

u/OkReason5170 Sep 26 '26

Redundancy definitely gets mistaken for backup way too often. Until you actually test restoring from it, youre mostly just assuming youre protected.

2

u/Invenitive Sep 20 '26 edited Sep 20 '26

We do per-tool restore tests once a quarter, and catastrophic system collapse restore tests once a year.

On a nearly daily basis snapshot and DB restoral also happens in the test environment for various tools, but not the level of complete backup and restoral we do for our formal tests.

2

u/suns____ Sep 20 '26

If you don’t test your backups, you don’t have backups.

Backup restores should be tested quarterly at the very least imo.

If you don’t test your backups, how can you effectively communicate and deliver on an SLA and an SLO?

If leadership doesn’t give you time to test backups, get it in writing and carry on. Good leadership should let you test, especially if you put it in terms they understand, potential lost $$$.

1

u/Benjamin-7933 Sep 20 '26

Best answer, thanks

2

u/ConstantOk4042 Sep 20 '26 edited Sep 20 '26

Yes, we test it. Depending on the importance of the system, it's tested every 6 months to a year. It's not even an obligation from the business either, have you ever been in an catastrophic prod state, man? It's incredibly stressful.

Test DR, document it, automate it to the point it's down to a single click of a runbook/pipeline/script, and when Prod really does fail - and it will - you can breate easy.

1

u/Benjamin-7933 Sep 20 '26

That's exactly the point. I'm working on an automation solution. That's why I need feedback on what people are actually doing. If everyone is doing their checks properly, regularly, and thoroughly, then I don't have a problem.

2

u/Resident_Guava5620 Sep 21 '26

Backup folder on the same server as the data. Swiss Army knife reliability. Never failed a restore, mostly because we've never run one.

2

u/Benjamin-7933 Sep 21 '26

LoL best way for no error šŸ˜‚

1

u/Benjamin-7933 Oct 07 '26 edited Oct 07 '26

Thank you to everyone who participated in this thread; it was much more helpful than I expected

Here’s a rough summary of what you’ve described: about one-third perform automated restores (GitHub Actions, a nightly restore plus a few queries, RDS checksums), one-third perform a manual test every quarter or every year because compliance requires it, and the rest indicated that there is no set schedule

I asked this question because I’m currently developing this tool and needed to know what people actually do before launching it. RestoreProof: a runner that you install on your end retrieves the latest backup, restores it to a disposable container, runs tests (schema presence, number of rows within calibrated limits, a test query, an LDAP connection, HTTP, canary file), and returns a report signed with Ed25519. Only the results leave your network—never the data or confidential information. Postgres, MySQL, MongoDB, and LDAP are supported as of today. Free offer—no credit card required.

The tool has been up and running for several weeks now, and we have a few users who seem satisfied with it. If you’re using one of the ā€œdo-it-yourselfā€ setups described above, I invite you to try it out with a free account and, if anyone wants to try it, share your feedback, say so and I'll post the link

5

u/ttonk Sep 20 '26

We have daily restores due to needing an environment with near production data. Other than that, we have regular refreshes of other environments, so we get to test our processes regularly (on-demand but at worst quarterly).

1

u/uncertia Sep 20 '26

I had Claude set up a weekly restore test for one of our services. Granted the database is super small but it works great - just a GitHub workflow that runs weekly, grabs the latest backup from s3, restores it, then runs some tests on it once it’s online.

Bonus points it documents it all to a PDF and uploads it to Vanta for the SOC II / ISO evidence so I don’t have to worry about it during audit time.

1

u/Benjamin-7933 Sep 20 '26

Very interesting, essentially a part where you upload for SOCII !

2

u/navlio Sep 20 '26

worth timing it while you're doing one. ours restored fine but took most of a working day, and everyone upstream had been quoting an hour to customers without ever checking

2

u/TheGraycat Sep 20 '26

Yes / the business isn’t paying for a backup service, they’re paying for a recovery service.

2

u/Jmckeown2 Sep 20 '26

Sooooo, I used to support companies running software from the company I worked at…. I can tell you how many times they got into a ā€œthis is when we need to restore from backupā€ only to find the ā€œbackupsā€ were complete shit. I’ve learned to IaC a strategy where ā€œimportā€ backups is part of the process. Whether that be Keycloak realms, or confluence db/attachments or Nexus blob volume snapshots….

1

u/bgeeky Sep 20 '26

You need to be testing all failures.

1

u/1saltypistachio Sep 20 '26

Yes, we have to be able to restore from backups due to regulations. Part of full regression we do each sprint and it must pass.

1

u/kasparhaust Sep 20 '26

Once a night, a restore of the backup gets checked, that at least the most basic queries are able to resolve with the latest backup. If there is an issue, a notification pops in, to check what's going on.

1

u/Tasty-Celebration-47 Sep 20 '26

You should automate this

1

u/DoStopBelieving Sep 20 '26

The companies and projects I've worked on often have no backup testing schedule. They test the process when it's setup - often outside of production - and leave it at that.

Best practice is to regularly test backups, and to specifically make sure they work in production. Even better practice, if the financials work out, is to have full active/active redundancy and a tested failover process in production in addition to tested backups.

1

u/sfltech Sep 20 '26

Once a quarter. After every major change. And did some systems monthly.

1

u/fuuman1 Sep 20 '26

Yes I do.

1

u/redrabbitreader Sep 20 '26

I suppose it depends on your volume of backups etc. - we do random sampling restore every day with a full recovery test at least once a year.

1

u/nemofbaby2014 Sep 20 '26

at work yes we test weekly in my homelab yolo

1

u/spectre013 Sep 20 '26

We exercise our backups every 2 weeks. Our dev and production systems are air gapped, so we have to restore production data constantly

1

u/HighKingLemur Sep 21 '26

backups are tested in production

1

u/Leasj Sep 21 '26

Yes tested quarterly

1

u/bgeeky Sep 21 '26

I work on enterprise applications. We test install back and restore on every commit.

1

u/TheGambler191 Sep 21 '26

Yes on a quarterly base. Not only that we know the backups are valid, we also know how t restore them.

1

u/Mutjny Sep 21 '26

I'd be dollars to donuts 3/4ths of the people saying "test your backups" actually don't.

1

u/blacklig Sep 21 '26

Yes of course, it's so easy to set up and there's absolutely no reason not to. Any good ISMS will require and document this process.

1

u/stobbsm DevOps Sep 22 '26

Of course. They aren’t backups until you test them, they are hopes.