This commit updates the snapshot code as well as the "backup" and "restore" command to work with the new architecture.