How Do You Upgrade Production VPS

I want to upgrade my production server OS

I have few VPS from The-Online.com as well as digitalocean and vultr. These VPS are actually production servers where active sites are hosted that earns money for me. I used debian and ubuntu OS on VPS but this OS are now quite old and need to upgrade them. Unfortunately the repo is not active anymore. Good to have OS updated from time to time. How do you safely upgrade to old debian or ubuntu OS on production server without breaking anything? Do I have to setup a new server / VPS with updated OS, and migrate everything there? Point DNS, and then remove the old server? Any other simple way?

4 Comments

  1. Open SSH terminal and login. then type
    sudo apt update
    sudo apt full-upgrade

    You can do that to upgrade to a newer OS via ssh. Create backups first. Packages installed will be upgraded to newer version.

  2. Get a new VPS and migrate all sites and databases and set up DNS. there is more work doing this but it is safe way to upgrade OS. Since your OS is quite old don’t do apt full-upgrade as you’ve skipped many versions of the upgrade and it will certainly break the server. As always, first take server backup.

  3. Get a new server or VP-S and use this script to auto-update the OS.
    https://github.com/ENGINYRING/Linux-Auto-Update-Script
    Just set it to run once per day OR once a week and it will keep your servers updated.
    This script is quite helpful as it will abort the update/upgrade OS and send an email if potential errors are detected and/or if any package is being removed as result of the upgrade.

  4. You really need to update OS more often. It doesn’t take long to apply updates and to reboot a server. I’m not saying you need to do it daily but something like weekly, monthly, or even quarterly is better than not doing it at all. It is a security risk to run old O-S and repo.

Leave a Reply

Your email address will not be published. Required fields are marked *

Similar Topics

  • WordPress 6.8 with Speculative Loading

    WordPress 6.8 to come with Speculation Rules API for fast loading The-Online.com will upgrade all their client’s servers on Managed WordPress Hosting once the WordPress…

  • Gemini.Google.Com

    Google Gemini official site Though Google recently registered a new domain name gemini.google for their Gemini AI chatbot, the Gemini can be accessed by its…

  • Benefits of Blogging on Medium Platform

    Exploring the Advantages of the Medium Blogging Platform Medium is a popular writing platform that has gained a reputation for being a simple and user-friendly…

  • Godaddy Coupon Code for Domain Renewal

    Need godaddy coupons or promo code for renewal Hi, I have 9 domain names registered at Godaddy, but they recently increased the domain registration renewal…

  • $1.99 .COM Domain Name Registration

    $1.99 .com domain names promo. Get this .com domain offer at the-online.com cheap domain registration provider. Buy $1.99 .com domain names. $1.99 .com domain registration offer is also valid on new registration, renewal, transfer from godaddy, namecheap, dynadot, porkbun.

  • Register Domain with PhonePe in India

    Phonepe domain registration site? I want to register domain with PhonePe account. Any domain registration provider in India that offers PhonePe for domain registration and…