# mc replicate export

LLMS index: [llms.txt](/llms.txt)

---

<a id="mc-replicate-export"></a>
<a id="minio-mc-replicate-export"></a>

<a id="command-mc.replicate.export"></a>

## Syntax {#syntax}

The [`mc replicate export`](#command-mc.replicate.export) command exports the JSON-formatted [replication rules](/administration/bucket-replication/#minio-bucket-replication-serverside) for a MinIO bucket to `STDOUT`.

**EXAMPLE**

The following command exports the replication configuration for the `mydata` bucket on the `myminio` MinIO deployment:

```shell
mc replicate export myminio/mydata > mydata-replication.json
```

**SYNTAX**

The command has the following syntax:

```shell
mc [GLOBALFLAGS] export ALIAS
```

- Brackets `[]` indicate optional parameters.
- Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe `|` operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

### Parameters {#parameters}

##### `ALIAS` {#mc.replicate.export.ALIAS}

*mc-cmd*

*Required* the [alias](/reference/minio-mc/mc-alias-set/#alias) of the MinIO deployment and full path to the bucket or bucket prefix for which to export the replication rules. For example:

```text
mc replicate export myminio/mybucket
```

### Global Flags {#global-flags}

This command supports any of the [global flags](/reference/minio-mc/#minio-mc-global-options).

## Examples {#examples}

### Export Existing Replication Rules {#export-existing-replication-rules}

Use [`mc replicate export`](#command-mc.replicate.export) to export bucket replication rules:

```shell
mc replicate export ALIAS/PATH > bucket-replication-rules.json
```

- Replace [`ALIAS`](#mc.replicate.export.ALIAS) with the [`alias`](/reference/minio-mc/mc-alias/#command-mc.alias) of the MinIO deployment.
- Replace [`PATH`](#mc.replicate.export.ALIAS) with the path to the bucket or bucket prefix.

## Behavior {#behavior}

### S3 Compatibility {#s3-compatibility}

SILO is the supported server for PGSTY mcli; compatibility with upstream MinIO and other S3 services is [best effort](/reference/minio-mc/#command-mc).
