# Keep folders syncing (/use/keep-folders-syncing)

Keep every synced folder on your computer in step with one watch that starts when you log in.



A folder you [set up](/use/sync-a-folder) stays in step only while something watches it. **One watch keeps every folder on the computer in step,** and autostart runs it each time you log in, so no terminal stays open.

## Start the watch when you log in [#start-the-watch-when-you-log-in]

Turn on autostart once on each computer:

```bash
marfa folders autostart on
```

It starts the watch at once, in your own account, and again each time you log in: a launchd agent on macOS, a systemd user unit on Linux. It runs at a lower priority than your apps, and uses the sign-in that `marfa login` keeps in your keychain. Where the keychain stays locked, such as on a server, give the watch a key file, as [Give a key to a folder watch](/run/manage-keys#give-a-key-to-a-folder-watch) shows.

`marfa folders autostart status` says whether the watch is running, and why any folder isn't watched, such as one whose first sync waits for you. When you [update the CLI](/reference/cli#update-the-cli), the watch moves to the new build by itself.

## Watch by hand [#watch-by-hand]

To run the watch in a terminal instead, start it with no directory, and it watches every folder that `marfa folders list` shows:

```bash
marfa folders watch
```

Output:

```text
watching every folder /Users/sam/Library/Application Support/Marfa/folders.json lists (interrupt to stop)
/Users/sam/Documents/Home: watching
/Users/sam/Documents/Home: 0 created, 1 updated, 0 renamed, 0 deleted; the server answered 1 change(s); 1 file(s) written
```

Press Control+C to stop it. Don't run one by hand while autostart is on: one process works a folder at a time.

## What the watch does [#what-the-watch-does]

* **It sends an edit within seconds, and writes in what changed elsewhere,** and it follows the list of folders, so a folder you add or remove needs no restart.
* **When your instance can't be reached or asks it to wait,** it keeps your edits and sends them later.
* **It skips a [paused](/use/change-or-stop-a-folder#pause-a-folder) directory,** and watches it again once you resume it.
* **A directory the system's file watch can't register,** such as past Linux's limit of watches, is read again every 30 seconds until it can be, and `marfa folders status` says how many there are.

**Update the CLI and your instance together:** a server before 0.0.87 refuses a folder's report that names a pause or a directory the watch can't register.

A folder holds a large addition or removal until you say, and the rest of the folder goes on syncing: see [Fix a folder](/use/fix-a-folder#a-large-addition-waits). To stop syncing for a while, [pause the folder](/use/change-or-stop-a-folder#pause-a-folder). If edits stop arriving, [Fix a folder](/use/fix-a-folder#edits-stop-arriving) says where to look.
