一个大的算法镜像在ECS, 大小超过12G, 本地备份耗时耗力, 使用阿里云ossutil将其备份到阿里云oss中, 记录如下:
- 下载并配置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:
- 上传文件
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