It is a tool used in disaster recovery and it was open sourced today: ic/rs/replay at master · dfinity/ic · GitHub
According to this thread is it not possible currently, but that may change in the future.
I am not an expert in that area, so I am going to defer this questions to others.