Taking a backup of your ecommerce store’s data is very important. Imagine losing all data on inventory, purchase orders, shipment statuses! You must ensure that you have a backup to roll back to a stable previous configuration if anything unexpected occurs on your store.
You can take backup of your Magento store daily, weekly or monthly as per your preference. You can even set a schedule for backups in Magento 2.
In this tutorial, you’ll learn:
Types of Backups in Magento 2
Magento 2 offers three types of store backups:
- System backup: Creates a backup of code base and database of your store. You can include or exclude the media folder from the system backup.
- Database and Media backup: Creates a backup of the database and media folder of your store.
- Database backup: Creates a backup of the database of your store.
Creating Backups in Magento 2
Step 1: To create a backup of your store, go to System => Backups (under Tools) –
You’ll be displayed the Backups page. If you’re taking backup for the first time, you’ll see the backup list is empty.
Step 2: Select the type of backup you want to create by clicking on the backup buttons on the top right corner of the Backup page.
Let’s create a System backup as an example.
Click on the System Backup button to show backup settings:
- Backup Name: Fill in the backup name for your system backup.
- Maintenance mode: Creating a backup takes a lot of resources. Check this box to put your store in maintenance mode. Although putting the store into maintenance mode causes store downtime, always try to create backups in maintenance mode.
- Exclude media folder from backup: Check or uncheck this box to include or exclude media folder from the backup.
Step 3: Once you’re done setting up the backup, click Ok button to start creating a backup.
Magento displays a spinning loader icon with a Please Wait message.
It takes a bit of time to create a backup. Once Magento is done creating a backup, it will show the following screen:
Your backups are saved in .tgz format. You can download your backups by clicking on the tgz button in the Download column.
You can use the same process we used to create a System backup for creating a Database and Media backup or a Database backup.
This concludes our tutorial on creating backups in Magento 2.