#!/bin/bash

# 设置local和tc-sh的别名
set_minio_endpoint_alias() {
  mc alias set local http://localhost:9000 cmii B#923fC7mk
  mc alias set tc-sh http://42.192.52.227:9000/ cmii B#923fC7mk
}

create_bucket_in_tc_sh() {
  mc mb tc-sh/octopus
  mc anonymous set public tc-sh/octopus
}

delete_prune_tc_sh_bucket() {
  mc rm --recursive --force tc-sh/octopus/
}

set_minio_endpoint_alias

mc cp -r local/octopus/ tc-sh/octopus/
