How to Create a Backup of Your WordPress Site in cPanel and Plesk
Print
  • Copia de Seguridad de Tu Sitio WordPress
  • 3453

How to Create a Backup of Your WordPress Site in cPanel and Plesk

Creating a backup of your WordPress site is crucial to ensure that you can restore your website in case of errors or problems. Here's a step-by-step guide on how to create a full backup of your WordPress site using both cPanel and Plesk.


Creating a Backup in cPanel

Step 1: Backup Your Website Files

  1. Log in to cPanel.

    • You can access cPanel by going to http://yourdomain.com/cpanel or via your hosting provider's dashboard.

  2. Navigate to File Manager.

    • In the Files section, click on File Manager.

    • In the File Manager, navigate to the public_html folder (or the directory where your WordPress site is installed).

  3. Download Your Website Files.

    • Select all the files and folders related to your WordPress installation (e.g., wp-content, wp-config.php, .htaccess, etc.).

    • Right-click and choose Compress to create a .zip archive of your site files.

    • Once the files are compressed, select the zip file and click Download to save it to your local computer.

Step 2: Backup the WordPress Database

  1. Go to phpMyAdmin.

    • In cPanel, go to the Databases section and click on phpMyAdmin.

  2. Export Your Database.

    • Select the WordPress database (you can find the database name in the wp-config.php file of your site).

    • Once the database is selected, click on the Export tab at the top.

    • Choose the Quick export method and select SQL as the format.

    • Click Go to download the database .sql file to your computer.


Creating a Backup in Plesk

Step 1: Backup Your Website Files

  1. Log in to Plesk.

    • You can access Plesk by going to https://yourdomain.com:8443 or by logging into your hosting provider's Plesk dashboard.

  2. Navigate to File Manager.

    • In the Plesk panel, find the Websites & Domains section and click on File Manager.

    • Locate the httpdocs (or the folder where your WordPress site is installed).

  3. Download Your Website Files.

    • Select all files and folders associated with your WordPress site (e.g., wp-content, wp-config.php, .htaccess, etc.).

    • Click Archive to create a .zip file.

    • Once the archive is created, click on it and select Download to save it to your local computer.

Step 2: Backup the WordPress Database

  1. Go to phpMyAdmin.

    • In the Plesk dashboard, go to Databases under the Websites & Domains section.

    • Click on the WordPress database.

    • From the database page, click on phpMyAdmin to open the database management tool.

  2. Export the Database.

    • In phpMyAdmin, select the WordPress database.

    • Click on the Export tab.

    • Choose the Quick export method and select SQL as the file format.

    • Click Go to download the .sql file of your database to your computer.


Using Backup Tools in cPanel and Plesk

Option 1: Full Backup in cPanel

  1. Log in to cPanel and go to the Files section.

  2. Click on Backup.

  3. Under Full Backup, click Download a Full Website Backup.

  4. Choose the backup destination (you can select Home Directory or Remote FTP Server if you want to store it elsewhere).

  5. Click Generate Backup.

  6. Once the backup is generated, you can download it from the Backups Available for Download section.

Option 2: Full Backup in Plesk

  1. Log in to Plesk and go to Websites & Domains.

  2. Click on Backup Manager.

  3. Click Back Up and choose Full Backup.

  4. Select the backup destination (e.g., your local computer or remote FTP).

  5. Click OK to start the backup process.

  6. Once the backup is finished, download it from the backup section.


Restoring the Backup

If you need to restore your backup, simply:

  1. Upload the website files (via File Manager or FTP) to the correct directory on your new server or hosting account.

  2. Import the database via phpMyAdmin (by selecting Import after choosing the database and uploading the .sql file).

  3. Edit the wp-config.php file to reflect the new database settings if you're migrating to a new server.


Creating a backup of your WordPress site in cPanel and Plesk is an essential task to safeguard your website. With the above steps, you can easily back up both the files and the database of your WordPress site. It's recommended to create regular backups and store them in a secure location to avoid any potential data loss.

If you have any further questions, feel free to ask!

Was this answer helpful?

Related Articles