应用背景: 我如今有两个七牛云帐号 A,B,如今须要把A里面的一个存储A-1(公共存储)迁移到B里面的一个存储B-1(私有存储),已知A-1存储量=19G .面对19G的数据选择qshell 工具来把A-1数据转化到B-1shell
下载和配置qshellbash
{ "dest_dir" : "/Users/lph/qshell/backup", #指定下载到的文件位置 "bucket" : "XXX(查看七牛云具体的存储bucket)", "prefix" : "", "suffixes" : ".png,.jpg" }
$ vi ~/.bash_profile .... export PATH="/Users/lph/qshell" #载入qshell命令 ..... $ source ~/.bash_profile #重启bash_profile $ qshell #配置成功 Qiniu commandline tool for managing your bucket and CDN Usage: qshell [command] Available Commands: account Get/Set AccessKey and SecretKey alilistbucket List all the file in the bucket of aliyun oss by prefix b64decode Base64 Decode, default nor url safe b64encode Base64 Encode, default not url safe batchchgm Batch change the mime type of files in bucket batchchtype Batch change the file type of files in bucket batchcopy Batch copy files from bucket to b .........
打开cmd 输入命令:并发
$ qshell account 七牛云的ACCESSKEY 七牛云的SECRETKEY 你的帐号名称 #帐号配置 $ qshell qdownload 15 qdownload #下载文件 最大并发为15 下载内容根据qdownload 文件
$ qshell qupload2 --src-dir=/Users/lph/qshell/backup --bucket=bucket名称