pub struct SyncToOptions {
pub parallel: Option<u32>,
pub delete_extra: bool,
pub must_exist: Option<bool>,
pub times: Option<bool>,
pub update: Option<bool>,
pub max_download_speed_bytes_per_second: Option<i64>,
pub max_upload_speed_bytes_per_second: Option<i64>,
}Expand description
Options for kopia repository sync-to (ADR-0005 §13(d) / issue #216). Every
field’s None/false reproduces kopia’s own default — an all-None,
delete_extra: false instance yields the exact same argv sync_to_args
produced before this struct existed. The tri-state booleans map to kopia’s
--[no-]flag grammar, same as RestoreOptions: Some(true) → --flag,
Some(false) → --no-flag, None → omit (kopia default).
Fields§
§parallel: Option<u32>--parallel: copy parallelism to the destination (kopia default 1 —
sequential; the root cause of #216’s multi-week initial-seed times).
delete_extra: bool--delete: prune destination-only blobs for a true mirror (kopia
default false — additive sync, never removes destination content).
must_exist: Option<bool>--[no-]must-exist: fail instead of initializing the destination’s
repository-format blob (kopia default false).
times: Option<bool>--[no-]times: synchronize blob modification times to the destination,
when supported (kopia default true).
update: Option<bool>--[no-]update: update blobs already present at the destination when
the source copy is newer (kopia default true).
max_download_speed_bytes_per_second: Option<i64>--max-download-speed: cap read throughput from the source, bytes/sec
(kopia default: unlimited).
max_upload_speed_bytes_per_second: Option<i64>--max-upload-speed: cap write throughput to the destination, bytes/sec
(kopia default: unlimited).
Trait Implementations§
Source§impl Clone for SyncToOptions
impl Clone for SyncToOptions
Source§fn clone(&self) -> SyncToOptions
fn clone(&self) -> SyncToOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SyncToOptions
impl Debug for SyncToOptions
Source§impl Default for SyncToOptions
impl Default for SyncToOptions
Source§fn default() -> SyncToOptions
fn default() -> SyncToOptions
Source§impl PartialEq for SyncToOptions
impl PartialEq for SyncToOptions
Source§fn eq(&self, other: &SyncToOptions) -> bool
fn eq(&self, other: &SyncToOptions) -> bool
self and other values to be equal, and is used by ==.