# 七牛云 QShell 常用命令

📆 2020-12-18 13:49

PS

方括号内的内容需要替换为你自己的

# 批量上传

./qshell qupload [./qupload.conf]
{
  "src_dir"            :   "[./test_forder/]",
  "bucket"             :   "[test_bucket]",
  "file_list"          :   "",
  "key_prefix"         :   "",
  "up_host"            :   "",
  "ignore_dir"         :   false,
  "overwrite"          :   false,
  "check_exists"       :   true,
  "check_hash"         :   false,
  "check_size"         :   false,
  "rescan_local"       :   true,
  "skip_file_prefixes" :   "",
  "skip_path_prefixes" :   "",
  "skip_fixed_strings" :   "",
  "skip_suffixes"      :   ".DS_Store",
  "log_file"           :   "[./upload.log]",
  "log_level"          :   "info",
  "log_rotate"         :   1,
  "log_stdout"         :   false,
  "file_type"          :   0
}

# 删除单个文件

./qshell delete [test_bucket] [test_folder/test_file.jpg]

# 批量删除

./qshell batchdelete [test_bucket] -i [./test_result.txt]

# 根据前缀查询并保存查询结果

./qshell listbucket [test_bucket] --prefix [test_prefix] -o [./test_result.txt]

# 批量下载

./qshell qdownload [./qdownload.conf]
{
  "dest_dir"   :   "[./test_folder/]",
  "bucket"     :   "[test_bucket]",
  "prefix"     :   "[test_prefix]",
  "suffixes"   :   "",
  "cdn_domain" :   "",
  "referer"    :   "",
  "log_file"   :   "[./download.log]",
  "log_level"  :   "info",
  "log_rotate" :   1,
  "log_stdout" :   false
}
最后更新于: 12/12/2021, 8:43:11 PM