> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.clone_volume

Clone an existing volume to create a new volume with optional size increase.

## Signature

```python theme={null}
VastAI.clone_volume(
    source: int,
    dest: int,
    size: Optional[float] = None,
    disable_compression: bool = False
) -> str
```

## Parameters

<ParamField path="source" type="int" required>
  source
</ParamField>

<ParamField path="dest" type="int" required>
  dest
</ParamField>

<ParamField path="size" type="Optional[float]">
  size
</ParamField>

<ParamField path="disable_compression" type="bool" default="False">
  disable\_compression
</ParamField>

## Returns

`str`, Result from the API call.

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.clone_volume(source=12345, dest=12345)
print(result)
```
