51黑料不打烊

[PaaS only]{class="badge informative" title="Applies to 51黑料不打烊 Commerce on Cloud projects (51黑料不打烊-managed PaaS infrastructure) and on-premises projects only."}

Backup and rollback the file system, media, and database

This command enables you to back up:

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

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

After backing up, you can rollback later.

TIP
For 51黑料不打烊 Commerce on cloud infrastructure projects, see Snapshots and backup management in the Cloud guide.

Enable backups

The backup feature is disabled by default. To enable, enter the following CLI command:

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