# COPY DESCRIPTOR\_SOURCE

## Syntax

```sql
COPY DESCRIPTOR_SOURCE descriptor_source_name TO 'file_path';
```

## Description

This command downloads a [Descriptor Source](https://docs.deltastream.io/reference/data-format-serialization#protocol-buffers-and-descriptors) to your local machine.

Descriptor sources are downloadable only if the current role has USAGE privileges.

### Arguments

#### descriptor\_source\_name

This is the name of the descriptor source to copy. If a name is case-sensitive names, you must wrap it in double quotes; otherwise, the lowercase name is used.

#### file\_path

This is the destination file path on the local machine to which the descriptor source file is copied. This is a string value and should be wrapped in single quotes.

## Examples

#### Copy Descriptor Source

```sh
demodb.public/demostore# COPY DESCRIPTOR_SOURCE pageviews TO '/tmp/pageviews';
Downloading descriptor source pageviews to /tmp/pageviews
```
