Back up and restore your Drupal MySQL database, code, and files or migrate a site between environments. Backup and Migrate supports gzip, bzip and zip compression as well as automatic scheduled backups.

With Backup and Migrate you can dump some or all of your database tables to a file download or save to a file on the server or offsite, and to restore from an uploaded or previously saved database dump. You can choose which tables and what data to backup and cache data is excluded by default.

Drupal 9 information

The 5.0.x branch is for Drupal 9.

D9 features

  • Supported data sources: MySQL, file system
  • Supported destinations: local file system
  • Drush integration
  • Multiple backup schedules
  • Optional backup encryption using the defuse/php-encryption library.

For additional backup destinations, please use Backup Migrate Flysystem.

Drupal 8 information

Drupal 8 is no longer supported; support was specifically removed in 5.1.x.

Drupal 7 information

The 7.x-3.x branch is for Drupal 7.

D7 features

  • Backup/Restore multiple MySQL databases and code
  • Backup of files directory is built into this version
  • Add a note to backup files
  • Smart delete options make it easier to manage backup files
  • Backup to FTP/S3/Email
  • Drush integration
  • Multiple backup schedules
  • AES encryption for backups

Modules that enhance Backup and Migrate for D7:

Resources and Documentation

Security Notice

If you are not running on an Apache server, please see the module README file for advice on securing other servers. Test your configuration or consult an expert if you aren't sure if your server is secure.

NodeSquirrel EOL

As of October 1st, 2019, the NodeSquirrel service has been halted and no longer accepts backups. On November 1st, 2019 all backups will be purged.

Supporting organizations: 
Ongoing support and development of the 8.x branch.
Ongoing support.
Sponsored development time.

Project information

Releases