scor / dgb

Drupal Git Backup (dgb) script for backing up Drupal sites with Git and Drush
46 stars 6 forks source link

Can't get drush-backup to work #6

Open okfor01 opened 12 years ago

okfor01 commented 12 years ago

When I try dgb-backup an error stating the command cannott be found is displayed. How do I install dgb-backup into the list of drush commands? I am trying to follow intructions below as explained in the DGD7 book, page 45.

scor commented 12 years ago

I see the dgb readme is not very clear on that. It says to check drush's readme to learn how to install drush commands. You have to look towards the end of drush's README file in the 'COMMANDS' section. This is what it says:

You can put your drush command file in a number of places:

I personally like to clone dgb in the ~/.drush location myself.

Feel free to fork my repo and suggest a change to dgb README :)

okfor01 commented 12 years ago

Hi Stephanie,

I am still no wiser.

I am installing a test drupal host on my Windows laptop to teach myself drupal.

Currently drush and git are installed per the book and working ok.

I have created a dgb folder at c:\dgb with dgb.drush.inc, example-dgb.drushrc.php and README.txt files. I have also created a c:\dgb_instance folder. I have run git init to create a .git folder inside c:\dgb_instance.

My drupal project is at c:\xampp\httdocs\drupal

What am I missing? Blow by blow instructions would be appreciated.

Regards,

Robin.

Date: Wed, 28 Sep 2011 12:52:34 -0700 From: reply@reply.github.com To: okfor01@hotmail.com Subject: Re: [dgb] Can't get drush-backup to work (#6)

I see the dgb readme is not very clear on that. It says to check drush's readme to learn how to install drush commands. You have to look towards the end of drush's README file in the 'COMMANDS' section. This is what it says:

You can put your drush command file in a number of places:

  • In a folder specified with the --include option (see above).
  • Along with one of your existing modules. If your command is related to an existing module, this is the preferred approach.
  • In a .drush folder in your HOME folder. Note, that you have to create the .drush folder yourself.
  • In the system-wide drush commands folder, e.g. /usr/share/drush/commands

I personally like to clone dgb in the ~/.drush location myself.

Feel free to fork my repo and suggest a change to dgb README :)

Reply to this email directly or view it on GitHub: https://github.com/scor/dgb/issues/6#issuecomment-2229522

scor commented 12 years ago

I'm afraid I am not able to test these instructions on window since I don't have a windows machine. I'm sure installing a Drush command (not dgb specific) should be possible on Windows though.

have you tried the other alternatives, like:

okfor01 commented 12 years ago

Hi Stephane,

I have removed drush and reinstalled the latest Windows Package from drupal/project/drush.

I have also tried both the --include, placing dgb.drush.inc in a .drush folder and in the drush default commands folder. Still I get an error saying command not found when I try drush dgb-backup from the drupal directory. Drush does work for drush dl xray etc.

I am stuck at this point and would appreciate if either you or a colleague with a windows installation can offer any help.

Regards,

Robin.

scor commented 12 years ago

At this point I'd recommend you to file a support request in the Drush project issue queue http://drupal.org/project/issues/drush, asking for support on how to install a Drush command on Windows. This is not a dgb specifc bug as far as I can tell, unless you have managed to install other Drush commands on your Windows machine...