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

Allow exclusion of folders from assets #15

Open sminnee opened 11 years ago

sminnee commented 11 years ago

Sometimes, a prod site's assets are ridiculously huge, and you want to exclude some.

Add the ability to create one or more --exclude-assets=subdirofassets/ parameters.

chillu commented 11 years ago

A warning would be awesome, e.g. "Total size of assets to be compressed and transferred is 10GB. Continue?"

sminnee commented 11 years ago

Yeah, good call. It would probably be the uncompressed size, as the tar command happens over the wire, it's something like this:

ssh -T server "tar cz assets -O" > /tmp/local-assets-tmp.tar.gz

But, showing the total size of assets would be helpful.

KINKCreative commented 7 years ago

Actually, also the exclusion of file formats (same format, right?) would follow the same line. We have a few projects where there's .mov and .mp4 files totaling 9 gb which you really won't need when setting up a local environment for a developer.