Log in
Helper

Data

Magento\Backup\Helper\Data

What it does

This helper class provides utility methods for managing Magento 2 backups, including retrieving available backup types (database, media, system), generating backup filenames, and determining file paths to include or exclude during backup/rollback operations.

Developers use this when building backup/restore functionality or when they need to programmatically access backup configuration and metadata.

Public Methods

  • getBackupTypes()
  • getBackupTypesList()
  • getDefaultBackupType()
  • getBackupsDir()
  • getExtensionByType()
  • getExtensions()
  • generateBackupDownloadName()
  • isRollbackAllowed()
  • getBackupIgnorePaths()
  • getRollbackIgnorePaths()
  • getCreateSuccessMessageByType()
  • invalidateCache()
  • nameToDisplayName()
  • extractDataFromFilename()
  • isEnabled()