How to Clone an Entire WordPress Site to a New Host using Duplicator

– How’s it going everybody? It’s Andy with SmartWP, and
today I’m gonna show you how to clone a WordPress site. Now this is great for if
you wanna migrate a website to a new server, or you
can create a staging site to try out new things
on your WordPress site. We’re gonna be using the
plugin Duplicator to do this. It’s a free plugin and
it’s pretty simple to use, all you need is an FTP client,
and your FTP information, and a WordPress site to clone. So let’s hop right in. Son right now we’re on our
example WordPress site, as you can see, we don’t
have much content on here, but this is the site we’re gonna clone. So just head over to
your WordPress Dashboard, go to Plugins; Add New and type in Duplicator. It should be the first
plugin to show up here. You can see it has over one
million active installs. So we’re gonna install this plugin, and activate it. Now that Duplicator’s active, we can actually create
a package of our site and this is what we’re gonna
use to actually clone our site. So, if you see on the left here, we have a new option called
Duplicator, and Packages, and we’ll just create a new package. By default, the name
automatically fills out, we don’t really need to
change any of these options, so we can just go Next. And then Duplicator will
actually scan your site to see if it’ll work
with cloning your site. As you can see here, we’re all good here, so we’ll just hit Build. So now it’s building our package. This should only take a couple of minutes, but it could take longer than that if you have a huge WordPress site. So now you’ll see you have an option to download an installer and an archive. The archive is the actual
files in your site, and then the installer is what
pulls all of that stuff out and puts it into the new WordPress site. So we actually need both of these files. We’ll just do the one-click download, so it downloads both at the same time. So you can see here, the two
files that were downloaded were Installer.php and a zip file. So now we’re gonna head
over to our FTP client. We’ll be using Cyberduck,
it’s a free FTP client. If you’re new to FTP, FTP let’s
you connect to your server and actually move files in and out. If you don’t know your FTP login, you can email your web
host and they should be able to give the information to you, or you can log into your
web hosting dashboard and it’s usually there. So we’ve already created it a FTP login, so we’re just gonna take
these details here and log in. So you can see here, we have
Server, Username, and Password. And it’s normal FTP, not SFTP, so if your information isn’t
working, you should try SFTP. But your host should tell you which it is. So we’re gonna connect. And you can see here now, we
can see the file structure of our server, and we
have a public_html folder. Your server might look a little different, it might put you right in
that public_html folder, but we’re just gonna pop
into this one right here. So this is actually the
folder that’s public facing, so this is what shows
up on the site itself. So here’s where we need to put
our installer and zip file. So I’m just gonna drag these over, the installer and the zip. And you can see they’re uploading here. It’s gonna take about
10 seconds to upload. So now our Installer.php and
our zip file are on the server so now we can head over to
the new site, so you can see we’re getting the default
landing page but if we access our site through, and
type in /installer.php, this will bring you to
the Duplicator installer. It runs a few tests to make sure that your zip files are
there and everything, so we’ll check this box and hit next. So now it’s actually extracting the files and now it needs your database information to install WordPress. So if your don’t know
your database information, you can get it from your web host. You can email them if
you’re getting confused, but we’re gonna show you how to do it in SiteGround, right here. So in SiteGround, and the
site tools for your site, you can go head over to
Site, and then MySQL. All hosts are different so the interface might be a little different here, but most of the options should be there. So we’re gonna create a database, and you can see this is
the name of our database. So we’re gonna put that
database information in a Notepad file. Now when you make a database,
you need to have a user that can access the database, and that user is actually
the WordPress site itself. So now that the database is
created, we’ll hit Add New User. So you can see, I’ve just
generated a random username here and password so we’ll save those. And we’ll hit Manage Access here. So we’ve just added the user to the database we just created, so now we have a login, a
database, and a password, all for the new database. So now let’s head over back
to the Duplicator installer. We’ll keep the host as local host still. Some web hosts will actually give you a different URL for this field. We’ll put in our database name, our database username, and our password. And then we’ll hit Test Database. And then you can see that
the database tested correctly and it’s able to connect. Now one of the final steps of this is it’s gonna change all of
your URLs from your old site, so since you cloned a site
with preexisting URLs, it’s gonna change them
to the new structure of the new domain you’re using. So usually the automatic settings are good ’cause it knows what the
server is that it’s running on. So these look good to me, and we’ll hit Next. Now it’s putting the
database onto the server, and now we should be able to
log into our WordPress heaven. And you can use the
same login that you use on your WordPress site previously because it’s the same
database and same site. As you can see, the installer
automatically removed the installer files, so
if the installer doesn’t remove these for you, you
really need to remove them. The site will give you a
warning if they’re still there. And just like that, you’ve
cloned a WordPress site. You can see it’s running
on a new domain name, and it’s all the same
content we had before, including photos. Now this is great if you wanna test different plugins and things like that, maybe you’re redesigning the homepage and you don’t wanna
interrupt your current site. And thanks again for watching, and if you have any questions, feel free to leave them in the comments. We’ll help you out,
and if you need to know your FTP or mySQL information, or you’re getting hung up on that, definitely reach out to your web host, they can definitely help
you get that information. And if you found this video helpful, remember to like and subscribe
and check out SmartWP for our full guide and
more WordPress tutorials.

Leave a Reply

Your email address will not be published. Required fields are marked *