VPS Reinstall OS Guide: Wipe and Start Clean
A VPS reinstall OS action puts a clean system from the image you choose onto the server and wipes the disk completely. Save your data first (copy files or take a snapshot), pick an image in the dashboard, confirm, and log back in through the web console a few minutes later. On 0x.cloud reinstalls cost $0, and your plan and paid term stay the same.
When to Reinstall
- Switch operating systems, for example from AlmaLinux to Ubuntu 24.04 or to the "For AI agents" image.
- Start clean after a round of experiments left the box messy.
- The server is broken: it will not boot after a bad update and the data is either backed up or not needed.
- Suspected compromise. A fresh install is safer than trying to clean a hacked system.
- Reuse the server for a new project.
What You Keep and What You Lose
| Item | After a reinstall |
|---|---|
| Files, databases, Docker containers | deleted |
Users, authorized_keys, settings |
deleted |
| Plan (vCPU, RAM, NVMe) and paid term | kept |
| Cost | $0 |
Step 1. Save Your Data
Three ways, depending on what you need.
Snapshot. A point-in-time copy of the whole disk you can roll back to. On 0x.cloud a snapshot costs $0.99/month. See VPS snapshots.
Copy files off the server:
# on the server: pack the project and configs
tar -czf /root/backup.tar.gz /root/bot /etc/nginx
# send the archive to a host you control
scp /root/backup.tar.gz user@backup.example.com:
Dump the database (PostgreSQL example; see the pg_dump docs):
sudo -u postgres pg_dump mydb > /root/mydb.sql
More options, including automated copies, in VPS backups.
Packing up before a reinstall is a good job for an AI agent:
Connect to my 0x.cloud server [name] with the MCP run_command tool and get it ready for an OS reinstall. Find what needs saving: project folders, /etc/nginx, crontabs, systemd units in /etc/systemd/system, PostgreSQL and MySQL databases. Dump the databases, pack everything into /root/backup.tar.gz, copy the archive with scp to my host backup.example.com and verify it with tar -tzf. Do not delete anything on the server.
Step 2. Choose an Image
| Image | Best for |
|---|---|
| Ubuntu 24.04 LTS | the default choice with the most tutorials |
| Debian 12 | lean and stable |
| AlmaLinux 9 | RHEL compatibility |
| "For AI agents" | Claude Code and Codex: Node, Python, Git, tmux and Docker preinstalled |
| "For bots" | Python with Telegram and Discord libraries, Node.js with pm2 |
Torn between Ubuntu and Debian? Read Ubuntu vs Debian.
Step 3. Reinstall the VPS OS in the Dashboard
- Open the server page in your dashboard.
- Choose the reinstall action.
- Pick the image.
- Confirm. You will be warned that everything on the disk will be erased.
- Wait until the server shows as running again.
- Get the root password from your dashboard.
Step 4. Connect to the New System
Open the web console on the server page and log in as root with the password from your dashboard. Then update the system (apt update && apt upgrade) and restore your data:
# on the server: fetch the archive back from your host
scp user@backup.example.com:backup.tar.gz /root/
# extract to the original paths
tar -xzf /root/backup.tar.gz -C /
VPS Reinstall OS, Snapshot Restore or a New Server?
| Goal | Best option |
|---|---|
| Return to the state before a change | restore a snapshot |
| Clean system, data not needed | reinstall ($0) |
| Try another OS without touching production | new hourly server, delete it afterward (s1-2 is about $0.054725 an hour, see pricing) |
| Move a project to a newer OS release | new server, migrate data, delete the old one |
Common Problems and Fixes
Login incorrect at login. The root password may have changed. Take the current one from your dashboard.
Forgot to save your data. It can only come back from a snapshot or backup taken before the reinstall.
The server stays in a pending state. Give it a few more minutes. If nothing changes after 15 minutes, contact support.
FAQ
How much does an OS reinstall cost on 0x.cloud? Nothing. Reinstalls are $0 and do not change your plan or paid term.
Does reinstalling the OS delete my data? Yes. A reinstall wipes the server's disk completely: files, databases, settings and users are gone. Copy what you need or take a snapshot first.
Which operating systems can I install? Ubuntu 24.04 LTS, Debian 12, AlmaLinux 9, plus the ready-made "For AI agents" and "For bots" images.
Can I undo a reinstall? No. Wiped data cannot be recovered. You can only roll back to a snapshot or backup taken before the reinstall.