此内容没有您所选择的语言版本。

9.8. swift download


Usage: swift download
Copy to Clipboard Toggle word wrap
Download objects from containers.

Positional arguments

<container>


        Name of container to download from. To download a
      whole account, omit this and specify --all.

<object>


        Name of object to download. Specify multiple times
      for multiple objects. Omit this to download all
      objects from the container.

Optional arguments

-a, --all


        Indicates that you really want to download
      everything in the account.

-m, --marker <marker>


        Marker to use when starting a container or account
      download.

-p, --prefix <prefix>


        Only download items beginning with <prefix>

-r, --remove-prefix


        An optional flag for --prefix <prefix>, use this
      option to download items without <prefix>

-o, --output <out_file>


      For a single file download, stream the output to
      <out_file>. Specifying "-" as <out_file> will
      redirect to stdout.

-D, --output-dir <out_directory>


      An optional directory to which to store objects.
      By default, all objects are recreated in the current
      directory.

--object-threads <threads>


      Number of threads to use for downloading objects.
      Default is 10.

--container-threads <threads>


      Number of threads to use for downloading containers.
      Default is 10.

--no-download


        Perform download(s), but don't actually write anything
      to disk.

-H, --header <header:value>


      Adds a customized request header to the query, like
      "Range" or "If-Match". This option may be repeated.
      Example: --header "content-type:text/plain"

--skip-identical


        Skip downloading files that are identical on both
      sides.

--ignore-checksum


        Turn off checksum validation for downloads.

--no-shuffle


        By default, when downloading a complete account or
      container, download order is randomised in order to
      reduce the load on individual drives when multiple
      clients are executed simultaneously to download the
      same set of objects (e.g. a nightly automated download
      script to multiple servers). Enable this option to
      submit download jobs to the thread pool in the order
      they are listed in the object store.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat