Closed (fixed)
Project:
Drush
Component:
Core Commands
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2011 at 05:00 UTC
Updated:
15 Jan 2012 at 18:00 UTC
Jump to comment: Most recent file
archive-restore's --db-url flag does not seem to work for Drupal 7 restores. I'm not sure whether this is intended. The help documentation states:
--db-url A Drupal 6 style database URL indicating the target for
database restore. If not provided, the archived
settings.php is used.
This suggests to me that a D6 style MYSQL connection string should be used when entering the command, but it isn't clear whether this will be parsed into a D7 db array for D7 sites.
If the --db-url is intended for D6 installations only, then the help text should be more clear. If it is supposed to work for D7, then this is a bug. It currently just appends this to the end of the settings.php file in D7:
// Appended by drush archive-restore command.
$db_url = 'mysql://user:pw@server/dbname';
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | archive_restore_with_db_url_drupal_7_1380970_1.patch | 1.34 KB | juampynr |
Comments
Comment #0.0
juampynr commentedclarified wording
Comment #1
juampynr commentedThe logic at archive-restore is incomplete. Here is a patch against master branch that solves the issue by:
Comment #2
moshe weitzman commentedCommitted to master and 4.x ... Reduced log msg from a warning to an 'ok'
Comment #3.0
(not verified) commentedfixed typos