Stage File Purifier

Categories

Component ID

2314729

Component name

Stage File Purifier

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

272

Component created

Component changed

Component body

A Drush script that replaces not required file types with symbolic links to dummy files to prevent staging or local sites to consume lots of disk space after full sync from production.

The input is the directory of the dummy files, the output is the amount of disk space saved.
A possible content of the input directory:
sample.avi sample.doc sample.docx sample.mp3 sample.mp4 sample.ods sample.odt sample.pdf sample.wav sample.xls sample.xlsx sample.zip

Be aware that this module will delete data from your files directory, only use it for staging or local sites where you have the ability to restore these from another source.