How to back up and restore your website in cPanel
A backup is a copy of your website files, databases and email settings that you keep in a safe place. If something goes wrong after an update, a hack or a mistake, you can restore it. This guide shows you how to take a backup in cPanel and how to restore it.
1) Open Backup
In cPanel, go to the Files section and click Backup (1).
2) Choose the backup you need
- Download a Full Account Backup (1): a copy of the whole account (files, databases, email, settings). It is used to move the account to another server, and it is created in the background; you get an email when it is ready.
- Home Directory (2): downloads all your files (website and email) as one
.tar.gzfile. - Databases (3): click the database name to download it as a
.sql.gzfile. For WordPress you need both the home directory and the database.
3) Restore a backup
Under Restore a Home Directory Backup click Choose File (4), choose the .tar.gz file you downloaded before and click Upload (5). The files in the backup replace the current ones. To restore a database, use Restore a Database Backup the same way with the .sql.gz file.
Tips
- Keep at least two copies in different places (your computer and Google Drive, for example).
- Write the date in the file name so you know which backup is the latest.
- Test a backup from time to time: open the archive and make sure the files are there.
Common problems
- The full backup takes a long time → big accounts take longer. Wait for the email; do not start several backups at once.
- The upload stops during restore → the file is too big for the browser. Open a ticket and we will restore it for you.
- Not enough disk space for the backup → check Disk Usage and delete old backups and unused files.
Frequently asked questions
Can EgWeb restore an older copy of my site?
Yes, from the server backups when available. Open a ticket with the date you need.
Does the home directory backup include email?
Yes, the email messages are inside the mail folder of the home directory.
How do I back up only one database?
Click its name under Download a Database Backup, or export it from phpMyAdmin: see How to export and import a database with phpMyAdmin.

