def export(self):
with LogTask('<STR_LIT>'.format(self.name, self.dst)):<EOL><INDENT>with utils.RollbackContext() as rollback:<EOL><INDENT>rollback.prependDefer(<EOL>shutil.rmtree, self.dst, ignore_errors=True<EOL>)<EOL>self.copy()<EOL>if not self.disk['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>self.sparse()<EOL><DEDENT>self.calc_sha('<STR_LIT>')<EOL>self.update_lago_metadata()<EOL>self.write_lago_metadata()<EOL>self.compress()<EOL>rollback.clear()<EOL><DEDENT><DEDENT>
See DiskExportManager.export