How to Schedule Automatic Backup in Magento 2
Imagine you wake up tomorrow and find that your Magento 2 store has crashed.
This unexpected turn of events may be because of a misconfigured extension, configuration, or a technical error that can risk your entire business.
In such cases, a backup of the Magento 2 store can be a business savior.
Thankfully, Magento 2 allows you to take automatic store backups regularly.
In this post, you’ll learn a step-by-step method to schedule automatic backup in Magento 2.
We’ll also explore addition method to automatically back up Magento 2 store in Cloud, such as Google Drive or Dropbox!
Table of Contents
- Steps to Enable Automatic Backup in Magento 2
- Steps to Automatically Back Up Magento 2 in Cloud
- What is the Best Way to Schedule Magento 2 Backups?
Steps to Enable Automatic Backup in Magento 2
You can back up Magento 2 in multiple ways. In fact, you can also enable automatic backup in Magento 2 right from the admin panel.
Here are the steps to do that:
Step 1: Go to Stores > Settings > Configuration
Log into your Magento 2 admin panel, and click Stores in the left-side menu. Now, click Configuration under the Settings section.
Step 2: Enable & Configure Scheduled Backup
In the configuration left-side menu, expand Advanced and click System.
Now, expand the Backup Settings, and configure the following:
- Enable Backup: Select Yes to enable the backup functionality in Magento 2.
- Enable Scheduled Backup: Select Yes to enable the scheduled automatic backup in Magento 2.
- Scheduled Backup Type: Choose from the following different types of backups in Magento 2:
- Database: Only Magento 2 database will be backed up on a schedule.
- Data and Media: Only the Magento 2 database and media files (such as product images) will be backed up.
- System: Complete backup of Magento 2 system, including the code.
- System (excluding Media): Backup of the system without media files (such as product images.)
- Start Time: Set time in hours, minutes, and seconds when you want to schedule automatic backup in Magento 2.
- Frequency: Choose how often you wish to take the Magento 2 backup. You can choose from the following options:
- Daily
- Weekly
- Monthly
- Maintenance Mode: Setting this Yes will enable maintenance mode in Magento 2 during the backup process.
Steps to Automatically Back Up Magento 2 in Cloud
Magento 2 Cloud Backup extension is the best way to schedule automatic backups in Magento 2. It offers reliable Magento 2 cloud backups in Google Drive & Dropbox, so that you can rollback the system immediately in any worst cases. The extension is easy to set up and can run automatic Magento 2 backups at regular frequencies.
Here’s how to enable automatic cloud backups in Magento 2:
- Install Meetanshi’s Magento 2 Cloud Backup Extension.
- Configure & Integrate Google Drive or Dropbox with the extension.
- Set the frequency & time of the automatic Magento 2 backup in Cloud:
- Ta-daa! 🥳 Magento 2 is automatically backed up in the Google drive.
The Magento 2 will be backed up regularly in the cloud as per the frequency set in the backend!
Other features allows you to exclude certain directories or database tables from the backup and deletion of old cloud backups.
You can learn more about Magento 2 cloud backup extension.
What is the Best Way to Schedule Magento 2 Backups?
Taking regular Magento 2 backup is essential. It acts as an insurance for your business. The default functionality allows you schedule automatic Magento 2 backups at regular intervals. But, it is not the best way as the data is backed up on the server. This may leave you helpless if the hosting server goes down. The best way is to take backups to a reliable cloud storage, such as Google Drive or Dropbox. Meetanshi’s Magento 2 Cloud Backup extension makes it possible to schedule automatic backup in Magento 2 to cloud storage so that you can focus on your business without worrying about data loss.
Automatically Back Up Magento 2 in cloud on a schedule!
✅ Google Drive ✅ Dropbox.
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
Prev
Actionable Content Marketing Strategy For E-Commerce (+ Expert Opinions)
Shopify Bulk Editor – How to Bulk Edit in Shopify & Save Time
Next