pub struct SnapshotMigrateOptions {
pub source_config_path: String,
pub sources: MigrateSources,
pub latest_only: bool,
pub parallel: Option<u32>,
pub policies: MigratePolicies,
}Expand description
Options for kopia snapshot migrate --source-config <path> — logical
(snapshot-level) replication from another repository into the CONNECTED
one. See KopiaClient::snapshot_migrate for the execution contract.
Fields§
§source_config_path: String--source-config: path to the kopia config file of the SOURCE
repository. The source password is read from that config’s persisted
credentials (<config>.kopia-password — see
ConnectOptions::persist_credentials), never from this client’s
KOPIA_PASSWORD (which belongs to the connected destination).
sources: MigrateSourcesWhich sources to migrate.
latest_only: bool--latest-only: migrate only the latest snapshot per source.
parallel: Option<u32>--parallel <n>: how many sources to migrate concurrently.
policies: MigratePoliciesPolicy copy mode (kopiur defaults to MigratePolicies::None).
Trait Implementations§
Source§impl Clone for SnapshotMigrateOptions
impl Clone for SnapshotMigrateOptions
Source§fn clone(&self) -> SnapshotMigrateOptions
fn clone(&self) -> SnapshotMigrateOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotMigrateOptions
impl Debug for SnapshotMigrateOptions
impl Eq for SnapshotMigrateOptions
Source§impl PartialEq for SnapshotMigrateOptions
impl PartialEq for SnapshotMigrateOptions
Source§fn eq(&self, other: &SnapshotMigrateOptions) -> bool
fn eq(&self, other: &SnapshotMigrateOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnapshotMigrateOptions
Auto Trait Implementations§
impl Freeze for SnapshotMigrateOptions
impl RefUnwindSafe for SnapshotMigrateOptions
impl Send for SnapshotMigrateOptions
impl Sync for SnapshotMigrateOptions
impl Unpin for SnapshotMigrateOptions
impl UnsafeUnpin for SnapshotMigrateOptions
impl UnwindSafe for SnapshotMigrateOptions
Blanket Implementations§
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
Mutably borrows from an owned value. Read more