Questions tagged [drush]

Use it for questions about the command line shell and Unix scripting interface for Drupal (a.k.a. Drush).

Filter by
Sorted by
Tagged with
0
votes
2answers
614 views

How can I access this site as the administrator?

I have a dev site that I cannot access that contains content ad structure I want to extract. To gain access I created a new dev website and copied over the contributed modules and theme I am using. I ...
1
vote
1answer
1k views

Drush pm-update: How can I stop it from trying to update more recent dev releases? [closed]

I'm using drush 5 to update the modules on my site. Usually it works great. However, when I have downloaded a dev release, even if there is no more recent point release it tries to update the dev ...
0
votes
1answer
828 views

Deploying to multiple hosts using Webistrano

We're using Webistrano to deploy our Drupal sites to testing and production. The recipe we're using is as follows: namespace :drupal do desc "symlink_files" task :symlink_files do ...
3
votes
1answer
2k views

Can I “drush rsync” with “chown @ destination”?

I understand that drush rsync is, by design, capable of preserving uid:gid. if I am synchronizing with drush rsync @site1 @site2, and uid:did exists on both site1, and site2, all is well. How would ...
0
votes
1answer
95 views

Does drush support everything I can do with web admin interface?

I have just learned about Drush. Its great command-line tool. With two words, I can update drupal code within seconds. I want to know whether I can do everything I do with web admin interface or not?
0
votes
1answer
911 views

drush site synchronization with aliases

I configured the site aliases for the development, and staging sites. I have the <DRUPAL_HOME>/sites/default/aliases.drushrc.php aliases file with this content: $aliases['dev'] = array( 'root'...
3
votes
1answer
123 views

Does drush fire hook_exit()

I am trying to write my own drush command. I have a hunch that something is not quite working right. I can't see documentation saying whether drush fires hook_exit() Anyone know this?
10
votes
1answer
9k views

How does `drush features-update` work?

I have made changes to a Feature on a Drupal 7 site. I want the same feature to be updated in another website. How to do it using the drush features-update command? When I run it, it asks to ...
1
vote
1answer
402 views

Specify destination folders outside of Drupal root using Drush Make

Is there a way to configure Drush Make so that it would build a structure like: project_root drupal_core drupal_contrib So that next in the build process (that this would form a part of) could ...
1
vote
1answer
804 views

How can I get a list of all active enabled contexts on drupal site with drush?

I can list all enabled modules by calling drush pml. I can also used flags to only return certain kinds of modules, based on where they are enabled or not and so on: Show a list of available ...
3
votes
1answer
2k views

Setting up drush ini path in my site alias

Unfortunately, i use shared hosting for my dev site to show to clients. I'd like to specify an ini path in my example.aliases.drush.php file. I couldn't find that particular custom variable in the ...
4
votes
1answer
1k views

Replace data from command line: site name

I run in mysql: update variable set value = replace(value,'SiteName','NewName'); and then clearing cache: drush cache-clear But I dont know why the site name become blank instead of NewName I've ...
2
votes
2answers
328 views

Drush returns error page

When I enter drush -d -v status I get dev@drupal-staging:/var/www/$ drush -d -v satus Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.03 sec, 2.36 MB] ...
1
vote
3answers
2k views

How to log simpletest test results into files using drush test-run?

I would like to save simpletest test results into a log file. What bash commands should I use ? I tried this command (example) but nothing is saved into /var/tmp folder : sudo -u apache drush test-...
6
votes
2answers
2k views

drush updatedb on multiple sites

I have a multisite installation with common modules code (all modules are in sites/all/modules). When I update the modules, after that I need to update the database of each site with drush updatedb -l ...
3
votes
2answers
308 views

Update report / drush up issue

I'm experiencing some odd behavior with D7's update report. When I view the update report it can only determine the status of roughly 5 or so modules/themes. The ones that it finds are random and each ...
4
votes
1answer
3k views

drush: How to upgrade to a stable module release instead of dev?

When I use drush pm-update it takes always the latest which is usually a dev release. How do I force it to update to the next stable release?
2
votes
2answers
582 views

drush - which folder for install on VPS / root server (newbie)

good evening, new to drupal - I want to install drush on my linux root-server, which runs OpenSuse Linux my friend does the root adminstration. What is aimed: i want to work on all my drupal ...
3
votes
1answer
126 views

Very simple but working drush extension?

I want to implement my own Drush command, and struggle because while the "Make me a sandwich" example is very good, it's also quite complex, and for someone that has never made such an extension it's ...
2
votes
1answer
470 views

How to define multiple file downloads for a single library in drush make

I am trying to create a make file for the closedquestion module following the instructions in the readme file. I know the below configuration snippet doesn't work - due to the fact that I am ...
1
vote
2answers
2k views

Solving drush error

I am trying to use drush with an installation profile nodetream. But i get error like Drush Error: C:\wamp\www\drupal9\profiles\nodestream>drush make --no-core --contrib-destinati on=. ...
3
votes
2answers
1k views

What do I need to install to run Drush make?

I want to make a site using a drush make command.I have already Drush installed on my server. When I try to run this command: drush make --prepare-install martplug-build.make mart plug I receive this ...
1
vote
2answers
259 views

Drush: Listing all modules installed on multiple servers

I have many servers installed on the same network, and I want to check them all to see if they need updates. This requires me to login to each server and run drush up and check the results. Can ...
0
votes
1answer
490 views

change drush rsync for use with aegir

I'm looking to drop the -a flag from the drush's rsync, but not sure what the best place for it as far Aegir is concerned. Would it be the sitename.alias.drushrc.php files in /var/aegir/.drush? Or ...
0
votes
1answer
971 views

drush devel-reinstall does not rebuild tables

For some reason if a module is a dependency other another module, and I run 'drush devel-reinstall' on it, it does not delete and then rebuild the tables for that module. Does anyone know why?
1
vote
2answers
455 views

Drush make project versions when there is only dev available?

Using Drupal 7.x. If I specify a drupal module project in my make file with no version, for example: projects[] = geocoder and the project currently only has a dev version available (e.g. geocoder ...
6
votes
2answers
2k views

advantages of drush bam vs. drush sql-dump / drush sql-connect

Is there any comparative advantage in terms of best practice, ease of use, or speed in terms of using the drush back up and migrate command (drush bam) or is it just preference? I'm often using just ...
41
votes
1answer
976 views

I need to bring a site to version control, and set up the continuous Integration environment

I am an entrepreneur with a Drupal 6x project that started small enough to not need version control (per developers), but now I am convinced there is no way without it. There's extensive documentation ...
0
votes
2answers
233 views

How to add 100 contributed modules into git repository fast?

I use a git repository, and Drush to manage Drupal projects. What I would like to do now is to add more then 100 contributed modules to the git repository to keep track on these modules as well. If ...
0
votes
1answer
477 views

What steps do I need to take to use Drush Make on a Windows machine?

I have the Drush Windows installer. I download the Drush Make module and put it in the drush\commands folder. Still I don't have any luck with Drush Make on Windows.
0
votes
1answer
934 views

How do I find the user ID knowing the username, when using drush?

That would be much more handy to use Drush rather than executing a SQL query to find a user ID. So I am wondering what drush command can be used that takes a username, and returns the equivalent user ...
3
votes
1answer
635 views

Can I make Drush use a pattern to name sql-sync dump files?

I'm using Drush to sync up my dev, staging and live sites using rsync and sql-sync. I want sql-sync to create a dump file named using a pattern. For example, I want the dump file to be named ...
2
votes
1answer
448 views

How to make Drush rsync @dev @staging exclude some directories?

I am using the following drush commands to synchronize development and test environments. drush rsync @dev @staging drush sql-sync @dev @staging How to setup drush to exclude certain directories (...
2
votes
1answer
317 views

How do I delete all the user's posts, using drush?

I frequently need to delete all comments/posts of a particular abusive user. It takes a hell of time to accomplish this with a browser. It would be great if someone could tell me how to do it using ...
2
votes
1answer
1k views

Drush: Update core from stable to dev

I would like to upgrade from drupal core 7.7 to 7.x-dev, is this possible using Drush? UPDATE: Ok, looks like either I needed Drush 4.5, or the process of updating Drush from 4.4 corrected something ...
9
votes
3answers
2k views

Drush Scripting? Or Batch API?

We have an Ubercart website that handles large volumes of orders daily, processes them and runs other tasks like billing, delivery routing, and future order creation. Some of these tasks are heavy ...
2
votes
3answers
858 views

The Batch API won't continue running if the browser is closed correct? Can a batch be run with Drush?

Can the batch API continue to run once the browser closes? If not then can I run a batch with Drush? I have an insane amount of data to migrate and I don't really have time to wait for it to import ...
1
vote
1answer
2k views

Drush missing the “provision” and “Hostmaster” commands

One of our boxes is missing these Aegir-Drush commands (from drush help): All commands in provision: (provision) backend-parse Parse the output of --backend commands to a human readable form ...
3
votes
1answer
892 views

What is the syntax for l.d.o translations in a drush make file

I have read the Drush Make documentation, and understand you can download translations at the time you use the drush make command, since there is an option. What I don't understand clearly is how to ...
0
votes
1answer
879 views

Drush, Views and Page Manager

I've got several custom modules I have written and they make liberal use of Views, Panels and the CTools page manager. I've exported the views, panels and page variants into the module code, and am ...
2
votes
1answer
600 views

Using Drush to update Drupal 6 core on multisite installation

I'm running multiple sites on a single Drupal 6 installation. I'd like to use drush to update Drupal core to the latest version without having to unlock update.php via settings for each site and then ...
2
votes
2answers
639 views

Aegir / drush alias issue: profiles specified at command line get forgotten

Note: Aegir is an installation / site management tool for drupal sites & platforms. See http://community.aegirproject.org/ for details. This question may be down to an Aegir issue or a drush one; ...
2
votes
1answer
1k views

Why is drush behaving strangely on this site-install run of open atrium?

I'm trying to set up openatrium to run on continuous integration with Jenkins, and part of this involves building it from scratch using a drush command. I'm having some trouble here though: Here's ...
3
votes
1answer
144 views

Why does drush en give differerent results than enabling mymodule in the ui?

When I perform drush en mymodule -y my module enables no problems. When I do the same in the UI it seems to install great. No errors. However the roles defined in hook_install() are not created. In ...
1
vote
1answer
939 views

Drush: difference between pm-update pm-updatecode

What's the difference between pm-update and pm-updatecode? I reviewed this in the Drush documentation, but they sound the same.
6
votes
3answers
5k views

Drush Make for a custom module hosted at github

I am trying to fetch a custom module versioned at github.com via drush make, but I get Could not retrieve version information for custom_migration Non-existent project type on project ...
2
votes
2answers
2k views

node_delete() is not deleting nodes

I'm trying to use a drush function to flush out all of the drealty module's nodes in my drupal 6 install. However, something is causing a memory leak and the nodes are not being deleted after ...
3
votes
1answer
1k views

drush make and drupalcode patches

I would like to download the stable version of a project and apply a patch. This patch was not submitted but applied directly to the project. I have the following drush make file (just a test snippet) ...