Task to generate a snapshot