I asked a freelancer to migrate the website from staging to live server and they perform the migration, but now I want to back up the files and DB I need a pem file, which the freelancer never gave me. What do I do? I don't know the FTP details also. How can I backup my website files and DB? The website is hosted on aws Ec2-Linux?
Asked
Active
Viewed 115 times
-1
-
1Does this EC2 instance run in your AWS account, or the freelancer's account? – Michael Hampton Feb 05 '19 at 17:31
-
its my account but i have given the aws credentials to those freelancer – Nitesh Chulani Feb 06 '19 at 16:50
1 Answers
0
You can create a snapshot of the EBS.
aws ec2 create-snapshot --volume-id vol-1234567890abcdef0 --description "This is my root volume snapshot"
Reminder: EBS Volume snapshots are stored in S3 but they're not visble to user through the bucket.
(You must have IAM Permissions to EC2 to perform this action)
-
This answer doesn't solve the problem. Do you to say there's some way to replace the PEM key from a snapshot? – Tim Feb 05 '19 at 19:48
-
The answer was more directed towards his other question of "How can I backup my website files and DB" -- If you create a snapshot and attach that EBS to another EC2 instance you can create another PEM file. – RyanWilliamWest Feb 05 '19 at 19:50
-
-
i can't ssh because i don't have they key, the freelancers have the key and ftp details – Nitesh Chulani Feb 06 '19 at 16:52
-
You don't need the key here to SSH. As long as you have access to the Console, create a snapshot, attach that snapshot to another EC2 instance, and change the PEM key. Here is the AWS Document on how to create a new key. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#replacing-lost-key-pair – RyanWilliamWest Feb 06 '19 at 16:55
-
The comment by @RyanWilliamWest should really be an answer. Suggest you edit your answer to incorporate it more fully Ryan. – Tim Feb 06 '19 at 18:27