Skip to content

Lost of Rollback database #37

Open
@WengerK

Description

@WengerK

💬 Is your feature request related to a problem? Please describe.

When using the automatic rollback feature, the system will:

  1. Backup the database before anything
after :updated, "drupal:db:backup"
  1. When something went wrong will run the rollback process (delete database and re-mount the previous dump
before :failed, "drupal:db:rollback"
  1. then cleanup old database backup
  before :cleanup, "drupal:db:backup:cleanup"

During the drupal:db:rollback we have to (optionally) save the used database into a specific location, to prevent drupal:db:backup:cleanup to remove very important dump (before deploy crash it was the initial database state).

🧞 Describe the solution you'd like

Add a new configuration

set :keep_rollbacks, true

When use:

  • Copy the dump into a new directory rollback before any command

We also may add a new task drupal:db:rollback:check that ensure the rollback dir exists

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions