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.
    Time for action—backing up OpenCart files and database
  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.
    Time for action—backing up OpenCart files and database
  3. A backup.sql file will be generated for us automatically. We will save the file on our local computer.
    Time for action—backing up OpenCart files and database

    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.
    Time for action—backing up OpenCart files and database
  5. On the next screen, click on the Backup button.
    Time for action—backing up OpenCart files and database
  6. We will click on the MySQL Databases button on the Select Partial Backup menu.
    Time for action—backing up OpenCart files and database
  7. We will right-click on our OpenCart database file backup and save it on our local computer by clicking on Save Link As.
    Time for action—backing up OpenCart files and database
  8. Let's return to the cPanel home screen and open File Manager under the Files menu.
    Time for action—backing up OpenCart files and database
  9. Let's browse into the web directory where our OpenCart store files are stored. Right-click on the directory and then Compress it.
    Time for action—backing up OpenCart files and database
  10. We will compress the whole OpenCart directory as a Zip Archive file.
    Time for action—backing up OpenCart files and database
  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.
    Time for action—backing up OpenCart files and database

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.226.66