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

9.13. swift upload


Usage: swift upload
Copy to Clipboard Toggle word wrap
Uploads specified files and directories to the given container.

Positional arguments

<container>


        Name of container to upload to.

<file_or_directory>


        Name of file or directory to upload. Specify multiple
      times for multiple uploads.

Optional arguments

-c, --changed


        Only upload files that have changed since the last
      upload.

--skip-identical


        Skip uploading files that are identical on both sides.

-S, --segment-size <size>


      Upload files in segments no larger than <size> (in
      Bytes) and then create a "manifest" file that will
      download all the segments as if it were the original
      file.

--segment-container <container>


      Upload the segments into the specified container. If
      not specified, the segments will be uploaded to a
      <container>_segments container to not pollute the
      main <container> listings.

--leave-segments


        Indicates that you want the older segments of manifest
      objects left alone (in the case of overwrites).

--object-threads <threads>


      Number of threads to use for uploading full objects.
      Default is 10.

--segment-threads <threads>


      Number of threads to use for uploading object segments.
      Default is 10.

-H, --header <header:value>


      Adds a customized request header. This option may be
      repeated. Example: -H "content-type:text/plain"
      -H "Content-Length: 4000".

--use-slo


        When used in conjunction with --segment-size it will
      create a Static Large Object instead of the default
      Dynamic Large Object.

--object-name <object-name>


      Upload file and name object to <object-name> or upload
      dir and use <object-name> as object prefix instead of
      folder name.

--ignore-checksum


        Turn off checksum validation for uploads.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat