Creating and Restoring Backups in cPanel

This guide explains how to create full and partial backups of your website using cPanel, as well as how to restore your files, databases, and email data when needed. Backups are essential for protecting your site from accidental changes, data loss, or security issues.

  1. Accessing the Backup Tools

cPanel provides two main backup tools:

  • Backup
  • Backup Wizard

Both tools perform similar functions, but Backup Wizard offers a more guided, step-by-step process. This article focuses on the standard Backup tool for clarity.

To access it:

  1. Log in to your cPanel dashboard.
  2. Scroll to the Files section.
  3. Select Backup.
  1. Creating a Full Account Backup

A full backup includes:

  • Website files
  • Databases
  • Email accounts
  • Email forwarders and filters
  • DNS settings
  • Home directory contents

To create one:

  1. In the Full Backup section, click Download a Full Account Backup.
  2. Choose a Backup Destination:
    • Home Directory is the most common choice.
  3. Enter your email address if you want a notification when the backup is complete.
  4. Click Generate Backup.

Once finished, the backup file will appear in your home directory for download.

Note: Full backups cannot be restored directly through cPanel. They are mainly for migrations or manual restoration.

  1. Creating Partial Backups

Partial backups allow you to download specific parts of your account.

Home Directory Backup

This includes your website files, configuration files, and email data.

  1. Under Partial Backups, click Download Home Directory.
  2. Save the file to your computer.

Database Backups

  1. Under Download a MySQL Database Backup, click the database you want to download.
  2. Save the .sql.gz file.

Email Forwarders and Filters

You can download these individually using the links provided.

Partial backups are ideal for quick restores or before making changes to your site.

  1. Restoring Backups

You can restore partial backups directly through cPanel.

Restoring Home Directory Files

  1. In the Restore a Home Directory Backup section, click Choose File.
  2. Select your backup file.
  3. Click Upload.

Restoring a Database

  1. In the Restore a MySQL Database section, click Choose File.
  2. Select the .sql.gz file.
  3. Click Upload.

Restoring Email Forwarders or Filters

Upload the corresponding backup file in the appropriate section.

Important: Restoring a database will overwrite existing data, so make sure you have the correct backup.

  1. Best Practices for Backups
  • Download backups regularly to your computer or cloud storage.
  • Keep multiple versions in case one becomes corrupted.
  • Back up before major changes, such as updates, migrations, or plugin installations.
  • Avoid storing too many backups on your hosting account, as they can use up disk space quickly.
  1. Troubleshooting Common Backup Issues

Backup Fails to Generate

  • Your account may be low on disk space.
  • Delete old backups or unused files and try again.

Cannot Restore Database

  • The file may be too large for the upload limit.
  • Try importing through phpMyAdmin instead.

Backup File Missing

  • Check your home directory using File Manager.
  • Ensure the backup completed successfully.

Slow Backup Generation

  • Large sites may take several minutes.
  • Avoid navigating away from the page until the process starts.

 

 

آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

How to Create and Manage Email Accounts in cPanel

This guide explains how to create, manage, and access email accounts for your domain using...

Using phpMyAdmin to Manage MySQL Databases

This guide explains how to use phpMyAdmin in cPanel to view, edit, and manage your MySQL...

Managing Domains and Subdomains in cPanel

This guide explains how to manage your domains and subdomains in cPanel, including adding new...

Understanding and Using cPanel File Manager

This guide explains how to use the cPanel File Manager to upload, edit, organise, and manage...

Setting Up and Managing FTP Accounts

This guide explains how to create, configure, and manage FTP accounts in cPanel. You will learn...

Powered by WHMCompleteSolution