pub struct BackupManager { /* private fields */ }
Expand description
Main backup manager responsible for orchestrating all backup operations
Implementations§
Source§impl BackupManager
impl BackupManager
pub fn new(config: BackupConfig, db_pool: Arc<PgPool>) -> Self
Sourcepub async fn initialize(&self) -> Result<()>
pub async fn initialize(&self) -> Result<()>
Initialize the backup manager and create necessary directories
Sourcepub async fn create_full_backup(&self) -> Result<BackupMetadata>
pub async fn create_full_backup(&self) -> Result<BackupMetadata>
Perform a full database backup
Sourcepub async fn create_incremental_backup(&self) -> Result<BackupMetadata>
pub async fn create_incremental_backup(&self) -> Result<BackupMetadata>
Create an incremental backup (WAL archives since last backup)
Sourcepub async fn cleanup_expired_backups(&self) -> Result<u32>
pub async fn cleanup_expired_backups(&self) -> Result<u32>
Clean up expired backups based on retention policy
Sourcepub async fn get_backup_statistics(&self) -> Result<BackupStatistics>
pub async fn get_backup_statistics(&self) -> Result<BackupStatistics>
Get backup statistics and health metrics
Auto Trait Implementations§
impl Freeze for BackupManager
impl !RefUnwindSafe for BackupManager
impl Send for BackupManager
impl Sync for BackupManager
impl Unpin 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
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