Closed (fixed)
Project:
Provision
Version:
6.x-0.4-alpha1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2009 at 21:16 UTC
Updated:
12 Jun 2014 at 08:41 UTC
Jump to comment: Most recent
Comments
Comment #1
anarcat commentedThere's actually two problems here:
1. in some cases (interruption?) backup leaves the file lying around (this is more likely a drush issue, see #590634: interruptions should launch rollbacks), and;
2. more importantly: the file is world-readable. this is the issue at hand here.
Comment #2
Anonymous (not verified) commentedDoesn't the database dump get deleted post-backup and post-restore?
And backups live outside the document root?
Or are you talking about the fleeting moment where it drops it in database.sql before tarring up the whole directory?
Edit: nevermind I see you point out that an interruption will leave the dump lying around. Helps if I read properly :)
Comment #3
Anonymous (not verified) commentedThink I've fixed this in HEAD, file is chmod to 600 on successful writing of the dump file.
Comment #4
anarcat commentedYeah, so that's what I'm talking about: the database.sql gets created with too permissive... permissions. That file can be read while the dump is created, even if the permissions are fixed in the end. It needs to be created with the proper permissions (you can use umask for that).
Comment #5
Anonymous (not verified) commentedA better fix committed to HEAD. Thanks