# Files syncing with Drupal

Source: https://docs.fortrabbit.com/guides/drupal/files
Published: 2026-11-15
Reviewed: 2026-11-15

> Sync Drupal uploads in web/sites/default/files between local development and fortrabbit with frbit files pull and push, or with rsync.


## Install and deploy run down

1. [Install Drupal locally](/guides/drupal/install)
2. [Deploy Drupal to fortrabbit](/guides/drupal/deployment)
3. [Database syncing](/guides/drupal/database)
4. **Files syncing** _← you are here_

## Files down

Run it from the project root:



```shell
frbit files pull web/sites/default/files -e {{app-env-id}}
```

Changed files are overwritten locally. Add `--dry-run` to see what would change, `--delete` to also remove local files that are gone on the environment.

## Files up



```shell
frbit files push web/sites/default/files -e {{app-env-id}}
```

It asks to type the environment ID first. The software template [excludes](/platform/deployment/exclude-patterns) `web/sites/default/files` from deployments, so pushed files survive the next deployment.

## Without the frbit CLI

Both commands wrap [rsync](/dev/how-to/rsync) over SSH. The same with plain rsync:



```shell
# Down
rsync -av {{app-env-id}}@ssh.{{region}}.frbit.app:web/sites/default/files/ ./web/sites/default/files/

# Up
rsync -av ./web/sites/default/files/ {{app-env-id}}@ssh.{{region}}.frbit.app:web/sites/default/files/
```
