My manager just brought to my attention that this organization has a CentOS 6.3 server - he didn't specify what it's hosting just yet but asked that I find a solution to do a full backup so that we may restore later onto bare metal with the option to migrate from CentOS to another Linux distro.
Has anyone had experience with backing up / restoring CentOS 6? And if you know what would be the best Linux distro to replace CentOS 6? Or even a step by step guide for both or either one?
Note: do that from a live CD/USB or with the source drive mounted readonly. If you dd a mounted and used filesystem, you'll most likely end up with a corrupted and useless filesystem on the target.
I want to point out that tools like dd or clonezilla will take a copy of the system as-is, in full.
If you want to make it more efficient you may want to look into Borg backups taken in raw mode. It's similar to what the above tools do, but splits the image into chunks and if you repeat the backup it only stores the chunks that changed.
This means you can take snapshots regularly with minimal storage waste. If you did this with the other tools you'd occupy the full image size each time you do it.
Borg also has remote support over SSH, and can do compression and encryption.
Without knowing what was being hosted, the only surefire way would be pulling a complete disk image with cat or dd.
That's not surefire, unless you're doing it offline. If the data is in motion (like a database that's being updated), you will end up with an inconsistent or corrupt backup.
Surefire in that case would be something like an lvm snapshot.
If you wanted to stay on a similar system, RHEL 9 would be a good option or one of its “as similar as possible” like AlmaLinux.
No love for Rocky?
Also Oracle Linux is still free, and fully compatible with RHEL.
Is there any reason to keep the existing set-up? If it's just one drive, you could replace it with another and install Alma or something fresh. Then you could copy over whatever config the old system had to get up and running again. You could swap to the old drive if you needed to revert. If you have a spare machine, you could stand up the fresh setup side-by-side with the old one before swapping over.
I just barely joined the organization, so I'm not entirely sure what's in our environment/infrastructure. First task given to me is to find a full image back up solution. My assumption is that we wants to move off of CentOS for obvious reasons and move onto a new Linux distro. I haven't spoken with my manager just yet to get a better idea as to what the end game is. Hopefully today I'll get the full scope. I can't imagine we'd want to continue using CentOS.