How to Backup Drupal with the Backup and Migrate Module

One of the first things you should do once you get started with Drupal is install the Backup and Migrate module. Your Drupal security posture relies on scheduling and storing up-to-date backups.

cPanel backups and snapshots are great for full server backups. However, a module to backup only website data can save a lot of time when you need migrate or update Drupal.

Below we cover how to install the Backup and Migrate Drupal module, create a quick backup, and how to schedule backups regularly.

Maintain high performance and security with our Drupal Hosting services.

Install the Backup and Migrate Module

  1. Login to Drupal.
  2. Install the Drupal module using the Backup and Migrate download link.
  3. Click Install at the bottom.
  4. Click Configuration at the top.
  5. Under Development, click Backup and Migrate.

Create a Backup

You can download backups to your computer or server.

Download the Backup Locally

  1. In the Backup Source drop-down, select Entire Site.
  2. In the Backup Destination drop-down, select Download.
  3. Click Backup now.

Download the Backup to your Server

  1. Create a folder in the parent folder outside your Drupal root directory (e.g. backups).
  2. Click the Settings tab.
  3. Click the Destinations tab beside Settings Profiles.
  4. Click Add Backup Destination.
  5. Create a Label and select Server File Directory.
  6. Select Edit beside your new backup destination.
  7. Add your directory path ../[backup-folder] (e.g. ../backups).
  8. Click Save.
  9. Click the Backup tab.
  10. In the Backup Source drop-down, select Entire Site.
  11. In the Backup Destination drop-down, select your created backup label.
  12. Click Backup now.

Schedule Backups

After you create your first backup, you should schedule automatic backups just in case anything goes wrong (for example, the Archive_Tar vulnerability reported in December, 2019) or need to update Drupal core.

  1. Click Configuration at the top.
  2. Under Development, click Backup and Migrate.
  3. Click Schedules.
  4. Click Edit beside the default Daily Schedule.
  5. Check the Schedule enabled box.
  6. Change the Backup Source to Entire Site.
  7. Change the Backup Destination to your created destination.
  8. Change the Frequency to change every X amount of days or weeks.
  9. Specify the Number [of backups] to keep before the oldest is deleted.
  10. Click Save.
Scheduling options in Drupal Backup and Migrate Module
Screen showing how to configure scheduling in the Backup and Migrate Module to ensure you have up-to-date Drupal backups.
InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+