Hi all,
Hoo boy, am I in over my head - that's why I'm coming to you for assistance.
Really long story short (details below), my AWS EC2 instance running Amazon Linux AMI that hosted cPanel was terminated without any backups, but I still have the storage volume with (seemingly) intact data. However, I am having immense problems trying to migrate it to my new CentOS EC2 instance. I've tried following a few guides that pertain to crash/hack recovery for cPanel, but with mixed results. Does anyone have a good idea how to get the data from the original drive over to the new server with minimal losses?
And yes, regular snapshots and backups are now on the docket!
Here are some more details:
I had (operative statement) an AWS EC2 instance running Amazon Linux AMI 2018.03.0.20200318.2, which in turn was hosting WHM and cPanel for my websites. That distro is no longer supported, and so I wanted to get onto something new. I stood up a new EC2 instance running CentOS 7, and got WHM/cPanel on it no problem.
Now, when it came to transferring from the old server to the new one, I found I couldn't connect to the old server. For reasons still unknown, I could not SSH into the old server to save my life. I tried various methods of getting SSH access restored, including standing up a temporary EC2 instance and attaching the old drive to it to reset permissions. This did not work, and as I went to terminate the temporary instance, I did not realize that I had also selected my AMI instance to be terminated as well.
The second I realized what happened, I detached the volume, which thankfully was not set to delete upon termination. This leads me to where I am now - I have a shiny clean CentOS server running the latest stable WHM/cPanel, and a drive that was used with a different distro and older cPanel with all my data on it. Admittedly, my Linux skills are...dull...at best, but I know some basic commands and can follow a guide with the best of them. I've tried suggestions such as this guide, but to no avail. While the data seems to have migrated, no accounts are listed and no databases can be found - but if I try to create an account with the same information as on the old server, I receive an error that it already exists.
I would greatly appreciate any and all suggestions!
Hoo boy, am I in over my head - that's why I'm coming to you for assistance.
Really long story short (details below), my AWS EC2 instance running Amazon Linux AMI that hosted cPanel was terminated without any backups, but I still have the storage volume with (seemingly) intact data. However, I am having immense problems trying to migrate it to my new CentOS EC2 instance. I've tried following a few guides that pertain to crash/hack recovery for cPanel, but with mixed results. Does anyone have a good idea how to get the data from the original drive over to the new server with minimal losses?
And yes, regular snapshots and backups are now on the docket!
Here are some more details:
I had (operative statement) an AWS EC2 instance running Amazon Linux AMI 2018.03.0.20200318.2, which in turn was hosting WHM and cPanel for my websites. That distro is no longer supported, and so I wanted to get onto something new. I stood up a new EC2 instance running CentOS 7, and got WHM/cPanel on it no problem.
Now, when it came to transferring from the old server to the new one, I found I couldn't connect to the old server. For reasons still unknown, I could not SSH into the old server to save my life. I tried various methods of getting SSH access restored, including standing up a temporary EC2 instance and attaching the old drive to it to reset permissions. This did not work, and as I went to terminate the temporary instance, I did not realize that I had also selected my AMI instance to be terminated as well.
The second I realized what happened, I detached the volume, which thankfully was not set to delete upon termination. This leads me to where I am now - I have a shiny clean CentOS server running the latest stable WHM/cPanel, and a drive that was used with a different distro and older cPanel with all my data on it. Admittedly, my Linux skills are...dull...at best, but I know some basic commands and can follow a guide with the best of them. I've tried suggestions such as this guide, but to no avail. While the data seems to have migrated, no accounts are listed and no databases can be found - but if I try to create an account with the same information as on the old server, I receive an error that it already exists.
I would greatly appreciate any and all suggestions!
Last edited by a moderator: