pub struct CpArgs {Show 28 fields
pub sources: Vec<String>,
pub target: String,
pub recursive: bool,
pub preserve: bool,
pub continue_on_error: bool,
pub overwrite: bool,
pub skip_existing: bool,
pub dry_run: bool,
pub storage_class: Option<String>,
pub content_type: Option<String>,
pub enc_s3: Vec<String>,
pub enc_kms: Vec<String>,
pub enc_c_source_key_file: Option<PathBuf>,
pub enc_c_source_key_env: Option<String>,
pub enc_c_destination_key_file: Option<PathBuf>,
pub enc_c_destination_key_env: Option<String>,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub newer_than: Option<String>,
pub older_than: Option<String>,
pub rewind: Option<String>,
pub concurrency: Option<usize>,
pub rate_limit: Option<String>,
pub retry_attempts: Option<u32>,
pub retry_initial_backoff_ms: Option<u64>,
pub retry_max_backoff_ms: Option<u64>,
pub fail_empty: bool,
pub summary: bool,
/* private fields */
}Expand description
Copy objects
Fields§
§sources: Vec<String>Source paths (local paths or alias/bucket/key)
target: StringDestination path (local path or alias/bucket/key)
recursive: boolCopy recursively
preserve: boolPreserve file attributes
continue_on_error: boolContinue on errors
overwrite: boolOverwrite destination if it exists
skip_existing: boolSkip remote destinations that already exist
dry_run: boolOnly show what would be copied (dry run)
storage_class: Option<String>Storage class for destination (S3 only)
content_type: Option<String>Content type for uploaded files
enc_s3: Vec<String>Apply SSE-S3 to the remote destination path
enc_kms: Vec<String>Apply SSE-KMS to the remote destination path as TARGET=KMS_KEY_ID
enc_c_source_key_file: Option<PathBuf>Read a 32-byte SSE-C source key from a protected file
enc_c_source_key_env: Option<String>Read a 32-byte SSE-C source key from the named environment variable
enc_c_destination_key_file: Option<PathBuf>Read a 32-byte SSE-C destination key from a protected file
enc_c_destination_key_env: Option<String>Read a 32-byte SSE-C destination key from the named environment variable
include: Vec<String>Include source-relative paths matching this glob (repeatable)
exclude: Vec<String>Exclude source-relative paths matching this glob; exclusions always win (repeatable)
newer_than: Option<String>Select objects modified more recently than this age (for example 1h or 7d)
older_than: Option<String>Select objects modified less recently than this age (for example 1h or 7d)
rewind: Option<String>Select object state at or before a UTC timestamp or age
concurrency: Option<usize>Maximum number of transfers in flight across the command
rate_limit: Option<String>Aggregate transfer start rate in bytes per second (for example 10MiB/s)
retry_attempts: Option<u32>Maximum attempts for transient transfer failures
retry_initial_backoff_ms: Option<u64>Initial transient retry backoff in milliseconds
retry_max_backoff_ms: Option<u64>Maximum transient retry backoff in milliseconds
fail_empty: boolReturn not-found when selection produces no transfer candidates
summary: boolPrint deterministic aggregate transfer counters (human output)
Trait Implementations§
Source§impl Args for CpArgs
impl Args for CpArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for CpArgs
impl FromArgMatches for CpArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CpArgs
impl RefUnwindSafe for CpArgs
impl Send for CpArgs
impl Sync for CpArgs
impl Unpin for CpArgs
impl UnsafeUnpin for CpArgs
impl UnwindSafe for CpArgs
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more