> ## Documentation Index
> Fetch the complete documentation index at: https://libops-renovate-github-com-libops-sitectl-isle-0-x.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# sync

> Copy Islandora artifacts between sitectl contexts.

Use `sync` to replicate Fedora Commons content between environments — for example pulling production fcrepo data to a local context for development or testing.

## sync fcrepo

Copy the Fcrepo database from a source context to a target context.

This backs up the Fcrepo database on the source, transfers the artifact, and imports it into
the target. The command asks for confirmation before importing. Pass `--yolo` to skip the prompt
in automation.

Use `--fresh` to always take a new backup rather than reusing one from today.

```bash theme={null}
sitectl isle sync fcrepo
```

| Flag           | Default                                   | Description                                                   |
| -------------- | ----------------------------------------- | ------------------------------------------------------------- |
| `--backup-dir` | `/tmp/sitectl-isle-jobs/fcrepo-db-backup` | Directory on the source host used to cache backup artifacts.  |
| `--fresh`      | `false`                                   | Always take a fresh backup instead of reusing one from today. |
| `--source`     |                                           | Source sitectl context.                                       |
| `--target`     |                                           | Target sitectl context.                                       |
| `--yolo`       | `false`                                   | Skip the confirmation prompt before importing.                |

## Typical workflow

Pull fcrepo from production to a local context:

```bash theme={null}
sitectl isle sync fcrepo --source prod --target local
```

The command backs up fcrepo on the source, transfers the artifact, asks for confirmation, then imports it on the target. Use `--yolo` to skip the confirmation in CI or automation.
