Skip to content

Commit e841211

Browse files
committed
docs(sync):update docs for advanced sync daemon support
1 parent e9a7320 commit e841211

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

aw-sync/README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,27 @@ Was originally prototyped as a PR to aw-server: https://github.com/ActivityWatch
1515
This will start a daemon which pulls and pushes events with the sync directory (`~/ActivityWatchSync` by default) every 5 minutes:
1616

1717
```sh
18+
# Basic sync daemon (syncs all buckets every 5 minutes)
1819
aw-sync
20+
21+
# Same as above
22+
aw-sync daemon
23+
24+
# Sync daemon with specific buckets only
25+
aw-sync daemon --buckets "aw-watcher-window,aw-watcher-afk" --start-date "2024-01-01"
26+
27+
# Sync all buckets once and exit
28+
aw-sync sync --start-date "2024-01-01"
1929
```
2030

21-
For more options, see `aw-sync --help`.
31+
For more options, see `aw-sync --help`. Some notable options:
32+
- `--buckets`: Specify which buckets to sync (comma-separated). By default, all buckets are synced.
33+
- Use `--buckets "bucket1,bucket2"` to sync specific buckets
34+
- Use `--buckets "*"` to explicitly sync all buckets
35+
- Not specifying this option syncs all buckets by default
36+
- `--start-date`: Only sync events after this date (YYYY-MM-DD)
37+
- `--sync-db`: Specify a specific database file in the sync directory
38+
- `--mode`: Choose sync mode: "push", "pull", or "both" (default: "both")
2239

2340
### Setting up sync
2441

0 commit comments

Comments
 (0)