Sync Workflow
How Sync Works
EchoAccess uses a three-state model for synchronization:
- Source State: The intended configuration (from profile + cloud storage)
- Target State: The rendered result after applying transforms and overrides
- Actual State: What currently exists on disk
The sync engine compares these states and generates a plan:
Source (cloud) → Transform → Target (expected) → Diff → Actual (disk)
↓
Approval Queue
Conflict Resolution
When both local and cloud copies have changed, EchoAccess performs a 3-way merge:
- Clean merge: Changes don't overlap — applied automatically
- Conflict: Changes overlap — queued for user approval
Approval Queue
Local modifications are not automatically uploaded. They enter an approval queue:
echo_access sync check # See pending changes
echo_access sync upload # Upload approved changes
echo_access sync download # Download from cloud
Triggers
Sync can be triggered three ways:
- File watcher: Automatically detects config file changes
- Scheduler: Periodic sync at configurable intervals
- Manual: Via CLI commands or TUI actions