What Happens If Your VPS Dies? My Disaster Recovery Plan
Cloud

What Happens If Your VPS Dies? My Disaster Recovery Plan

"The server died" isn't one scenario, it's at least five, and they don't require the same response. A disk failure and a compromised box both end with the same VPS gone, but only one of them means your backups might be compromised too. Here's the plan for each, written down before any of them happen, not after.

Published September 24, 202611 min readUpdated Sep 6, 2026

Written by · Full-Stack Agentic AI Software Engineer — AI Agents, Automation & Revenue Systems for GTM/RevOps teams

In brief

What's the actual plan if my self-hosted VPS goes down or is destroyed, and does the response differ depending on why it happened?

Yes, and treating every server loss as one generic scenario is the mistake this plan exists to avoid. A provider outage is usually temporary and needs patience plus a status page, not a rebuild. A disk failure is permanent and needs a full restore onto new hardware, but your backups are trustworthy because nothing about the failure touched them. Accidental deletion needs the same restore, but only after confirming exactly what was deleted and when, so the restore point is the right one. A compromised server needs a rebuild from scratch on new infrastructure with rotated credentials, because you can no longer trust anything on the old box, including whether its own backups were tampered with before you noticed. Account suspension is the strangest one: the server may be technically fine but unreachable, and the plan depends entirely on whether you have an offsite backup independent of that same provider account, which is exactly the case 3-2-1 backup exists to cover.

  • Provider outage: usually temporary, resolved by the provider — the plan is monitoring, a status page, and patience, not an immediate rebuild
  • Disk failure: permanent and total, but your last backup is trustworthy since the failure mode didn't touch it — the plan is restore onto new hardware
  • Accidental deletion (a bad rm, a destructive migration): needs the same restore as disk failure, but only after confirming precisely what was lost and when, to pick the right restore point
  • A compromised server changes everything else about the plan — nothing on that box can be trusted anymore, including whatever backups it produced after the compromise, so the response is a rebuild on new infrastructure with every credential rotated
  • Account suspension can leave the server intact but unreachable — the plan only works if your offsite backup is stored independently of the same provider account that just got suspended

Evidence notes

Cloudflare R2 pricing

Standard storage $0.015/GB-month with zero egress fees, checked September 2026 — an offsite backup destination independent of the VPS provider, which is exactly the independence an account-suspension scenario depends on.

PostgreSQL backup and restore

A valid database restore requires either a pg_dump snapshot or a coordinated pg_basebackup plus WAL archiving — not a raw filesystem copy, which can be internally inconsistent from a mid-write capture.

"What if my server dies" gets asked as if it's one question with one answer, and that's the first thing worth fixing. A dead disk and a compromised box both end with the same sentence — the VPS is gone — but they don't call for the same response, and treating them identically means either overreacting to a routine outage or, worse, underreacting to a breach because it superficially looks like ordinary hardware failure. This is the plan, broken out by which of five things actually happened, written down now so it's a checklist during an incident instead of a debate. This is a plan, not a story about something that already happened to me — every scenario below is written as "here's what I'd do," because the value of having it is that it's decided before the fact, not narrated after it.

Scenario one: the provider is having an outage

This is the least dramatic scenario and the one people most often overreact to. A hosting provider's own infrastructure — the hypervisor layer, a network segment, a datacenter — has a problem, and your VPS is unreachable as a result, but nothing about your own data or configuration was touched. The plan here is boring on purpose: check the provider's status page, confirm other users are reporting the same thing, and wait, rather than jumping straight into a from-scratch rebuild that solves a problem you don't actually have. Rebuilding onto new infrastructure while the original provider's outage is still in progress can leave you running two versions of the same app in two places once the original comes back, which is its own kind of mess. For the operations playbook that sits alongside what happens if your VPS dies? my disaster recovery plan, see XenGrowth's revenue operations work.

The one preparation this scenario needs in advance is a status page you actually check, and a communication plan for your own users if downtime stretches past what your SLA (formal or implied) tolerates. Nothing about the server itself needs to change. The one exception worth naming: if an outage stretches on long enough that it starts looking indistinguishable from a genuine loss — hours turning into a day with no provider update at all — that's the point to start treating it as scenario two below and prepare a real restore, rather than waiting indefinitely on a status page that's stopped updating.

Scenario two: the disk actually failed

This one is permanent, and the plan is a genuine restore, not a wait. The important thing this scenario has going for it: the failure was mechanical or storage-layer, not an attack, so there's no reason to distrust your last good backup. Provision a fresh VPS, restore the platform layer, restore Docker volumes, restore the database from the most recent verified dump, re-point DNS if the IP changed, and verify the app actually works before calling it done. None of that is complicated in principle — it's exactly why a tested restore procedure, rehearsed before this day, is worth more here than any amount of general disaster-recovery reading. On the operations side of this specifically, The XenGrowth resource library is worth reading.

What determines how bad this is isn't the failure itself, it's your RPO: how much happened between your last backup and the failure. That's a number you should have decided on deliberately as part of your backup strategy, not one you discover for the first time while staring at how old the last dump is. Disk failure also has a quieter cousin worth naming here: a slow, partial degradation rather than a sudden stop — a drive throwing intermittent read errors, latency creeping up over days before it finally gives out entirely. If your monitoring surfaces disk health at all, that's the signal to start this restore process proactively, on your own schedule, rather than waiting for the drive to make the decision for you at a worse moment.

Scenario three: someone (possibly you) deleted the wrong thing

Mechanically, the fix is the same restore as a disk failure. The part that's different, and that people rush past, is figuring out exactly what was deleted and exactly when, before restoring anything. Restore from a point before the deletion and you're fine. Restore from a point after it, because you grabbed the most recent backup out of habit without checking whether the deletion had already been captured into it, and you've just restored the same mistake. This scenario is the one where taking five extra minutes to confirm the timeline before touching anything actually saves time overall, not costs it. It's also the scenario most likely to repeat if the underlying cause — a destructive migration with no confirmation step, an overly broad delete query, a script with too much access — isn't fixed afterward, not just recovered from.

Scenario

Are your backups still trustworthy?

What the plan requires

Provider outage

Yes — nothing touched them

Wait, monitor, communicate — don't rebuild prematurely

Disk failure

Yes — mechanical failure, not an attack

Restore onto new hardware from the most recent verified backup

Accidental deletion

Yes, but pick the restore point carefully

Confirm what and when before restoring, then restore to before the mistake

Compromised server

No — assume tampered until proven otherwise

Full rebuild on new infrastructure, all credentials rotated, backups audited before trusted

Account suspension

Only if stored independently of the suspended account

Depends entirely on whether your offsite copy lives outside that provider relationship

Scenario four: the server was compromised

This is the scenario that changes the shape of the whole plan, not just the steps inside it. Once a server is compromised, nothing on it can be trusted — not the application, not the OS, not necessarily even backups produced after the point of compromise, because an attacker with enough access can plant something in a backup just as easily as anywhere else. The plan here is not 'clean up the old box.' It's provision new infrastructure entirely, rebuild from source and from a backup taken before the compromise (which is exactly why knowing roughly when a compromise started matters), rotate every credential the old server ever held — database passwords, API keys, SSH keys, anything — and only then bring the rebuilt stack online. On AI agents and marketing automation specifically, XenGrowth on governed AI marketing workflows is worth reading.

A disk failure destroys data. A compromise poisons trust. The recovery for the first is a restore. The recovery for the second starts with assuming everything on the old box, including its own backups from after the breach, might be lying to you.
  1. Assume the old server and any credentials it held are burned — don't reuse them, don't reconnect to them for 'just one quick check' before isolating.

  2. Identify, as closely as you can, when the compromise likely began, so you restore from a backup taken before that point rather than one that might already be compromised.

  3. Provision genuinely new infrastructure — a new VPS, not a reformat of the old one, since a sufficiently deep compromise can survive a naive wipe.

  4. Rebuild the platform and application from source, restore data from the pre-compromise backup, and rotate every credential and secret the old box ever had access to before it goes back online.

  5. Only after the rebuilt server is live and verified, investigate the old one for how the compromise happened, so the same door doesn't stay open on the new box.

The instinct to move fast here works against you. A compromise is the one scenario in this whole list where speed is not the priority — figuring out the actual entry point, even approximately, before rebuilding is what prevents the exact same rebuild from being compromised again within days. A server hardened the same way the old one was, with the same open door nobody found, is not actually recovered.

Scenario five: your account got suspended

This is the scenario people plan for least, because it doesn't feel like a technical failure at all — the server might be running perfectly, but you can no longer reach it, manage it, or in some cases even confirm it still exists, because the provider account that controls it has been suspended for a billing dispute, a terms violation, or an automated fraud flag that has nothing to do with reality. If your only backup lives inside that same provider's ecosystem — snapshots tied to the same account, a bucket under the same login — you may have just lost access to your recovery path at the exact moment you need it most.

This is precisely the argument for the 'offsite, independent copy' half of 3-2-1 backup, and it's worth restating here because this scenario is the one that actually tests it: an offsite backup that's independent in name but still authenticated through the same suspended account isn't independent at all. A genuinely separate destination, under separate credentials, is the only version of this backup that survives a suspension of the account it's meant to be independent from. Worth planning for separately: appealing a suspension takes time you don't control, and some providers respond in hours while others take days or longer. The plan can't assume the appeal resolves quickly — if your business genuinely can't tolerate that server being unreachable for an unknown stretch, the honest answer is treating this scenario the same as a full rebuild on new infrastructure, using the independent offsite backup, rather than waiting on a support queue you have no visibility into. There is a longer treatment of AI search, GEO and discovery in XenGrowth on building one SEO and GEO content system.

What to have in place before any of this happens

Which scenarios it actually saves you in

An offsite backup under separate credentials from your VPS provider account

Account suspension, disk failure, accidental deletion — everything except a compromise that predates the backup

A written, rehearsed restore procedure

Every scenario — this is what turns a plan into something you can execute under pressure

A rough timeline sense of when a compromise could have started (audit logs, deploy history)

Compromised server — without this you can't pick a trustworthy restore point

Credentials and secrets stored somewhere independent of the server itself

Compromised server, disk failure — you need to rotate or restore access without the old box

A status-page and monitoring habit for your provider

Provider outage — mostly so you don't rebuild prematurely

What all five scenarios actually have in common

Every one of these plans assumes two things were already true before the incident: a tested, offsite, independently-authenticated backup exists, and someone knows the exact sequence of steps to restore from it without inventing the procedure under pressure. Neither of those is a plan you write during the incident — they're decisions made in advance, exactly like an RPO and RTO you've actually written down rather than discovered by accident. The specific mechanics of restoring — what order to bring services back in, what actually determines how long it takes, and the one setting that's easy to forget until it costs you an afternoon — deserve their own full walkthrough rather than a summary tacked onto the end of this one.

None of this replaces hardening the server in the first place. A compromise scenario you never have is better than a compromise scenario you recover from well, and the baseline security work — SSH configuration, firewall rules, what's actually exposed to the internet — is worth doing before any of the five scenarios above becomes the one you're living through. Revisit this plan itself on a schedule, not just once when it's written. What's running on the server changes, the backup destination and credentials change, and a disaster recovery plan describing a stack from a year ago is a plan for a server that no longer exists.

Further reading from XenGrowth

Where this work meets go-to-market

Working on what happens if your VPS dies? my disaster recovery plan inside a commercial team? XenGrowth's operator guides publishes operator guides on the revenue side of this work.

How much recovery do you actually need?

Four questions about consequences rather than technology. Recovery planning is mostly deciding how much you're willing to lose, and then buying exactly that.

1 / 4
How much data can you lose without it being a serious problem?

Apply this article

How to turn insights into execution

A practical sequence for teams turning concepts into production outcomes.

disaster recoveryVPSself-hostingincident responsebackupsecuritycloud

Audit your current state

Map the bottlenecks and constraints connected to the article’s core problem.

Choose one bounded change

Test the most useful recommendation on one workflow before widening the scope.

Measure what changed

Keep the parts that improve the work, document what failed, and make the next decision from evidence.

Next step

Need help applying this in your stack?

I can translate these patterns into a concrete implementation plan for your team.

Discuss implementationBack to blog

Replies usually within 24 hours.

Next Steps

Continue reading

The Backup Strategy Every Self-Hosted SaaS Needs (3-2-1, Applied)

3-2-1 is easy to nod along to and easy to get wrong in the specific way that only shows up on the day you need it. Here's what it actually means for one VPS running Postgres and Docker volumes, not the generic version you've already skimmed past twice.

Navigate

10 Mistakes That Break a Self-Hosted SaaS

None of these ten show up as a single dramatic outage. They show up as a disk that quietly fills, a rollback that turns out to be impossible, a backup nobody ever restored. Here's the mechanism behind each one, and the fix.

Navigate

My Rule for Deciding What to Self-Host and What to Keep Paying For

Self-hosting everything is a bad idea, and I can point to the exact service where I decided that on purpose. Here's the actual rule I use, not a survey of options — and the one counterexample that explains why the rule exists.

Navigate

The Simplest Production Architecture for a Bootstrapped SaaS

One box, a handful of managed pieces around the edges, and a very short list of things you're not allowed to build yet. Here's the architecture, priced out to $20 a month, and the exact signal that tells you when to add each thing you skipped.

Navigate

Moving a SaaS Off Vercel to a €5.50 VPS: What the Numbers Actually Look Like

Nobody publishes their real Vercel invoice, so most migration posts trade in vibes instead of arithmetic. This one builds the comparison from Vercel's and Contabo's own published rates, states every assumption out loud, and shows exactly where the two lines cross.

Navigate

My Free Monitoring Stack for Self-Hosted Apps

Vercel gives you monitoring whether you ask for it or not. A VPS gives you a blank terminal and the assumption you'll figure it out. Here's what to actually watch on a self-hosted box, with tools that cost nothing, and why watching from the box itself is the one setup that will lie to you.

Navigate

The Security Mistakes I See New Self-Hosters Make

These aren't rare. They're the same seven patterns, documented in breach reports, CVE databases, and botnet postmortems, showing up on new self-hosted boxes on a loop — because the defaults that make setup fast are the same defaults that make a box exploitable.

Navigate

How to Back Up and Restore a Coolify Server Properly

Coolify's built-in backup covers less than most people assume, and a filesystem copy of a live Postgres data directory is not a valid database backup no matter how confident it looks in a file listing. Here's what actually has to be backed up, and a restore you've actually tried before you need it.

Navigate

Should Your Database Live on the Same VPS as Your App?

The pitch for co-location is real: no network hop, no egress bill, one box to back up. So is the failure mode — one OOM event takes the app and the database down together, because they were never separate to begin with.

Navigate

Best VPS Providers for Coolify: Contabo, Hetzner and the 2026 Price Shift

Every 'best VPS for Coolify' post still says Hetzner is the cheap option. That stopped being reliably true in June 2026 for two of its most popular tiers, and nobody's updated the recommendation yet.

Navigate