On most of our posts here that include advanced tweaking like editing database, we recommend you to perform a backup before the procedure. This keeps you safe, like a guarantee so that if you made a mistake then you can easily revert back using the backup you have taken.
Even if you are not editing your WordPress site and you are only posting new contents or maintaining it, then also we advise you to take regular backups as there are other potential threats like hackers or sometimes updating WordPress or installing and updating some plugins or themes can break your site. While there are other plugins that can help you take a full backup right inside your WordPress dashboard like BackupBuddy, but what will you do when your site has been hacked and you can’t access your site’s admin account ? in that case taking backups using your web hosting CPanel is better and it’s not a hard task when compared to its benefits. So in this guide, i will show your how to Backup WordPress Manually that is without using any third party plugins. However hardening your site is also something that you should concern, you can refer our guide on WordPress Security: Secure And Harden Your WordPress.
Backup WordPress Manually
If your web host provides Softaculous then it’s much easier to take backups and restore your WordPress site installed with it. See our guide on How To Install WordPress Using Softaculous. So let’s see how to take a backup using Softaculous.
Backup Using Softaculous
On the top right of the Softaculous page, you can see some icons, click on ‘All Installations’
Then it will display all the scripts installed with Softaculous, now find the WordPress site that you want to backup and on its right you can see a few icons click the backup icon.
On the next page check, Backup Directory and Backup Database to take a full backup, Adding a Backup Note is optional but this can help you remember why you made this backup or something like that. After that proceed to backup.
Now you have taken a full backup of your WordPress, on the next page click on ‘Return to overview’.
Restore A Backup Using Softaculous
Now that you have taken a backup and you are in a situation to revert the changes that screwed your site. To restore a backup click on the ‘Backups and Restore icon’ on the top right of the Softaculous page.
On the next page find the backup you have taken and click on the restore button next to it
On the next page check everything and click on ‘Restore Installation’. That’s all now you have restored your site to how it was when you made the backup.
How To Backup WordPress Manually Properly Without Using Any Plugins
If your host doesn’t provide Softaculous then you can use your file manager from the CPanel. In short to properly backup your WordPress you just need to backup our whole WordPress directory and export the whole database then store them somewhere safe.
Backup Using File manager
First backup the whole directory of your WordPress directory either by copying the whole directly to another folder outside the root of your site or by compressing it and move the compressed file out of the root directory .Compressing it will reduce the space used on your hosting account and is also easy to manage.
Choose any Compression Type, .zip will not reduce much file size.
After compressing it create a directory outside the root of your WordPress installation.Then right click on the compressed file and select move
On the popup give the correct path to the directory that you created outside the WordPress root.
Now you need to backup your database to finish. On your CPanel, navigate to phpMyAdmin
On phpMyAdmin select the database of your WordPress
On the next page you can see all your WordPress tables, don’t mess with that until you export it. To export click on the export button on the top menu
On the export page, click on the ‘Go’ button and the database of your WordPress will be downloaded to your computer, the file will have .sql as the extension.You can either store this safely with you or upload it to the backup directory you created before.
How To Restore Manually
To restore, first extract the compressed file(if you have compressed it)then copy all the files in the directory that you backup to the root of your current WordPress installation and overwrite the existing files. Then to import your database on your phpMyAdmin go to the ‘Import’ tab and chose the database file that you have downloaded then click ‘Go’ button and it will be imported. After its successfully imported a success message will be displayed like this:
Now you have restored your WordPress manually without using any other plugins.We advise you to take a manual backup like this, at least once a week.