Restoring a snapshot replaces the server's disk with the copy taken at that moment. The server comes back exactly as it was then, and everything written since is lost. A snapshot is restored onto the server it was taken from; it cannot be applied to another server.
Before you restore
- Save what you still need from the current disk: files, uploads, database rows and logs written after the snapshot will be gone. Copy them off with
scporrsync, or take a new snapshot of the current state first (it counts toward the limit of 10 per server). - Check that the snapshot you want shows Ready and look at its Created date.
- Let any action in progress finish. The server must not be suspended or busy with another change.
Restore
- Click Servers in the sidebar and open the server. From the Snapshots page in the sidebar, the Restore button next to a snapshot takes you to the right place.
- Open the Snapshots tab and click Restore next to the snapshot.
- A dialog asks "Restore" followed by the snapshot name. It reminds you that the disk is replaced and that everything written since the snapshot's date is lost.
- In the confirmation field, type the server's name exactly as the dialog shows it.
- Click Restore snapshot. The console answers "Restore started."
- While the disk is replaced, the server shows Rebuilding and the snapshot shows Restoring. It usually takes a few minutes. When the Restore snapshot action shows Done in the server's Activity tab, the server is running on the restored disk.
What changes and what stays
| What | After the restore |
|---|---|
| Files, packages, settings | As they were when the snapshot was taken |
| Root password and SSH keys on the server | As they were when the snapshot was taken |
| IPv4, IPv6 and reverse DNS | Unchanged: it is the same server |
| Plan, billing and firewall | Unchanged |
| The snapshot itself | Kept: you can restore it again, and it keeps billing until you delete it |
If you changed or reset the root password after the snapshot was taken, the restored disk has the old one. The Access tab has a Reset root password tool that sets a new one; see Find or reset the root password.
Move data to another server instead
Because a snapshot belongs to its server, you cannot use it to create a second server or to move to another region. Copy the data instead, for example with rsync -a /var/www/ root@198.51.100.20:/var/www/, or restore from an off-server backup. See Back up your data off the server.
Troubleshooting
- "Type the server name to confirm the restore.": the name you typed does not match. It is case-sensitive and must include any hyphens and numbers.
- "This snapshot cannot be restored now.": the snapshot is not Ready yet, or is being deleted.
- "This server is suspended. Add funds or renew it to use it again.": bring the server back first. See When your balance runs out.
- "Resize is already being applied. Try again once it completes.": another action is running. Wait for it to finish in the Activity tab, then restore.
- No Restore button: it only appears next to snapshots with the status Ready.
- Services fail after the restore: they may depend on something that changed outside the server since the snapshot, such as a DNS record, an API key you rotated or a database on another machine. Check their logs with
journalctl -u <service> -n 50.
Tips
- Restore is the fastest undo for a bad upgrade. For a lost file, you may not need it: copy the file back from a backup instead and keep the rest of the server as it is.
- After a restore, check that the data you depend on is there before you delete older snapshots.
- How snapshots are made: Take a snapshot. What they cost: Snapshot pricing and limits.