How to Backup Your cPanel Website: Complete Guide Print

  • cpanel backup, website backup, full backup, cpanel restore, backup cpanel, mysql backup, remote backup, backup guide
  • 0

To backup your cPanel website, navigate to the Backup interface in your cPanel dashboard (under Files section). You can download a full website backup to your computer or store it on a remote server via FTP or SCP. The system creates backup files as compressed tarballs with a .tar.gz extension.

Regular backups protect your website data from accidental deletion, server issues, or security breaches. OBHost provides multiple backup options through the cPanel interface, making it easy to safeguard your website files, databases, email accounts, and configurations.

Understanding cPanel Backup Options

The cPanel Backup interface offers two main approaches: the standard Backup tool and the Backup Wizard. New users often find the Backup Wizard easier to use because it guides you through the backup process step-by-step. Both tools provide the same functionality, so choose whichever suits your comfort level.

The system stores all backups as compressed tarball files with the .tar.gz extension. This compression reduces file size and makes downloads faster. You can extract these files using common decompression tools like WinRAR, 7-Zip, or built-in extraction utilities on Mac and Linux.

Creating a Full Website Backup

A full backup includes everything on your hosting account: website files, databases, email accounts, forwarders, filters, and configuration settings. To create a full backup, click Download a Full Web Site Backup in the Backup section. This opens the Generate a Full Backup interface.

When creating your backup, you need to choose where to store it:

  • Home Directory: Saves the backup file directly on your hosting server in your account's home directory
  • Remote FTP Server: Transfers the backup to another server using standard FTP protocol
  • Remote FTP Server (passive mode): Uses passive FTP, which works better with firewalls and NAT routers
  • Secure Copy (SCP): Transfers the backup using encrypted SCP protocol for enhanced security

Important Considerations for Full Backups

You cannot restore a full backup file directly through the cPanel interface. If you need to restore a complete backup, contact your hosting provider's support team for assistance. However, you can extract the full backup file on your computer and then upload individual components (files, databases, email accounts) back to your account.

Before attempting any restore operation, you must decompress the backup file. Once extracted, you can access individual directories and files to restore specific portions of your website.

Be aware that backup operations may fail if your account is at or near its storage quota. The backup process needs to write temporary files like database locks, which require available disk space. If you're close to your quota limit, consider deleting unnecessary files before starting a backup.

Downloading Partial Backups

Instead of backing up your entire account, you can download specific components. This approach is faster and uses less storage space. The Backup interface provides options to download:

  • Home Directory: Your public_html folder and other directories containing website files
  • MySQL Databases: Individual database backups in compressed SQL format
  • Email Forwarders: Backup of email forwarding rules
  • Email Filters: Backup of spam filters and email processing rules

To download a partial backup, scroll to the appropriate section in the Backup interface and click the download link or button next to the item you want to back up. The system generates the backup file and prompts you to save it to your computer.

Restoring from Backups

The Backup interface also allows you to restore data from backup files. You can restore databases, email forwarders, and email filters directly through the interface. Simply scroll to the Restore section, select the type of data you want to restore, browse to your backup file, and click the upload or restore button.

For restoring website files, use the File Manager or FTP to upload your files back to the correct directories. Database restores work through the MySQL Databases section after you upload the backup file through the Backup interface.

Backup Notifications

When generating a backup, you can choose to receive email notifications. Enter your email address in the notification field, and the system will send you a message when the backup completes. This feature is especially useful for large backups that take time to generate. If you prefer not to receive notifications, select the option to skip email alerts.

Best Practices for Website Backups

Create backups regularly, especially before making significant changes to your website. A good practice is to maintain at least three recent backups stored in different locations. For example, keep one backup on your hosting server, one on your local computer, and one on cloud storage or a remote server.

Test your backups periodically by restoring them to a test environment. This ensures your backup files are complete and functional. Nothing is worse than discovering a backup is corrupt when you actually need it.

If you store backups on your hosting server, they count toward your storage quota. For accounts with limited space, consider downloading backups to your computer or storing them on a remote server to free up hosting space.

Label your backup files with dates so you can easily identify which backup contains specific versions of your website. Most backup systems automatically include timestamps in the filename, but organizing your downloaded backups with clear naming conventions helps you find the right file when needed.

Remote Backup Storage

Storing backups on remote servers provides an extra layer of protection. If your hosting server experiences hardware failure or data loss, your backups remain safe on a separate system. When configuring remote backup storage, you'll need to provide connection details:

  • Server hostname or IP address: The remote server's location
  • Username and password: Credentials for accessing the remote server
  • Port number: Usually 21 for FTP or 22 for SCP (unless the server uses custom ports)
  • Remote directory: The folder path where backups should be stored

Secure Copy (SCP) offers the best security for remote backups because it encrypts data during transfer. FTP transfers are not encrypted, so sensitive data could potentially be intercepted. Use SCP when possible, especially for production websites with customer data.

Frequently Asked Questions

How long does it take to create a cPanel backup?

Backup time depends on your account size. Small websites with a few gigabytes of data typically complete in 5-15 minutes. Larger sites with extensive databases and many files may take 30 minutes to several hours. The system sends an email notification when your backup completes if you configured that option.

Can I schedule automatic backups in cPanel?

The cPanel Backup interface does not include built-in scheduling. You need to manually create backups each time. However, many hosting providers offer automatic backup services at the server level. Contact your hosting provider to learn about available automated backup options for your account.

Why does my backup download fail or time out?

Large backup files may exceed your browser's download timeout limits or PHP execution time restrictions. If downloads fail repeatedly, try using remote backup storage instead of downloading directly to your computer. Alternatively, use FTP to download the backup file from your home directory after generation completes.

What is the difference between full and partial backups?

A full backup contains everything in your hosting account: all files, databases, email accounts, and configurations in one compressed file. Partial backups let you download specific components separately, like just your home directory files or individual databases. Partial backups are faster to create and restore, while full backups provide complete account snapshots.

If you need assistance with backups or have questions about your specific hosting configuration, OBHost's support team is available 24/7. Visit our contact page or email support@obhost.org for help with backup procedures or restoration issues.


Was this answer helpful?

« Back