Question

How to migrate my old website to Digitalocean Server?

I want to transfer my previous WordPress hosting to Digitalocean server.

I need your help to transfer this website.

I have already installed WordPress on the Digitalocean server, and my previous host provided me with a backup file but I have no idea how to upload this backup file to the new server.

Please help me move this website.


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
July 4, 2022

Hi there,

There are a couple of ways to do that:

  • As you already have installed WordPress on DigitalOcean, you could use a plugin called Duplicator to export your website from your old hosting provider and import it to your new server with DigitalOcean. You can find the plugin here:

https://wordpress.org/plugins/duplicator/

  • Alternatively, if you already have your WordPress files, you could upload them to your new server over SFTP as described here:

https://docs.digitalocean.com/products/droplets/how-to/transfer-files/

Once you’ve uploaded your files via SFTP, you will also have to import your database. You could do that by using an SQL client like Table Plus or Workbench:

https://www.digitalocean.com/community/tutorials/how-to-connect-to-a-mysql-server-remotely-with-mysql-workbench

In either cases, once you are ready with the transfer, you will need to change your DNS so that your A record points to the new DigitalOcean server IP address. After the DNS change it can take up to 24 hours or so for the DNS cache to clear over the Globe.

Let me know if you have any questions!

Best,

Bobby