Drush is a command line shell and scripting interface for Drupal.

learn more… | top users | synonyms

8
votes
1answer
858 views

How to effectively manage a site with Drush make?

What things are important to consider when managing a site using Drush make?
3
votes
1answer
813 views

Why does drush say “command not found” when I try to execute remote commands? [closed]

When I use a drush command to do something on a remote machine, I get the message bash: drush: command not found What's the problem?
21
votes
2answers
1k views

drush / jenkins (hudson)

I hear the buzz words, "continuous integration", "drush" and "jenkins" often. Thus, sparking my interest. How are drush and jenkins used together for continuous integration? Also, why would you ...
15
votes
4answers
2k views

How to take a Drupal site offline using Drush?

How can I take a Drupal site offline using Drush?
6
votes
4answers
690 views

(dis)advantages of staging dev->production using 'drush rsync' vs 'git'?

I set up a Drupal site under git control for development work. It's parented in a master, bare GIT repo, and as changes are made in my various project-work git clones, and pushed back to the master, ...
2
votes
6answers
919 views

Drush Open_BaseDir Error

I keep getting the following error, although I've turned off SafeMode in my .ini file, and confirmed it's off with a PHP status page. The following restricted PHP modes have non-empty values: ...
4
votes
2answers
651 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 ...
1
vote
3answers
154 views

Is there a module that provides access to Drush through a Drupal page?

Is there a module which provides Drush like functionality or even a front-end to Drush via a well-secured webpage?
1
vote
1answer
755 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 ...
0
votes
0answers
246 views

-bash: drush: command not found (Debian 6) [closed]

Why does drush say "command not found" when I try to execute remote commands? suggests adding a line to my .bashrc. Is my line below wrong? Do you have any other suggestion? $ ls ...
15
votes
2answers
466 views

Memory-saving cache-clearing strategies for large sites?

One of my Drupal 7 sites has thousands of fields, a bunch of content types, more than 25 views, and hundreds (soon to be thousands) of profile types. Because of this, I'm using a core patch that ...
14
votes
4answers
846 views

Are Drush and Phing redundant?

I've installed JenkinsCI on our dev server to start automating our dev build and test process. I'm using Jenkins with the Git Plugin and some Drush commands via a shell script. When researching how ...
4
votes
2answers
428 views

What could cause remote drush commands to fail with ssh errors when ssh works in all other cases?

I have public and private ssh keys on all of my three servers (dev, UAT, & production) so I can log in remotely, or from one to another. Everything is working perfectly for the ssh and scp ...
2
votes
3answers
3k views

How to execute php script using drush?

I am new to Drush. How can I execute this script to remove comments of a specific user? $uid = xx // the spam users id; $query = db_query("SELECT cid FROM {comments} WHERE uid = %d", $uid); ...
1
vote
3answers
1k views

How do I install a patch file?

I was trying to google the method to install a patch file, but the results keep returning as "issues encountered while patching", which isn't what I am looking for. I was wondering how to use drush ...
1
vote
1answer
545 views

How to set Drush sql-sync not to clone users between @dev and @staging?

As I wrote in my previous question, I am using the following drush commands to synchronize development and staging environments. drush rsync @dev @staging drush sql-sync @dev @staging How to set ...
8
votes
2answers
941 views

Updating modules with drush without breaking SVN?

Right, this has been breaking me for two days. I can't get an answer anywhere! I have drush 4.4 on my server. I am using SVN via Unfuddle.com. I have a site, I want to update a lot of modules. I want ...
3
votes
2answers
1k views

Import po-files using Drush

I have about 20 sites that have a common translation. I don't want to go into admin of each site each time the po-file is updated. Is it possible to import a po-file using Drush?
2
votes
1answer
273 views

How do I use Drush correctly to restore a site via the arr command?

I am having an issue with the Drush arr command working correctly. I use drush to backup an archive on a testing server and then move it to a live server, or vice versa when needed. Here is a ...
2
votes
2answers
399 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 ...
2
votes
1answer
369 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 ...
1
vote
1answer
523 views

Drush and multisite config

I have a new multisite instance with the Backup & Migrate module installed in /sites/all/modules/ When I run drush the bam-* commands don't show as available commands. I have site aliases set up ...
1
vote
2answers
464 views

changing the path of modules installed using an installation profile

I have a site which has a profile which downloads a number of modules using drush make. It adds the modules in the path /profiles//modules. Is it possible in the make file in the profile to change ...
4
votes
2answers
850 views

Does the drush up command work on multisite?

I have to update all sites on a D7 multi-site installation. I normally deal with single installation and I use drush up to update the core, modules and db. I have no prior experience with a multi-site ...
1
vote
2answers
170 views

Creating a new user role with Drush

I can do loads of user-related stuff with Drush, but I can't see how to create new user roles. Is it possible to do this with Drush?
0
votes
1answer
54 views

How can I run Drush as user 1 in version 5?

Drush v3 had a --user flag (--user=1), however, this seems to be removed since v4, according to the website. How can I run Drush 5 as logged in as user 1?
0
votes
1answer
94 views

Applying Updates to Multiple Drupal Sites

I have over 100 drupal 7 websites on my single server. Applying updates to each site individually is a lengthy task. Is there any simple way through which we can update all the websites at once, or ...
0
votes
1answer
154 views

How to quickly update/reinstall using Drush 4.x

Whilst trying to update Drupal 7.0 core and installed modules using Drush 4.x I appear to have broken a project site (Ubuntu 11.04 box using pure LAMP) and hence I get the dreaded 'white screen' so ...