
Transferring files or data between hosting providers can seem daunting, but it’s essential for website management, especially when migrating to a new host or recovering from a mistake like accidentally deleting files or databases. Fortunately, with cPanel, moving your files from one host to another is straightforward. In this article, we’ll explore two simple methods to transfer files, including using a full cPanel backup for faster and more secure transfers.
Why Transfer Files Between Hosts?
Mistakes happen—files can be accidentally deleted, databases might be lost, or you may decide to switch hosting providers. Transferring your website’s data ensures that you retain all the valuable information stored on your site, allowing for seamless recovery or migration.
We’ll outline two effective methods to help you transfer your files from one host to another via cPanel.
Method 1: Manual File Transfer Using File Manager
If you prefer manual control over your transfer, follow these steps to move your files from your old host to the new one.
Step 1: Log Into Your Old cPanel Account
Start by logging into your old cPanel account from your previous hosting provider.
Step 2: Access the File Manager
In the cPanel dashboard, locate and click on File Manager. Open the public_html
folder, where all your website files are stored.
Step 3: Select and Compress Files
In the public_html
folder, click on the Select All button at the top of the page. This will select all the files and folders in your website’s root directory.
- Right-click on the selected items and choose the Compress option.
- Give the compressed folder a suitable name (e.g., “website_backup.zip”).
- Once compressed, the file will appear in the
public_html
folder.
Step 4: Download the Compressed Backup
Now, download the compressed backup file to your local system by right-clicking on it and selecting the download option.
Step 5: Export Database from phpMyAdmin
If your website has a database, you’ll need to export it from phpMyAdmin:
- Go to phpMyAdmin from your cPanel dashboard.
- Select your database and click on the Export tab.
- Choose Quick Export and click Go to download the database as an SQL file.
Step 6: Upload Files to the New Host
Log into your new cPanel account with your new hosting provider. Access File Manager and go to the public_html
folder.
- Click the Upload button and select the compressed backup file you downloaded earlier.
- Once uploaded, right-click and choose Extract to unpack the contents into the
public_html
directory.
Step 7: Import Database
If you have a database, go to phpMyAdmin in the new cPanel account. Create a new database, then import the SQL file you previously exported by clicking the Import tab.
Your files and database will now be transferred, and your website will be live on the new host.
Method 2: Full cPanel Backup Using Backup Wizard
If you want a simpler and more comprehensive method, the Backup Wizard is an excellent option. This method allows you to move the entire cPanel account, including files, databases, email settings, and more, in just a few clicks.
Step 1: Log Into Your Old cPanel Account
Start by logging into your old cPanel account and navigate to the Backup Wizard tool.
Step 2: Choose Full Backup
In the Backup Wizard, you’ll have the option to choose between a Full Backup and Partial Backup. To transfer everything—including files, databases, and email settings—select Full Backup.
Step 3: Select Backup Destination
Choose the destination for your backup. You can:
- Store it locally in your home directory (on the same server).
- Send the backup to another host via FTP. If you want to transfer files directly to your new host, choose the Remote FTP Server option and enter the FTP credentials for the new hosting provider.
Ensure you specify an email address to receive a notification once the backup is complete.
Step 4: Generate and Transfer the Backup
Click the Generate Backup button. The system will start creating a full backup of your cPanel account. You’ll receive an email when the process is done.
If you selected the Remote FTP Server option, the backup will be sent directly to the new host.
Step 5: Log Into the New Host
Once the backup has been sent, log into your new hosting provider’s cPanel account and check the public_html
folder for the backup file.
Step 6: Restore the Backup
Extract the backup file in the public_html
folder to complete the transfer. Additionally, if your backup includes databases, import them via phpMyAdmin using the same process as described in Method 1.
Why Method 2 is Recommended
While both methods work effectively, Method 2 is generally easier, especially for large websites with multiple databases and files. The Backup Wizard allows you to move all of your cPanel data—including emails, databases, and files—without manually downloading and uploading files. This automated process is quicker, more secure, and minimizes the risk of data loss during the transfer.
Conclusion
Transferring your website’s data from one host to another might seem complex, but with the right tools, it’s a smooth and simple process. Whether you prefer manually handling your files or using the cPanel Backup Wizard for a seamless transition, these methods will help ensure that your website stays safe and fully functional during the move.
By following the steps outlined in this guide, you can confidently switch hosting providers or recover from accidental file deletions without any hassle.