Step-by-Step Guide to Backing Up and Restoring Full Files on cPanel
Backing up your website is essential to prevent data loss in case of server failures, hacking attempts, or accidental deletions. Follow this step-by-step guide to create a full backup of your website using cPanel and restore it when needed.
Backing Up Your Website
Step 1: Log in to Your cPanel
- Open your web browser and navigate to your cPanel login URL (e.g., https://spider.dnscapweb.top:2087/).
- Enter your cPanel username and password.
- Click the Log in button.
Step 2: Locate the Backup Tool
- Once inside cPanel, scroll down to the Files section.
- Click on Backup or Backup Wizard (both options work, but Backup Wizard provides a more guided process).
Step 3: Choose Full Backup Option
- If using Backup Wizard:
- Click on Backup.
- Select Full Backup.
- If using Backup Tool:
- Click Download a Full Website Backup.
Step 4: Select Backup Destination
- In the Backup Destination dropdown menu, choose Home Directory (recommended for quick access).
- Optionally, enter an email address to receive a notification when the backup is complete.
- Click Generate Backup.
Step 5: Download the Backup File
- Wait for the backup process to complete (this may take a few minutes to hours, depending on the size of your website).
- Once the backup is ready, go back to the Backup section.
- Find the backup file under Available Backups to Download.
- Click on the file link to download it to your local computer.
Step 6: Store the Backup Safely
- Save the downloaded backup file to a secure location, such as an external hard drive, cloud storage, or a USB device.
- Keep multiple backups in case you need to restore your website later.
Optional: Backup via File Manager or FTP
If you prefer a manual backup:
- Go to File Manager in cPanel.
- Locate your public_html directory.
- Compress the folder into a .zip file.
- Download the compressed file to your local device.
For FTP:
- Use an FTP client like FileZilla.
- Connect to your website using your FTP credentials.
- Download all files from the public_html folder to your computer.
Restoring Your Website from Backup
Step 1: Log in to Your cPanel
- Open your web browser and navigate to your cPanel login URL.
- Enter your cPanel username and password.
- Click the Log in button.
Step 2: Locate the Backup Restore Tool
- In the Files section, click on Backup or Backup Wizard.
- If using Backup Wizard, select Restore.
Step 3: Upload the Backup File
- Click on Restore a Home Directory Backup.
- Choose the backup file you previously downloaded.
- Click Upload and wait for the process to complete.
Step 4: Restore Database (If Applicable)
- If your backup includes a database, go to phpMyAdmin in cPanel.
- Select the existing database or create a new one.
- Click on Import, choose the database file from your backup, and click Go.
Step 5: Verify Your Website
- Once the restoration is complete, visit your website to ensure everything is functioning correctly.
- If any issues arise, check file permissions or contact your hosting provider for assistance.
Conclusion
Regularly backing up and knowing how to restore your website ensures that you can recover quickly from any data loss. Follow these steps to keep your site safe and secure.