类别:WINDOWS / NT / 日期:2022-06-13 / 浏览:2368 / 评论:0

    qrsctl 是根据七牛云存储API实现的一个简易命令行辅助工具。覆盖七牛云存储开发者网站包含的大部分甚至更高级的功能。开发者在对七牛云存储 API 有基本了解的情况下,此工具将会非常适用。

七牛云qrsctl多级目录的下载方法  qrsctl cmd get 七牛云 下载 二级 多级 目录 第1张

    最近在改模板的时候改错了点东西,需要用到旧模板做参考,由于旧模板是备份在七牛云上面的,然后我的域名又没有备案,无法通过正常渠道下载。所以老规矩,还是用的qrsctl来下载。

Usage:
  qrsctl [-l|d|lan|it|-f <hostFile>] -v login <User> <Passwd>                                               - Login
  qrsctl [-l|d|lan|it|-f <hostFile>] -v info                                                                - Show user information
  qrsctl [-l|d|lan|it|-f <hostFile>] -v appinfo [<AppName>]                                                 - Get application info
  qrsctl [-l|d|lan|it|-f <hostFile>] -v put -c <Bucket> <Key> <SrcFile>                                     - Put file
  qrsctl [-l|d|lan|it|-f <hostFile>] -v get <Bucket> <Key> <DestFile>                                       - Get file
  qrsctl [-l|d|lan|it|-f <hostFile>] -v stat <Bucket> <Key>                                                 - Stat file
  qrsctl [-l|d|lan|it|-f <hostFile>] -v cat <Bucket> <Key>                                                  - Cat file
  qrsctl [-l|d|lan|it|-f <hostFile>] -v del <Bucket> <Key>                                                  - Delete a file
  qrsctl [-l|d|lan|it|-f <hostFile>] -v mv <Bucket1:Key1> <Bucket2:Key2>                                    - Move file from Bucket1:Key1 to Bucket2:Key2
  qrsctl [-l|d|lan|it|-f <hostFile>] -v cp <Bucket1:Key1> <Bucket2:Key2>                                    - Copy file
  qrsctl [-l|d|lan|it|-f <hostFile>] -v chgm <Bucket> <key> <mimeType>                                      - Change MimeType
  qrsctl [-l|d|lan|it|-f <hostFile>] -v listprefix <bucket> <prefix> [<limit>] [<marker>]                   - List files
  qrsctl [-l|d|lan|it|-f <hostFile>] -v mkbucket <BucketName> <Zone>                                        - Create a bucket, <Zone>:z0, z1, z2, na0
  qrsctl [-l|d|lan|it|-f <hostFile>] -v buckets <Shared>                                                    - List all buckets
  qrsctl [-l|d|lan|it|-f <hostFile>] -v share <Bucket> <Uid> <Permission>
                                        PermissionOptions: 1(RD) 2(RW) -1(Cancel Share)                     - Share bucket
  qrsctl [-l|d|lan|it|-f <hostFile>] -v listprefix <bucket> <prefix> [<limit>] [<marker>]                   - List files buckets
  qrsctl [-l|d|lan|it|-f <hostFile>] -v bucketinfo <Bucket>                                                 - Get bucket info
  qrsctl [-l|d|lan|it|-f <hostFile>] -v img <Bucket> <SrcUrl> [<SrcHost>] [<Expires>]                       - Image bucket with source
  qrsctl [-l|d|lan|it|-f <hostFile>] -v unimg <Bucket>                                                      - Unimage bucket
  qrsctl [-l|d|lan|it|-f <hostFile>] -v protected <Bucket> <Protected>                                      - Set bucket protected or not
  qrsctl [-l|d|lan|it|-f <hostFile>] -v separator <Bucket> <Sep>                                            - Set style separator
  qrsctl [-l|d|lan|it|-f <hostFile>] -v style <Bucket> <Name> <Style>                                       - Set style
  qrsctl [-l|d|lan|it|-f <hostFile>] -v unstyle <Bucket> <Name>                                             - Unset style
  qrsctl [-l|d|lan|it|-f <hostFile>] -v styleCopy <bucket_Src> <bucket_Dest>                                - Copy styles
  qrsctl [-l|d|lan|it|-f <hostFile>] -v private <Bucket> <Private>                                          - Set bucket private or not
  qrsctl [-l|d|lan|it|-f <hostFile>] -v imgsft  <Bucket> <imgsft>                                           - Set bucket image storage with fault tolerant
  qrsctl [-l|d|lan|it|-f <hostFile>] -v noIndexPage <Bucket> <0/1>                                          - Turn On/Off bucket index page
  qrsctl [-l|d|lan|it|-f <hostFile>] -v redirect <Bucekt> <Key> <RedirectUrl> [<RedirectCode>]              - Redirect a key to an url

  qrsctl [-l|d|lan|it|-f <hostFile>] -v pfop <bucket> <key> <fops> [<notifyURL>] [<force>] [<pipeline>]     - Do pfop
  qrsctl [-l|d|lan|it|-f <hostFile>] -v listjobs <pipelineId> [<marker>] [<limit>]                          - List jobs of pfop

  qrsctl [-l|d|lan|it|-f <hostFile>] -v cdn/refresh <Url1> <Url2>...<UrlN>                                  - Refresh cdn cache for urls
  qrsctl [-l|d|lan|it|-f <hostFile>] -v cdn/bandwidth <domains> <start_date> <end_date> [<granularity>]     - Get bandwidth of domains
  qrsctl [-l|d|lan|it|-f <hostFile>] -v cdn/flux <domains> <start_date> <end_date> [<granularity>]          - Get traffic of domains

Authorization:
  1) qrsctl login <User> <Passwd>: and then remember the login token
  2) qrsctl login <AccessKey> <SecretKey>
  3) qrsctl -a <AccountConf>: provide an account config file that provide access_key & secret_key (in json format)
BuildVersion:
  qrsctl v3.2.20170501

    由于以前七牛云的插件是备份在根目录的,因此没发现这个问题,现在最新版的七牛云插件是备份在二级目录的,因此发现了qrsctl无法支持多级目录下载的问题,翻阅了官方开发文档发现有mv的操作命令,但是操作下来发现也没效果。最后经过多次猜测,测试出了正确的下载方法。如下

 可能感兴趣的文章

伤心叹戈

评论区

发表评论 / 取消回复

必填

选填

选填

◎欢迎讨论,请在这里发表您的看法及观点。

近期评论