Debugging restore script