Changed comment lines frol // to /** **/
Restore now works if output copying failed