Avatar of Dustin Stanley
Dustin Stanley
 asked on

AWS EC2 Instance Ubuntu Server Wordpress Full Backup

So this week I have learned some things the hard way unfortunately. I have a T2.Medium EC2 Instance on a Ubuntu Server. I had decided to upgrade from Ubuntu 14.04 to 16.04

I am a newbie but have some experience in this. I thought I had done this right and I made a snap shot of my volume image weekly.

Well after I have no idea what exactly happened but I could not access or repair my WordPress website after I upgraded. So I thought I would open a new instance using my AMI snapshot. But this didn't work either as the new instance was also the new 16.04 ubuntu.....

So my question is I know the newer version is better for security reasons and more but

how do I make a complete back up of my system so this happens again I can revert back and work on the solution on the side until I am sure the new upgrade works 100%?   And yes I know I should had done this the first time but lesson learned.
LinuxAWSWordPress

Avatar of undefined
Last Comment
Dustin Stanley

8/22/2022 - Mon
SOLUTION
David Favor

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dustin Stanley

ASKER
Thank you for the help. I went ahead and did a fresh install of WordPress on the new instance. I still have my old instance.

I had woocommerce and around 40,000 products. You say if I have my raw /var/lib/mysql/* files then it is easily recoverable. Would I FTP through FileZilla and SSH and copy these files to the new instance for a quick recovery.....Would that work?
Dustin Stanley

ASKER
Also in addition to my last comment. I thought the snapshot was a full backup. What does Amazon offer as a full backup up of the machine? Thanks for the help.
Justin C

You mention snapshots, which are EBS volume-level incremental backups, and AMIs, which are complete point-in-time images of an EC2 instance AND ALL attached EBS volumes.   Which did you take prior to trying to restore your instance?  They are two separate concepts.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Dustin Stanley

ASKER
@Justin C

Well as you see i am not 100% good with the understanding or vocabulary. But I took a snap shot of my instance. I have been able to recover most of the information I needed but it isn't 100% back yet. What I need to understand is what exactly do I have to do to make a 100% complete backup of my EC2 System.

As in a complete back up I mean the server and everything. Such as the current software versions and applications on the server. So if this happens again i can just launch from a back up very quickly. I thank you all for the help.
ASKER CERTIFIED SOLUTION
Justin C

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
David Favor

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Dustin Stanley

ASKER
Thanks for the Info. I will see what I can do with the AMI and plugins.