How to Restore a VPS from a Snapshot: Provider Walkthrough (Hetzner, DigitalOcean, Vultr)

An update breaks the server, the site is down, and the fix is not obvious. That is the moment a snapshot earns its keep. Restoring a VPS from a snapshot rolls the whole disk back to a known good state in minutes, with no reinstall and no guesswork. This guide explains how to restore vps from snapshot on Hetzner, DigitalOcean, and Vultr, and what to do before and after the restore so you do not trade one problem for another.

All three providers follow the same shape: stop the server, pick a snapshot, restore it, start the server. The buttons sit in different places and the details differ, but the idea is identical. The restore replaces the current disk entirely, so anything that changed since the snapshot was taken is gone. That is the trade you are making, and you should make it with your eyes open.

Before You Restore: Check These Three Things

First, confirm the snapshot is the one you think it is. Check its name, its date, and its size. A snapshot named “before-php-upgrade” from last Tuesday is a clear choice. A snapshot named “snap1” from three months ago is a gamble. If you have more than one snapshot, pick the newest one taken before the problem started, not simply the newest one overall. A snapshot taken after the break started restores the break.

Second, save anything created since the snapshot that you still need. A snapshot restore deletes it. Download the recent database dump, copy the newest uploads, or export the last few orders, depending on what changed. If the server still boots and you can reach it over SSH, grab those files first. If the server is completely dead, you may have no choice, but check before you assume. Losing a day of orders to fix a broken update is a bad trade when a five-minute copy would have saved them.

Restore VPS from Snapshot on Hetzner

On Hetzner Cloud, open the project, pick the server, and go to the Snapshots section. Find the snapshot you want and choose the rebuild option, which replaces the server’s disk with the snapshot. Hetzner asks you to confirm, because the current disk is destroyed in the process. Confirm, and the server rebuilds from the snapshot and boots. The server keeps its IP address and its name, so DNS does not change.

A hetzner snapshot restore is quick for small disks and slower for large ones, because the whole disk image has to be written back. While it runs, the server is offline, so do not start the restore and then wonder why the site is down. Wait for the status to show running, then log in over SSH and confirm the site responds. Check the application first, then the database: open the site, log into the admin panel, and confirm recent content is at the state you expected from the snapshot date.

Hetzner also lets you create a new server from a snapshot instead of rebuilding the existing one. That is the safer route when you are unsure, because the broken server stays untouched while you test the restored copy. Create the new server from the snapshot, check it works, then switch the IP or DNS to it. It costs a second server for an hour, and it removes the risk of destroying the only copy of the current disk.

How to Restore a VPS from a Snapshot on DigitalOcean

On DigitalOcean, snapshots live under the Images section and on the Droplet page itself. Open the Droplet, go to the Snapshots tab, find the snapshot, and choose Restore Droplet. DigitalOcean powers the Droplet off, replaces its disk with the snapshot, and powers it back on. The Droplet keeps its IP address, so nothing in DNS needs to change.

A digitalocean droplet restore snapshot follows the same warning as every other provider: everything since the snapshot is gone. DigitalOcean also offers the option to create a new Droplet from a snapshot, which is the safer choice when the current Droplet still holds data you have not saved. Spin up the new Droplet, verify the site works there, then destroy the broken one. The extra cost is a few cents of Droplet time, which is cheap insurance against restoring the wrong snapshot.

After the restore, check the Droplet’s backups and monitoring settings, because a rebuild can reset some of them depending on how the Droplet was created. Confirm the site loads, the database has the expected content for the snapshot date, and the SSL certificate still works. If you use a firewall, confirm the rules are intact. A restore should bring all of that back, but a two-minute check beats discovering a missing rule from a visitor’s complaint.

How to Restore a VPS from a Snapshot on Vultr

On Vultr, open the server, go to the Snapshots section, and choose the snapshot you want to restore. Vultr offers restore to the same instance, which replaces the disk, and it also lets you deploy a new instance from a snapshot. Pick restore for the fast path when you are confident about the snapshot, and deploy a new instance when you want to test first without touching the broken server.

A vultr snapshot restore powers the instance down while the disk is replaced, so expect a few minutes of downtime. Larger snapshots take longer, and Vultr shows the progress while it works. Once the instance is back online, log in and verify the same things as on the other providers: the site responds, the database matches the snapshot date, and the services you expect are running. Check the system time as well, because a restored server can come up with a stale clock, which breaks scheduled jobs and certificate checks in confusing ways.

What to Do After the Restore

A restore is not finished when the server boots. First, confirm the site works from the outside, not just from SSH. Load the homepage, submit a test form or a test order if the site takes them, and check the admin panel. Second, confirm the database state: look at the newest record and check its date against the snapshot date. If the newest order is from before the snapshot, that is expected. If it is newer, something is off, and you should stop and investigate before visitors add more data.

Third, check the services. Run a quick status check on the web server, the database, and any background jobs. A restore brings back the configuration as it was, but a service that was failing before the snapshot will still fail after it. Fourth, take a fresh snapshot of the restored server once you have confirmed it works. That gives you a clean rollback point for the next change, and it replaces the old snapshot you just used.

Finally, write down what broke and what the snapshot fixed. That note is the start of a runbook, and it makes the next failure faster to diagnose. The guide to reading Nginx access and error logs helps you find the cause in the logs, and the guide to fixing 502 Bad Gateway errors on Nginx covers the failure that sends most people reaching for a snapshot in the first place.

When a Snapshot Restore Is the Wrong Move

A snapshot restore is wrong when the problem is in the data, not the server. If a plugin deleted content or a query corrupted the database, restoring a snapshot also restores the old database, and you lose everything since. In that case, restore the single file or the single database from a file-level backup instead. A snapshot is a blunt tool: it fixes the whole server by throwing away everything recent, and that is only the right trade when the whole server is the problem.

It is also wrong when the snapshot is older than the data you cannot afford to lose. A week-old snapshot on a busy shop means a week of orders gone. Before you restore, weigh the downtime of fixing the problem by hand against the data loss of the restore. Sometimes the slower fix is the cheaper one. That judgement call is the real skill in snapshot restores, and it is why saving recent data before you click restore matters so much.

Snapshots are a safety net, not a backup strategy. They live with the provider, they cost money to keep, and they cannot restore a single file. Pair them with an offsite file-level backup, as the 3-2-1 backup rule for servers describes, and the rsync backup tutorial for a second VPS shows one way to build the offsite half. With both in place, a broken update costs you a snapshot restore, and a dead server costs you a rebuild from the offsite copy. Neither one costs you the business.

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.