Migrating from RHEL 5.x to 6.x
Since Redhat doesn’t provide an upgrade path from 5.x to 6.x, it requires creating a new instance and porting everything over.
Unlike how a sys admin might feel, configuring servers from scratch is not fun for me. But I accept server administration as a necessary set of skills; it is not my passion and I’d rather get back to writing code.
While I don’t recommend copying all these commands verbatim, there are bound to be similarities between our set ups which will save you time so, like me, you can get back to writing code.
I was migrating from RHEL 5.10 to RHEL 6.5.
Once you’ve created your fresh install of RHEL 6.x, you can follow as much or as little of these next steps as is useful:
Now you should be ready to pull your files over from the `old server` to the new server. Preserving file permissions were important to me, so I implemented the following command from the new server:
sudo rsync -azvu firstname.lastname@example.org:/var/www/html/ /var/www/html/