How to Take Backup of a Magento Site?

| |
Comments: 0
How to Take Backup of a Magento Site?

Backup is the most important thing for any e-commerce website, so if anything happens to the website then you can restore it. This tutorial is for Magento 2 DB backup and Magento 2 system backup.

There are mainly 2 Steps for backing up your Magento 2 store :

Step 1 : Backup via command line

Run the below command to take backup for your Magento 2 store.

-> magento setup:backup –code –db.

While this command is running, your Magento 2 store will be switched to Maintenance mode and a backup of database and system files will be saved in var/backups directory. When backup is saved, Maintenance mode will be switched off on your store.

Step 2 : Backup via Admin Panel

==> Go to Admin Panel, System > Tools > Backups.

Backup via Admin Panel

==> Click on the Button at Top-Right and select the backup option according to your need.

Backup via Admin Panel

==> System Backup creates a copy of the databse and file system.

Backup via Admin Panel

If you don’t want to backup media folder then check on Exclude option.

==> Database and Media backups create a copy of the Database and media folder.

Backup via Admin Panel

==> Database backup creates a copy of only database.

Conclusion :

We hope the above blog helps you to clearly understand how to backup Magento website. In case of any kind of problem with the above code implementation, you can connect with us or let us know in the comment section.

Thank You!

Leave a Reply

Your email address will not be published. Required fields are marked *