Finish the implementation of the backup script