restore_backup

Function restore_backup 

Source
pub async fn restore_backup(
    broker_url: &str,
    input_path: &str,
    dry_run: bool,
    selective_queues: Option<Vec<String>>,
) -> Result<()>
Expand description

Restore broker state from backup

§Arguments

  • broker_url - Broker connection URL
  • input_path - Backup file path (.tar.gz)
  • dry_run - If true, validate without actually restoring
  • selective_queues - Optional list of specific queues to restore

§Examples

use celers_cli::backup::restore_backup;

restore_backup("redis://localhost:6379", "backup.tar.gz", false, None).await?;