When to use this
Use this guide when an update broke your site, files were deleted, or you want a copy of your site before making changes. There are two kinds of backup to think about:
- Backups you make yourself in cPanel and download to your computer or cloud storage.
- The host's backups. ODHOST shared plans list weekly backups. See website backups for what that covers.
ODHOST note: Whether you can restore ODHOST's weekly backups yourself from cPanel, and how many past copies are kept, is not published. Confirm with support before you rely on them, and keep your own downloads.
Make a backup you control
- Open Files > Backup in cPanel (or Backup Wizard for a guided version). Menus vary by version and host configuration.
- Click your home directory under Download a Home Directory Backup. This saves a
.tar.gzfile of your website files and mail folders. - Click each database name under Download a MySQL Database Backup. Each saves a
.sql.gzfile. - Download the email forwarders and filters files if you use them.
- Store the files off the server, ideally in two places such as your computer and a cloud drive.
The Download a Full Account Backup option creates a complete archive too, but cPanel cannot restore it for you; only the host can, from WHM. It is still useful as a complete copy or for moving to another host.
Restore from your own backup
Restore website files
- Open Files > Backup and find Restore a Home Directory Backup.
- Choose your
.tar.gzhome directory file and click Upload. - Wait for the confirmation. Large files can exceed the upload limit; in that case, upload the archive with FTP and ask support to restore it, or extract only the folders you need in File Manager.
To restore a single file, open the archive on your computer, find the file under homedir/public_html/, and upload it with File Manager.
Restore a database
- Open Files > Backup and find Restore a MySQL Database Backup.
- Choose your
.sql.gzfile and click Upload. The database must already exist with the same name; if not, create it first using creating a MySQL database in cPanel. - Use phpMyAdmin's Import tab as an alternative for smaller files.
For WordPress and other database driven sites, restore the files and the database from the same date. Mixing a new database with old files, or the other way round, often causes errors.
If your cPanel has a restore tool
Some servers add a restore interface, such as cPanel's File and Directory Restoration or a third party backup tool, that lists host backups by date. If you see one, pick the date before the problem, restore a single folder first to test, then the rest.
Request a restore from ODHOST's weekly backups
- Decide exactly what you need: the whole site, one folder, one file, one database, or email.
- Pick the date: the most recent date before the problem started.
- Open a ticket from the client area, following how to open a support ticket.
- Include:
- The domain and the cPanel username
- What to restore, with exact paths or database names
- The date and time you want (IST), and when the problem began
- Whether to overwrite current files or restore into a separate folder such as
public_html/restored/
- Avoid changes to the affected files while the restore is in progress.
How to confirm it worked
- The site shows the content from the date you chose.
- You can log in to the admin area and recent orders or posts you expected are present.
- No new errors appear in Metrics > Errors or
error_log.
If it still fails
Reply on the same ticket with the URL that looks wrong, what you expected to see, and any error messages. If you restored it yourself and it failed, include the backup file name, its size, and the exact message cPanel showed. Never send passwords in the ticket.
Frequently asked questions
Do ODHOST plans include backups?
Yes, every ODHOST shared plan lists weekly backups. Ask support whether you can restore them yourself and how far back they go, because that is not published.
Can I restore a full cPanel backup myself?
No. cPanel's documentation says a full backup file cannot be restored automatically from cPanel; that needs WHM, which only the host can use. Restore the home directory and databases separately, or ask support.
Will restoring files delete files I added later?
A home directory restore overwrites files that have the same name but generally leaves newer, extra files in place. Restore to a clean folder or remove unwanted files afterwards if you need an exact copy.
How often should I download my own backup?
At least monthly, and always before updates, redesigns or plugin changes. Busy shops and sites that change daily need more frequent copies.