ServerAvatarDocs
Applications

Clone

Make a full copy of an application under a new domain on the same server, and see which parts are copied.

Clone makes a full copy of a site under a new domain on the same server. The original is only read and does not change. The copy is a separate application from the moment it is ready. Open the application, then select Clone in its sidebar, under Backups & copies. The screen says "Make a full copy of this site under a new domain on the same server."

Use Clone to move a site to a new address, to start a second site from the same files, or to keep a working copy before a big change. To try changes and push them back to the same site, use Staging instead.

Which sites can be cloned

Clone is in the sidebar of sites that keep their data in files. A site that keeps its data in a database of its own has no Clone, with one exception: WordPress, whose database is copied too. Docker applications, Adminer and phpMyAdmin have none either.

When a site is shown but cannot be cloned right now, the screen explains why instead of the form:

  • This site is still being set up: "There's nothing to copy yet. Once it's ready, you can clone it here."
  • This site didn't finish setting up: "There's nothing complete to copy. Fix the original first, or the copy would have the same problem."
  • A deploy is running: "A copy taken now could mix old and new files. Once the deploy finishes, you can clone it here."
  • This kind of site can't be cloned: "The server has no way to copy this type of site yet."

Make a copy

  1. Open Clone. The card Create a copy says "name is copied to a new domain on this server. The original isn't changed." Beside it, What gets copied lists what the copy takes and what it leaves behind.

    The Clone screen with the Domain for the copy and Name fields, the Before you clone notes and the What gets copied list

  2. In Domain for the copy, enter the new domain. The field starts with a free suggestion: copy. followed by the original domain, then copy-2. and so on if that one is taken. When the field is empty, select Suggested: to fill it in again.

  3. In Name (optional), enter a name, or leave it empty. The empty field says "Leave it empty to use “name (Clone)”." If that name is taken, the server adds a number, for example (Clone) 2.

  4. Read Before you clone:

    • "Point the new domain at this server first. The copy gets its own HTTPS certificate once it does."
    • "Password protection isn't copied. The copy is public until you turn it on." This note shows only when the original has password protection.
    • "A large site takes a few minutes to copy."
  5. Select Clone site. A dialog asks Clone name? and repeats Copy of, New domain and Name.

    The Clone dialog asking to confirm the copy of acme-blog to a new domain

  6. Select Clone site again.

While it copies

The card changes to Making the copy with "Copying to domain". It says "Waiting to start…" first, then Step n of total with a progress bar. "You can leave this page. The copy carries on, and this page shows it again when you come back." The page reads the copy every 3 seconds for up to 30 minutes. If you reload, the address ends in ?clone= and the copy's number, and the page shows the same progress again.

When it is done

The card says The copy is ready: "It's a separate site now: changes to it don't touch the original." Under Before you use it:

  • "Point the domain at this server, so it can get its HTTPS certificate."
  • "Set up backups for the copy. Nothing is backed up yet."
  • "Turn password protection back on. The original has it; the copy is public." This line shows when the original has password protection.

Select Open the copy to open the new application, or Make another copy for a fresh form with the next free suggestion.

When it fails

The card says The copy couldn't be made and "Nothing changed on the original. It's only read from." It shows the reason, or "The reason wasn't recorded.", and a "Reference: code" to give to support. Select Try again for a fresh form.

What gets copied

CopiedNot copied
FilesSSL certificate (the copy gets its own)
Database (WordPress sites)Backups
PHP versionCron jobs
Web rootWorkers
Repository and branch (Git sites)Password protection
Deploy on push (Git sites)

The copy is an application of its own: it is listed on the server's applications page, and it counts as one more application on a Control Panel customer's limit.

Copies of this site

When a site has been cloned, the screen lists its copies under 1 copy of this site or n copies of this site. Each row has the name, the domain, "made time" and a link to the copy. A status badge shows when a copy is not active.

Limits

  • Domain for the copy: a host name with at least two labels, up to 253 characters, a real top-level domain, and not an IP address. Central trims it and changes it to lowercase.
  • Name: up to 255 characters.
  • Cloning to another server is not available: "Cloning to another server is coming later."
  • A new clone can be started 5 times a minute on a server's panel.

Who can do this

  • Seeing the screen needs View on Clone (application.clone). Cloning needs Manage. With view only the screen says "You can view this page. Ask an owner for manage access to clone this site."
  • Clone can be given in a server share and has its own permission, separate from Staging Area.
  • A Control Panel customer can clone only while under the application limit.
  • A clone is recorded in the server's activity log. See Application activity.

Common errors

  • Enter a domain like copy.example.com. The domain is not a valid host name.
  • Another site on this server already uses this domain. Pick another domain.
  • You need manage access to Clone to copy this site. Ask an owner for manage access.

On this page