# export dataset

The `export dataset` command exports a dataset to an S3 bucket. It is used, along with the `import dataset` command, to transfer datasets between two Aizen installations. A data source must be configured to define the S3 bucket that will hold the exported dataset.

## Syntax

{% code overflow="wrap" %}

```
export dataset <dataset name>,source=<datasource name>  [,sql_clause=<SQL clause>,
                                                          limit=<number of rows>]
```

{% endcode %}

## Parameters

| Parameter           | Description                                                                |
| ------------------- | -------------------------------------------------------------------------- |
| `<dataset name>`    | The name of the dataset (the corresponding ML job filename)                |
| `<datasource name>` | The name of the S3 data source, defined by the `configure dataset` command |
| `<SQL clause>`      | A SQL WHERE clause, usually on a timestamp column                          |
| `<number of rows>`  | The number of rows to display. Defaults to 10 if not specified.            |

## Example

{% code overflow="wrap" %}

```
export dataset trip_dataset_2,source=s3_export_datasource
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aizen-corp.gitbook.io/docs/model-building-commands/dataset-commands/export-dataset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
