The "drush bam destinations" command always returns an empty list. It appears to be due to _backup_migrate_drush_destinations() (in includes/backup_migrate.drush.inc) using $op of NULL, which gets passed to backup_migrate_get_destinations(), which then doesn't return any destinations. Changing the default $op of _backup_migrate_drush_destinations() to 'all' appears to fix the problem at least partially, although it lists the "upload" and "download" destinations that probably won't work from drush. ;-)

I don't know if this is the correct fix, but it seems to work for me.

CommentFileSizeAuthor
#1 backup_migrate_715472.patch612 byteslogickal

Comments

logickal’s picture

StatusFileSize
new612 bytes

That certainly seems to fix the problem - having destinations you might not use makes a certain amount of sense from an informational standpoint. Simple enough fix, but I've gone ahead and rolled a patch to familiarize myself with the process. Let me know if I've done anything egregiously wrong here!

logickal’s picture

Status: Active » Needs review

Sorry - setting to needs review.

dooug’s picture

Patch applied and worked fine for me.

ronan’s picture

Status: Needs review » Fixed

Fixed now. Sorry, I didn't see the patch here so I didn't credit you in the commit log but thanks for tracking this down.

supersteph’s picture

worked like a charm! thanks so much!

Status: Fixed » Closed (fixed)

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