Drush support was removed during cleanups leading to the current version, and Drush 9 completely changes the way Drush plugins are written anyway.

Some commands should be restored, at a minimum to backup and restore giving a job name.

Comments

fgm created an issue. See original summary.

mrpauldriver’s picture

+1 yes please

couturier’s picture

@fgm or @MrPaulDriver are either of you able to spend some time working on this? Development resources for this module are incredibly limited right now with the existing maintainers and contributors. Thanks.

mrpauldriver’s picture

Above my skill level I'm afraid.

fgm’s picture

Not really time to work on that. But there is a workaround in the meantime, as explained on #2912153: Roadmap#23:

FWIW, for crontabs, until drush bam-backup reappears in a future version, a simple drush ev "backup_migrate_cron();" does the job too.

couturier’s picture

Thanks for the replies. I wonder if we could add the info in comment #5 to the documentation for this module.

mrpauldriver’s picture

Has there been any progress with this?

ikit-claw’s picture

I'll take this one on or Paul won't let me hear the end of it lol

ikit-claw’s picture

Assigned: Unassigned » ikit-claw
anybody’s picture

Great to hear this @ikit-claw, thank you very much for that! It was great to have this quick tool in older versions.

anybody’s picture

Any news on this @ikit-claw? Did you run into problems we can help with or just no time (for something you are not even paid for).

intrafusion’s picture

Status: Active » Needs review
StatusFileSize
new3.35 KB

I made a start on this as I needed the functionality, but realised pretty quickly that I don't fully understand the Backup Migrate module however I thought I'd share what I managed:

  • backup_migrate:destinations - bam-destinations
  • backup_migrate:profiles - bam-profiles
  • backup_migrate:schedules - bam-schedules
  • backup_migrate:sources - bam-sources

These were pretty easy as they are simply entities, not sure whether I can do any of the others without a better understanding of the module.

damienmckenna’s picture

Status: Needs review » Needs work

Thanks for that!

You might look at Drupal\backup_migrate\Entity\Schedule::run() to see what it does there, that might give you some clues about running a specific backup.

emudojo’s picture

is there any development for this?, we also need drush commands back.

hron84’s picture

We'd also like to see this functional. I do not know why, but with latest version of the module, calling backup_migrate_cron() does nothing, we currently using this for backup database before deployments:

drush eval 'backup_migrate_perform_backup("default_db", "private_files", []);'

I hope it helps.

damienmckenna’s picture

Title: Add Drush 9 support » Add Drush support for D8/9
Version: 8.x-4.x-dev » 5.0.x-dev
Assigned: ikit-claw » Unassigned
jsidigital’s picture

Following this.

Really looking forward for Backup & Migrate to support drush on Drupal 9 (drush 10).

damienmckenna’s picture

Title: Add Drush support for D8/9 » Add Drush commands for getting details of available configurations
Status: Needs work » Needs review

Let's focus this issue on some rudimentary details and we can build upon it later.

For now let's focus on making sure #12 works.

damienmckenna’s picture

Parent issue: #2912153: Roadmap »
damienmckenna’s picture

I spun off an issue for creating a command that runs a backup: #3223057: Add Drush command for running a quick backup

paulocs’s picture

StatusFileSize
new2.26 KB
new3.82 KB

Patch #12 looks good.
I'm just adding dependency injection to it and fixing code standard problems.

larisse’s picture

StatusFileSize
new33.68 KB
new30.8 KB
new47.83 KB

Applying the patch #21 and running drush commands in Drupal 9 and Drush 10.5.0 version, drush bam-destinations, drush bam-profiles and drush bam-sources run ok. For the other commands, I get a error, Command "x" is not defined.

larisse’s picture

Status: Needs review » Reviewed & tested by the community
damienmckenna’s picture

StatusFileSize
new4.67 KB

Rerolled.

damienmckenna’s picture

damienmckenna’s picture

Version: 5.0.x-dev » 5.1.x-dev
Status: Reviewed & tested by the community » Fixed

Committed. Thank you.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.