Closed (fixed)
Project:
Drush
Component:
Core Commands
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
21 Sep 2010 at 15:07 UTC
Updated:
14 Jan 2011 at 05:10 UTC
Jump to comment: Most recent file
This may be a lower level issue, but when running sql-sync with an alias file defined in my site root, drush_sitealias_get_record returns no records.
When I move the aliases file to /etc/drush then the aliases are available.
I am assuming that there is some kind on context init that is not taking place. (But have not dug deeper yet)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drush-drupal-root-aliases.patch | 2.09 KB | greg.1.anderson |
Comments
Comment #1
greg.1.anderson commentedI haven't looked at it yet, but I suspect this is in fact a bug. If you put the alias file in your site folder, then whenever you use that site as one target to an sql-sync or rsync, you should also be able to use any alias in that file as the other target. Alias files in the Drupal root should also be available, but my suspicion is that the former works but the later does not. I'll look into it and confirm.
Comment #2
greg.1.anderson commentedComment #3
greg.1.anderson commentedHere is a patch that allows
drush sql-sync @alias @dddanddrush -r /path/to/root @ddd status, where '@ddd' is an alias defined in an alias file at '/path/to/root', and '@alias' is an alias of global scope with a Drupal root at /path/to/root.Comment #4
moshe weitzman commentedSeems reasonable
Comment #5
greg.1.anderson commentedCommitted.