使用阿里oss工具备份ECS数据

一个大的算法镜像在ECS, 大小超过12G, 本地备份耗时耗力, 使用阿里云ossutil将其备份到阿里云oss中, 记录如下:

  1. 下载并配置ossutil:
hgbadmin@hgb-aimodel-srv:~/ossutil$ wget https://gosspublic.alicdn.com/ossutil/1.7.11/ossutil64
--2022-05-06 10:59:10--  https://gosspublic.alicdn.com/ossutil/1.7.11/ossutil64
Resolving gosspublic.alicdn.com (gosspublic.alicdn.com)... 101.37.183.187, 101.37.183.186, 240e:f7:400f:502:3::3fc, ...
Connecting to gosspublic.alicdn.com (gosspublic.alicdn.com)|101.37.183.187|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10386656 (9.9M) [application/octet-stream]
Saving to: ‘ossutil64’

ossutil64                         100%[===========================================================>]   9.91M  --.-KB/s    in 0.07s   

2022-05-06 10:59:10 (152 MB/s) - ‘ossutil64’ saved [10386656/10386656]

hgbadmin@hgb-aimodel-srv:~/ossutil$ chmod 755 ossutil64
hgbadmin@hgb-aimodel-srv:~/ossutil$ ./ossutil64 config
The command creates a configuration file and stores credentials.

Please enter the config file name,the file name can include path(default /home/hgbadmin/.ossutilconfig, carriage return will use the default file. If you specified this option to other file, you should specify --config-file option to the file when you use other commands):
No config file entered, will use the default config file /home/hgbadmin/.ossutilconfig

For the following settings, carriage return means skip the configuration. Please try "help config" to see the meaning of the settings
Please enter language(CH/EN, default is:EN, the configuration will go into effect after the command successfully executed):CH
Please enter endpoint:oss-cn-shanghai-internal.aliyuncs.com  注意: 此处使用内网断点
Please enter accessKeyID:xxx
Please enter accessKeySecret:xxx
Please enter stsToken:
  1. 上传文件
hgbadmin@hgb-aimodel-srv:~/ossutil$ ./ossutil64 cp ../xxx/xxx.tar oss://xxx/xxx/hgb_517.tar
Succeed: Total num: 1, size: 13,287,213,056. OK num: 1(upload 1 files).                                             

average speed 151706000(byte/s) [平均130+M/S]

87.585606(s) elapsed
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值