How to export WordPress instance from LightSail ?

0

I have a WordPress instance in the LightSail. This instance was created under my personal account. But the contract with the organization, for which I am supporting this instance, will be terminated in couple of months. Right now I am looking for the best way to give them the copy of the WordPress instance, so they can publish it somewhere else. (It will NOT be in AWS). I know how to do it by direct copying of files and direct copying of the DB. But on the LightSail WP instance, I don't have access to the DB. So how can I get the WordPress copy for other hosting?

  • Hello,

    Since the website is being migrated outside AWS, why don't you install updrsftplus plugin and use it to backup the website to Google Drive?

    Give the access to the Google Drive folder to download it on their local computer. They should upload it to their own Google Drive account.

    On the new hosting, let them create a fresh WordPress website after pointing to the new hosting Nameservers.

    They will login to the fresh WordPress website, install Updraftplus plugin and connect it to the Google Drive account.

    Check my next response

  • Continued.......

    There are two methods of restoring the backup in Updraftplus:

    1. Upload the downloaded files that are on the local computer.

    2. Scan the remote Google Drive account that has been connected and select that particular folder.

    The old data, including the database will be migrated and replace the new one

asked 4 months ago258 views
1 Answer
0

Hello.

But on the LightSail WP instance, I don't have access to the DB.

Why can't I access my database from Lightsail?
Isn't WordPress itself unusable if it cannot connect to the database?
Where is the database running?
If it is running inside a Lightsail instance or an RDS instance, I think you can dump it to a file using something like mysql dump.
https://docs.bitnami.com/aws/infrastructure/mysql/administration/backup-restore-mysql-mariadb/

profile picture
EXPERT
answered 4 months ago
  • It is running inside a Lightsail instance. Thank you for the advise. I'll try it. If it works, I'll mark your answer) At the same time, I am not a good linux user, can you advise me how to pack folder in an archive file on that instance?

  • At the same time, I am not a good linux user, can you advise me how to pack folder in an archive file on that instance?

    Can I connect to Lightsail using SFTP etc.? I think the following documents will be helpful. https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-connecting-to-linux-unix-instance-using-sftp
    I think you can download it using SFTP if you place the MySQL dump file in the home directory of the Linux user used to connect using SFTP.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions