Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Baldev Singh
Baldev Singh
90 Points

How to perform import and export of wordpress project from one localhost to other or on main server ??

Please help me out in both situations where to back up and how to import in other system the same project on other localhost .

And how can we upload our wordpress with bootstrap project from localhost to server ???

1 Answer

There's many ways to do it, but a very easy method to start with is to just use this plugin:

https://wordpress.org/plugins/all-in-one-wp-migration/

Make sure to watch the video on the plugin page. You'll first need to create a new WP install at the destination server, install that plugin on both installs, then follow the export/import instrux they give.

With any migration like that you're trying to accomplish the following.

  1. Export the database
  2. Replace the urls in the database (if the domain is different)
  3. Copy the contents of the wp-content directory
  4. Import the database to the new install
  5. Upload the contents of the copied wp-content directory to the new install's wp-content directory

That plugin takes care of all of that by generating a bundled file to export and import between installs.

My personal preference is to use WordMove. It's a Ruby gem with a bit more of an advanced setup, and you need to be comfortable with the command line. It's not everyone's cup of tea for that reason, but it's very nice and efficient. Worth looking into for sites that you're working on with any kind of regularity. Once it's set up, it allows you to migrate back and forth with simple push and pull commands. https://github.com/welaika/wordmove