get the dump to file to be restorable