# Download/upload an Enhance website backup
# About
Enhance’s download/upload feature lets users export all website or email data from a site on Enhance and import it into another Enhance website. This makes it easy for users to move between clusters belonging to different organisations.
When a user downloads a backup of their website, a tar.gz is created under their website user on the assigned web server for the website - or the assigned email server in the case of an email data download.
This backup is streamed via the control panel server and will begin downloading whilst the tar.gz is being created. No temporary file is created and no additional storage is required.
TIP
To ensure larger imports (+10GB) succeed we recommend running Apache or Nginx on your control panel .
When a user uploads a backup, it will be scanned for validity when the upload begins - if it is not a valid Enhance backup, the upload will be rejected. The data is then streamed via the control panel server to the assigned web or email server depending on the type of backup. Where possible, existing database users and emails will be re-created but failure to create (due to conflict or similar) will not prevent the home directory data from being extracted. Again no temporary storage is required with the exception of the database backups which are extracted to the home dir for later import to mysql.
The backup upload process will not attempt to change the primary domain or map new domains, this should be done manually. If you are importing emails, it should be done before the backup is uploaded to ensure the addresses can be re-created.
The ability to download and upload a website backup is availbale to end users by default. This feature is not dependant on the availability of a backup role or any backup related package settings.
# Download a backup
To download a backup of a website:
- Open Websites in the left side bar
- Select Manage on the website you would like to download
- When the website dashboard loads click ... in the top left hand corner and select either Download website data or Download email data. On click, the file will download to your browser immediately.
Download website data - this will download all files and databases.
Download email data - this will download all email accounts and passwords.
# Upload a backup
When uploading a backup to a website, the site's previous backups will still be available.
To upload a backup:
Uploads are subject to the email and databases resources available on a package.
- Open Websites in the left side bar
- Select Add website and create a blank website
- When the website dashboard loads select Upload backup
- When the modal loads, select Choose file and select your backup. Once a file is selected, the import will begin automatically.