How to Migrate a Website to Linode

Traducciones al Español
Estamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
Create a Linode account to try this guide with a $ credit.
This credit will be applied to any valid services used during your first  days.

This guide describes how to export your content from and self-host your WordPress website on Linode. Read the Best Practices when Migrating to Linode guide prior to following this guide for more information about migrating your site.

Ubuntu 18.04 is used as the distribution for the new Linode deployment in this guide. If you’d like to choose another distribution, use the examples here as an approximation for the commands you’ll need to run. You will also install either a LAMP or LEMP environment on your new Linode.

Note’s export feature will export pages, posts, and comments from your site, but it will not export your themes and widgets. You will need to customize your new self-hosted WordPress site’s appearance after completing your migration.

Migrate Your Website

Deploy Your Linode

  1. Follow Linode’s Creating a Compute Instance guide and choose Ubuntu 18.04 as your Linux image when deploying. Choose a Linode plan with enough storage space to accommodate the website data from your current host.

  2. Follow the Setting Up and Securing a Compute Instance guide and create a limited Linux user with sudo privileges.

  3. Follow the Install WordPress on Ubuntu 18.04 guide to stand up a new web server and WordPress installation. Later in this guide you will use the WordPress credentials you create during the installation, so be sure to record them.

Export Your Content

  1. Login to your dashboard and navigate to the Export page of the Tools section. Choose the Export all option under the Export content subsection:

  2. Click Export All, then Download to download a compressed file of your content in XML form. A copy will also be emailed to you:

    To export posts, pages, or feedback from the site, press the down arrow to the right of the Export All button.

  3. Unzip the file.

Import Your Content on Linode

  1. Visit your Linode-hosted WordPress login from your browser (usually http://<your-linode-ip>/wp-admin) and login with your WordPress credentials.

  2. Navigate to the Import page of the Tools section. The WordPress importer plugin will be listed:

  3. Choose Install Now and then run this plugin. On the page that appears, click Choose File and locate the XML file you previously exported from to your computer:

  4. A page will appear that surfaces a few import options:

    You are able to assign your imported posts to:

    • Your previous user, which will also be imported
    • A brand new user that the import plugin will create
    • One of the WordPress users you’ve already created on your Linode as part of deploying your web server

    Be sure to enable the Download and import file attachment option on this page.

  5. Submit this form. Your content will now be imported.

  6. Navigate to the Permalinks page in the Settings section:

  7. Choose the Day and name option and save the change. This option matches the permalink style used on

Migrating DNS Records

The last step required to migrate is to update your DNS records to reflect your new Linode’s IP. Once this is done, visitors will start loading the page from your Linode.

(Optional) Prepare Your Domain Name to Move

A recommended first step is to lower the Time to Live (TTL) setting for your domain so that the migration won’t have a negative impact on your site’s visitors. TTL tells DNS caching servers how long to save information about your domain. Because DNS addresses don’t often change server IP addresses, default TTL is typically about 24 hours.

When changing servers, however, make the TTL shorter to make sure that when you update your domain information, it takes effect quickly. Otherwise, your domain could resolve to your old server’s IP address for up to 24 hours.

  1. Locate your current nameservers. If you’re not sure what your nameservers are, use a Whois Search tool. You will see several nameservers listed, probably all at the same company. nameservers

    You can usually derive the website of your nameserver authority (the organization that manages your DNS) from the nameservers you find in the Whois report (e.g. corresponds with Sometimes the labeling for the nameservers is not directly related to the organization’s website, and in those cases you can often find the website by plugging the nameserver into a Google search.

  2. Contact your nameserver authority for details on how to shorten the TTL for your domain. Every provider is a little different, so you may have to ask for instructions.

    Most nameserver authorities will allow you to set the TTL on your domain or on individual records, but some do not allow this setting to be edited. Here are support documents from some common authorities that mention how they manage TTL:

  3. Make a note of your current TTL. It will be listed in seconds, so you need to divide by 3600 to get the number of hours (e.g. 86,400 seconds = 24 hours). This is the amount of time that you need to wait between now and when you actually move your domain.

  4. Adjust your TTL to its shortest setting. For example, 300 seconds is equal to 5 minutes, so that’s a good choice if it’s available.

  5. Wait out the original TTL from Step 3 before actually moving your domain–otherwise, DNS caching servers will not know of the new, lower TTL yet.

Use Linode’s Nameservers

  1. Follow Linode’s instructions on adding a domain zone to create DNS records at Linode for your domain. Recreate the DNS records listed in your current nameserver authority’s website, but change the IP addresses to reflect your Linode IPs where appropriate.

  2. Locate your domain’s registrar, which is the company you purchased your domain from. If you’re not sure who your registrar is, you can find out with a Whois Search tool. nameservers

    Your registrar may not be the same organization as your current nameserver authority, though they often are, as registrars generally offer free DNS services.

  3. Log in to your domain registrar’s control panel and update the authoritative nameservers to be Linode’s nameservers:


    The following support documents describe how to update the authoritative nameservers of common registrars:

  4. Wait the amount of time you set for your TTL for the domain to propagate. If you did not shorten your TTL, this may take up to 48 hours.

  5. Navigate to your domain in a web browser. It should now show the website from Linode, rather than your old host. If you can’t tell the difference, use the DIG utility. It should show the IP address for your Linode.

  6. Set reverse DNS for your domain. This is especially important if you are running a mail server.

    If you’re having trouble seeing your site at the new IP address, try visiting it in a different browser or in a private browsing session. Sometimes your browser will cache old DNS data, even if it has updated everywhere else.

Next Steps

The team recommends installing the Jetpack plugin on your new self-hosted WordPress site. This free plugin is maintained by the team and provides features available on your site, including analytics, site management tools, and access to the apps. Premium versions of the Jetpack plugin provide extra features.

If you had subscribers on your site, you can also migrate them to your new self-hosted site. This requires that you install the Jetpack plugin and uses Jetpack’s subscription migration tool.

Your new self-hosted WordPress site uses the default theme and widgets. Review the documentation for themes and widgets to learn how to customize your site’s appearance.

More Information

You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

This page was originally published on

Your Feedback Is Important

Let us know if this guide was helpful to you.

Join the conversation.
Read other comments or post your own below. Comments must be respectful, constructive, and relevant to the topic of the guide. Do not post external links or advertisements. Before posting, consider if your comment would be better addressed by contacting our Support team or asking on our Community Site.
The Disqus commenting system for Linode Docs requires the acceptance of Functional Cookies, which allow us to analyze site usage so we can measure and improve performance. To view and create comments for this article, please update your Cookie Preferences on this website and refresh this web page. Please note: You must have JavaScript enabled in your browser.