Finish backup function