Skip to main content

run_sync

Function run_sync 

Source
pub async fn run_sync(
    app_config: Option<&AppConfig>,
    profile: Option<&str>,
    from: Option<&str>,
    to: Option<&str>,
    zones: &[String],
    maps: &[String],
    apply: bool,
    json: bool,
) -> Result<()>
Expand description

Run a record sync.

profile selects a named [[sync]] profile from the config; from, to, zones and maps are CLI overrides that take precedence over the profile.

§Errors

Returns an error if the config, servers, zones, or IP mappings cannot be resolved, or — when apply is set — if any record write fails.