In this article we’ll go over how to migrate an entire Wordpress site with the Duplicator plugin. In this example, my client has a Wordpress Managed Hosting plan with Godaddy and would like to migrate his site to a AWS Lightsail Instance.
The first thing we are going to do is login to our current website via FTP (I use FileZilla for my FTP client) and download the wp-content directory.
This may take a while depending on how big your site is. Once you’ve downloaded the folder, go to your current websites WP-Admin dashboard and go to add a new plugin.
Search for and install the duplicator plugin.
Activate Duplicator. Once active, you should see Duplicator should show up in the left toolbar.
Check out the quick start guide for reference: https://snapcreek.com/duplicator/docs/quick-start#quick-060-q
This is how you create a package (remember we are doing the “Database Only” method):
Goto Duplicator ❯ Packages ❯ click "Create New" button
On Step 1 Setup ❯ Archive ❯ check "Archive Only the Database"
Build package then download installer and archive files
Once you’ve done this you should be able to download 2 files, one is a .daf extension, that is your database the other is an installer.php file that you will upload to your new server so that Duplicator can install the DB.
Now login to the AWS console: https://console.aws.amazon.com and set up your Lightsail instance:
Choose a plan (I chose the $5/month plan)
Name and create your instance:
Go to Home -> Networking and create a static ip and attach it to your new instance
Go back to your instances, then open up the terminal by clicking the orange “terminal” icon next to the 3 dots.
Once you are in the terminal, use this command to find your login credentials:
sudo cat /home/bitnami/bitnami_credentials
Take note of these credentials, you will use these to login to Wordpress on your website. For example you can now go to https://[your-static-ip-here]/wp-admin and login with these credentials.
While we are here in the terminal, let’s make sure that permissions and users are set correctly for when we want to upload our website files via FTP:
sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/wp-content/
Let’s now connect to our Lightsail instance via FTP, we want to do this so we can easily upload files. I’ll show you how I connect a Lightsail instance with Filezilla.
sudo /opt/bitnami/apps/APPNAME/bnconfig --disable_banner 1
Also published on Medium's wesleybaxterhuber