command drush bam-backup (or any bam command) gets the error

The drush command 'bam-backup' could not be found.

other drush commands work fine

Tried current HEAD also 7.x-4.4 versions of Drush.

Comments

btw yes current 6.x version of backup_migrate is installed and configured

$ drush version produces

drush version 4.4

Status:Active» Postponed (maintainer needs more info)

Is backup_migrate enabled? We recently changed the way drush works in that now, only enabled modules' drush commands are available, whereas previously drush commands were exposed whether or not the module is enabled. I'm guessing that when you say "configured" in #1 that implies it is also enabled, but I thought I'd mention it.

Output with --debug --show-invoke both of a bam command and drush status would be helpful.

StatusFileSize
new6.69 KB

yes I used the backup_migrate GUI to backup the database to the manual backups dir

some diagnostics (same attached):

user@domain.com [~/public_html/drupaldir]# drush pm-list
...
Other Backup and Migrate Module Enabled 6.x-1.3
(backup_migrate)
--------------------------------------------------------------------------------

user@domain.com [~/public_html/drupaldir]# drush bam-backup
The drush command 'bam-backup' could not be found. [error]

user@domain.com [~/public_html/drupaldir]# drush bam-backup --debug --show-invoke
Bootstrap to phase 0. [0.03 sec, 1.98 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.03 sec, 2.19 MB] [bootstrap]
Bootstrap to phase 5. [0.07 sec, 5.01 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.07 sec, [bootstrap]
5.01 MB]
Initialized Drupal 6.20 root directory at [notice]
/home/user/public_html/drupaldir [0.08 sec, 5.81 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.08 sec, [bootstrap]
5.82 MB]
Initialized Drupal site default at sites/default [0.08 sec, 5.82 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.09[bootstrap]
sec, 5.82 MB]
Undefined index: SERVER_NAME settings.php:161 [0.09 sec, 5.84 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.1 sec, [bootstrap]
5.86 MB]
Successfully connected to the Drupal database. [0.1 sec, 5.86 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.1 sec, 6.21[bootstrap]
MB]
The drush command 'bam-backup' could not be found. [0.49 sec, 36.22 [error]
MB]

--------------------------------------------------------------------------------

user@domain.com [~/public_html/drupaldir]# drush status --debug --show-invoke
Bootstrap to phase 0. [0.03 sec, 1.98 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.03 sec, 2.19 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.06 sec, [bootstrap]
5.02 MB]
Initialized Drupal 6.20 root directory at [notice]
/home/user/public_html/drupaldir [0.08 sec, 5.81 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.08 sec, [bootstrap]
5.82 MB]
Initialized Drupal site default at sites/default [0.08 sec, 5.82 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.08[bootstrap]
sec, 5.82 MB]
Undefined index: SERVER_NAME settings.php:161 [0.08 sec, 5.84 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.09 sec,[bootstrap]
5.86 MB]
Successfully connected to the Drupal database. [0.09 sec, 5.86 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.09 sec, [bootstrap]
6.21 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [0.47 sec, [bootstrap]
36.07 MB]
Successfully logged into Drupal as Anonymous (uid=0) [0.47 sec, 36.42[bootstrap]
MB]
Found command: core-status (commandfile=core) [0.47 sec, 36.41 MB] [bootstrap]
Initializing drush commandfile: user [0.47 sec, 36.42 MB] [bootstrap]
Drupal version : 6.20
Site URI : http://default
Database driver : mysqli
Database hostname : 127.0.0.1
Database username : user_netsper
Database name : user_drupalnet
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
Default theme : fourseasons
Administration theme : cleanr
PHP configuration : /usr/local/lib/php.ini
Drush version : 4.4
Drush configuration :
Drush alias files :
Drupal root : /home/user/public_html/drupaldir
Site path : sites/default
File directory path : sites/default/files

Available drush_invoke() hooks for core-status: [ok]
drush_adminrole_core_status_validate
drush_core_status_validate
drush_devel_core_status_validate
drush_devel_generate_core_status_validate
drush_docs_core_status_validate
drush_features_core_status_validate
drush_field_core_status_validate
drush_help_core_status_validate
drush_image_core_status_validate
drush_pm_core_status_validate
drush_search_core_status_validate
drush_site_install_core_status_validate
drush_sitealias_core_status_validate
drush_sql_core_status_validate
drush_test_core_status_validate
drush_topic_core_status_validate
drush_upgrade_core_status_validate
drush_user_core_status_validate
drush_variable_core_status_validate
drush_watchdog_core_status_validate
drush_adminrole_pre_core_status
drush_core_pre_core_status
drush_devel_pre_core_status
drush_devel_generate_pre_core_status
drush_docs_pre_core_status
drush_features_pre_core_status
drush_field_pre_core_status
drush_help_pre_core_status
drush_image_pre_core_status
drush_pm_pre_core_status
drush_search_pre_core_status
drush_site_install_pre_core_status
drush_sitealias_pre_core_status
drush_sql_pre_core_status
drush_test_pre_core_status
drush_topic_pre_core_status
drush_upgrade_pre_core_status
drush_user_pre_core_status
drush_variable_pre_core_status
drush_watchdog_pre_core_status
drush_adminrole_core_status
drush_core_status [*]
drush_devel_core_status
drush_devel_generate_core_status
drush_docs_core_status
drush_features_core_status
drush_field_core_status
drush_help_core_status
drush_image_core_status
drush_pm_core_status
drush_search_core_status
drush_site_install_core_status
drush_sitealias_core_status
drush_sql_core_status
drush_test_core_status
drush_topic_core_status
drush_upgrade_core_status
drush_user_core_status
drush_variable_core_status
drush_watchdog_core_status
drush_adminrole_post_core_status
drush_core_post_core_status
drush_devel_post_core_status
drush_devel_generate_post_core_status
drush_docs_post_core_status
drush_features_post_core_status
drush_field_post_core_status
drush_help_post_core_status
drush_image_post_core_status
drush_pm_post_core_status
drush_search_post_core_status
drush_site_install_post_core_status
drush_sitealias_post_core_status
drush_sql_post_core_status
drush_test_post_core_status
drush_topic_post_core_status
drush_upgrade_post_core_status
drush_user_post_core_status
drush_variable_post_core_status
drush_watchdog_post_core_status [0.51 sec, 36.45 MB]
Available rollback hooks for core-status: [ok]
drush_core_status_rollback [0.51 sec, 36.45 MB]
Command dispatch complete [0.51 sec, 36.42 MB] [notice]
Timer Cum (sec) Count Avg (msec)
page 0.429 1 429.38

Peak memory usage was 36.57 MB [0.51 sec, 36.42 MB] [memory]
user@domain.com [~/public_html/drupaldir]#

Project backup_migrate (6.x-1.3) downloaded to /home/ga/tmp/backup_migrate.       [success]
ga@monolith:~/tmp$ ls backup_migrate/
backup_migrate.info     backup_migrate.module  po
backup_migrate.install  LICENSE.txt            README.txt

No backup_migrate.drush.inc here...

Having the same problem. Have the modules, it's enabled and have the drush inc file - please see below:

legume:globalweb sushil$ drush -l localtest.artofliving.org help | grep bam
bam backup Backup the site's database with Backup and Migrate.
bam backups Get a list of previously created backup files.
bam destinations Get a list of available destinations.
bam profiles Get a list of available settings profiles.
bam restore Restore the site's database with Backup and Migrate.
bam sources Get a list of available sources.

legume:globalweb sushil$ drush -l localtest.artofliving.org pm-list | grep backup
Other Backup and Migrate (backup_migrate) Module Enabled 6.x-2.2

legume:globalweb sushil$ ls -l sites/all/modules/backup_migrate/includes/backup_migrate.drush.inc
-rw-r--r-- 1 sushil sushil 9292 Nov 29 19:07 sites/all/modules/backup_migrate/includes/backup_migrate.drush.inc

legume:globalweb sushil$ drush -l localtest.artofliving.org bam backups
The drush command 'bam backups' could not be found.

StatusFileSize
new9.72 KB

Attaching the results of the bam backups and status command with debug and show-invoke added

Status:Postponed (maintainer needs more info)» Fixed

Commands with spaces was deprecated in drush 3.x, and support for them was removed in drush 4.x. Have the maintainer for backup and migrate rename the commands to "bam-backups", etc.

Status:Fixed» Postponed (maintainer needs more info)

DOH!
- needed to put quotes around "bam backups" else it breaks it down as 2 commands.
- "bam destinations" does not seem to work - think an update is needed for the backup migrate module

Warning: The command callback function backup_migrate_drush_destinations has a deprecated name.  It must begin with drush_backup_migrate_.  Skipping hook functions. [1.01       [notice]
sec, 37.3 MB]

My bad - the latest version of backup_migrate (2.4) has the right syntax. bam-destinations works properly too.
Thanks for an awesome module!

All commands in backup_migrate: (backup_migrate)
bam-backup            Backup the site's database with Backup and Migrate.
bam-backups           Get a list of previously created backup files.
bam-destinations      Get a list of available destinations.
bam-profiles          Get a list of available settings profiles.
bam-restore           Restore the site's database with Backup and Migrate.
bam-sources           Get a list of available sources.

Status:Postponed (maintainer needs more info)» Fixed

Status:Fixed» Closed (fixed)

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