Close [x]

Step 3. Back up the file system and database

Edit this page on GitHub

After you pass all readiness checks, you can back up:

  • The Magento 2 file system (excluding var and pub/static directories)
  • The pub/media directory
  • The Magento 2 database

Backups are stored in the var/backups directory and can be restored at any time using the magento setup:rollback command.

The following figure shows an example of backing up everything.

You can back up the Magento 2 file system, media directory, and database

To back up:

  1. Select the check box of each item to back up and click Create Backup.

    (If you choose not to back up, clear all check boxes and click Next).

    We strongly recommend you do back up in the event of issues.

  2. Wait while backups are created.

    The following page displays to confirm a successful backup.

    A page displays to confirm your backup was successful

  3. Continue with Step 4. Upgrade

If errors display, see Troubleshoot backups.