wunderio/lando-drupal

Implement ddev's snapshot tooling in Lando

Closed this issue · 1 comments

Snapshot is very fast way of creating db backup in ddev. Can we implement this in Lando?

Specs

  • snapshots should be saved to .lando/db_snapshots (in ddev these are saved to ..dev/db_snapshots)
  • lando snapshot will generate automatic name from db and date and mariadb version eg d9_20220107124831-mariadb_10.3
  • lando snapshot --name "foobar" will generate similar name but date part is replaced with foobar eg d10_foobar-mariadb_10.3
    - lando snapshot restore d9_20220107124831 will restore the existing snapshot.
    - lando snapshot restore will restore the latest snapshot.
  • snapshot will be using mariabackup tool to do the fast backups. This needs to be installed to database container

I've created initial snapshot tooling that works with MariaDB and created release 0.7.0