Move to a bigger plan
Servers are not resized in place: you order the bigger plan as a new server, copy your data across with rsync, switch DNS, and delete the old one when its term runs out. Planned well, the move takes an evening and visitors notice nothing.
When should you plan the move?
Close to the end of the current term. A term is prepaid and unused time is not paid back if you delete early, so the cheapest moment to switch is the last week or two of the old term. The renewal invoice for the old server appears seven days before the term ends; if you are moving, simply do not pay it.
Check first that you really need more. Run free -h, uptime and df -h at a busy hour. If memory is the only problem and the server sometimes runs out, the swap and memory guide may buy time until the term ends. If CPU steal is high on a shared plan or the disk is nearly full, a move is the right answer.
Which plan should you move to?
Usually the next size up in the same family and the same city, so the network and latency stay as your users know them. Moving S4 (2 vCPU, 4 GB RAM, 40 GB NVMe, $4.25 a month) to S8 (4 vCPU, 8 GB RAM, 80 GB NVMe, $6.35 a month) doubles everything at modest extra cost. From P4 the next step is P8.
Changing family is also possible. Dedicated CPU plans such as D8 suit loads that keep the processor busy all day. Arm plans like A8 are x86-free: packages from the distribution work, but Docker images must offer an arm64 build and any binaries you compiled yourself must be rebuilt. Check with docker manifest inspect image:tag | grep arm64 before you commit.
Pick the same image and release you run today, for example Ubuntu 24.04 to Ubuntu 24.04. Copying files between different releases invites library mismatches.
How do you prepare DNS a day before?
Lower the TTL on the records that point at the old server so the switch spreads fast. At your DNS host, set the TTL of the A and AAAA records for example.com and www.example.com to 300 seconds, at least one old TTL before the move. Confirm resolvers see it:
dig +noall +answer example.com AThe second column of the answer is the remaining TTL. Once it shows 300 or less, you are ready. The full DNS walkthrough is in pointing a domain.
How do you set up the new server?
Order the new plan with the same SSH keys, then repeat your base setup: the sudo user, SSH settings and firewall. Install the same packages. On Ubuntu and Debian you can copy the list of installed packages from the old server:
# on the old server
apt-mark showmanual > /root/pkgs.txt
# on the new server, after copying pkgs.txt over
xargs -a /root/pkgs.txt apt install -yOn Rocky and Alma, dnf history userinstalled gives a similar list. Add the old server public key to the new one so they can talk directly: on the old server run ssh-keygen -t ed25519 -f /root/.ssh/move -N "" and append /root/.ssh/move.pub to /root/.ssh/authorized_keys on the new server. Transfers between two of our servers in the same city are quick, and incoming traffic to the new server is free.
How do you copy files with rsync?
Copy in two passes: a first pass while everything is still running, then a short final pass with services stopped. The first one moves the bulk; the second only sends what changed. From the old server:
rsync -aHAX --numeric-ids --info=progress2 -e "ssh -i /root/.ssh/move" \
/var/www/ /etc/nginx/ /etc/letsencrypt/ \
root@203.0.113.30:/root/stage/Better is one rsync per folder to its real destination, for example rsync -aHAX /var/www/ root@203.0.113.30:/var/www/. Copy application folders, /home, web roots, the Nginx or Apache site files, certificates and crontabs (crontab -l > cron.txt). Do not copy all of /etc blindly: network settings, fstab and SSH host keys belong to the new machine.
The options: -a keeps permissions, times and owners, -H hard links, -A and -X ACLs and extended attributes, and --numeric-ids keeps owner numbers exactly as they were.
How do you move the databases?
Dump on the old server and load on the new one; do not copy live database files. For MariaDB or MySQL, a direct pipe saves disk space:
mysqldump --single-transaction --routines --all-databases \
| ssh -i /root/.ssh/move root@203.0.113.30 "mysql"For PostgreSQL, dump the cluster and replay it:
sudo -u postgres pg_dumpall | ssh -i /root/.ssh/move root@203.0.113.30 "sudo -u postgres psql"For a quick check afterwards, compare table counts on both sides, for example mysql -e "SELECT table_schema, COUNT(*) FROM information_schema.tables GROUP BY table_schema". Do this a first time as a rehearsal, then again during the final pass with the app in maintenance mode so no new writes are lost.
How do you test before switching DNS?
Make only your own computer resolve the domain to the new server. Add a line to /etc/hosts on macOS and Linux, or C:\Windows\System32\drivers\etc\hosts on Windows:
203.0.113.30 example.com www.example.comOpen the site in a private window, log in, submit a form, and check the logs on the new server with tail -f /var/log/nginx/access.log to be sure the requests really land there. From a terminal, curl -I --resolve example.com:443:203.0.113.30 https://example.com tests HTTPS without touching the hosts file. Remove the hosts line when you are done.
How do you switch over and close the old server?
Run the final pass: put the app in maintenance mode or stop it on the old server, repeat the rsync commands and the database dump, start everything on the new server, then change the A and AAAA records to the new addresses. With a 300 second TTL most visitors arrive at the new server within minutes.
Watch both access logs for a day. When the old one goes quiet, rename the old server in the console to something like web1-old so nobody confuses the two. The new server has new IP addresses, so update anything that allows by IP: database grants, API allowlists, a payment provider, SPF records, monitoring checks.
Keep the old server untouched until its term ends, as a fallback. Then delete it from the console, or simply leave the renewal invoice unpaid: the server is paused at term end, kept 14 days and then removed. Raise the DNS TTL back to a normal value such as 3600.
Questions about this guide
Can you resize my server in place?
No. A larger size is a new server: order it, move the data as described here, then delete the old one when its term ends. This also gives you a clean, tested setup on the new machine.
Do I get credit for unused months on the old server?
No. A term is prepaid and unused time is not paid back. That is why the best time to move is near the end of the old term, after you skip its renewal invoice.
Can I keep my IP address?
No, the new server comes with its own IPv4 address and IPv6 network. Lower the DNS TTL beforehand so the change spreads quickly, and update any IP allowlists.
Can I move to a smaller plan the same way?
Yes, the steps are identical. Check that your data fits the smaller disk with du -sh /var/www /var/lib/mysql /home before ordering.
How long does the copy take?
Mostly as long as your data is large. Between two of our servers in the same city a few gigabytes usually copy in minutes; the second rsync pass only sends changes, so the downtime window stays short.
Should I move to another city at the same time?
You can, since prices are the same in all 15 locations, but do it only if most of your users are closer to the new city. Changing city and plan in one step is fine with this method.