Skip to main content

sync_dir

Function sync_dir 

Source
pub fn sync_dir(
    conn: &Connection,
    sync_dir: &Path,
    machine_id: &str,
    cursors_path: &Path,
    dry_run: bool,
) -> KimetsuResult<SyncReport>
Expand description

Full sync cycle:

  1. Push this machine’s new events.
  2. Pull every other machine’s new batches.
  3. Persist updated cursors.

Returns a summary of what happened.