Migrate and restore one by one script