helper functions to backup and restore snapshots and operations per collections