Skip to content

exo storage copy

Description

Copy objects within a bucket or across buckets.

This command copies objects server-side without downloading them. Object metadata, headers, and ACLs are preserved. Existing destination objects are overwritten.

Multi-object prefix copies are processed serially. A trailing slash on the source selects prefix mode; -r controls recursion into subdirectories.

Examples:

exo storage copy sos://my-bucket/file-a sos://my-bucket/folder/file-a

exo storage copy sos://my-bucket/file-a sos://other-bucket/file-a

exo storage copy -r sos://my-bucket/prefix/ sos://other-bucket/prefix/

exo storage copy -n sos://my-bucket/file-a sos://other-bucket/file-a
exo storage copy sos://BUCKET/[OBJECT|PREFIX/] sos://BUCKET/[OBJECT|PREFIX/] [flags]

Options

OptionDescription
--dry-run, -nsimulate the copy operation
--force, -fskip confirmation prompt
--help, -hhelp for copy
--multipart-concurrencynumber of concurrent parts for multipart copies
--recursive, -rcopy objects recursively
--verbose, -voutput copied objects

Options inherited from parent commands

OptionDescription
--config, -CSpecify an alternate config file [env EXOSCALE_CONFIG]
--output-format, -OOutput format (table|json|text), see "exo output –help" for more information
--output-templateTemplate to use if output format is "text"
--quiet, -QQuiet mode (disable non-essential command output)
--timeoutPer-zone timeout for list operations; -1s disables timeout [env EXOSCALE_TIMEOUT]
--use-account, -AAccount to use in config file [env EXOSCALE_ACCOUNT]

Related Commands

  • storage - Object Storage management
Last updated on