How to create a snapshot