Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get drush-backup to work #6

Open
okfor01 opened this issue Sep 28, 2011 · 5 comments
Open

Can't get drush-backup to work #6

okfor01 opened this issue Sep 28, 2011 · 5 comments

Comments

@okfor01
Copy link

okfor01 commented Sep 28, 2011

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
Copy link
Owner

scor commented Sep 28, 2011

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 :)

@okfor01
Copy link
Author

okfor01 commented Sep 28, 2011

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:
#6 (comment)

@scor
Copy link
Owner

scor commented Sep 28, 2011

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:

  • In a folder specified with the --include option (see above). e.g drush --include='c:/dgb/' dgb-backup (not sure, try different syntaxes)
  • In the system-wide drush commands folder, e.g. /usr/share/drush/commands (I guess that might be c:/usr/share/drush/commands maybe)

@okfor01
Copy link
Author

okfor01 commented Sep 29, 2011

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
Copy link
Owner

scor commented Sep 29, 2011

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants