pub struct BackupForgetPlan {
pub service_name: String,
pub repo: String,
pub password: String,
pub env: BTreeMap<String, String>,
pub tag: String,
pub keep_args: Vec<String>,
pub prune: bool,
pub dry_run: bool,
}Expand description
Instructions for pruning one service’s snapshots to the retention ladder.
Built from the configured retention policy; the CLI spawns restic forget
(then --prune to reclaim space) scoped to this service’s service:<name>
tag, so one service’s policy can’t evict another’s snapshots.
Fields§
§service_name: String§repo: String§password: String§env: BTreeMap<String, String>§tag: Stringrestic --tag filter (e.g. service:<name>,mode:daily) — forget only
considers snapshots matching all of these comma-joined tags.
keep_args: Vec<String>--keep-* flags from the policy. Never empty (the planner returns
None for an absent/all-zero policy rather than an empty plan).
prune: boolReclaim space after forgetting. Skipped in a dry run.
dry_run: boolShow what would be removed without removing it.
Trait Implementations§
Source§impl Clone for BackupForgetPlan
impl Clone for BackupForgetPlan
Source§fn clone(&self) -> BackupForgetPlan
fn clone(&self) -> BackupForgetPlan
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 moreAuto Trait Implementations§
impl Freeze for BackupForgetPlan
impl RefUnwindSafe for BackupForgetPlan
impl Send for BackupForgetPlan
impl Sync for BackupForgetPlan
impl Unpin for BackupForgetPlan
impl UnsafeUnpin for BackupForgetPlan
impl UnwindSafe for BackupForgetPlan
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