Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

9.8. swift download

Usage: swift download
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.