I have just started using this. It's very nice. One thing I've noticed, I'm using a multi-site setup and usually I have drupal core on a dedicated user account from the various sites. So when I try to run drush pm update just for one site I run into a situation where it's trying to create a backup in my drupal root folder (and it doesn't have write permission to that). I've traced it to this line (drush/drush_pm/drush_pm.module:279) --
$backup_dir = DRUSH_DRUPAL_ROOT. '/backup';
Would it be possible to make this configurable via drushrc or maybe even auto-detect?
Thanks - great system!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drush_pm-5.patch | 759 bytes | miiimooo |
| #3 | drush_pm-6.patch | 759 bytes | miiimooo |
Comments
Comment #1
miiimoooThis would be a patch that does what I described above. I'm not sure whether it breaks drush in other situations:
Comment #2
clemens.tolboom+1 for the above 'patch'.
The backup should reside in the parent directory of the project to be updated. Problem will be if one follows a directory scheme with subdirectories say 'sites/example.com/modules/views-modules/views/' then this 'patch' fails. (EDIT) This directory should be writeable in the first place ... the module is about to be replaced right? (end EDIT)
@miiimooo: please attach a patch and describe a test scenario (or a ref to a blog post :-)
Comment #3
miiimoooHere you go :
fixes #305489: drush and multi-site and update/backup (and maybe #298048: drush update fails with "failed to backup project directory ... to ..."). I'm throwing in the drupal 5 patch. It's practically identical.
Comment #4
fen commentedAny update on this? I tried the patch in comment #3 and still it seems to fail in the rename. I'm using --svnsync and am multisite. The first rename is the problem, but the second rename (that fails because of the first rename) has the correct paths. Here's an output listing:
Comment #5
nschloe commentedHi,
any news on this one? I'm having the same issue here, except that -- to add some weirdness --, the global backup folder is actually writable for all users.
Hence, this
is no problem at all, while
drushstill fails withCheers,
Nico
Comment #6
nschloe commentedComment #7
xurizaemon(Removed - wrong thread, sorry. The thread I should have posted in was #249943: E: Unable to download ....)
Comment #8
xurizaemonRestoring initial values.
Comment #9
moshe weitzman commentedwe need to make this directory copy a pluggable version control backend. that work is happenning elsewhere.