There is a purpose for backing up your WordPress website. Perhaps, if you fell victim to a hack attack or malicious attack, you know you have a backup in place. Having a backup of your WordPress website can also save headaches in many other situations.
For example, if your site runs into some error while updating, you can use a backup to restore the old settings. Restoring through a WordPress backup will save you many hours of troubleshooting.
No matter the size of your WordPress website, finding a way to keep it safe is of utmost importance. If you have a backup, well and good. But, if you don’t have a recent one, add it to your priority list.
What are the Requirements for WordPress Website Backup?
Backing up your website weekly, monthly or daily is an important part of the WordPress website maintenance checklist. With the increase in cyber-attacks, website backup ensures that all your files and database stays protected in the event of a website hack. It also ensures that you can get your site up and running in no time in the case of a server crash. If you want to learn how to backup your WordPress website, then here are a few methods that you can use, depending upon your technical experience.
Step-by-step Guide to Backup Your WordPress Site
B. Backing Up Manually
Your WordPress directories contain many sub-folders and files which include – Wp config.php, Wp-content, and different plugin files. The Wp-content folder contains all the uploads and cache files.
It is important to take a backup of all these important files. The Wp-admin carries the files you use in your admin area, so these files are important for backup. The main WP folder contains the core files of WordPress.
To create a backup copy of the WordPress file, you will need to download your entire WordPress directory. You have two options for this – Using cPanel or using SFTP.
1. Using the cPanel
- Login to your website and navigate to the cPanel option. cPanel is the main page or the first page you will see when you log in to your hosting account.
- Navigate to the file manager option, which will lead you to the home directory or public HTML option.Locate the WordPress directory – a folder that you will need to take a backup for.
- Downloading the whole file is difficult, so you will need to compress it.
- Click on the WordPress directory and select the WordPress option from the menu bar, right-click on the folder and choose compress from the drop-down menu.
- Choose the compressed type from the option, though most people choose Zip.
- Click on the compress option and wait for the process to complete. Your server will save the compressed WordPress file.
- Click on the archive option, choose download from the menu, now right-click on this option, and choose download.
- Secure the exact location of your backup on your hard disk.
- You can save a copy of the backup on your Google Drive or Dropbox.
2. Using the SFTP
- Use the file manager Transmit – it is easy to use and lightweight. Install the application on your computer and retrieve SFTP credentials from your account.
- Now login and enter your website details that include your URL and SFTP username. Change the port number to 2222.
- Once you log in, you will see a list of your WordPress files, right-click to download selected items.
- Once downloaded, it makes sure all the files are zipped and gives your file a unique name. Most people save the file according to the date of the download.
D. Backup Using the WordPress Database Manually
- You can navigate to your hosting panel and locate the PHP admin. It will be located under the database tools.
- Once you log in to the page, you will see the admin panel. Select the database tab lists, if you have installed WordPress using the third-party platforms.
- From the file manager, navigate to your WordPress directory and locate the Wp.config.php file. Right-click on the file and choose the view option. Your database is the value, which is contained in the second set of quotes you see.
- Now, locate your database in PHP admin. Select the tables you want to take a backup of. Hit the go option and save the database in a secure folder.
- Save copies in other locations so that you have full site backup.