pub struct BackupManager;Expand description
Manages backup creation and restoration.
Implementations§
Source§impl BackupManager
impl BackupManager
Sourcepub fn create_backup(
data_dir: &Path,
backup_path: &Path,
) -> MenteResult<BackupManifest>
pub fn create_backup( data_dir: &Path, backup_path: &Path, ) -> MenteResult<BackupManifest>
Create a full backup of data_dir into a single file at backup_path.
Sourcepub fn restore_backup(
backup_path: &Path,
target_dir: &Path,
) -> MenteResult<BackupManifest>
pub fn restore_backup( backup_path: &Path, target_dir: &Path, ) -> MenteResult<BackupManifest>
Restore a backup file into target_dir.
Sourcepub fn list_backups(backup_dir: &Path) -> MenteResult<Vec<BackupManifest>>
pub fn list_backups(backup_dir: &Path) -> MenteResult<Vec<BackupManifest>>
List backup manifests found in backup_dir (files matching *.mentebackup).
Auto Trait Implementations§
impl Freeze for BackupManager
impl RefUnwindSafe for BackupManager
impl Send for BackupManager
impl Sync for BackupManager
impl Unpin for BackupManager
impl UnsafeUnpin for BackupManager
impl UnwindSafe for BackupManager
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