update backup restore function.