pub struct BackupArgs {
pub output: PathBuf,
pub json: bool,
pub db: Option<String>,
pub backup_step_size: usize,
pub backup_step_sleep_ms: u64,
pub backup_no_sleep: bool,
pub backup_progress: i32,
}Fields§
§output: PathBufDestination path for the backup file. Required.
json: bool§db: Option<String>§backup_step_size: usizeNumber of pages copied per backup step. Default: 1000 (was 100 before v1.0.69). Larger values finish faster on local SSD but may contend on NFS.
backup_step_sleep_ms: u64Sleep duration in milliseconds between backup steps. Default: 5 (was 50 before v1.0.69). Ignored when –backup-no-sleep is set.
backup_no_sleep: boolDisable the inter-step sleep entirely. Maximum throughput, but risks starving concurrent I/O on shared storage.
backup_progress: i32Emit a progress line to stderr every N pages (G38 observability). Default: 100 (every 100 pages = ~400 KB). Set to 0 to disable.
Trait Implementations§
Source§impl Args for BackupArgs
impl Args for BackupArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for BackupArgs
impl FromArgMatches for BackupArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for BackupArgs
impl RefUnwindSafe for BackupArgs
impl Send for BackupArgs
impl Sync for BackupArgs
impl Unpin for BackupArgs
impl UnsafeUnpin for BackupArgs
impl UnwindSafe for BackupArgs
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> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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