2 Different Ways to Backup WordPress Website

Published: September 8, 2019 / Article by: Siarhei Kulich

People entering the online business and those who just open blogs often forget the crucial to my mind safety issue – the website backup or, in other words, the full copy of all files from the website.

Why is it needed and how often should it be done?

As a rule, a lot of various unforeseen situations may happen to websites: 

  • Your hosting company has been closed and do not return copies of your website;
  • After the website was hacked, its contents may be altered. It is easier to recover the website using the previous full copy of the website (backup)
  • A designer or a programmer you employed for implementing some changes on the website made a mistake and the website operates incorrectly.

A fresh copy of files, or a backup, is necessary for all cases that may happen to your website.

Let’s consider 2 fundamentally different ways to backup your WordPress website:

  • Manual
  • Automatic

Backup Manually with CPanel

1. Login to your CPanel

To login to CPanel you need to fill in your login and password that you have got when bought the web hosting (as a rule, the hosting company sends this data to an email specified when the account was registered)

https://lh5.googleusercontent.com/Mtsxlnw0nZGBndh4LF7iP4oaVZo3mJtW6qM0zqL9OphCPcsPqhQpfZKcAP639haUTodi6_mx2Ph_O4axSmuqAvraLuhnTcvwT9oXnii0NX96mGb7XDfX2sefXewJeFImruVVa8fF

2. After you have logged in to your CPanel, the menu of different icons will be opened. You should find the “File Manager” icon; the files of your website are there.

https://lh6.googleusercontent.com/lWATleSfDqd9UCntNbdp3N4dLjLWkV3DUopZKOoqy8Cv_vss5mA1rmnbLhwQD775dY4QvbqkPKB_f-FLKkAk763EH3AP7FETROdowFH_V4WebhAHA-7z5Hm6fj2h-U3GsrVJHddo

3. Click the icon, and the file tree will open where you should find “public_html”.

https://lh4.googleusercontent.com/007ZoXKcH9P-sbxHsHjZD5LnagFotIr7G-l3XyNcOf2aG7nLOIoPY1DkPW2g6ufZMh9ITpkjHKNIqnbyFHaQpihTHvoojKpqIvqr5ZVx5m-zoqqVu5i8QxNkpeqDQ6E8ENq09Li4

4. When you click “public_html”, yet another list of files will be opened. These will be particularly the files of your blog (website) that should be backed up (a backup copy). Click “Select All” in the upper menu, and after that, all files in the list will be chosen.

https://lh5.googleusercontent.com/4MRjgkPdCwVBmYmOsySoPRrc3gf7nxifqa9UnrdNDle03URW70TvaDJGWpdC22ZH0WCKL0IOj1NJLFPcOPLPlbxF5so02lh2zJLg4Nta8eiOwfuVXTILp_mf76AeC22P0lpR1FWB

5. When all files have been chosen, find “Compress” in the upper menu and click it.

https://lh4.googleusercontent.com/t0-EPLCnChYWckckAxuBCNpHptr5-jEZH_6x9dBz-f9qYo8ajPS74qm4Y1ZdydQVMeZbeqq9iXIfTIEm0oMvFO1vaDkM0JU0BXQSt8dm4GxB0q6T03xlsWaS1icUHxN8CrjmA8R5

6. After clicking “Compress”, we see the window like that demonstrated below. Choose “Zip Archive

https://lh4.googleusercontent.com/4gngmBbysV95JVC6FiSP_FEdFHi5HUIgrGJVj772qYVi9Pix9nKl9F2zOMAKq1LNdwhl3UgIOObxXT-hWRD1iIoYg-Z_o_hCsfjoVuJi8Y2RWprRygNMyGqHFLqa3kgmrwFv1VLt

Attention! At the bottom of this window (see the image below) you can specify the name of your backup file and the way to it.

Then, click “Compress Files”

https://lh6.googleusercontent.com/1ycpyiJNZ6T9Hb8YsdP1icxa9Iqn6d8XnuEP-t5gpuIlGCC11Ud_zGZUHctCUDikLPXOeW1OayNCMV5KG4FVKpRuajr5-HH2ZSka2fJDp51ikyIODllRO1RzO-HYhs-w7sprym7N

For those who do not fully understand the mode record:

/public_html/my_blog_backup.zip

The backup file with the name my_blog_backup.zip (example) is in the folder public_html

In other words, you can open this folder and see this file in the file list as in the following example:

https://lh4.googleusercontent.com/gbld14zHGYc0WE7JU09uihOrPrgzxeuGx1yjNknDEd4tNUNeyDItYXb683bYc530fo3o-Tc1ONeEiklHxI6fi-sJBmRJdMkdsOTBc7huvh4PbnSQsIt_Fv4vegBL5G8QJVeAw1lg

Now, we have made a copy of the WordPress files. At this stage, it is important to know that it can be kept at the same hosting, but I advise you to have a copy at your personal computer as well, or you can keep it in a cloud, for example, in DropBox or GoogleDrive

To make the full copy of a WordPress website, the copy of the SQL database is needed as well.

8. Backup of the SQL database. Return to the main page of the CPanel of your hosting and find the icon “phpMyAdmin

https://lh6.googleusercontent.com/NcHrEiRqI9qJ4wT_s4-kaDWxQORNhvnEZ1rLahsh4Uxz46b90FQ9INw4VaGjUcdYxonmoaPsE766IWMAtTYCkLpMnWSL8swaFoqP10Jk4mD-o5r-GshDI-SeQN0-r2NxKWUYaqoF

9. Click it and go to phpMyAdmin panel. In the left database list, choose one that is used for your WordPress website. Then, click “Export” on the top menu. You will see the following window:

https://lh5.googleusercontent.com/-fLVRwYP3x4l2rsOlhg5n17EHpolKfu68o8EuyFkHLn1J9C4mLgR70e7dflFC6w3dqCvI6cWlQ7kEG2bmcUxrIT-eFO7NYvjikg9caLUn2oeOKzLoGTeAJC4SWx6lO0fB5En1I0S

Click “Go” after choosing the necessary database.

https://lh6.googleusercontent.com/ahJIZDkPWgvR6ojO0Fdszcg5J1g2Z713yAcNSz7gX9QVCMoKO9vALxDHkBaS6GvXYipa8eVAdmirGXm2bZXsLcSaM5dL5WQPGRCBk1Ff4kxTC1LhWQaBRp7UG6_Oqyj_L9iNsI4l

Then, save your database in a safe place (computer, cloud)

Attention: Database contains all text contents of the WordPress blog (posts, pages, logins, and passwords)

We have considered the manual way to backup your WordPress website.

Now, let’s imagine that our WordPress website is updated daily: new posts are added, and it is difficult to control yourself and backup the website every day in order not to lose the data. 


So, Automated Data Backup Comes to Help

If we deal with WordPress, special plugins exist, and UpdraftPlus is the most widely used among them.

https://lh4.googleusercontent.com/eNwzUeQrghXZaUxARQyLnmqqfmc8QqRNqAz0r5YOTQNsVQulKu7830JUQOdb1zaSTYuzFOErobLvTFsm3-Cjx6sJorGsRd_it6y1H_TOiAAjZTDYjHhOWNLEvysLO0S5r74E-MOL

Key functions of UpdraftPlus:

Scheduling the backup (for example, one time a day or once a week)

– Opportunity to save the backup in GoogleDrive or DropBox

To install this plugin, you need to login to the panel of your WordPress website, find “Plugins” in the left menu and click “Add New” (adding a new plugin):

https://lh6.googleusercontent.com/sbkXpxd7JIvjNnfneCOD6iU-zyq54dIhtqR-QvrkFlznyTATeKGP9kAL6aiwxvb3QZ_IYJZg4IYHHMA1yBx-mtYZlw7R0nZ5mMiuIsj7xLa_h-8q-0-NlOJcTnlDNmQeC00UmyvK

After that, a catalog of plugins will show up. Write “updraftplus” in the search bar, and the needed plugin will be shown. Click “Install Now” and then “Activate”:

https://lh4.googleusercontent.com/ass-Hit5IKKhoxCIc-HG54SDOx7cfun7hHH9ObH1JpXHZN1862bf81i6GWU6Pkuj8Y_GTqgsf7IjQlgtxsLBGcAK5j0_QLSJRDAS-pCZozanzap9IBs_quyRBuuh8Nnp4yQg5MxK

After installing and plugin are activated, it will be added to your catalog of installed plugins. Click “Setting” and go to settings:  

https://lh6.googleusercontent.com/9J0ItL74KXIYkxfLym6Ej_eUqW7IJlcF9-zaBTojccFcfStVuto6lwT8KRIH6_iNXqeJ3ruObQUXApIMq-dNVNavzZWezccJMrTwm1bxCbva8NK4lNS-vkOdoipBxRU2k_T3xHK3

Moreover, find “Settings” in the plugin itself and go to this tab:

https://lh6.googleusercontent.com/3xpCLr1ByQbxe730GikDaKPk2MkibLZjTWCK9wwYbxgqMEB2mSX2gTNZxGrfJ4ZTJhZrXUxwLWMBZoVFrJrf61-CVAhAMpwiiuTXSD8PWT50ArQX-PcP_xUBsYYE0jdQadT2V5CN

Everything is simple. We see “Files” and “Database” (we have saved them in the manual mode as well), we can specify how often the plugin will backup (copy) the website, for example, each hour, or daily, or once a week. Most importantly, it is possible to specify where it will be saved: DropBox, Amazon S3, Google Drive, FT, etc. 

You will have to pass the authentication process (see the image below) for each chosen way (where the copy of your website will be saved):

https://lh5.googleusercontent.com/xuRKz_tZT7usbJjPw50qdOTHi05MudgJMC4Zpdg-o77l9NH-QO14PrLtIAMXgSVbAsPdiCwJbu9744YhXkHFcLpIP4anf8GOKE73gSdpJqEDOXY46LNq6DqeWKRcN-x3BARiLjhP

Such plugins as UpraftPlus are very convenient. They backup websites automatically, so if something happens to the website, it will be possible to find the fresh copy of it and to repair it fast.

The backup (copy) of your website is not just an archive you need for some purpose. It is some kind of an instrument that you use in order not to spend much time looking for a damaged file when your current website is broken. You can delete all files from your website (in case of hacking and adding third-party files), copy the backup archive there and open it. As a rule, it takes 1 or 2 minutes to make your website work again.

If the database is damaged, the import of the copy of it saved earlier can be also simply conducted using the phpMyAdmin panel.

Backup your websites in time and you will not have to pay big money to recover the lost data.

About Siarhei Kulich
Co-founder and CTO of HRank.com - a hosting uptime monitoring website. Siarhei has more than 20 years experience in web developing and web hosting.
Connect: Website, LinkedIn
Leave a Reply