Back Up and Restore in cPanel

Updated: 4 December 20264 min read15 viewsMarkdown

A backup is the only reliable way to put your site back within minutes when something goes wrong. This guide shows how to create backups with cPanel's built-in Backup tool and how to restore files and databases.

Arrow from a website to an archive box and back, next to a calendar
Back up, keep it safe, restore when needed.

Before you start

  • Voligen hosting plans include free backups. For how often server-side backups run and how long they are kept, check your service details or ask support.
  • A manual backup taken right before a big update, theme change or migration is always the most current one.
  • A full backup file uses your disk quota; make sure you have enough free space.

Backup types

TypeContentsWhen to use
Full account backupFiles, databases, email, DNS and account settingsArchiving or moving to another server
Home directory backupAll files and mailboxesRestoring files yourself
MySQL database backupOne database (.sql.gz)A quick backup before updates
Email forwarders and filtersForwarding and filter rulesKeeping your email configuration

Creating and restoring backups

  1. In cPanel, click Backup in the Files section.
  2. Under Partial Backups, click what you want to download: the Home Directory button downloads your files, and each database name downloads that database as a separate file. For a full backup, click Download a Full Account Backup, choose Home Directory as the destination, enter an email address for the completion notice and click Generate Backup.
  3. To restore, use Restore a Home Directory Backup or Restore a MySQL Database backup on the same page: choose the file and click Upload.
Three steps: backup icon, list of backups to download, restore area
1: The Backup tool, 2: download a backup, 3: choose a file and restore.
Note

A full account backup is saved in your home directory as backup-...tar.gz. Download it, then delete it from the server; otherwise it fills your quota and gets included in the next full backup.

Restoring a full backup

cPanel's own interface cannot restore a full account backup; a server administrator does that. If you need a full restore, upload the backup file to your home directory and open a ticket from the client area. If you only need files or a single database, the partial restore above is enough.

Warning

A restore overwrites existing files and databases. Back up the current state first, so you can go back if you pick the wrong backup.

A good backup routine

  • 3-2-1 rule: at least 3 copies, on 2 different media, 1 off the server. Besides server backups, keep a copy on your computer or in cloud storage.
  • Before changes: back up files and the database before plugin, theme or PHP version updates.
  • Test: now and then, open a backup archive and check that the files and the .sql file are intact.

Troubleshooting

SymptomLikely causeFix
The full backup email never arrivesLarge accounts take a long timeWait a while and check whether the file has appeared in your home directory.
Backup cannot be createdDisk quota fullDelete old backups and unneeded files.
Database restore failsFile corrupt or too largeTry importing it with phpMyAdmin, or open a ticket.

Frequently asked questions

Does Voligen take backups for me?

Yes, plans include free backups. We still recommend your own backup before critical changes, so you always hold the latest state.

Can I restore a single file?

Yes. Extract the home directory backup on your computer and upload that file again with File Manager or FTP.

Can I use the backup to move to another provider?

A cPanel full backup is the standard format for moving to another cPanel server. You can use it when moving to us, too.

Need help with a restore? Open a ticket from the client area. Plans with backups included: Linux web hosting.

Was this article helpful?
Thank you for your feedback.