---
sidebar_position: 16
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lium.io/llms.txt
> Use this file to discover all available pages before exploring further.

# `lium rsync`

Synchronize directories to pods.

```bash
lium rsync POD LOCAL_DIR [REMOTE_PATH] [OPTIONS]
```

## Arguments

- `POD` — Pod name, index, list, or `all`.
- `LOCAL_DIR` — Local directory to sync.
- `REMOTE_PATH` — Destination path on the pod.

## Options

| Flag | Effect |
|------|--------|
| `--delete` | Delete files on the pod that don't exist locally |
| `--exclude PATTERN` | Exclude files matching pattern |
| `--dry-run` | Show what would be synced without changing anything |

## Examples

```bash
lium rsync my-pod ./project                       # Sync project
lium rsync 1 ./data /root/datasets/               # Specific path
lium rsync all ./configs --delete                 # Mirror exactly
lium rsync my-pod ./code --exclude "*.pyc"        # Exclude files
lium rsync my-pod ./project --dry-run             # Preview
```

## See also

- [`lium scp`](./scp) — single-shot copy
