Sync Runs

A SyncRun represents a single execution (run) of a Sync job. It tracks status, statistics, logs, and timing for each sync operation.

Data Source Schema

Required

PropertyDescription
id
Int64
SyncRun ID

Read Only

PropertyDescription
body
String
Log or summary body for this run
bytes_synced
Int64
Total bytes synced in this run
compared_files
Int64
Number of files compared
compared_folders
Int64
Number of folders compared
completed_at
String
When this run was completed
created_at
String
When this run was created
dest_remote_server_type
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
dry_run
Bool
Whether this run was a dry run (no actual changes made)
errored_files
Int64
Number of files that errored
estimated_bytes_count
Int64
Estimated bytes count for this run
event_errors
List
Array of errors encountered during the run
log_url
String
Link to external log file.
runtime
Float64
Total runtime in seconds
site_id
Int64
Site ID
workspace_id
Int64
Workspace ID
src_remote_server_type
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
successful_files
Int64
Number of files successfully synced
sync_id
Int64
ID of the Sync this run belongs to
sync_name
String
Name of the Sync this run belongs to
updated_at
String
When this run was last updated
live_transfers
Dynamic
Array of in-progress file transfers with progress data. Only present when the sync run status is in_progress.

Example Data Source

data "files_sync_run" "example_sync_run" {
  id = 1
}