Routines for dumps and restores