Add Drush command to restore from a backup

Created on 26 February 2024, 10 months ago

Problem/Motivation

Since I'm already using backup_migrate to on a schedule create backups I'd like to be able to restore those backups weekly with a cron on the dev server so dev has at most a one week old database.

Proposed resolution

I have created two new drush commands:

  • backup_migrate:available_backup which copies logic that builds the "Saved Backup" form which will provide you with the extra information you need to run the following command.
  • backup_migrate:restore_backup this requires you to pass in $source (probably always default_db), $file, and $destination

Here is an example of the two commands running.


✨ Feature request
Status

Active

Version

5.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States josh.fabean

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024