Skip to content

Upload a directory to a bucket

github-actions[bot] edited this page Jul 26, 2024 · 1 revision

Upload a directory to a bucket

Usage:

Usage:
  ./mgc object-storage objects upload-dir [src] [dst] [flags]

Product catalog:

  • Examples:
  • ./mgc object-storage objects upload-dir --dst="my-bucket/dir/" --src="path/to/folder" --storage-class="cold"

Other commands:

  • Flags:
  • --dst uri Full destination path in the bucket (required)
  • --filter array(object) File name pattern to include or exclude
  • Use --filter=help for more details
  • -h, --help help for upload-dir
  • --shallow Don't upload subdirectories
  • --src directory Source directory path for upload (required)
  • --storage-class enum Type of Storage in which to store object (one of "", "cold", "cold_instant", "glacier_ir" or "standard") (default "")

Flags:

Global Flags:
      --chunk-size integer     Chunk size to consider when doing multipart requests. Specified in Mb (range: 8 - 5120) (default 8)
      --cli.show-cli-globals   Show all CLI global flags on usage text
      --region enum            Region to reach the service (one of "br-mgl1", "br-ne1" or "br-se1") (default "br-se1")
      --server-url uri         Manually specify the server to use
      --workers integer        Number of routines that spawn to do parallel operations within object_storage (min: 1) (default 5)
Clone this wiki locally