Clone a Website with Timeline Backups
Articles,  Blog

Clone a Website with Timeline Backups


Hi there this is Andrew at 20i. In addition
to its backup and restore capabilities our Timeline Backups product allows you
to copy one package to another. So essentially this can be useful if you’ve
perhaps created a site on one package but need to replicate the site and its
database exactly as it is to another package. So you can replicate the version
on example.com to example.co.uk, and replicate it exactly as it is. So, to do
this on our platform you first need to make sure that you’ve got the Timeline
Backups product which can be purchased via the 20i website. Then in order to
copy we first need to go to the package that we wish to that we wish to copy
from. So to do this we want to go to ‘Manage Hosting’ and we want to go to the
package that we wish to copy from. So from
this point in order to access the Timeline Backups tool we want to go to
Web Files and we want to go to Timeline Backups. Once we’ve done that we should then get
some option options with regard to Restoring. So here we want to copy the 20i-wp.com
site files and database to another package that we have with the
name ’20iclone.com’. So for example if we go to 20i-wp.com at the moment we
can see that we’re taken to the following website. And here if we go to
the package that we wish to clone we can see that it just says ‘This site is brand
new please check it back again soon’, so we want to copy
this so that it resides on this package. So in order to do this we can either
‘View Snapshots’ – to view snapshots that have been taken of the package in the
past – or we can select ‘Take Snapshot’ which will then take a snapshot of the
package and then we can select ‘View Snapshots’ and ‘Restore’ the snapshot that
we’ve just taken. So here what we’re going to do we’re just going to view the
snapshots of the package that have been taken in the past so we can see that I
have a snapshot here from the 14th of March 5:26 in the morning and I wish to
select the target package as 20iclone.com because that’s the package that I
wish to clone-to. So here we can select to a directory to restore-to – or we can leave
it blank and we can simply say that we want this to overwrite the package
as it is at the moment. So once we’re happy we just press ‘Restore’. Once we’ve done that it will say ‘Restore
queued’ and that will take a moment or two so we’ll resume once that’s finished. OK, so once the restore has finished
if we click ‘View Previous Jobs’ we should be able to see that we have a
‘Completed’ message right here and the package restore was successful. So we’ve
now restored the site files so now we must restore the database that’s being
used for the site too. So as this is a WordPress website, the site relies on
both site files and the database in question. So with respect to restoring
the database we want to again: we can either take a snapshot and then once
we’ve taken that snapshot and it’s completed we can view the snapshot here
or we can just select a date from which we want to restore from or clone from. So
from here again we just want to select the target package so we want to do it
to the 20iclone.com package and with respect to the database we want to
select the database that is on that package. So what this will do is
directly restore the database backup for this to
the database that’s on the other 20i hosting package. So once we’re happy
we just want to select ‘Restore’. And again, this may take a moment or two
so we’ll resume once that’s completed. OK, so once the restore has completed
again if we select ‘View Previous Jobs’ but for this time if we select it on the
‘Databases’ section we can see that indeed it’s showing as
completed and we get the timestamp there. So this means that the site files and
the database have now been restored to the other package – so they’ve been
restored to the 20icloned.com package. So we can see this if we now go
to ‘Manage Hosting’, we go to the package that we’ve restored-to, and for example
if we go to File Manager we can see that there are now WordPress files there and
closing File Manager and going to MySQL databases… if we then log in to the
database and select the database and then select
the WP options we can see that indeed that the database has been restored-to.
However the issue here is that because we’ve cloned from one package to another
the URL is incorrect with respect to the WordPress installation so we need to
update the update this value to be the actual name of the package
that this has been restored-to. So as you can see 20i-wp.com is the package
that we’ve restored from so this is incorrect because we want it to work on
20icloned.com. So to do this I just want to grab the name of the package
that we’re doing this for, double click in the ‘option_value’ field and then I
just want to do that for home and site URL. So that’s updated within the
database with respect to the WordPress URL. Now again
because we’ve migrated from one package to another we need to update the
database credentials with respect to the WP-config file because the WP-config
of the package that we’ve cloned-to will be using the database details for the
package that we’ve migrated-from. So here I want to go into the
hosting control panel again and then I want to go to ‘File Manager’. And just while
File Manager loads what we want to do we just want to make sure that the database
password is correct and set to something that we know. So within File
Manager we then want to go to WP-config and as
we can see here it’s using the old packages database with respect to its
connection details. So we’ll update this to use the new database on the new 20iclone package. So to do this we just want to grab the database details and
then we want to update the file. The password is that that we’ve just set and
the database host let’s just check to see if that’s different – it is indeed – so
we’ll just grab that, and then once we’re happy with the changes we’ll press
‘Save’. OK, so once that’s done that should be the site cloned and hooked up
to the new database on the new package so if we now visit the site by going here
and as shown at the beginning of the video we can now see that 20iclone.com is exactly the same – sorry that’s the old one – is now exactly the same as
20i-wp.com. So that’s essentially how you use the Timeline Backups tool to
clone from one package to another. As you can see it’s really useful and will only
take you a matter of minutes to replicate one package to another. We hope
this has been helpful if you run into any issues following any of the steps
mentioned in this video let us know and we’ll be more than happy to help

3 Comments

  • WGM 247

    Thanks for that… What would happen if the original site included pictures and content i.e would the URLs that point to the images in the original site be updated to the new site URL or would we need to comb through the mysql database replacing the old URL for the new? Cheers

  • just me

    what a convoluted process, go to manageWP, if using WordPress, and click a button and it is done ! you are aware this is 2019 and we need to open this can of worms ? Staggering given you promote latest tech is used by 20i – Simply staggering

Leave a Reply

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