backup_export - OmniCloudOrg/OmniOrchestrator GitHub Wiki

export (src/backup)

Path: src/backup/export.rs

Table of Contents

Public Items

struct BackupExporter

Definition

pub struct BackupExporter {
    temp_dir: PathBuf,
}

Documentation

Provides functionality for exporting and archiving backups

fn new

Definition

    pub fn new(temp_dir: impl Into<PathBuf>) -> Self {
        Self {
    // ... function body
}

Documentation

Create a new BackupExporter instance

fn prepare_for_export

Definition

    pub fn prepare_for_export(&self, backup: &Backup, export_path: &Path) -> Result<PathBuf> {
        info!("Preparing backup for export: {}", backup.name);

Documentation

Prepare backup for export or archiving

fn archive_backup

Definition

    pub fn archive_backup(&self, backup: &Backup, archive_path: Option<&Path>) -> Result<PathBuf> {
        info!("Archiving backup: {}", backup.name);

Documentation

Archive a backup to a compressed file

fn clean_old_backups

Definition

    pub fn clean_old_backups(&self, backup_ids: &[i32], retention_days: i64) -> Result<Vec<i32>> {
        info!("Cleaning up old backups, retention period: {} days", retention_days);

Documentation

Clean up older backups based on retention policy

fn remove_backup

Definition

    pub fn remove_backup(&self, backup: &Backup) -> Result<()> {
        info!("Removing backup: {}", backup.name);

Documentation

Physically remove a backup from storage

fn export_metadata_only

Definition

    pub fn export_metadata_only(&self, backup: &Backup, export_path: &Path) -> Result<PathBuf> {
        info!("Exporting backup metadata only: {}", backup.name);

Documentation

Export backup metadata only (no ISOs)

fn merge_backups

Definition

    pub fn merge_backups(&self, backup_ids: &[i32], output_name: &str, storage_location: &Path) -> Result<PathBuf> {
        info!("Merging {} backups into: {}", backup_ids.len(), output_name);

Documentation

Merge multiple backups into a single comprehensive backup

⚠️ **GitHub.com Fallback** ⚠️