pub enum SnapCommand {
Show 13 variants
List {
path: Option<String>,
json: bool,
},
Show {
timestamp: String,
},
Revert {
path: String,
epoch: u64,
},
Copy {
path: String,
epoch: u64,
destination: String,
},
Prune {
older_than: Option<String>,
keep_last: Option<usize>,
max_size: Option<String>,
path: String,
},
Tag {
timestamp: String,
tag: String,
},
RebuildIndex {
path: String,
},
Stats {
path: String,
json: bool,
},
Export {
path: String,
output: Option<String>,
compress: String,
timestamp: Option<String>,
format: String,
include_vectors: bool,
from_cas: bool,
},
Import {
path: String,
input: Option<String>,
compress: String,
generate_sigs: bool,
raw: bool,
verbose: bool,
to_cas: bool,
},
Inspect {
archive: String,
list: bool,
json: bool,
file: Option<String>,
},
Restore {
archive: String,
file: Option<String>,
date: Option<String>,
latest: bool,
all_versions: bool,
output: String,
},
Browse {
path: String,
ai: bool,
},
}Variants§
List
List snapshots or versions of a specific file
Fields
Show
Show details of a specific snapshot
Revert
Revert a file to a previous version (atomic reflink swap)
Copy
Copy a specific version to a new file
Prune
Remove old snapshots by age, count, or size
Fields
Tag
Tag a snapshot (tagged snapshots are exempt from auto-pruning)
RebuildIndex
Rebuild index.json from on-disk snapshot state
Stats
Show aggregate storage statistics (apparent vs on-disk, CoW savings)
Export
Export snapshots as a .fxar archive (content-addressable, deduped)
Fields
Import
Import snapshots from a .fxar archive
Fields
Inspect
Inspect a .fxar archive without extracting
Fields
Restore
Restore specific files/snapshots from a .fxar archive
Fields
Browse
Interactive MC-style dual-pane browser for snapshots and archives
Trait Implementations§
Source§impl FromArgMatches for SnapCommand
impl FromArgMatches for SnapCommand
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for SnapCommand
impl Subcommand for SnapCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for SnapCommand
impl RefUnwindSafe for SnapCommand
impl Send for SnapCommand
impl Sync for SnapCommand
impl Unpin for SnapCommand
impl UnsafeUnpin for SnapCommand
impl UnwindSafe for SnapCommand
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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