def getBackUp(cls, context, container, name, out_file): """ :param cls: :param context: :param container: :param name: :param out_file: :return: """ file = RemoteSwift.get(context=context, container=container, name=name, out_file=out_file) return file
def saveBackUp(cls, context, container, snapshot_name, snapshot_content): """ :param cls: :param context: auth_url and auth_token to access swift :param container: :param snapshot_name: :param snapshot_content: :return: """ return RemoteSwift.put(context=context, container=container, name=snapshot_name, file_to_upload=snapshot_content)