@backblaze-labs/b2-sdk - v0.6.0
    Preparing search index...

    Function synchronize

    • Runs a full sync operation: scans both folders, pairs files, generates actions, and executes them with bounded concurrency. Yields SyncEvent entries for each comparison and action result.

      Parameters

      Returns AsyncGenerator<SyncEvent>

      An async generator that yields comparison and action events.

      A TypeError on iteration if keepMode is unsupported.

      A RangeError on iteration if keep-days has no finite, non-negative keepDays value.

    • Legacy overload for broad custom synchronizer configurations.

      Parameters

      Returns AsyncGenerator<SyncEvent>

      An async generator that yields comparison and action events.

      Use SupportedSynchronizerConfig. This legacy overload accepts broad custom configurations for source compatibility, but the supported union is the public contract for built-in sync directions.