silverstripe / sspak

Tool for managing bundles of db/assets from Silverstripe environments
http://silverstripe.github.io/sspak/
BSD 3-Clause "New" or "Revised" License
47 stars 34 forks source link

SSPAK is using double the diskspace on save #27

Closed stojg closed 9 years ago

stojg commented 9 years ago

When creating new sspak it seems to first using double the space

This is an example during a run from the temporary files in /tmp.

-rw-r--r--  1 www-data www-data 6.6G Jun 30 12:37 sspak-content-723399
-rw-------  1 www-data www-data 6.6G Jun 30 12:39 phpnqTfmI

the phpnqTfmI seems to be a php tempfile() that is used for some operation instead of the original sspak-content-723399 file

halkyon commented 9 years ago

Not much we can do about this unfortunately. Seems to be an internal thing of Phar when you call PharData::addFile(), and streaming the file in doesn't seem to be supported.