How to create a local snapshot of the data