> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-auto-cli-sdk-preview-pr-398.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.clone_volume

Clone an existing volume.

## Signature

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

## Parameters

<ParamField path="source" type="int" required>
  id of volume contract being cloned
</ParamField>

<ParamField path="dest" type="int" required>
  id of volume offer volume is being copied to
</ParamField>

<ParamField path="size" type="Optional[float]">
  Size of new volume contract, in GB. Must be greater than or equal to the source volume, and less than or equal to the destination offer.
</ParamField>

<ParamField path="disable_compression" type="bool">
  Do not compress volume data before copying.
</ParamField>

## Returns

`dict`

## 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)
```
