r/devops • u/Benjamin-7933 • 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
81
u/CorpulentPutrescence Sep 20 '26
If you think you have backups and you haven't tested restores, you don't have backups.
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.
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
4
u/someprogrammer1981 Sep 20 '26
Nah it's fine.
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 $$$.
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.
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.
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.
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.