Two Drush bam-backup errors: Command not Found & Could not find a Drupal setting.php file at I am trying to use Drush to backup a standard 7.12 local installation, but I am getting two error messages when running drush bam-backup:

The drush command 'bam-backup' could not be found.
Run `drush cache-clear drush` to clear the commandfile cache
if you have installed new extensions.

Could not find a Drupal settings.php file at ./sites/default/settings.php.


The bam module is enabled in my system.

Regarding the second issue, I have checked in the corresponding directory and it contains a default.settings.php file, but no settings.php file.

Is this a configuration issue, or a more fundamental bug? How can use Drush to backup my installation? Thanks.

P.S.:

I am on Windows 7 and I have used the Windows installer available here to install Drush. The bam version is 7.x-2.2 and Drush version is 5.0-dev.
Where is the settings.php file for your Drupal installation?

The problem Drush is having is that it cannot figure out where your settings.php file is.  By default, Drush only looks in sites/default.  There are a few ways that you can select the site you want if it is not in sites/default.  One is to cd to the directory that contains the settings.php file, then run your command.

cd /path/to/drupal/sites/mysite
drush status


The other way is to specify the site you mean via the --uri parameter:

drush --root=/path/to/drupal --uri=mysite.com status


Once the status command works per the above advice, try calling bam-backup again.