Reinstall the operating system safely
Updated 27 Nov 2026 reinstall data
Reinstalling erases the server. Prepare first.
What is erased
Everything on the server's disks, including additional storage. The IP address and port mappings stay the same.
Before you reinstall
- Copy files you need to another machine, for example:
rsync -avz root@203.0.113.10:/var/www/ ./www-backup/
- Dump databases (see Back up a Linux VPS).
- Note installed packages:
apt-mark showmanual > packages.txt
Reinstall
On the server page choose Reinstall operating system, confirm your password, select the system, choose a new root password and any SSH keys, tick the warning and type the hostname.
Afterwards
The server has new SSH host keys, so remove the old entry on your computer with ssh-keygen -R.