pub struct RestoreBackupsArgs {
pub source_root: Option<PathBuf>,
pub product: String,
pub live_home: PathBuf,
pub state_home: PathBuf,
pub from: Option<String>,
pub surface: Option<String>,
pub no_overlay: bool,
pub overlay_path: Option<PathBuf>,
pub dry_run: bool,
pub apply: bool,
}Fields§
§source_root: Option<PathBuf>Source root containing manifests/, core/, targets/, build/.
Defaults to the current working directory.
product: StringProduct whose backups should be restored (codex or claude).
live_home: PathBufAbsolute path of the runtime home (e.g. ~/.codex / ~/.claude).
Relative paths are rejected so restore never writes outside an
explicitly-chosen directory.
state_home: PathBufAbsolute path of the state home (where backups live).
from: Option<String>Backup run to restore from: latest or a unix-seconds timestamp
matching a directory under <state_home>/backups/<product>/.
Required — running without it exits non-zero with the available
timestamp list.
surface: Option<String>Filter to a single link-map entry id. Default: restore every backup file in the run.
no_overlay: boolSkip the optional .private/link-map.overrides.yaml overlay
merge. Default: merge if file exists, so overlay-discovered
entries are restored alongside the canonical link map.
overlay_path: Option<PathBuf>Override the overlay file location. When set, the conventional
<source-root>/.private/link-map.overrides.yaml is ignored.
dry_run: boolPrint the resolved plan; do not mutate the filesystem.
apply: boolRestore backup files into their original install destinations.
Trait Implementations§
Source§impl Args for RestoreBackupsArgs
impl Args for RestoreBackupsArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for RestoreBackupsArgs
impl Debug for RestoreBackupsArgs
Source§impl FromArgMatches for RestoreBackupsArgs
impl FromArgMatches for RestoreBackupsArgs
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>
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>
ArgMatches to self.