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 URLinput_path- Backup file path (.tar.gz)dry_run- If true, validate without actually restoringselective_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?;