Script to create an archive excluding bad files