How to Test Your Disaster Recovery Plan with a Simulated VPS Failure

Most VPS owners only learn whether their backups work on the worst possible day: the day the server is already down. A backup file sitting on a disk is not a recovery plan. If you want to test disaster recovery plan steps before they matter, break something on purpose, where breaking it costs you nothing. A simulated failure shows whether your backups restore, whether your DNS changes work, whether your passwords are where you think they are, and how long the whole job takes.

This guide walks through a full test on a spare VPS: clone production, shut the clone down as if the provider lost it, restore from backup, and time every step. The goal is to find the gaps while you still have time to fix them.

Decide What a Simulated VPS Failure Should Prove

Start with the outcome you want to measure. Before you touch a server, write down two numbers: how much data you can afford to lose, and how long you can afford to be offline. Those are your recovery point objective and your recovery time objective. If you have not set them yet, read our guide to recovery time objective and recovery point objective targets first, then pick numbers that fit your site. A small blog can accept an hour offline. A store taking orders cannot.

Next, list what “recovered” actually means for your setup. A WordPress site is not recovered when Nginx starts. It is recovered when the homepage loads, logins work, the database accepts writes, cron jobs run, mail sends, and SSL is valid. Tick that checklist off during the test; anything you cannot tick is a gap in the plan.

Build a Test VPS That Matches Production

Never run a failure test on your live server. Spin up a second VPS with the same operating system, PHP version, web server, and roughly the same RAM. It does not need the same CPU or disk size, but the software stack should match. A restore that works on PHP 8.3 and fails on PHP 8.4 teaches you nothing about production.

Give the test server a different hostname and a staging domain or hosts-file entry, so it can never answer real traffic. Install the same control panel and firewall rules, then copy your production configuration files: Nginx server blocks, PHP-FPM pools, cron entries, and environment files. Use the same password manager you would use in a real emergency.

Keep notes as you build the test server. Every manual step is a step your written plan should already describe. If you guess at a setting, add it to the plan. Start from our disaster recovery plan template for a small VPS setup, which covers the inventory, contacts, and checklists a plan needs before a test can mean anything.

How to Test Disaster Recovery Plan Steps in Order

Work through this sequence in order and record the time each step takes.

  1. Confirm the backup exists and is complete. Check the date, size, and contents of your latest backup. A backup from three weeks ago is not current, and a file that stops halfway through the uploads folder is not complete.
  2. Copy the backup to the test server. Use the same transfer method your plan specifies: rsync, an S3-compatible download, or a snapshot restore. Time the download, because slow restores are a common surprise.
  3. Restore the database first. Create the database and user, import the dump, and check the table count against production. Note any errors about missing tables or character sets now.
  4. Restore the files. Put the site code and uploads in the same paths production uses, then fix ownership and permissions. Files left owned by root will break uploads and updates later.
  5. Restore configuration. Add the Nginx server block, PHP settings, cron jobs, and SSL certificate, then test the Nginx configuration before reloading it.
  6. Point a test domain at the new server and check the site. Load the homepage, log in to the admin area, submit a form, and place a test order if the site takes orders. Check the error log for warnings the front end hides.

This sequence is a vps backup restore test in its simplest form: backup in, site out, with the clock running. If any step needs a file, password, or command that is not in the plan, stop and write it down.

Simulate the Failure: Kill the Server, Not the Data

Once the test server is ready, simulate the loss. Shut down the test VPS from the provider panel, as if the host had failed, and do not use its console to fix anything. From that point on, use only what your plan says you have: backups, documentation, and a fresh server. This is the part most people skip, and it finds the most problems.

A simulated vps failure should feel uncomfortable. You may find a backup script has been failing quietly, the newest backup is on the same server that just died, or the database password lives only on the dead machine. Those are exactly the findings that make the test worth doing. Our guide to testing your VPS backup by restoring it before you need it covers the same habit at a smaller scale, worth doing between full disaster tests.

Try more than one failure type across the year:

Failure to simulate What it checks How often to test it
Whole VPS deleted Off-site backups, rebuild, DNS change Twice a year
Database corrupted Backup age, import speed, table repair Every quarter
Files deleted or encrypted Backup completeness, permissions, malware scan Every quarter
SSL or domain expired Renewal reminders, certificate restore, DNS Once a year

If your provider offers snapshots, test those too, but do not treat a snapshot as your only backup. Snapshots live with the provider, so a provider problem can take them with it. A file-level restore from off-site storage is the check that matters most; our walkthrough of restoring a VPS from a provider snapshot shows where snapshots help and where they fall short.

Measure Recovery Time and Spot the Gaps

Time the test from the moment you declare the failure to the moment the site passes your recovered checklist. Record the time for each step, not just the total. Knowing the database import took 40 minutes and the DNS change took 25 tells you exactly where to improve.

Compare the measured time with your recovery time objective. If the target was one hour and the test took two, speed up the slow steps, change the target to something honest, or accept the risk and write it down. You cannot keep a target your own test just disproved.

Also check data loss. Compare the newest post or order on the restored site with the newest one on production when the backup was taken. That gap is your real recovery point. If backups run nightly and the site takes orders all day, shorten the backup interval until the gap fits.

Common Mistakes That Make a Test Useless

The most common mistake is testing with the live server still running and the live database still reachable. That is not a disaster test. It is a copy job, and it hides every problem a real outage would expose. Kill the test server properly and work only from the backup.

The second mistake is testing only the files and forgetting the rest. A WordPress restore needs the database, uploads, plugins, theme settings, cron jobs, mail configuration, and SSL certificate. Miss one and the site looks fine until a visitor tries to check out or reset a password. See our guide on testing backup restores without breaking production for how to check each piece safely on a staging copy.

The third mistake is never writing down what happened. Keep a one-page record: date, scenario, start and finish times, what failed, and what you changed. Store it with the plan, not in a chat message you will never find again.

After the Test: Fix, Document, Repeat

Fix the biggest gap first, then test again. If the database import was slow, split large tables or move to incremental backups. If DNS took too long, lower the TTL before the next outage, not during it. If a password was missing, put it in the password manager and update the plan the same day.

Update the plan with the real timings you measured. Replace guessed times with the numbers from the test, and add every step you had to improvise. The next person who runs the recovery might be you at 3 a.m., or a colleague who has never done it. The plan should work for them without a phone call to you.

Then set the next test date. Test the full simulated failure twice a year, and a single database restore every quarter. Each run gets faster as the gaps close, and that shorter time is the real proof your recovery plan works.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.