2 min read

This article is suggested reading even for an experienced user. It will show us any possible problems that might occur while upgrading, so we can avoid them.

Making backups of the current OpenCart system

One thing we should certainly do is backup our files and database before starting any upgrade process. This will allow us to restore the OpenCart system if the upgrade fails and if we cannot solve the reason behind it.

Time for action – backing up OpenCart files and database

In this section, we will now learn how to back up the necessary files and database of the current OpenCart system before starting the upgrading processes.

We will start with backing up database files. We have two choices to achieve this.

The first method is easier and uses the built-in OpenCart module in the administration panel.

  1. We need to open the System | Backup / Restore menu.

  2. In this screen, we should be sure that all modules are selected. If not, click on the Select All link first. Then, we will need to click on the Backup button.

  3. A backup.sql file will be generated for us automatically. We will save the file on our local computer.

    The second method to backup OpenCart database is through the Backup Wizard on cPanel administration panel which most hosting services provide this as a standard management tool for their clients. If you have applied the first method which we have just seen, skip the following section to apply. Still, it is useful to learn about alternative Backup Wizard tool on cPanel.

  4. Let’s open cPanel screen that our hosting services provided for us. Click on the Backup Wizard item under the Files section.

  5. On the next screen, click on the Backup button.

  6. We will click on the MySQL Databases button on the Select Partial Backup menu.

  7. We will right-click on our OpenCart database file backup and save it on our local computer by clicking on Save Link As.

  8. Let’s return to the cPanel home screen and open File Manager under the Files menu.

  9. Let’s browse into the web directory where our OpenCart store files are stored. Right-click on the directory and then Compress it.

  10. We will compress the whole OpenCart directory as a Zip Archive file.

  11. As we can see from the following screenshot, the compressed store.zip file resides on the web server. We can also optionally download the file to our local computer.

What just happened?

We have backed up our OpenCart database using cPanel. After this, we also backed up our OpenCart files as a compressed archive file using File Manager in cPanel.

Packt

Share
Published by
Packt

Recent Posts

Top life hacks for prepping for your IT certification exam

I remember deciding to pursue my first IT certification, the CompTIA A+. I had signed…

3 years ago

Learn Transformers for Natural Language Processing with Denis Rothman

Key takeaways The transformer architecture has proved to be revolutionary in outperforming the classical RNN…

3 years ago

Learning Essential Linux Commands for Navigating the Shell Effectively

Once we learn how to deploy an Ubuntu server, how to manage users, and how…

3 years ago

Clean Coding in Python with Mariano Anaya

Key-takeaways:   Clean code isn’t just a nice thing to have or a luxury in software projects; it's a necessity. If we…

3 years ago

Exploring Forms in Angular – types, benefits and differences   

While developing a web application, or setting dynamic pages and meta tags we need to deal with…

3 years ago

Gain Practical Expertise with the Latest Edition of Software Architecture with C# 9 and .NET 5

Software architecture is one of the most discussed topics in the software industry today, and…

3 years ago