This question already has an answer here:
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?