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


mike mckearin
mike mckearin
319 Points

What is the best way to clone a remote site to local machine to work locally?

What I was thinking was to use Desktop Server and use SSH to zip site up and download it. Then sync the DB. Still feels clunky. Am I missing something?

The best way that I've found is to download your site with an ftp software like Filezilla and then in your wordpress admin go to Tools and then click on Export, choose All content and click download Export file.

Then on your local machine import the xml file you just downloaded :)

1 Answer

The standard approach to clone websites (from local to server, server to local, or server to server) - is all same and consists of two/three steps-

1) Zip your filesystem (wordpress root folder) and copy it to destination. 2) Export your database schema from source, then import it to target database. 3) Change any necessary URLs (eg- in wp_options table or wc-config.xml)