WordPress – Backup

In this lesson, we discuss how we can take Backup of wordpress website folders and database. It is very important to have the backup of your WordPress website so that you can revert things if any mistake happens. In WordPress, two things are important:

1. WordPress Files Backup.
2. WordPress Database Backup.
 

1. WordPress Files Backup

Following are the steps to create a File Backup in WordPress.

Step (1) – Open the FileZilla application. FileZilla is a popular FTP client and widely used due to its features.To know more about FileZilla read our previous lesson. If your website in the localhost then you can directly open website folder in XAMPP root folder. Here we are assusming you are taking live website backup.

wordpress-backup

Step (2) – Enter your Hostname, Username, Password and Port details in the above-given fields as shown in the screenshot and Click on Quickconnect button to connect your FTP.

wordpress-backup

Step (3) – You can see all of your files and folders of the website appear on the right side.

wordpress-backup

Step (4) – Select all the files & folders and right click on the mouse and click on Download option.

wordpress-backup

All of your Website files and folders are downloaded and saved to your local machine. we will use this backup to restore files.
 

1. WordPress Database Backup

We are doing database backup in localhost using Xampp. You can use the same procedure to backup your database using cPanel.

Following are the steps to create a Database Backup in WordPress.

Step (1) – Type localhost/phpmyadmin in the address bar of the browser and you will get the following screen and click on Databases.

wordpress-backup

Step (2) – It will show all the databases list.

wordpress-backup

Step (3) – To know in which database, our website is located, navigate to the wp-config.php file located in the root directory of your WordPress website.

wordpress-backup

Step (4) – Right click on it and click on view/edit option.

wordpress-backup

Step (5) – Locate the following code to check the database name:

wordpress-backup

Step (6) – Click on the database name (here testing) in your localhost or cPanel window and it will show all the content present inside your database and then click on Export button given in top menu bar as shown in the screenshot:

wordpress-backup

Step (7) – A new window appears. Make sure format is SQL selected and click on Go button as shown in the screenshot:

wordpress-backup

After exporting, all the database get saved to your local machine.

Spread the love