code: def _get_summary(rsync_out):
      '''
      Get summary from the rsync successful output.
      '''
  
      return "- " + "\n- ".join([elm for elm in rsync_out.split("\n\n")[-1].replace("  ", "\n").split("\n") if elm]f _get_summary(rsync_out):
      '''
      Get summary from the rsync successful output.
      '''
  
      return "- " + "\n- ".join([elm for elm in rsync_out.split("\n\n")[-1].replace("  ", "\n").split("\n") if elm])
docs: Get summary from the rsync successful output.