Skip to main content

harvest_sync

Function harvest_sync 

Source
pub fn harvest_sync(
    path: Option<&str>,
    push: bool,
    pull: bool,
    provider: Option<&str>,
    workspace: Option<&str>,
    sessions: Option<&[String]>,
    format: Option<&str>,
    force: bool,
    dry_run: bool,
) -> Result<()>
Expand description

Sync sessions between the harvest database and provider workspaces

This command provides bidirectional sync capabilities:

  • --push: Write sessions from the database to provider workspace directories
  • --pull: Import sessions from provider workspaces into the database (similar to harvest run)

Sync supports filtering by provider, workspace, or specific session IDs.