finish restore and backup