Sync Runs
A SyncRun represents a single execution (run) of a Sync job. It tracks status, statistics, logs, and timing for each sync operation.
List Sync Runs
SDK Method
syncrun.List()
Return Object
[]*SyncRun
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
SyncRunListParams Fields
| Field | Description |
|---|---|
| UserId int64 | User ID. Provide a value of 0 to operate the current session's user. |
Additional Arguments
Show Sync Run
SDK Method
syncrun.Find()
Return Object
SyncRun
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
SyncRunFindParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Sync Run ID. |
The SyncRun Object
Some of the methods above return a SyncRun object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| Id int64 | SyncRun ID |
| Body string | Log or summary body for this run |
| BytesSynced int64 | Total bytes synced in this run |
| ComparedFiles int64 | Number of files compared |
| ComparedFolders int64 | Number of folders compared |
| CompletedAt date-time | When this run was completed |
| CreatedAt date-time | When this run was created |
| DestRemoteServerType string | Destination remote server type, if any Possible values: ftp, sftp, s3, google_cloud_storage, webdav, wasabi, backblaze_b2, one_drive, box, dropbox, google_drive, azure, sharepoint, s3_compatible, azure_files, files_agent, filebase, cloudflare, linode, files_com |
| DryRun boolean | Whether this run was a dry run (no actual changes made) |
| ErroredFiles int64 | Number of files that errored |
| EstimatedBytesCount int64 | Estimated bytes count for this run |
| EventErrors array(string) | Array of errors encountered during the run |
| LogUrl string | Link to external log file. |
| Runtime double | Total runtime in seconds |
| SiteId int64 | Site ID |
| WorkspaceId int64 | Workspace ID |
| SrcRemoteServerType string | Source remote server type, if any Possible values: ftp, sftp, s3, google_cloud_storage, webdav, wasabi, backblaze_b2, one_drive, box, dropbox, google_drive, azure, sharepoint, s3_compatible, azure_files, files_agent, filebase, cloudflare, linode, files_com |
| Status string | Status of the sync run (success, failure, partial_failure, in_progress, skipped) Possible values: success, failure, partial_failure, in_progress, skipped |
| SuccessfulFiles int64 | Number of files successfully synced |
| SyncId int64 | ID of the Sync this run belongs to |
| SyncName string | Name of the Sync this run belongs to |
| UpdatedAt date-time | When this run was last updated |
| LiveTransfers array(object) | Array of in-progress file transfers with progress data. Only present when the sync run status is in_progress. |