# Cloning Websites
# About
Cloning a website will make a direct copy of the website, including all existing files and databases. Email accounts will not be cloned.
A website can only be cloned to the organisation it exists in.
# Configure cloning functionality
In order to successfully clone websites the following settings must be configured:
- The hosting package must allow 'Website cloning'
WARNING
The Application server the cloned website is provisioned to must use the standard SSH port (22) and connections to this port must be allowed from the server that the website being cloned is running on. Custom SSH ports will cause cloning to fail.
# Clone a website
To clone an existing website:
- Open Websites in the left side bar
- Click Add new
- Select Clone a website and complete the form
- Click Add to finish
# Troubleshooting
# Failed to clone a website
If a website clone fails, follow these steps to resolve the issue:
- Check ufw is enabled on the source server, this is required for container connectivity
- Check you can ssh from the source server to the destination server
- If ssh is firewalled on the destination server, check port 22 is open to the source server
- If the ssh port on the destination server has been customised, change it back to 22
- On the destination server, check public key authentication is enabled in ssh (this is the ubuntu default)
- If you have any 3rd party addons or firewall scripts on the destination server, check the IP of the source server is allowed