Clone Live to Dev
In part six of our Quick Start guide, learn how to clone your content from Live to Dev.Discuss in our Forum Discuss in Slack
In this lesson, we’ll explore your Live site and add an article or post to simulate working on a real production site. Then we’ll clone your Live site “down” to your Dev site.
Create an Article on the Site
Click the Site Admin button to open your Live site in a new tab. You’ll need to log in before being directed to the site administration dashboard.
NoteYour WordPress or Drupal username and password are the same set you created when you installed your Dev site for the first time.
Create a new Drupal article or WordPress post. If you need help with this step, refer to the WordPress Codex or Drupal Documentation on how to add a post or article. When finished, visit the front page of your site and confirm that you can see the new content.
Pull the Content Down to Dev (Clone Live to Dev)
Go back to your Site Dashboard, click the Dev tab, and open your Dev site by clicking Visit Development Site.
Notice that the content you just created on your Live site doesn’t appear on your Dev site. This is because each environment is a stand-alone copy of your site, with its own codebase, database, and files.
It’s important to develop on a recent copy of your site with the newest content, so let’s clone your Live site—with its new content—to your Dev environment.
Consider creating a backup before proceeding. After the next step, you will not be able to recover Dev database and files without a backup:
Create Backup (optional)
The Backups tab is where you manage all the details for your site's backup. A backup is composed of 3 separate archives for database, files, and code. Let’s create a backup now:
- Click Backups on the Dev tab of your Site Dashboard.
- Click Create New Backup.
Navigate to your Site Dashboard, select the Dev tab, and then click Database / Files.
Select Live from the From this Environment list to clone the database and files from the Live site.
As intended, this action will overwrite your Dev database and files. If you skipped the backup task you will be unable to recover this data hereafter.
The Clone operation only copies the files folder (
sites/default/files) and does not include core, theme, plugins or modules.
Click Clone the Database & files from Live into the Development Environment.
Click Visit Development Site when this is complete to confirm that the content you created on your Live site now appears on your Dev site.
Nice work! You added a page to your Live site, then cloned this environment "down" to Dev. Your Dev environment is a safe place for editing code, and now it's up-to-date with your latest content.