Have you ever lost your WordPress site? Or have you just lost your WordPress site? Well, it is a very troublesome situation to have. You may lose your website due to a faulty plugin, theme or add-on or maybe your hosting failed. Losing your website means losing the effort that you had put on developing it. To avoid such situation to happen, it is always recommended to backup WordPress website frequently. Which many of us still not do because we don’t know how to do it. So, in this post, we will tell you how to backup WordPress website easily.
Backup WordPress Website Files Manually
Every WordPress website directory contains sub-folders including WP-content, WP-includes, etc and files inside these sub-folders such as WP-config.php, theme and plugin files, etc. These sub-folders and files constitute your WordPress website. The WP-content folder contains data related to themes, plugins, cache, and uploads among other things. The WP-admin folder contains all the files required by your WordPress admin area. The WP-includes folder contains WordPress core files. So, these all are very important folders that you would want to save as backup. Therefore, to take backup of all the important files and folders, you need to download the entire WordPress directory. You can download the directory via your hosting providers cPanel or FTP client program such as FileZilla.
Backup WordPress Website via cPanel
You can backup your site by visiting cPanel of your website. You can access your cPanel typing in your web-browser address bar ‘yourwebsitename/cPanel’ (e.g. thetechpost.com/cpanel). Follow the below procedure to backup your site:
Login with your credentials in the above window and you will get the access to your web host cPanel. See below:
- Navigate to the File Manager (first option above), which will take you to your Web Root (public_html/www) folder
- Locate your WordPress directory named ‘public_html’. This is the folder which contains all the files related to your website and you need to backup
- You need to backup all the files in ‘public_html’. To take the backup select all the files using ‘select all’ button provided on the top. After selecting all the files, press the compress button provided in the menu
- Choose the compression type e.g. ZIP, Tar, GZIP etc from the dialog box that opens. I prefer to go with ZIP archive
- Then click the Compress File(s) button and wait for the process to complete. Your compressed WordPress folder will be saved to the existing list of files
- Locate and click on the archive you just created and choose Download from the menu
- Choose a location on your hard disk and save your backup. That is it, your backup is done.
If your web host uses a different control panel such as Plesk, vDeck, etc, you just need to locate your File Manager, and just follow the process as described above.
Backup WordPress Website with FileZilla
Taking backup of your website using an FTP client is also a very easy task. You can use the very popular and freely available FileZilla FTP client for this.
You need to connect FileZilla to your website by providing your website Host/IP Address, Username & Password. Once entered, press the quick connect button. You will be connected to your website. Locate your WordPress directory named ‘public_html’. Select and import all the files like we did above. Save the backup on your computer at the desired location.
How to Backup WordPress Website Database Manually
A WordPress website is made of two components, the first being files i.e. theme/plugin files, scripts, media, etc. that make up the structure of the site, and provide functionality. There is also one more thing i.e. MySQL database which stores blog posts, comments and the options you set in your WordPress admin area.
After taking a backup of your files, now, we need to take a backup of MySQL database. Just navigate to your cPanel and locate phpMyAdmin. It’s usually located under Database Tools as shown below:
Click on the phpMyAdmin button, it will take you to the administration panel, which has the list of your website databases on the left side. See below:
Locate database of your website on the left panel in the phpMyAdmin as shown above. Click on the database to open it. You will see a list of database tables on the right site as shown above. Select all the tables clicking ‘Check All’ option provided at the bottom Once all the tables have been selected, click the Export tab provided on the top. Select the export method, and set format to SQL.
Now press the Go button, and choose a location on your hard disk and save a backup of your website’s MySQL database. That’s all, you have successfully stored your complete WordPress website.
We hope you like this article. If you have any questions or suggestions, do let us know in the comments section below.