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

Rob Loach - June 8, 2009 - 21:33
Status:active» needs review

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.

AttachmentSize
democompression.patch 5.59 KB

#2

Rob Loach - June 8, 2009 - 22:15

Cleaned up the logic a bit and it now degrades gracefully for creating the dumps if zlib compression is not available.

AttachmentSize
474414.patch 5.41 KB

#3

marcp - June 9, 2009 - 21:39

The patch worked out great for me. My 500K dumps are now 55K without having to do any manual compression.

 
 

Drupal is a registered trademark of Dries Buytaert.