Closed (fixed)
Project:
Drush
Component:
Core Commands
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2012 at 09:00 UTC
Updated:
18 Nov 2012 at 23:40 UTC
Jump to comment: Most recent file
Hi there,
when I'm trying to archive-restore a tarball of my drupal site I'm getting a settings.php without a <?php delimiter at the beginning of the file. So the settings.php is readable by everyone. I have previously excluded the settings.php while creating the archive dump.
steps:
drush archive-dump --uri=SITE --destination=SITE.tar --tar-options="--exclude=sites/SITE/settings.php" --overwrite
drush archive-restore SITE.tar --destination=TARGET_FOLDER --db-url=mysql://USER:PASS@localhost:PORT/DBNAME
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drush-1823774.patch | 2.11 KB | jonhattan |
Comments
Comment #1
jonhattanDrush assumes settings.php is there.
Here's a patch that create settings.php from default.settings.php if it was excluded. It also forces default.settings.php to always be added to the archive.
Comment #2
moshe weitzman commentedCommitted to master and 5.