You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: added sync dir config via global --sync-dir cli param and AW_SYNC_DIR env var (#457)
* docs(sync): improved usage instructions, updated docs to mention sync dir config options
* docs: added global `--sync-dir` cli param and `AW_SYNC_DIR` env var
Copy file name to clipboardExpand all lines: aw-sync/README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,28 @@ Was originally prototyped as a PR to aw-server: https://github.com/ActivityWatch
12
12
13
13
## Usage
14
14
15
-
This will start a daemon which both pulls and pushes events with the sync directory.
15
+
This will start a daemon which pulls and pushes events with the sync directory (`~/ActivityWatchSync` by default) every 5 minutes:
16
16
17
17
```sh
18
-
cargo run --bin aw-sync
18
+
aw-sync
19
19
```
20
20
21
-
For more options, see `cargo run --bin aw-sync -- --help`.
21
+
For more options, see `aw-sync --help`.
22
22
23
-
---
23
+
### Setting up sync
24
+
25
+
Once you have aw-sync running, you need to set up syncing with the sync directory using your preferred syncing tool.
26
+
27
+
The default sync directory is `~/ActivityWatchSync`, but you can change it using the `--sync-dir` option or by setting the `AW_SYNC_DIR` environment variable.
28
+
29
+
### Running from source
30
+
31
+
If you want to run it from source, in the root of the repository run:
32
+
33
+
```sh
34
+
cargo run --bin aw-sync
35
+
```
36
+
For more options, see `cargo run --bin aw-sync -- --help`.
0 commit comments