1.安装obsutil
obsutil是一款用于访问管理华为云对象存储服务(Object Storage Service,OBS)的命令行工具
https://support.huaweicloud.com/utiltg-obs/obs_11_0003.html
#下载obsutiltar包 wget https://obs-community.obs.cn-north-1.myhuaweicloud.com/obsutil/current/obsutil_linux_amd64.tar.gz #解压 tar -xzvf obsutil_linux_amd64.tar.gz #进入目录 cd /data/obs/obsutil_linux_amd64_5.5.12 #添加权限 chmod 755 obsutil #测试版本 ./obsutil version
2.在服务器使用Cli的方式登录,在配置的时候,配置ak/sk
./obsutil config -i=ak -k=sk -e=obs.cn-north-xx.xx.com
3.使用sync同步上传,其中桶名为gw-bjs-dev-bom
https://support.huaweicloud.com/utiltg-obs/obs_11_0042.html
./obsutil sync /data/nfs-bom/ obs://gw-bjs-dev-bom
标签:amd64,tar,使用,obsutil,华为,linux,com,obs From: https://www.cnblogs.com/xiaoxiaomuyuyu/p/18096906