This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

✨ Vultr and Linode are back on Cloudways! VIEW PLANS→

How to Take a Magento Backup in 4 Easy Steps

Updated on December 23, 2021

6 Min Read
Magento Backup

A recent survey shows that 44% of data loss is caused by mistaken deletion, system crash, or software corruption.

Just imagine you have put in countless hours and efforts into building your Magento store, but in the end, all your efforts go in vain. Well, that’s the worst case scenario. 

What you need is a viable solution to schedule your Magento application backup in a few steps and restore all the files and database of your Magento store. You will also want to have your server’s backup on demand at any instant. 

Why Server & Application Backup Are Important?

The major reason for taking backup is to create a copy of data to ensure Magento security and availability of data at all times. The cyber attacks can range from data corruption, malicious scripts or accidental data loss. In such cases, the Magento backup facility comes in handy, allowing you to restore your application and let you continue your work.

Cloud storage offers one of the alternative media to store your data backup. It offers quite a secure way to keep Magento application and server backup.

When it comes to Magento store application backup, there are various options available. In this tutorial, I will explain as to how you can create a Magento backup for your websites.

Let’s get things done!

How to Take Magento Application Backup via Admin Panel

In this section, you will learn as to how you can take the Magento application back up through the Magento Admin Panel. The process is quite simple. 

  1. Log in to your Magento 1 admin panel and click System > Tools > Backups.
  2. Select one of the following data backup types, depending on the type of Magento backup you need to create:
  • System Backup
  • Database and Media Backup
  • Creates a backup of the database and the media folder
  • Create a backup of the database
  1. Click OK to continue.
  2. If you want to put the store into maintenance mode during the Magento backup, select the checkbox.

How to Schedule Magento Backup via Admin Panel

You can also schedule a Magento backup through Admin panel. It’s a six-step procedure. 

  1. On the side menu bar, select System > Configuration and under Advanced, select System.
  2. Expand the Scheduled Backup Settings section. 
  3. Set Backup Type to one of the following:
  • Database
  • Database and Media
  • System
  • System (excluding Media)
  1. Set the Time of the Magento backup with: Hour, Minute, and Second.
  2. Set the Frequency of the backup: Daily, Weekly or Monthly.
  3. Hit the Save Config button.

Note: The Magento system backup facility is not available for Magento 1.9.4 or less.

How to Backup Magento 2 Application via Admin Panel 

In this section, you will learn to take Magento application backup through the Admin Panel.  

  1. Log in to your Magento Admin Panel with your credentials (username and password) for Magento 2 backup.
  2. On the left admin sidebar, click System > Backup.

You will see the following message:

Magento backup disbale message

Don’t worry though. Just follow these steps to enable the Magento database backup functionality:

  • On the admin sidebar, click Store > Configuration and navigate to the Advanced section and click System.

Enable option for Magento 2 backup

  • Enable the backup option by using the dropdown menu to Yes.

You can also take Magento store backup by using the CLI command:

php bin/magento config:set system/backup/functionality_enabled 1

     3. In the upper-right corner,  you will see the buttons for the type of Magento backup you want to create:

  • System Backup: This option allows you to create a complete backup of the database and the file system. During the process, you can choose to include the media folder in the backup.
  • Database and Media Backup: Create a backup of the database and the media folder.
  • Database Backup: Creates a backup of the database.

Admin panel Magento 2 backup

While taking a backup of your Magento application, you must:

  1. Check the maintenance mode option during the Magento backup so you can avoid any inconvenience. Once you are done,  the Magento backup, maintenance mode will turn off automatically.
  2. While taking a system backup, check the Include Media folder to System Backup if you want to include the media folder as well. 

How to Schedule Magento 2 Backup  

In this section, you will learn about scheduling Magento 2 backup. It’s a four-step process.  

  1. On the Admin menu bar, select System > Configuration
  2. Under the Advanced section, choose System
  3. Expand the Scheduled Backup Settings section.
  4. Set Magento 2 backup type: Database, Database, and Media, System and System (excluding Media)

Schedule Magento 2 backup

  1. Set the frequency of the backup: Daily, Weekly, and Monthly

Magento Backup schedule time

  1. Hit the Save Config button.

Magento 2 backup save configWell, that’s the first part of how you can schedule Magento 1 & 2 backup.

As a store owner or a developer, you must regularly keep an eye on the server configuration settings as well.

Here, I would like to ask you a question.

The question is: how can you manage and maintain the Magento database backup on the server level? Cloudways managed hosting platform has got you covered. The managed cloud hosting platform offers you the opportunity to maintain application and server backups without any complexities.

Let’s explore!

Magento Server Level Backup with Cloudways

Cloudways is a managed Magento hosting partner which offers a user-friendly environment to manage your Magento websites with ease. Cloudways offers you user-friendly features to manage your server backup.

Backup Frequency 

Set backup frequency ranging from one hour to seven days. The platform will take a full server backup at your chosen frequency.

Schedule Time

Set the specific time to schedule your Magento server backup.

Backup Retention

Set the backup retention time for your Magento server. The server backup is retained for upto one week.

Local backups

By enabling this option, you can create an additional copy of your server backup by the name of (local_backup), and download it via SFTP/SSH.

And that’s it. You are good to go with your first Magento server backup.

Magento Server Level Backup with Cloudways

Also, you can take server backup on-demand at any instant. For this, you must click on Take Backup Now button. It will take time depending on the size of the files.

Magento Application Level Backup with Cloudways

Cloudways has introduced application backup feature to help you take a backup of your application without any fuss. You can create multiple on-demand backups and restore your application any time you deem necessary.  

This feature is applicable for both the Magento versions 1 and 2.

Magento application level backup with Cloudways

Frequently Ask Questions

Where are Magento backups stored?

Backups are stored in the var/backups directory. 

How long does a full Magento backup take?

Backup time depends on how many products & customers you have.

If you are facing any issues. You can truncate all log data in your database instead of manual backup, you can take backup at night time by setting scheduled backup System > Configuration > Advanced > system> Scheduled backup settings. Also, you can take backup in phpmyadmin by importing the Database. If you have ssh access, you can take backup by commands: mysql -uUSER -p -hHOST DB_NAME < db_dump.sql

How to restore magento from backup?

You can restore the Magento application at any time using the magento setup:rollback command. After backing up, you can roll back at a later time.

Wrapping Up!

This brings us to the end of this article. This article highlights the importance of maintaining a server and application backup, and how you can use Magento backup feature to keep your online store live and running. Remember that a cloud hosting provider such as Cloudways offers a secure and scalable cloud hosting solution which provides both automatic and manual Magento backup capabilities. This saves you a lot of hassle and ensures that you can recover from disaster almost immediately.

If you have any questions and query feel free to ask anytime in the comment section below.

Share your opinion in the comment section. COMMENT NOW

Share This Article

Abdur Rahman

Abdur Rahman is the Magento whizz at Cloudways. He is growth ambitious, and aims to learn & share information about Ecommerce & Magento Development through practice and experimentation. He loves to travel and explore new ideas whenever he finds time. Get in touch with him at [email protected]


Get Our Newsletter
Be the first to get the latest updates and tutorials.

Thankyou for Subscribing Us!


Webinar: How to Get 100% Scores on Core Web Vitals

Join Joe Williams & Aleksandar Savkovic on 29th of March, 2021.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Want to Experience the Cloudways Platform in Its Full Glory?

Take a FREE guided tour of Cloudways and see for yourself how easily you can manage your server & apps on the leading cloud-hosting platform.

Start my tour


  • 0


  • 0


  • 0


  • 0



For 4 Months &
40 Free Migrations

For 4 Months &
40 Free Migrations

Upgrade Now