Make a copy of yaml for restore