pub enum MigratePolicies {
None,
Copy,
CopyOverwrite,
}Expand description
How kopia snapshot migrate treats kopia-side policies on the destination.
kopia’s OWN default is --policies true (copy policies), so
MigratePolicies::None must be rendered as an EXPLICIT --no-policies —
omitting the flag would silently import the source repository’s kopia
policies (retention among them) into the destination.
Variants§
None
--no-policies: copy no kopia policies (kopiur’s default — the
operator owns policy on both sides).
Copy
--policies: copy policies for the migrated sources, keeping any that
already exist on the destination.
CopyOverwrite
--policies --overwrite-policies: copy policies, overwriting existing
destination policies for the migrated sources.
Trait Implementations§
Source§impl Clone for MigratePolicies
impl Clone for MigratePolicies
Source§fn clone(&self) -> MigratePolicies
fn clone(&self) -> MigratePolicies
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 moreimpl Copy for MigratePolicies
Source§impl Debug for MigratePolicies
impl Debug for MigratePolicies
Source§impl Default for MigratePolicies
impl Default for MigratePolicies
Source§fn default() -> MigratePolicies
fn default() -> MigratePolicies
Returns the “default value” for a type. Read more
impl Eq for MigratePolicies
Source§impl PartialEq for MigratePolicies
impl PartialEq for MigratePolicies
Source§fn eq(&self, other: &MigratePolicies) -> bool
fn eq(&self, other: &MigratePolicies) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MigratePolicies
Auto Trait Implementations§
impl Freeze for MigratePolicies
impl RefUnwindSafe for MigratePolicies
impl Send for MigratePolicies
impl Sync for MigratePolicies
impl Unpin for MigratePolicies
impl UnsafeUnpin for MigratePolicies
impl UnwindSafe for MigratePolicies
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