Compress the .sql file
marcp - May 27, 2009 - 16:40
| Project: | Demonstration site (Sandbox / Snapshot) |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
It would be nice to either compress the generated .sql file or to provide the option to have that file compressed.

#1
Adds database compress using PHP's Zlib. At the same time, it supports reading from example.sql files if they exist during database restore for backwards compatibility.
#2
Cleaned up the logic a bit and it now degrades gracefully for creating the dumps if zlib compression is not available.
#3
The patch worked out great for me. My 500K dumps are now 55K without having to do any manual compression.