{"id":2295,"date":"2024-08-11T06:42:23","date_gmt":"2024-08-11T10:42:23","guid":{"rendered":"http:\/\/sites.bu.edu\/marcom-team\/?page_id=2295"},"modified":"2025-10-21T10:31:27","modified_gmt":"2025-10-21T14:31:27","slug":"cloning-sites","status":"publish","type":"page","link":"https:\/\/sites.bu.edu\/marcom-team\/departments\/interactive-design\/common-processes\/cloning-sites\/","title":{"rendered":"Cloning Sites"},"content":{"rendered":"<p>Cloning a site copies its content, files, and settings. The theme and plugin functionality is assigned, but separate, to a site<span style=\"font-weight: 400;\">\u2019<\/span>s content.<\/p>\n<hr \/>\n<h2>Migration Tool<\/h2>\n<p>Designers &amp; Developers can clone a production server site to their development sandbox using the migration tool in their sandbox admin.<\/p>\n<p>Access the migration tool by visiting your sandbox admin [root URL] and selecting &#8220;Clone Site&#8221; under the Sites tab.<\/p>\n<p><strong>Example:<\/strong> <code>https:\/\/<strong>YOUR-SANDBOX<\/strong>.cms-devl.bu.edu\/wp-admin\/network\/sites.php?page=bu-clone-site<\/code><\/p>\n<div class=\" bu-callout aligncenter\"><\/p>\n<h4>Because the clone tool doesn&#8217;t do it\u2026<\/h4>\n<h2><span style=\"color: #cc0000;\">Sandbox sites MUST <u>ALWAYS<\/u> have WordPress Reading settings <span style=\"text-decoration: underline;\">SET<\/span> <span style=\"text-decoration: underline;\">TO<\/span> <span style=\"text-decoration: underline;\">UNLISTED<\/span> to prevent search engines from indexing them.<\/span><\/h2>\n<p><\/div>\n<hr \/>\n<h2><strong>How the Clone Tool Works<\/strong><\/h2>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Only two clones can run at a time \u2013 the rest will show as pending, and can\u2019t be canceled. Please do not run large clones at the beginning of the workday, or more than two clones at a time, to avoid clogging up the clone tool for everyone.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Content can always be cloned FROM live, but never TO live. For example, in Production &gt; Staging &gt; Sandbox, you can clone from production to staging, staging to a sandbox, or production to a sandbox. But you can never clone your sandbox back up to production or staging.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You can clone from sandbox to sandbox. For example, you can clone from your sandbox to id-presents, because they are both sandboxes. But you cannot clone id-presents to staging because it is going TO live, not FROM live.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Cloning a site only clones content, not theme or plugin files. To get an exact copy of a website, you should clone first, and then update your sandbox by uploading the latest version of the theme or plugin. You can do this by <\/span><a href=\"http:\/\/sites.bu.edu\/marcom-team\/departments\/interactive-design\/technical-software\/ftp-server-settings\/\"><span style=\"font-weight: 400;\">uploading files through SFTP<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"> If you need to update many themes or plugins, or are very behind because you haven\u2019t worked on code in a few months, you can also request a deploy to your sandbox.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">The only exception to this rule is launching a site, which moves content from Staging to Production (but that\u2019s not a clone; that\u2019s a launch).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Any member of ID and IS&amp;T, as well as their vendor partners, has the ability to clone a site down to their sandbox to make and view theme and plugin adjustments.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">However, before cloning a site down to a shared sandbox, such as <code>id-presents<\/code>, check to see if there is a copy already up, and check with the team in Slack to make sure no one else has been working on the site recently, as all changes will be overwritten upon cloning.<\/span><\/p>\n<h2><strong>Clone Tool Instructions<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">To clone to a sandbox, such as <code>id-presents<\/code>:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In your sandbox&#8217;s WordPress Admin: visit <strong>Sites<\/strong> &gt; <strong>Clone Site<\/strong><br \/>\n(The URL will be something along the lines of <code>https:\/\/<strong>id-presents<\/strong>.cms-devl.bu.edu\/wp-admin\/network\/sites.php?page=bu-clone-site<\/code>. Replace the bolded portion of this URL with your sandbox name.)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter the full URL of the live site you would like to clone down, e.g., <code>http:\/\/www.bu.edu\/interactive-design<\/code> <\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The destination URL on your sandbox will automatically populate in the next field.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">If a site already exists there, it will display a warning. In that case, you will also need to check the \u201c<strong>Force clone to execute<\/strong>\u201d box.<br \/>\nIn most cases, you\u2019ll want to leave the \u201cRemove existing users\u201d box checked.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click \u201c<strong>Clone Site<\/strong>\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Upon submitting, you will be given the option to monitor the status of the clone. You can also find this by going to <strong>Jobs Monitor<\/strong> in the WordPress network admin for your sandbox. The status will show as \u201cComplete\u201d when the clone process is finished.<\/span><\/li>\n<\/ol>\n<h2><strong>Advanced Topics<\/strong><\/h2>\n<h4><strong>Skipping rsync<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">There is a new option available in the deploy tool under the SHOW ADVANCED OPTIONS section of the clone tool, `Skip rsync of media library.` This option will skip rsync of the media library from the source URL to the destination URL. This is needed for the Homepage and will be useful for other sites like Law, where an updated clone is needed for development but the media library is not needed.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you choose this option, you are required to understand the rsync process and manually rsync the media library as needed.<\/span><\/p>\n<h4><strong>BU Homepage<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">With the launch of One Editorial for the BU Homepage, the standard cloning process no longer works. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">The skip rsync option was added so the clone of the Homepage would complete. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">At the time of writing this, the Homepage clone takes 1.25 hours without the rsync. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">R<\/span><span style=\"font-weight: 400;\">sync of the files needs to be completed manually.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cloning a site copies its content, files, and settings. The theme and plugin functionality is assigned, but separate, to a site\u2019s content. Migration Tool Designers &amp; Developers can clone a production server site to their development sandbox using the migration tool in their sandbox admin. Access the migration tool by visiting your sandbox admin [root [&hellip;]<\/p>\n","protected":false},"author":12906,"featured_media":0,"parent":689,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/sites.bu.edu\/marcom-team\/wp-json\/wp\/v2\/pages\/2295"}],"collection":[{"href":"https:\/\/sites.bu.edu\/marcom-team\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.bu.edu\/marcom-team\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.bu.edu\/marcom-team\/wp-json\/wp\/v2\/users\/12906"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.bu.edu\/marcom-team\/wp-json\/wp\/v2\/comments?post=2295"}],"version-history":[{"count":8,"href":"https:\/\/sites.bu.edu\/marcom-team\/wp-json\/wp\/v2\/pages\/2295\/revisions"}],"predecessor-version":[{"id":4042,"href":"https:\/\/sites.bu.edu\/marcom-team\/wp-json\/wp\/v2\/pages\/2295\/revisions\/4042"}],"up":[{"embeddable":true,"href":"https:\/\/sites.bu.edu\/marcom-team\/wp-json\/wp\/v2\/pages\/689"}],"wp:attachment":[{"href":"https:\/\/sites.bu.edu\/marcom-team\/wp-json\/wp\/v2\/media?parent=2295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}