One of the most important skills every webmaster should have is the ability to manage website backups and perform server migrations when necessary.
Backups can be handled manually or by using popular backup plugins.
Manual Backup and Migration Steps:
- Backup Files:
Use cPanel File Manager to compress all website files into a.zip
archive and download it to your local computer. - Export Database:
Access phpMyAdmin, select your website’s database, and export it as an SQL file. - Upload to New Server:
Log in to the cPanel File Manager on the new server, upload the.zip
file, and extract it in the root directory. - Update
wp-config.php
:
Edit thewp-config.php
file to match the new database name, username, and password on the new server. - Import Database:
Go to phpMyAdmin on the new server and import the previously exported SQL file into the new database. - Update Site URL in Database:
Make sure to update any old site URLs in the database to reflect the new domain using a query or a tool like Search Replace DB.