pub struct BackupManager { /* private fields */ }Expand description
Manages backup operations for volumes, configs, and secrets.
Implementations§
Source§impl BackupManager
impl BackupManager
pub fn new(config: BackupConfig) -> Self
Sourcepub fn backup_volume(
&self,
service_name: &str,
volume_path: &str,
pre_hook: Option<&str>,
) -> Result<BackupResult>
pub fn backup_volume( &self, service_name: &str, volume_path: &str, pre_hook: Option<&str>, ) -> Result<BackupResult>
Backup a service volume directory.
Sourcepub fn backup_file(&self, name: &str, path: &Path) -> Result<()>
pub fn backup_file(&self, name: &str, path: &Path) -> Result<()>
Backup a single file to all targets.
Sourcepub fn list_backups(&self, target: &BackupTarget) -> Result<Vec<String>>
pub fn list_backups(&self, target: &BackupTarget) -> Result<Vec<String>>
List backups in a target.
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